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

◆ ConstPtr

Definition at line 103 of file message_with_metadata.h.

◆ Ptr

Definition at line 102 of file message_with_metadata.h.

Constructor & Destructor Documentation

◆ MessageWithMetadata() [1/3]

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.

◆ MessageWithMetadata() [2/3]

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

Definition at line 62 of file message_with_metadata.h.

◆ MessageWithMetadata() [3/3]

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

Definition at line 66 of file message_with_metadata.h.

Member Function Documentation

◆ lookupBool()

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.

◆ lookupDouble()

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.

◆ lookupField()

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.

◆ lookupFieldNames()

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

Definition at line 97 of file message_with_metadata.h.

◆ lookupInt()

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.

◆ lookupString()

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

◆ metadata_

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 Wed May 11 2022 02:58:11