Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
RosMessageParser Class Reference

#include <ros_parser.h>

Inheritance diagram for RosMessageParser:
Inheritance graph
[legend]

Public Types

typedef std::unordered_map< std::string, std::unique_ptr< RosParserBase > > ParsersMap
 

Public Member Functions

void addRules (const RosIntrospection::SubstitutionRuleMap &rules)
 
void clear ()
 
virtual void extractData (PlotDataMapRef &destination, const std::string &prefix) override
 
virtual const std::unordered_set< std::string > & getCompatibleKeys () const override
 
void pushMessageRef (const std::string &topic_name, const MessageRef &msg, double timestamp) override
 
bool registerSchema (const std::string &topic_name, const std::string &md5sum, RosIntrospection::ROSType type, const std::string &definition)
 
 RosMessageParser ()
 
void setMaxArrayPolicy (size_t max_array_size, bool discard_entire_array)
 
void showWarnings ()
 
- Public Member Functions inherited from RosParserBase
void setUseHeaderStamp (bool use)
 
- Public Member Functions inherited from MessageParser
virtual ~MessageParser ()
 

Private Member Functions

double extractRealValue (const RosIntrospection::Variant &value, const std::string &item_name)
 

Private Attributes

ParsersMap _builtin_parsers
 
bool _discard_large_array
 
std::unique_ptr< RosIntrospection::Parser_introspection_parser
 
uint32_t _max_array_size
 
PlotDataMapRef _plot_map
 
std::unordered_set< std::string > _registered_md5sum
 
std::unordered_set< std::string > _warn_cancellation
 
std::unordered_set< std::string > _warn_max_arraysize
 
bool _warnings_enabled
 

Additional Inherited Members

- Static Protected Member Functions inherited from MessageParser
static void appendData (PlotDataMapRef &destination_plot_map, const std::string &field_name, PlotData &in_data)
 
- Protected Attributes inherited from RosParserBase
bool _use_header_stamp
 

Detailed Description

Definition at line 7 of file ros_parser.h.

Member Typedef Documentation

typedef std::unordered_map<std::string, std::unique_ptr<RosParserBase> > RosMessageParser::ParsersMap

Definition at line 47 of file ros_parser.h.

Constructor & Destructor Documentation

RosMessageParser::RosMessageParser ( )

Definition at line 10 of file ros_parser.cpp.

Member Function Documentation

void RosMessageParser::addRules ( const RosIntrospection::SubstitutionRuleMap rules)
inline

Definition at line 17 of file ros_parser.h.

void RosMessageParser::clear ( )

Definition at line 14 of file ros_parser.cpp.

void RosMessageParser::extractData ( PlotDataMapRef destination,
const std::string &  prefix 
)
overridevirtual

Implements MessageParser.

Definition at line 240 of file ros_parser.cpp.

double RosMessageParser::extractRealValue ( const RosIntrospection::Variant value,
const std::string &  item_name 
)
private

Definition at line 24 of file ros_parser.cpp.

virtual const std::unordered_set<std::string>& RosMessageParser::getCompatibleKeys ( ) const
inlineoverridevirtual

Implements MessageParser.

Definition at line 32 of file ros_parser.h.

void RosMessageParser::pushMessageRef ( const std::string &  topic_name,
const MessageRef msg,
double  timestamp 
)
overridevirtual

Implements MessageParser.

Definition at line 104 of file ros_parser.cpp.

bool RosMessageParser::registerSchema ( const std::string &  topic_name,
const std::string &  md5sum,
RosIntrospection::ROSType  type,
const std::string &  definition 
)

Definition at line 83 of file ros_parser.cpp.

void RosMessageParser::setMaxArrayPolicy ( size_t  max_array_size,
bool  discard_entire_array 
)

Definition at line 58 of file ros_parser.cpp.

void RosMessageParser::showWarnings ( )

Definition at line 215 of file ros_parser.cpp.

Member Data Documentation

ParsersMap RosMessageParser::_builtin_parsers
private

Definition at line 54 of file ros_parser.h.

bool RosMessageParser::_discard_large_array
private

Definition at line 58 of file ros_parser.h.

std::unique_ptr<RosIntrospection::Parser> RosMessageParser::_introspection_parser
private

Definition at line 51 of file ros_parser.h.

uint32_t RosMessageParser::_max_array_size
private

Definition at line 56 of file ros_parser.h.

PlotDataMapRef RosMessageParser::_plot_map
private

Definition at line 52 of file ros_parser.h.

std::unordered_set<std::string> RosMessageParser::_registered_md5sum
private

Definition at line 50 of file ros_parser.h.

std::unordered_set<std::string> RosMessageParser::_warn_cancellation
private

Definition at line 60 of file ros_parser.h.

std::unordered_set<std::string> RosMessageParser::_warn_max_arraysize
private

Definition at line 61 of file ros_parser.h.

bool RosMessageParser::_warnings_enabled
private

Definition at line 57 of file ros_parser.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19