#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 () |
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 |
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.
Definition at line 10 of file ros_parser.cpp.
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 | ||
) | [override, virtual] |
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 [inline, override, virtual] |
Implements MessageParser.
Definition at line 32 of file ros_parser.h.
void RosMessageParser::pushMessageRef | ( | const std::string & | topic_name, |
const MessageRef & | msg, | ||
double | timestamp | ||
) | [override, virtual] |
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.
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.