string_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/skyway_plugin.h>
8 
10  ROS_INFO("string_loopback plugin loaded");
11 }
12 
14  std::shared_ptr<rapidjson::Document> parameter,
15  std::shared_ptr<std::function<void(std::string)>> callback) {
16  callback_ = callback;
17 }
18 
20  (*callback_)(data);
21 }
22 
virtual void Execute(std::string data) override
std::shared_ptr< std::function< void(std::string)> > callback_
virtual void Shutdown() override
#define ROS_INFO(...)
virtual void Initialize(std::shared_ptr< rapidjson::Document > parameter, std::shared_ptr< std::function< void(std::string)>> callback) override


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