8 #ifndef OBJECTMODELPARSER_H_ 9 #define OBJECTMODELPARSER_H_ 23 class KnowledgeDatabase;
45 std::string
getPropertyValue(
const tinyxml2::XMLElement*
elem, std::string prop_name,
double&
value, std::stringstream& error,
bool optional =
false);
47 bool getAttributeValue(
const tinyxml2::XMLElement*
elem, std::string att_name, std::string& att_value, std::stringstream& error);
49 bool getAttributeValue(
const tinyxml2::XMLElement*
elem, std::string att_name,
double& att_value, std::stringstream& error);
51 bool hasAttributeValue(
const tinyxml2::XMLElement*
elem, std::string att_name, std::string att_value);
std::string getPropertyValue(const tinyxml2::XMLElement *elem, std::string prop_name, double &value, std::stringstream &error, bool optional=false)
bool parseStateEstimator(ClassModel *obj_model, const tinyxml2::XMLElement *elem, std::stringstream &error)
std::string getErrorMessage() const
pbl::PDF * parsePDF(const tinyxml2::XMLElement *elem, std::stringstream &error)
pluginlib::ClassLoader< IStateEstimator > * object_model_loader_
bool getAttributeValue(const tinyxml2::XMLElement *elem, std::string att_name, std::string &att_value, std::stringstream &error)
virtual ~ObjectModelParser()
bool getStateEstimatorParameter(const tinyxml2::XMLElement *elem, const std::string ¶m_name, double &value)
bool hasAttributeValue(const tinyxml2::XMLElement *elem, std::string att_name, std::string att_value)
Contains knowledge about a specific object class on where to expect new objects of that class (new) a...
bool parse(KnowledgeDatabase &obj_models)
arma_inline subview_elem1< eT, T1 > elem(const Base< uword, T1 > &a)
ObjectModelParser(const std::string &filename)
std::stringstream parse_errors_