#include <ObjectModelParser.h>
Public Member Functions | |
| std::string | getErrorMessage () const |
| ObjectModelParser (const std::string &filename) | |
| bool | parse (KnowledgeDatabase &obj_models) |
| virtual | ~ObjectModelParser () |
Protected Member Functions | |
| bool | getAttributeValue (const TiXmlElement *elem, std::string att_name, std::string &att_value, std::stringstream &error) |
| bool | getAttributeValue (const TiXmlElement *elem, std::string att_name, double &att_value, std::stringstream &error) |
| std::string | getPropertyValue (const TiXmlElement *elem, std::string prop_name, double &value, std::stringstream &error, bool optional=false) |
| bool | getStateEstimatorParameter (const TiXmlElement *elem, const std::string ¶m_name, double &value) |
| bool | hasAttributeValue (const TiXmlElement *elem, std::string att_name, std::string att_value) |
| pbl::PDF * | parsePDF (const TiXmlElement *elem, std::stringstream &error) |
| bool | parseStateEstimator (ClassModel *obj_model, const TiXmlElement *elem, std::stringstream &error) |
Protected Attributes | |
| std::string | filename_ |
| pluginlib::ClassLoader < IStateEstimator > * | object_model_loader_ |
| std::stringstream | parse_errors_ |
Definition at line 25 of file ObjectModelParser.h.
| mhf::ObjectModelParser::ObjectModelParser | ( | const std::string & | filename | ) |
Definition at line 19 of file ObjectModelParser.cpp.
| mhf::ObjectModelParser::~ObjectModelParser | ( | ) | [virtual] |
Definition at line 24 of file ObjectModelParser.cpp.
| bool mhf::ObjectModelParser::getAttributeValue | ( | const TiXmlElement * | elem, |
| std::string | att_name, | ||
| std::string & | att_value, | ||
| std::stringstream & | error | ||
| ) | [protected] |
| bool mhf::ObjectModelParser::getAttributeValue | ( | const TiXmlElement * | elem, |
| std::string | att_name, | ||
| double & | att_value, | ||
| std::stringstream & | error | ||
| ) | [protected] |
| std::string mhf::ObjectModelParser::getErrorMessage | ( | ) | const |
Definition at line 29 of file ObjectModelParser.cpp.
| string mhf::ObjectModelParser::getPropertyValue | ( | const TiXmlElement * | elem, |
| std::string | prop_name, | ||
| double & | value, | ||
| std::stringstream & | error, | ||
| bool | optional = false |
||
| ) | [protected] |
Definition at line 33 of file ObjectModelParser.cpp.
| bool mhf::ObjectModelParser::getStateEstimatorParameter | ( | const TiXmlElement * | elem, |
| const std::string & | param_name, | ||
| double & | value | ||
| ) | [protected] |
Definition at line 211 of file ObjectModelParser.cpp.
| bool mhf::ObjectModelParser::hasAttributeValue | ( | const TiXmlElement * | elem, |
| std::string | att_name, | ||
| std::string | att_value | ||
| ) | [protected] |
Definition at line 70 of file ObjectModelParser.cpp.
| bool mhf::ObjectModelParser::parse | ( | KnowledgeDatabase & | obj_models | ) |
Definition at line 226 of file ObjectModelParser.cpp.
| pbl::PDF * mhf::ObjectModelParser::parsePDF | ( | const TiXmlElement * | elem, |
| std::stringstream & | error | ||
| ) | [protected] |
Definition at line 80 of file ObjectModelParser.cpp.
| bool mhf::ObjectModelParser::parseStateEstimator | ( | ClassModel * | obj_model, |
| const TiXmlElement * | elem, | ||
| std::stringstream & | error | ||
| ) | [protected] |
Definition at line 104 of file ObjectModelParser.cpp.
std::string mhf::ObjectModelParser::filename_ [protected] |
Definition at line 39 of file ObjectModelParser.h.
Definition at line 43 of file ObjectModelParser.h.
std::stringstream mhf::ObjectModelParser::parse_errors_ [protected] |
Definition at line 41 of file ObjectModelParser.h.