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
json_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/json_loopback.h
>
7
#include <
skyway/skyway_plugin.h
>
8
9
json_loopback::JsonLoopback::JsonLoopback
() {
10
ROS_INFO
(
"json_loopback plugin loaded"
);
11
}
12
13
void
json_loopback::JsonLoopback::Initialize
(
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
20
void
json_loopback::JsonLoopback::Execute
(
21
std::shared_ptr<rapidjson::Document> data) {
22
(*callback_)(data);
23
}
24
25
void
json_loopback::JsonLoopback::Shutdown
() {}
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