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


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