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 
virtual void Execute(std::vector< uint8_t > data) override
#define ROS_INFO(...)
virtual void Initialize(std::shared_ptr< rapidjson::Document > parameter, std::shared_ptr< std::function< void(std::vector< uint8_t >)>> callback) override
std::shared_ptr< std::function< void(std::vector< uint8_t >)> > callback_
virtual void Shutdown() override


skyway
Author(s): Toshiya Nakakura
autogenerated on Sat Apr 15 2023 02:08:21