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

Represents the inertia of an object. The inertia is defined with respect to a given origin and the components of the inertia matrix, which represent the rotational inertia about the object's axes. More...

#include <inertia.h>

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

Public Member Functions

 Inertia ()
 
 Inertia (double mass, double ixx, double ixy, double ixz, double iyy, double iyz, double izz)
 
bool isA (const char *name) override
 
bool validate () const override
 
void clear () override
 
void print (std::ostream &os) override
 
const char * getTypename () override
 
bool empty () const override
 
void setOrigin (double x, double y, double z) override
 
void getOrigin (double *xyz) const override
 
void setMass (const double m)
 
void setIxx (double ixx_)
 
void setIxy (double ixy_)
 
void setIxz (double ixz_)
 
void setIyy (double iyy_)
 
void setIyz (double iyz_)
 
void setIzz (double izz_)
 
- Public Member Functions inherited from PropertyBase
virtual void set (const std::any &value)
 
- Public Member Functions inherited from GeometryBase
virtual ~GeometryBase ()=default
 
virtual double getRadius ()
 
virtual double getLength ()
 
virtual std::string getFilename ()
 
virtual Vec3 getScale ()
 

Additional Inherited Members

- Protected Member Functions inherited from PropertyBase
 PropertyBase ()
 
virtual ~PropertyBase ()
 
virtual PropertyBasegetPointer ()
 
virtual PropertyBaseoperator= (const PropertyBase &rhs)
 
- Protected Member Functions inherited from GeometryBase
 GeometryBase ()
 
- Protected Member Functions inherited from ObjectBase
 ObjectBase ()
 
virtual ~ObjectBase ()
 
virtual ObjectBasegetPointer ()
 

Detailed Description

Represents the inertia of an object. The inertia is defined with respect to a given origin and the components of the inertia matrix, which represent the rotational inertia about the object's axes.

Constructor & Destructor Documentation

◆ Inertia() [1/2]

Inertia::Inertia ( )

◆ Inertia() [2/2]

Inertia::Inertia ( double  mass,
double  ixx,
double  ixy,
double  ixz,
double  iyy,
double  iyz,
double  izz 
)

Member Function Documentation

◆ clear()

void Inertia::clear ( )
overridevirtual

Implements PropertyBase.

◆ empty()

bool Inertia::empty ( ) const
overridevirtual

Implements ObjectBase.

◆ getOrigin()

void Inertia::getOrigin ( double *  xyz) const
overridevirtual

Implements GeometryBase.

◆ getTypename()

const char * Inertia::getTypename ( )
overridevirtual

Implements ObjectBase.

◆ isA()

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

Implements PropertyBase.

◆ print()

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

Implements PropertyBase.

◆ setIxx()

void Inertia::setIxx ( double  ixx_)

◆ setIxy()

void Inertia::setIxy ( double  ixy_)

◆ setIxz()

void Inertia::setIxz ( double  ixz_)

◆ setIyy()

void Inertia::setIyy ( double  iyy_)

◆ setIyz()

void Inertia::setIyz ( double  iyz_)

◆ setIzz()

void Inertia::setIzz ( double  izz_)

◆ setMass()

void Inertia::setMass ( const double  m)

◆ setOrigin()

void Inertia::setOrigin ( double  x,
double  y,
double  z 
)
overridevirtual

Implements GeometryBase.

◆ validate()

bool Inertia::validate ( ) const
overridevirtual

Reimplemented from PropertyBase.


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