Main Page
Namespaces
Classes
Files
File List
File Members
include
rosserial_test
helpers.h
Go to the documentation of this file.
1
2
template
<
class
Msg>
3
class
Callback
{
4
public
:
5
Callback
() :
times_called
(0)
6
{
7
}
8
9
void
callback
(
const
Msg
msg)
10
{
11
times_called
++;
12
last_msg
= msg;
13
}
14
15
Msg
last_msg
;
16
int
times_called
;
17
};
18
typedef
Callback<std_msgs::String>
StringCallback
;
19
20
Callback
Definition:
helpers.h:3
Msg
Callback::last_msg
Msg last_msg
Definition:
helpers.h:15
Callback::times_called
int times_called
Definition:
helpers.h:16
Callback::Callback
Callback()
Definition:
helpers.h:5
Callback::callback
void callback(const Msg msg)
Definition:
helpers.h:9
StringCallback
Callback< std_msgs::String > StringCallback
Definition:
helpers.h:18
rosserial_test
Author(s):
autogenerated on Fri Jun 7 2019 22:03:01