Main Page
Namespaces
Namespace List
Namespace Members
All
Variables
Typedefs
Classes
Class List
Class Hierarchy
Class Members
All
Functions
Variables
Files
File List
File Members
All
Functions
Variables
Typedefs
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::callback
void callback(const Msg msg)
Definition:
helpers.h:9
Msg
Callback::times_called
int times_called
Definition:
helpers.h:16
Callback
Definition:
helpers.h:3
Callback::last_msg
Msg last_msg
Definition:
helpers.h:15
Callback::Callback
Callback()
Definition:
helpers.h:5
StringCallback
Callback< std_msgs::String > StringCallback
Definition:
helpers.h:18
rosserial_test
Author(s):
autogenerated on Wed Mar 2 2022 00:58:17