Public Types | Public Member Functions | Public Attributes | List of all members
warehouse_ros::MessageWithMetadata< M > Struct Template Reference

Class that wraps (via inheritance) a ROS message type, together with additional metadata (a yaml dictionary) More...

#include <message_with_metadata.h>

Inheritance diagram for warehouse_ros::MessageWithMetadata< M >:
Inheritance graph
[legend]

Public Types

typedef boost::shared_ptr< const MessageWithMetadata< M > > ConstPtr
 
typedef boost::shared_ptr< MessageWithMetadata< M > > Ptr
 

Public Member Functions

bool lookupBool (const std::string &name) const
 
double lookupDouble (const std::string &name) const
 
bool lookupField (const std::string &name) const
 
std::set< std::string > lookupFieldNames () const
 
int lookupInt (const std::string &name) const
 
std::string lookupString (const std::string &name) const
 
 MessageWithMetadata (Metadata::ConstPtr metadata, const M &msg=M())
 
 MessageWithMetadata (const MessageWithMetadata &m)
 
 MessageWithMetadata ()
 

Public Attributes

Metadata::ConstPtr metadata_
 

Detailed Description

template<class M>
struct warehouse_ros::MessageWithMetadata< M >

Class that wraps (via inheritance) a ROS message type, together with additional metadata (a yaml dictionary)

Template Parameters
Mthe message type being wrapped

Definition at line 55 of file message_with_metadata.h.

Member Typedef Documentation

Definition at line 103 of file message_with_metadata.h.

Definition at line 102 of file message_with_metadata.h.

Constructor & Destructor Documentation

template<class M>
warehouse_ros::MessageWithMetadata< M >::MessageWithMetadata ( Metadata::ConstPtr  metadata,
const M &  msg = M() 
)
inline

Definition at line 58 of file message_with_metadata.h.

template<class M>
warehouse_ros::MessageWithMetadata< M >::MessageWithMetadata ( const MessageWithMetadata< M > &  m)
inline

Definition at line 62 of file message_with_metadata.h.

template<class M>
warehouse_ros::MessageWithMetadata< M >::MessageWithMetadata ( )
inline

Definition at line 66 of file message_with_metadata.h.

Member Function Documentation

template<class M>
bool warehouse_ros::MessageWithMetadata< M >::lookupBool ( const std::string &  name) const
inline

Definition at line 87 of file message_with_metadata.h.

template<class M>
double warehouse_ros::MessageWithMetadata< M >::lookupDouble ( const std::string &  name) const
inline

Definition at line 77 of file message_with_metadata.h.

template<class M>
bool warehouse_ros::MessageWithMetadata< M >::lookupField ( const std::string &  name) const
inline

Definition at line 92 of file message_with_metadata.h.

template<class M>
std::set<std::string> warehouse_ros::MessageWithMetadata< M >::lookupFieldNames ( ) const
inline

Definition at line 97 of file message_with_metadata.h.

template<class M>
int warehouse_ros::MessageWithMetadata< M >::lookupInt ( const std::string &  name) const
inline

Definition at line 82 of file message_with_metadata.h.

template<class M>
std::string warehouse_ros::MessageWithMetadata< M >::lookupString ( const std::string &  name) const
inline

Definition at line 72 of file message_with_metadata.h.

Member Data Documentation

template<class M>
Metadata::ConstPtr warehouse_ros::MessageWithMetadata< M >::metadata_

Definition at line 70 of file message_with_metadata.h.


The documentation for this struct was generated from the following file:


warehouse_ros
Author(s): Bhaskara Marthi , Connor Brew
autogenerated on Fri Jun 7 2019 21:44:23