TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
InertiaParser Class Reference

Parses the link inertia and fills the member variables. More...

#include <inertia_parser.h>

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

Public Member Functions

 InertiaParser ()
 
void print (std::ostream &os) override
 
bool empty () const override
 
void clear () override
 
const char * getTypename () override
 
bool isA (const char *name) override
 
void parse (const tinyxml2::XMLElement *xml) override
 
std::shared_ptr< Inertiaget () override
 
 ~InertiaParser () override=default
 
- Public Member Functions inherited from ParserBase< Inertia >
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< Inertia >
 ParserBase ()
 
virtual ~ParserBase ()
 
- Protected Member Functions inherited from ObjectBase
 ObjectBase ()
 
virtual ~ObjectBase ()
 
virtual ObjectBasegetPointer ()
 
- Protected Attributes inherited from ParserBase< Inertia >
std::shared_ptr< InertiaTptr
 

Detailed Description

Parses the link inertia and fills the member variables.

Note
This method does not use inertia's safe constructor, so physical consistency will not be checked! There are no optional elements in the inertia tag.
<inertial>
<origin xyz="0 0 0.5" rpy="0 0 0"/>
<mass value="5"/>
<inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100"/>
</inertial>

Constructor & Destructor Documentation

◆ InertiaParser()

InertiaParser::InertiaParser ( )

◆ ~InertiaParser()

InertiaParser::~InertiaParser ( )
overridedefault

Member Function Documentation

◆ clear()

void InertiaParser::clear ( )
overridevirtual

Implements ObjectBase.

◆ empty()

bool InertiaParser::empty ( ) const
overridevirtual

Implements ObjectBase.

◆ get()

std::shared_ptr< Inertia > InertiaParser::get ( )
overridevirtual

Reimplemented from ParserBase< Inertia >.

◆ getTypename()

const char * InertiaParser::getTypename ( )
overridevirtual

Implements ObjectBase.

◆ isA()

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

Implements ObjectBase.

◆ parse()

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

Reimplemented from ParserBase< Inertia >.

◆ print()

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

Implements ObjectBase.


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