binary_loopback.cpp
Go to the documentation of this file.
1 //
2 // Created by nakakura on 22/08/29.
3 //
5 #include <ros/ros.h>
7 #include <skyway/skyway_plugin.h>
8 
10  ROS_INFO("binary_loopback plugin loaded");
11 }
12 
14  ROS_INFO("binary_loopback plugin exited");
15 }
16 
18  std::shared_ptr<rapidjson::Document> parameter,
19  std::shared_ptr<std::function<void(std::vector<uint8_t>)>> callback) {
20  callback_ = callback;
21 }
22 
23 void binary_loopback::BinaryLoopback::Execute(std::vector<uint8_t> data) {
24  (*callback_)(data);
25 }
26 
binary_loopback::BinaryLoopback::~BinaryLoopback
virtual ~BinaryLoopback() override
Definition: binary_loopback.cpp:13
binary_loopback::BinaryLoopback::BinaryLoopback
BinaryLoopback()
Definition: binary_loopback.cpp:9
ros.h
binary_loopback::BinaryLoopback::Shutdown
virtual void Shutdown() override
Definition: binary_loopback.cpp:27
class_list_macros.h
skyway_plugin.h
binary_loopback.h
ROS_INFO
#define ROS_INFO(...)
binary_loopback::BinaryLoopback::Initialize
virtual void Initialize(std::shared_ptr< rapidjson::Document > parameter, std::shared_ptr< std::function< void(std::vector< uint8_t >)>> callback) override
Definition: binary_loopback.cpp:17
binary_loopback::BinaryLoopback::Execute
virtual void Execute(std::vector< uint8_t > data) override
Definition: binary_loopback.cpp:23


skyway
Author(s): Toshiya Nakakura
autogenerated on Thu Oct 26 2023 02:42:21