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 ()
 
 MessageWithMetadata (const MessageWithMetadata &m)
 
 MessageWithMetadata (Metadata::ConstPtr metadata, const M &msg=M())
 

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 105 of file message_with_metadata.h.

◆ Ptr

Definition at line 104 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 60 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 64 of file message_with_metadata.h.

◆ MessageWithMetadata() [3/3]

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

Definition at line 68 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 89 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 79 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 94 of file message_with_metadata.h.

◆ lookupFieldNames()

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

Definition at line 99 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 84 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 74 of file message_with_metadata.h.

Member Data Documentation

◆ metadata_

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

Definition at line 72 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 Oct 16 2024 02:42:07