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

void enableTruncationCheck (bool enable)
 
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
 
virtual void enableEmbeddedTimestamp (bool enable)
 
unsigned maxArraySize () const
 
 MessageParser (const std::string &topic_name, PlotDataMapRef &plot_data)
 
virtual bool useEmbeddedTimestamp () const
 
virtual ~MessageParser ()=default
 

Protected Member Functions

template<size_t N>
void parseCovariance (const std::string &prefix, double &timestamp)
 
void parseDataTamerSchemas (const std::string &prefix, double &timestamp)
 
void parseDataTamerSnapshot (const std::string &prefix, double &timestamp)
 
void parseDiagnosticMsg (const std::string &prefix, double &timestamp)
 
void parseEmpty (const std::string &prefix, double &timestamp)
 
void parseHeader (const std::string &prefix, double &timestamp)
 
void parseImu (const std::string &prefix, double &timestamp)
 
void parseJointStateMsg (const std::string &prefix, double &timestamp)
 
void parseOdometry (const std::string &prefix, double &timestamp)
 
void parsePalStatisticsNames (const std::string &prefix, double &timestamp)
 
void parsePalStatisticsValues (const std::string &prefix, double &timestamp)
 
void parsePoint (const std::string &prefix, double &timestamp)
 
void parsePose (const std::string &prefix, double &timestamp)
 
void parsePoseStamped (const std::string &prefix, double &timestamp)
 
void parsePoseWithCovariance (const std::string &prefix, double &timestamp)
 
void parseQuaternion (const std::string &prefix, double &timestamp)
 
void parseTF2Msg (const std::string &prefix, double &timestamp)
 
void parseTransform (const std::string &prefix, double &timestamp)
 
void parseTransformStamped (const std::string &prefix, double &timestamp)
 
void parseTwist (const std::string &prefix, double &timestamp)
 
void parseTwistWithCovariance (const std::string &prefix, double &timestamp)
 
void parseVector3 (const std::string &prefix, double &timestamp)
 
PJ::Msg::Header readHeader (double &timestamp)
 
- Protected Member Functions inherited from PJ::MessageParser
PlotDatagetSeries (const std::string &key)
 
StringSeriesgetStringSeries (const std::string &key)
 

Protected Attributes

std::function< void(const std::string &prefix, double &)> _customized_parser
 
std::unique_ptr< RosMsgParser::Deserializer_deserializer
 
RosMsgParser::FlatMessage _flat_msg
 
bool _has_header = false
 
RosMsgParser::Parser _parser
 
bool _strict_truncation_check = true
 
std::string _topic
 
- Protected Attributes inherited from PJ::MessageParser
PlotDataMapRef_plot_data
 
std::string _topic_name
 

Detailed Description

Definition at line 9 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 13 of file ros_parser.cpp.

Member Function Documentation

◆ enableTruncationCheck()

void ParserROS::enableTruncationCheck ( bool  enable)
inline

Definition at line 20 of file ros_parser.h.

◆ parseCovariance()

template<size_t N>
void ParserROS::parseCovariance ( const std::string &  prefix,
double &  timestamp 
)
inlineprotected

Definition at line 72 of file ros_parser.h.

◆ parseDataTamerSchemas()

void ParserROS::parseDataTamerSchemas ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 487 of file ros_parser.cpp.

◆ parseDataTamerSnapshot()

void ParserROS::parseDataTamerSnapshot ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 506 of file ros_parser.cpp.

◆ parseDiagnosticMsg()

void ParserROS::parseDiagnosticMsg ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 326 of file ros_parser.cpp.

◆ parseEmpty()

void ParserROS::parseEmpty ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 212 of file ros_parser.cpp.

◆ parseHeader()

void ParserROS::parseHeader ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 200 of file ros_parser.cpp.

◆ parseImu()

void ParserROS::parseImu ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 302 of file ros_parser.cpp.

◆ parseJointStateMsg()

void ParserROS::parseJointStateMsg ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 389 of file ros_parser.cpp.

◆ parseMessage()

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

Implements PJ::MessageParser.

Definition at line 93 of file ros_parser.cpp.

◆ parseOdometry()

void ParserROS::parseOdometry ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 316 of file ros_parser.cpp.

◆ parsePalStatisticsNames()

void ParserROS::parsePalStatisticsNames ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 542 of file ros_parser.cpp.

◆ parsePalStatisticsValues()

void ParserROS::parsePalStatisticsValues ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 556 of file ros_parser.cpp.

◆ parsePoint()

void ParserROS::parsePoint ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 227 of file ros_parser.cpp.

◆ parsePose()

void ParserROS::parsePose ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 284 of file ros_parser.cpp.

◆ parsePoseStamped()

void ParserROS::parsePoseStamped ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 290 of file ros_parser.cpp.

◆ parsePoseWithCovariance()

void ParserROS::parsePoseWithCovariance ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 296 of file ros_parser.cpp.

◆ parseQuaternion()

void ParserROS::parseQuaternion ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 237 of file ros_parser.cpp.

◆ parseTF2Msg()

void ParserROS::parseTF2Msg ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 459 of file ros_parser.cpp.

◆ parseTransform()

void ParserROS::parseTransform ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 267 of file ros_parser.cpp.

◆ parseTransformStamped()

void ParserROS::parseTransformStamped ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 273 of file ros_parser.cpp.

◆ parseTwist()

void ParserROS::parseTwist ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 255 of file ros_parser.cpp.

◆ parseTwistWithCovariance()

void ParserROS::parseTwistWithCovariance ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 261 of file ros_parser.cpp.

◆ parseVector3()

void ParserROS::parseVector3 ( const std::string &  prefix,
double &  timestamp 
)
protected

Definition at line 217 of file ros_parser.cpp.

◆ readHeader()

Msg::Header ParserROS::readHeader ( double &  timestamp)
protected

Definition at line 178 of file ros_parser.cpp.

◆ setLargeArraysPolicy()

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

Reimplemented from PJ::MessageParser.

Definition at line 167 of file ros_parser.cpp.

Member Data Documentation

◆ _customized_parser

std::function<void(const std::string& prefix, double&)> ParserROS::_customized_parser
protected

Definition at line 65 of file ros_parser.h.

◆ _deserializer

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

Definition at line 27 of file ros_parser.h.

◆ _flat_msg

RosMsgParser::FlatMessage ParserROS::_flat_msg
protected

Definition at line 28 of file ros_parser.h.

◆ _has_header

bool ParserROS::_has_header = false
protected

Definition at line 67 of file ros_parser.h.

◆ _parser

RosMsgParser::Parser ParserROS::_parser
protected

Definition at line 26 of file ros_parser.h.

◆ _strict_truncation_check

bool ParserROS::_strict_truncation_check = true
protected

Definition at line 68 of file ros_parser.h.

◆ _topic

std::string ParserROS::_topic
protected

Definition at line 29 of file ros_parser.h.


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


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