53 public:
explicit Inertial(
double _mass);
64 public:
void Load(sdf::ElementPtr _sdf);
68 public:
void UpdateParameters(sdf::ElementPtr _sdf);
74 public:
void SetMass(
double m);
77 public:
double GetMass()
const;
86 public:
void SetInertiaMatrix(
double _ixx,
double _iyy,
double _izz,
87 double _ixy,
double _ixz,
double iyz);
93 public:
void SetCoG(
double _cx,
double _cy,
double _cz);
107 public:
void SetCoG(
double _cx,
double _cy,
double _cz,
108 double _rx,
double _ry,
double _rz);
118 return this->cog.pos;
139 public:
double GetIXX()
const;
143 public:
double GetIYY()
const;
147 public:
double GetIZZ()
const;
151 public:
double GetIXY()
const;
155 public:
double GetIXZ()
const;
159 public:
double GetIYZ()
const;
163 public:
void SetIXX(
double _v);
167 public:
void SetIYY(
double _v);
171 public:
void SetIZZ(
double _v);
175 public:
void SetIXY(
double _v);
179 public:
void SetIXZ(
double _v);
183 public:
void SetIYZ(
double _v);
210 public:
void ProcessMsg(
const msgs::Inertial &_msg);
236 _out <<
"Mass[" << _inertial.mass <<
"] CoG[" 237 << _inertial.cog <<
"]\n";
238 _out <<
"IXX[" << _inertial.principals.
x <<
"] " 239 <<
"IYY[" << _inertial.principals.
y <<
"] " 240 <<
"IZZ[" << _inertial.principals.
z <<
"]\n";
241 _out <<
"IXY[" << _inertial.products.
x <<
"] " 242 <<
"IXZ[" << _inertial.products.
y <<
"] " 243 <<
"IYZ[" << _inertial.products.
z <<
"]\n";
256 private:
double mass;
272 private: sdf::ElementPtr sdf;
276 private:
static sdf::ElementPtr sdfInertial;
double x
X location.
Definition: Vector3.hh:311
double y
Y location.
Definition: Vector3.hh:314
Forward declarations for the common classes.
Definition: Animation.hh:33
const math::Pose GetPose() const
Get the pose about which the mass and inertia matrix is specified in the Link frame.
Definition: Inertial.hh:124
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
const math::Vector3 & GetCoG() const
Get the center of gravity.
Definition: Inertial.hh:116
double z
Z location.
Definition: Vector3.hh:317
A 3x3 matrix class.
Definition: Matrix3.hh:34
A class for inertial information about a link.
Definition: Inertial.hh:46
friend std::ostream & operator<<(std::ostream &_out, const gazebo::physics::Inertial &_inertial)
Output operator.
Definition: Inertial.hh:233
A quaternion class.
Definition: Quaternion.hh:42