Class ROSMessage

Class Documentation

class ROSMessage

Public Types

using Ptr = std::shared_ptr<ROSMessage>

Public Functions

ROSMessage(const std::string &msg_def)

This constructor does most of the work in terms of parsing. It uses the message definition to extract fields and types.

inline const ROSField &field(size_t i) const
inline const std::vector<ROSField> &fields() const
inline std::vector<ROSField> &fields()
inline const ROSType &type() const
inline void setType(const ROSType &new_type)