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


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