#include <ros_parser.h>
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 () |
![]() | |
void | setUseHeaderStamp (bool use) |
![]() | |
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 void | appendData (PlotDataMapRef &destination_plot_map, const std::string &field_name, PlotData &in_data) |
![]() | |
bool | _use_header_stamp |
Definition at line 7 of file ros_parser.h.
typedef std::unordered_map<std::string, std::unique_ptr<RosParserBase> > RosMessageParser::ParsersMap |
Definition at line 47 of file ros_parser.h.
RosMessageParser::RosMessageParser | ( | ) |
Definition at line 10 of file ros_parser.cpp.
|
inline |
Definition at line 17 of file ros_parser.h.
void RosMessageParser::clear | ( | ) |
Definition at line 14 of file ros_parser.cpp.
|
overridevirtual |
Implements MessageParser.
Definition at line 240 of file ros_parser.cpp.
|
private |
Definition at line 24 of file ros_parser.cpp.
|
inlineoverridevirtual |
Implements MessageParser.
Definition at line 32 of file ros_parser.h.
|
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.
|
private |
Definition at line 54 of file ros_parser.h.
|
private |
Definition at line 58 of file ros_parser.h.
|
private |
Definition at line 51 of file ros_parser.h.
|
private |
Definition at line 56 of file ros_parser.h.
|
private |
Definition at line 52 of file ros_parser.h.
|
private |
Definition at line 50 of file ros_parser.h.
|
private |
Definition at line 60 of file ros_parser.h.
|
private |
Definition at line 61 of file ros_parser.h.
|
private |
Definition at line 57 of file ros_parser.h.