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 35 of file msg_saver.h.


Member Typedef Documentation

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

Definition at line 38 of file msg_saver.h.


Constructor & Destructor Documentation

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

Definition at line 40 of file msg_saver.h.


Member Function Documentation

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

Definition at line 47 of file msg_saver.h.

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

Definition at line 62 of file msg_saver.h.

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

Definition at line 54 of file msg_saver.h.


Member Data Documentation

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

Definition at line 72 of file msg_saver.h.

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

Definition at line 71 of file msg_saver.h.

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

Definition at line 74 of file msg_saver.h.

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

Definition at line 73 of file msg_saver.h.

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

Definition at line 75 of file msg_saver.h.


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


pr2_interactive_object_detection
Author(s): David Gossow
autogenerated on Fri Jan 11 09:32:32 2013