1#ifndef INCLUDE_TINYURDF_INERTIA_INERTIA_H_
2#define INCLUDE_TINYURDF_INERTIA_INERTIA_H_
10#include <loguru/loguru.hpp>
25 Inertia(
double mass,
double ixx,
double ixy,
double ixz,
26 double iyy,
double iyz,
double izz);
27 bool isA(
const char* name)
override;
29 void clear()
override;
30 void print(std::ostream& os)
override;
32 bool empty()
const override;
33 void setOrigin(
double x,
double y,
double z)
override;
34 void getOrigin(
double* xyz)
const override;
43 std::shared_ptr<Pose> origin;
45 double ixx, ixy, ixz, iyy, iyz, izz;
Definition geometry_base.h:9
Represents the inertia of an object. The inertia is defined with respect to a given origin and the co...
Definition inertia.h:22
const char * getTypename() override
Definition inertia.cc:53
void print(std::ostream &os) override
Definition inertia.cc:45
void setMass(const double m)
Definition inertia.cc:74
bool isA(const char *name) override
Definition inertia.cc:13
void setIzz(double izz_)
Definition inertia.cc:104
bool empty() const override
Definition inertia.cc:58
void setIyz(double iyz_)
Definition inertia.cc:99
Inertia()
Definition inertia.cc:3
bool validate() const override
Definition inertia.cc:17
void getOrigin(double *xyz) const override
Definition inertia.cc:68
void setIyy(double iyy_)
Definition inertia.cc:94
void setIxx(double ixx_)
Definition inertia.cc:79
void clear() override
Definition inertia.cc:39
void setOrigin(double x, double y, double z) override
Definition inertia.cc:63
void setIxz(double ixz_)
Definition inertia.cc:89
void setIxy(double ixy_)
Definition inertia.cc:84
Definition property_base.h:9