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 
string_loopback::StringLoopback::Initialize
virtual void Initialize(std::shared_ptr< rapidjson::Document > parameter, std::shared_ptr< std::function< void(std::string)>> callback) override
Definition: string_loopback.cpp:13
string_loopback::StringLoopback::StringLoopback
StringLoopback()
Definition: string_loopback.cpp:9
ros.h
class_list_macros.h
skyway_plugin.h
string_loopback::StringLoopback::Execute
virtual void Execute(std::string data) override
Definition: string_loopback.cpp:19
string_loopback::StringLoopback::Shutdown
virtual void Shutdown() override
Definition: string_loopback.cpp:23
ROS_INFO
#define ROS_INFO(...)
string_loopback.h


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