Helper class. Receives and stores the last instance of a message (thread-safe). More...
#include <msg_saver.h>
Public Types | |
typedef boost::shared_ptr < MsgType const > | MsgTypeConstPtr |
Public Member Functions | |
void | callback (const MsgTypeConstPtr &msg) |
MsgTypeConstPtr | getMsg () |
bool | hasMsg () |
MsgSaver (std::string topic) | |
Private Attributes | |
MsgTypeConstPtr | msg_ |
boost::mutex | mutex_ |
ros::NodeHandle | root_nh_ |
ros::Subscriber | sub_ |
std::string | topic_ |
Helper class. Receives and stores the last instance of a message (thread-safe).
Definition at line 35 of file msg_saver.h.
typedef boost::shared_ptr< MsgType const> MsgSaver< MsgType >::MsgTypeConstPtr |
Definition at line 38 of file msg_saver.h.
Definition at line 40 of file msg_saver.h.
void MsgSaver< MsgType >::callback | ( | const MsgTypeConstPtr & | msg | ) | [inline] |
Definition at line 47 of file msg_saver.h.
MsgTypeConstPtr MsgSaver< MsgType >::getMsg | ( | ) | [inline] |
Definition at line 62 of file msg_saver.h.
bool MsgSaver< MsgType >::hasMsg | ( | ) | [inline] |
Definition at line 54 of file msg_saver.h.
MsgTypeConstPtr MsgSaver< MsgType >::msg_ [private] |
Definition at line 72 of file msg_saver.h.
Definition at line 71 of file msg_saver.h.
Definition at line 74 of file msg_saver.h.
Definition at line 73 of file msg_saver.h.
Definition at line 75 of file msg_saver.h.