Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mhf::ObjectModelParser Class Reference

#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 tinyxml2::XMLElement *elem, std::string att_name, std::string &att_value, std::stringstream &error)
bool getAttributeValue (const tinyxml2::XMLElement *elem, std::string att_name, double &att_value, std::stringstream &error)
std::string getPropertyValue (const tinyxml2::XMLElement *elem, std::string prop_name, double &value, std::stringstream &error, bool optional=false)
bool getStateEstimatorParameter (const tinyxml2::XMLElement *elem, const std::string &param_name, double &value)
bool hasAttributeValue (const tinyxml2::XMLElement *elem, std::string att_name, std::string att_value)
pbl::PDFparsePDF (const tinyxml2::XMLElement *elem, std::stringstream &error)
bool parseStateEstimator (ClassModel *obj_model, const tinyxml2::XMLElement *elem, std::stringstream &error)

Protected Attributes

std::string filename_
pluginlib::ClassLoader< IStateEstimator > * object_model_loader_
std::stringstream parse_errors_

Detailed Description

Definition at line 25 of file ObjectModelParser.h.

Constructor & Destructor Documentation

mhf::ObjectModelParser::ObjectModelParser ( const std::string &  filename)

Definition at line 19 of file ObjectModelParser.cpp.

mhf::ObjectModelParser::~ObjectModelParser ( )

Definition at line 24 of file ObjectModelParser.cpp.

Member Function Documentation

bool mhf::ObjectModelParser::getAttributeValue ( const tinyxml2::XMLElement *  elem,
std::string  att_name,
std::string &  att_value,
std::stringstream &  error 
bool mhf::ObjectModelParser::getAttributeValue ( const tinyxml2::XMLElement *  elem,
std::string  att_name,
double &  att_value,
std::stringstream &  error 
std::string mhf::ObjectModelParser::getErrorMessage ( ) const

Definition at line 29 of file ObjectModelParser.cpp.

string mhf::ObjectModelParser::getPropertyValue ( const tinyxml2::XMLElement *  elem,
std::string  prop_name,
double &  value,
std::stringstream &  error,
bool  optional = false 

Definition at line 33 of file ObjectModelParser.cpp.

bool mhf::ObjectModelParser::getStateEstimatorParameter ( const tinyxml2::XMLElement *  elem,
const std::string &  param_name,
double &  value 

Definition at line 211 of file ObjectModelParser.cpp.

bool mhf::ObjectModelParser::hasAttributeValue ( const tinyxml2::XMLElement *  elem,
std::string  att_name,
std::string  att_value 

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 tinyxml2::XMLElement *  elem,
std::stringstream &  error 

Definition at line 80 of file ObjectModelParser.cpp.

bool mhf::ObjectModelParser::parseStateEstimator ( ClassModel obj_model,
const tinyxml2::XMLElement *  elem,
std::stringstream &  error 

Definition at line 104 of file ObjectModelParser.cpp.

Member Data Documentation

std::string mhf::ObjectModelParser::filename_

Definition at line 39 of file ObjectModelParser.h.

pluginlib::ClassLoader<IStateEstimator>* mhf::ObjectModelParser::object_model_loader_

Definition at line 43 of file ObjectModelParser.h.

std::stringstream mhf::ObjectModelParser::parse_errors_

Definition at line 41 of file ObjectModelParser.h.

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

Author(s): Sjoerd van den Dries, Jos Elfring
autogenerated on Fri Apr 16 2021 02:32:27