TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
|
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>
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 PropertyBase * | getPointer () |
virtual PropertyBase & | operator= (const PropertyBase &rhs) |
Protected Member Functions inherited from GeometryBase | |
GeometryBase () | |
Protected Member Functions inherited from ObjectBase | |
ObjectBase () | |
virtual | ~ObjectBase () |
virtual ObjectBase * | getPointer () |
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.
Inertia::Inertia | ( | ) |
Inertia::Inertia | ( | double | mass, |
double | ixx, | ||
double | ixy, | ||
double | ixz, | ||
double | iyy, | ||
double | iyz, | ||
double | izz | ||
) |
|
overridevirtual |
Implements PropertyBase.
|
overridevirtual |
Implements ObjectBase.
|
overridevirtual |
Implements GeometryBase.
|
overridevirtual |
Implements ObjectBase.
|
overridevirtual |
Implements PropertyBase.
|
overridevirtual |
Implements PropertyBase.
void Inertia::setIxx | ( | double | ixx_ | ) |
void Inertia::setIxy | ( | double | ixy_ | ) |
void Inertia::setIxz | ( | double | ixz_ | ) |
void Inertia::setIyy | ( | double | iyy_ | ) |
void Inertia::setIyz | ( | double | iyz_ | ) |
void Inertia::setIzz | ( | double | izz_ | ) |
void Inertia::setMass | ( | const double | m | ) |
|
overridevirtual |
Implements GeometryBase.
|
overridevirtual |
Reimplemented from PropertyBase.