Public Member Functions | Static Public Member Functions | List of all members
sdf::v9::URDF2SDF Class Reference

URDF to SDF converter. More...

#include <parser_urdf.hh>

Public Member Functions

 URDF2SDF ()
 constructor More...
 
 ~URDF2SDF ()
 destructor More...
 
TiXmlDocument InitModelDoc (TiXmlDocument *_xmlDoc)
 convert urdf xml document string to sdf xml document More...
 
TiXmlDocument InitModelFile (const std::string &_filename)
 convert urdf file to sdf xml document More...
 
TiXmlDocument InitModelString (const std::string &_urdfStr, bool _enforceLimits=true)
 convert urdf string to sdf xml document, with option to enforce limits. More...
 

Static Public Member Functions

static bool IsURDF (const std::string &_filename)
 Return true if the filename is a URDF model. More...
 

Detailed Description

URDF to SDF converter.

Constructor & Destructor Documentation

◆ URDF2SDF()

sdf::v9::URDF2SDF::URDF2SDF ( )

constructor

◆ ~URDF2SDF()

sdf::v9::URDF2SDF::~URDF2SDF ( )

destructor

Member Function Documentation

◆ InitModelDoc()

TiXmlDocument sdf::v9::URDF2SDF::InitModelDoc ( TiXmlDocument *  _xmlDoc)

convert urdf xml document string to sdf xml document

Parameters
[in]_xmlDoca tinyxml document containing the urdf model
Returns
a tinyxml document containing sdf of the model

◆ InitModelFile()

TiXmlDocument sdf::v9::URDF2SDF::InitModelFile ( const std::string &  _filename)

convert urdf file to sdf xml document

Parameters
[in]_urdfStra string containing filename of the urdf model
Returns
a tinyxml document containing sdf of the model

◆ InitModelString()

TiXmlDocument sdf::v9::URDF2SDF::InitModelString ( const std::string &  _urdfStr,
bool  _enforceLimits = true 
)

convert urdf string to sdf xml document, with option to enforce limits.

Parameters
[in]_urdfStra string containing model urdf
[in]_enforceLimitsoption to enforce joint limits
Returns
a tinyxml document containing sdf of the model

◆ IsURDF()

static bool sdf::v9::URDF2SDF::IsURDF ( const std::string &  _filename)
static

Return true if the filename is a URDF model.

Parameters
[in]_filenameFile to check.
Returns
True if _filename is a URDF model.

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