helpers.h
Go to the documentation of this file.
1 
2 template<class Msg>
3 class Callback {
4 public:
6  {
7  }
8 
9  void callback(const Msg msg)
10  {
11  times_called++;
12  last_msg = msg;
13  }
14 
17 };
19 
20 
Msg last_msg
Definition: helpers.h:15
int times_called
Definition: helpers.h:16
Callback()
Definition: helpers.h:5
void callback(const Msg msg)
Definition: helpers.h:9
Callback< std_msgs::String > StringCallback
Definition: helpers.h:18


rosserial_test
Author(s):
autogenerated on Fri Jun 7 2019 22:03:01