helpers.h
Go to the documentation of this file.
00001 
00002 template<class Msg>
00003 class Callback {
00004 public:
00005   Callback() : times_called(0)
00006   {
00007   }
00008 
00009   void callback(const Msg msg)
00010   {
00011     times_called++;
00012     last_msg = msg;
00013   }
00014 
00015   Msg last_msg;
00016   int times_called;
00017 };
00018 typedef Callback<std_msgs::String> StringCallback;
00019 
00020 


rosserial_test
Author(s):
autogenerated on Sat Oct 7 2017 03:08:56