Public Types | Public Member Functions | Private Attributes | List of all members
RosMsgParser::ROSMessage Class Reference

#include <ros_message.hpp>

Public Types

using Ptr = std::shared_ptr< ROSMessage >
 

Public Member Functions

const ROSFieldfield (size_t i) const
 
std::vector< ROSField > & fields ()
 
const std::vector< ROSField > & fields () const
 
 ROSMessage (const std::string &msg_def)
 
void setType (const ROSType &new_type)
 
const ROSTypetype () const
 

Private Attributes

std::vector< ROSField_fields
 
ROSType _type
 

Detailed Description

Definition at line 34 of file ros_message.hpp.

Member Typedef Documentation

◆ Ptr

using RosMsgParser::ROSMessage::Ptr = std::shared_ptr<ROSMessage>

Definition at line 37 of file ros_message.hpp.

Constructor & Destructor Documentation

◆ ROSMessage()

RosMsgParser::ROSMessage::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.

Definition at line 32 of file ros_message.cpp.

Member Function Documentation

◆ field()

const ROSField& RosMsgParser::ROSMessage::field ( size_t  i) const
inline

Definition at line 43 of file ros_message.hpp.

◆ fields() [1/2]

std::vector<ROSField>& RosMsgParser::ROSMessage::fields ( )
inline

Definition at line 53 of file ros_message.hpp.

◆ fields() [2/2]

const std::vector<ROSField>& RosMsgParser::ROSMessage::fields ( ) const
inline

Definition at line 48 of file ros_message.hpp.

◆ setType()

void RosMsgParser::ROSMessage::setType ( const ROSType new_type)
inline

Definition at line 63 of file ros_message.hpp.

◆ type()

const ROSType& RosMsgParser::ROSMessage::type ( ) const
inline

Definition at line 58 of file ros_message.hpp.

Member Data Documentation

◆ _fields

std::vector<ROSField> RosMsgParser::ROSMessage::_fields
private

Definition at line 70 of file ros_message.hpp.

◆ _type

ROSType RosMsgParser::ROSMessage::_type
private

Definition at line 69 of file ros_message.hpp.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52