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
binary_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/binary_loopback.h
>
7
#include <
skyway/skyway_plugin.h
>
8
9
binary_loopback::BinaryLoopback::BinaryLoopback
() {
10
ROS_INFO
(
"binary_loopback plugin loaded"
);
11
}
12
13
binary_loopback::BinaryLoopback::~BinaryLoopback
() {
14
ROS_INFO
(
"binary_loopback plugin exited"
);
15
}
16
17
void
binary_loopback::BinaryLoopback::Initialize
(
18
std::shared_ptr<rapidjson::Document> parameter,
19
std::shared_ptr<std::function<
void
(std::vector<uint8_t>)>> callback) {
20
callback_
= callback;
21
}
22
23
void
binary_loopback::BinaryLoopback::Execute
(std::vector<uint8_t> data) {
24
(*callback_)(data);
25
}
26
27
void
binary_loopback::BinaryLoopback::Shutdown
() {}
binary_loopback::BinaryLoopback::Execute
virtual void Execute(std::vector< uint8_t > data) override
Definition:
binary_loopback.cpp:23
binary_loopback::BinaryLoopback::~BinaryLoopback
virtual ~BinaryLoopback() override
Definition:
binary_loopback.cpp:13
binary_loopback.h
class_list_macros.h
ROS_INFO
#define ROS_INFO(...)
binary_loopback::BinaryLoopback::Initialize
virtual void Initialize(std::shared_ptr< rapidjson::Document > parameter, std::shared_ptr< std::function< void(std::vector< uint8_t >)>> callback) override
Definition:
binary_loopback.cpp:17
ros.h
binary_loopback::BinaryLoopback::callback_
std::shared_ptr< std::function< void(std::vector< uint8_t >)> > callback_
Definition:
binary_loopback.h:13
binary_loopback::BinaryLoopback::BinaryLoopback
BinaryLoopback()
Definition:
binary_loopback.cpp:9
binary_loopback::BinaryLoopback::Shutdown
virtual void Shutdown() override
Definition:
binary_loopback.cpp:27
skyway_plugin.h
skyway
Author(s): Toshiya Nakakura
autogenerated on Sat Apr 15 2023 02:08:21