Fawkes API  Fawkes Development Version
urdf::Model Class Reference

This class represents an URDF model. More...

#include <>>

Inheritance diagram for urdf::Model:

Public Member Functions

bool initXml (TiXmlElement *xml)
 Initialize the model using a XML Element. More...
 
bool initXml (TiXmlDocument *xml)
 Initialize the model using a XML Document. More...
 
bool initFile (const std::string &filename)
 Initialize the Model using a URDF file. More...
 
bool initString (const std::string &xmlstring)
 Initialize the model using an URDF string. More...
 

Detailed Description

This class represents an URDF model.

It can be initialized using either Strings or Files, which are parsed and saved in the Model objects. This class implements the ModelInterface defined in /usr/include/urdf/urdf_model/model.h

Definition at line 66 of file model.h.

Member Function Documentation

◆ initFile()

bool urdf::Model::initFile ( const std::string &  filename)

Initialize the Model using a URDF file.

Parameters
filenameThe filename of the URDF file
Returns
true if the model was intialized successfully

Definition at line 89 of file model.cpp.

◆ initString()

bool urdf::Model::initString ( const std::string &  xml_string)

Initialize the model using an URDF string.

Parameters
xml_stringThe robot description in URDF format
Returns
true if the model was intialized successfully

Definition at line 152 of file model.cpp.

◆ initXml() [1/2]

bool urdf::Model::initXml ( TiXmlElement *  robot_xml)

Initialize the model using a XML Element.

Parameters
robot_xmlThe robot model as TiXmlElement
Returns
true if the model was intialized successfully

Definition at line 134 of file model.cpp.

◆ initXml() [2/2]

bool urdf::Model::initXml ( TiXmlDocument *  xml_doc)

Initialize the model using a XML Document.

Parameters
xml_docThe robot model as TiXmlDocument
Returns
true if the model was intialized successfully

Definition at line 117 of file model.cpp.


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