Loading...
Searching...
No Matches
sdf::URDF2SDF Class Reference

URDF to SDF converter. More...

#include <parser_urdf.hh>

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

URDF to SDF converter.

Constructor & Destructor Documentation

◆ URDF2SDF()

sdf::URDF2SDF::URDF2SDF ( )

constructor

◆ ~URDF2SDF()

sdf::URDF2SDF::~URDF2SDF ( )

destructor

Member Function Documentation

◆ InitModelDoc()

TiXmlDocument sdf::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::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::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()

bool sdf::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: