$search

MsgSaver< MsgType > Class Template Reference

Helper class. Receives and stores the last instance of a message (thread-safe). More...

#include <msg_saver.h>

List of all members.

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_

Detailed Description

template<class MsgType>
class MsgSaver< MsgType >

Helper class. Receives and stores the last instance of a message (thread-safe).

Definition at line 37 of file msg_saver.h.


Member Typedef Documentation

template<class MsgType>
typedef boost::shared_ptr< MsgType const> MsgSaver< MsgType >::MsgTypeConstPtr

Definition at line 40 of file msg_saver.h.


Constructor & Destructor Documentation

template<class MsgType>
MsgSaver< MsgType >::MsgSaver ( std::string  topic  )  [inline]

Definition at line 42 of file msg_saver.h.


Member Function Documentation

template<class MsgType>
void MsgSaver< MsgType >::callback ( const MsgTypeConstPtr msg  )  [inline]

Definition at line 49 of file msg_saver.h.

template<class MsgType>
MsgTypeConstPtr MsgSaver< MsgType >::getMsg (  )  [inline]

Definition at line 64 of file msg_saver.h.

template<class MsgType>
bool MsgSaver< MsgType >::hasMsg (  )  [inline]

Definition at line 56 of file msg_saver.h.


Member Data Documentation

template<class MsgType>
MsgTypeConstPtr MsgSaver< MsgType >::msg_ [private]

Definition at line 74 of file msg_saver.h.

template<class MsgType>
boost::mutex MsgSaver< MsgType >::mutex_ [private]

Definition at line 73 of file msg_saver.h.

template<class MsgType>
ros::NodeHandle MsgSaver< MsgType >::root_nh_ [private]

Definition at line 76 of file msg_saver.h.

template<class MsgType>
ros::Subscriber MsgSaver< MsgType >::sub_ [private]

Definition at line 75 of file msg_saver.h.

template<class MsgType>
std::string MsgSaver< MsgType >::topic_ [private]

Definition at line 77 of file msg_saver.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


rgbd_assembler
Author(s): Jeannette Bohg
autogenerated on Tue Mar 5 13:55:33 2013