$search
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 37 of file msg_saver.h.
| typedef boost::shared_ptr< MsgType const> MsgSaver< MsgType >::MsgTypeConstPtr |
Definition at line 40 of file msg_saver.h.
Definition at line 42 of file msg_saver.h.
| void MsgSaver< MsgType >::callback | ( | const MsgTypeConstPtr & | msg | ) | [inline] |
Definition at line 49 of file msg_saver.h.
| MsgTypeConstPtr MsgSaver< MsgType >::getMsg | ( | ) | [inline] |
Definition at line 64 of file msg_saver.h.
| bool MsgSaver< MsgType >::hasMsg | ( | ) | [inline] |
Definition at line 56 of file msg_saver.h.
MsgTypeConstPtr MsgSaver< MsgType >::msg_ [private] |
Definition at line 74 of file msg_saver.h.
Definition at line 73 of file msg_saver.h.
ros::NodeHandle MsgSaver< MsgType >::root_nh_ [private] |
Definition at line 76 of file msg_saver.h.
ros::Subscriber MsgSaver< MsgType >::sub_ [private] |
Definition at line 75 of file msg_saver.h.
Definition at line 77 of file msg_saver.h.