Template Struct MessageWithMetadata

Inheritance Relationships

Base Type

  • public M

Struct Documentation

template<class M>
struct MessageWithMetadata : public M

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

Template Parameters:

M – the message type being wrapped

Public Types

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

Public Functions

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

Public Members

Metadata::ConstPtr metadata_