Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ParserROS Class Reference

#include <ros_parser.h>

Inheritance diagram for ParserROS:
Inheritance graph
[legend]

Public Member Functions

bool parseMessage (const PJ::MessageRef serialized_msg, double &timestamp) override
 
 ParserROS (const std::string &topic_name, const std::string &type_name, const std::string &schema, RosMsgParser::Deserializer *deserializer, PJ::PlotDataMapRef &data)
 
void setLargeArraysPolicy (bool clamp, unsigned max_size) override
 
- Public Member Functions inherited from PJ::MessageParser
bool clampLargeArray () const
 
unsigned maxArraySize () const
 
 MessageParser (const std::string &topic_name, PlotDataMapRef &plot_data)
 
virtual ~MessageParser ()=default
 

Protected Member Functions

void appendRollPitchYaw (double timestamp)
 
void parseDiagnosticMsg (const PJ::MessageRef serialized_msg, double &timestamp)
 
void parseHeader (PJ::Msg::Header &header)
 
void parseJointStateMsg (const PJ::MessageRef serialized_msg, double &timestamp)
 
void parseTF2Msg (const PJ::MessageRef serialized_msg, double &timestamp)
 
- Protected Member Functions inherited from PJ::MessageParser
PlotDatagetSeries (const std::string &key)
 
StringSeriesgetStringSeries (const std::string &key)
 

Protected Attributes

bool _contains_quaternion = false
 
std::shared_ptr< RosMsgParser::Deserializer_deserializer
 
RosMsgParser::FlatMessage _flat_msg
 
bool _is_diangostic_msg = false
 
bool _is_jointstate_msg = false
 
bool _is_tf2_msg = false
 
RosMsgParser::Parser _parser
 
std::string _topic
 
- Protected Attributes inherited from PJ::MessageParser
PlotDataMapRef_plot_data
 
std::string _topic_name
 

Detailed Description

Definition at line 8 of file ros_parser.h.

Constructor & Destructor Documentation

◆ ParserROS()

ParserROS::ParserROS ( const std::string &  topic_name,
const std::string &  type_name,
const std::string &  schema,
RosMsgParser::Deserializer deserializer,
PJ::PlotDataMapRef data 
)

Definition at line 10 of file ros_parser.cpp.

Member Function Documentation

◆ appendRollPitchYaw()

void ParserROS::appendRollPitchYaw ( double  timestamp)
protected

Definition at line 93 of file ros_parser.cpp.

◆ parseDiagnosticMsg()

void ParserROS::parseDiagnosticMsg ( const PJ::MessageRef  serialized_msg,
double &  timestamp 
)
protected

Definition at line 144 of file ros_parser.cpp.

◆ parseHeader()

void ParserROS::parseHeader ( PJ::Msg::Header header)
protected

Definition at line 131 of file ros_parser.cpp.

◆ parseJointStateMsg()

void ParserROS::parseJointStateMsg ( const PJ::MessageRef  serialized_msg,
double &  timestamp 
)
protected

Definition at line 212 of file ros_parser.cpp.

◆ parseMessage()

bool ParserROS::parseMessage ( const PJ::MessageRef  serialized_msg,
double &  timestamp 
)
overridevirtual

Implements PJ::MessageParser.

Definition at line 41 of file ros_parser.cpp.

◆ parseTF2Msg()

void ParserROS::parseTF2Msg ( const PJ::MessageRef  serialized_msg,
double &  timestamp 
)
protected

Definition at line 283 of file ros_parser.cpp.

◆ setLargeArraysPolicy()

void ParserROS::setLargeArraysPolicy ( bool  clamp,
unsigned  max_size 
)
overridevirtual

Reimplemented from PJ::MessageParser.

Definition at line 84 of file ros_parser.cpp.

Member Data Documentation

◆ _contains_quaternion

bool ParserROS::_contains_quaternion = false
protected

Definition at line 37 of file ros_parser.h.

◆ _deserializer

std::shared_ptr<RosMsgParser::Deserializer> ParserROS::_deserializer
protected

Definition at line 23 of file ros_parser.h.

◆ _flat_msg

RosMsgParser::FlatMessage ParserROS::_flat_msg
protected

Definition at line 24 of file ros_parser.h.

◆ _is_diangostic_msg

bool ParserROS::_is_diangostic_msg = false
protected

Definition at line 38 of file ros_parser.h.

◆ _is_jointstate_msg

bool ParserROS::_is_jointstate_msg = false
protected

Definition at line 39 of file ros_parser.h.

◆ _is_tf2_msg

bool ParserROS::_is_tf2_msg = false
protected

Definition at line 40 of file ros_parser.h.

◆ _parser

RosMsgParser::Parser ParserROS::_parser
protected

Definition at line 22 of file ros_parser.h.

◆ _topic

std::string ParserROS::_topic
protected

Definition at line 25 of file ros_parser.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:54