Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
c
d
e
f
g
l
m
p
r
s
Functions
Variables
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
h
i
j
l
m
n
o
p
r
s
t
u
~
+
Functions
_
a
b
c
d
e
i
j
m
o
p
r
s
t
u
~
+
Variables
_
b
c
d
e
f
h
i
j
l
m
n
p
r
s
t
+
Files
File List
+
File Members
+
All
b
c
d
e
g
i
j
l
m
p
r
s
t
v
w
+
Functions
c
d
g
i
j
l
m
p
r
s
t
w
Typedefs
src
plugin
samples
string_loopback.cpp
Go to the documentation of this file.
1
//
2
// Created by nakakura on 22/08/29.
3
//
4
#include <
pluginlib/class_list_macros.h
>
5
#include <
ros/ros.h
>
6
#include <
skyway/skyway_plugin.h
>
7
#include <
skyway/string_loopback.h
>
8
9
string_loopback::StringLoopback::StringLoopback
() {
10
ROS_INFO
(
"string_loopback plugin loaded"
);
11
}
12
13
void
string_loopback::StringLoopback::Initialize
(
14
std::shared_ptr<rapidjson::Document> parameter,
15
std::shared_ptr<std::function<
void
(std::string)>> callback) {
16
callback_
= callback;
17
}
18
19
void
string_loopback::StringLoopback::Execute
(std::string data) {
20
(*callback_)(data);
21
}
22
23
void
string_loopback::StringLoopback::Shutdown
() {}
string_loopback.h
string_loopback::StringLoopback::Execute
virtual void Execute(std::string data) override
Definition:
string_loopback.cpp:19
string_loopback::StringLoopback::callback_
std::shared_ptr< std::function< void(std::string)> > callback_
Definition:
string_loopback.h:13
string_loopback::StringLoopback::Shutdown
virtual void Shutdown() override
Definition:
string_loopback.cpp:23
string_loopback::StringLoopback::StringLoopback
StringLoopback()
Definition:
string_loopback.cpp:9
class_list_macros.h
ROS_INFO
#define ROS_INFO(...)
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
ros.h
skyway_plugin.h
skyway
Author(s): Toshiya Nakakura
autogenerated on Sat Apr 15 2023 02:08:21