TinyURDF 1.0.0
A modern C++ library for parsing and visualizing urdf models
Loading...
Searching...
No Matches
URDFParser Class Reference

main user high level interface for parsing URDF files More...

#include <urdf_parser.h>

Inheritance diagram for URDFParser:
[legend]
Collaboration diagram for URDFParser:
[legend]

Public Member Functions

 URDFParser ()
 
void parse (const std::string &filename)
 
void parse (const char *filename)
 
void parse (const tinyxml2::XMLElement *xml) override
 
std::shared_ptr< Modelget () override
 
void print (std::ostream &os) override
 
bool isA (const char *name) override
 
bool empty () const override
 
void clear () override
 
const char * getTypename () override
 
 ~URDFParser ()
 
- Public Member Functions inherited from ParserBase< Model >
const char * getNameOf (const tinyxml2::XMLElement *xml)
 
void parse (const tinyxml2::XMLElement *xml)
 
void parse (const tinyxml2::XMLElement *xml)
 

Additional Inherited Members

- Protected Member Functions inherited from ParserBase< Model >
 ParserBase ()
 
virtual ~ParserBase ()
 
- Protected Member Functions inherited from ObjectBase
 ObjectBase ()
 
virtual ~ObjectBase ()
 
virtual ObjectBasegetPointer ()
 
- Protected Attributes inherited from ParserBase< Model >
std::shared_ptr< ModelTptr
 

Detailed Description

main user high level interface for parsing URDF files

Note
this interface will be propted to other languages or scripts

Constructor & Destructor Documentation

◆ URDFParser()

URDFParser::URDFParser ( )

◆ ~URDFParser()

URDFParser::~URDFParser ( )

Member Function Documentation

◆ clear()

void URDFParser::clear ( )
overridevirtual

Implements ObjectBase.

◆ empty()

bool URDFParser::empty ( ) const
overridevirtual

Implements ObjectBase.

◆ get()

std::shared_ptr< Model > URDFParser::get ( )
overridevirtual

Reimplemented from ParserBase< Model >.

◆ getTypename()

const char * URDFParser::getTypename ( )
overridevirtual

Implements ObjectBase.

◆ isA()

bool URDFParser::isA ( const char *  name)
overridevirtual

Implements ObjectBase.

◆ parse() [1/3]

void URDFParser::parse ( const char *  filename)

◆ parse() [2/3]

void URDFParser::parse ( const std::string &  filename)

◆ parse() [3/3]

void URDFParser::parse ( const tinyxml2::XMLElement *  xml)
overridevirtual

Reimplemented from ParserBase< Model >.

◆ print()

void URDFParser::print ( std::ostream &  os)
overridevirtual

Implements ObjectBase.


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