|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_MATH_RIGIDBODYINERTIA_H
28 #define RL_MATH_RIGIDBODYINERTIA_H
45 template<
typename Scalar>
49 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
71 template<
typename OtherDerived>
75 massData(other.template bottomRightCorner<3, 3>().diagonal().mean())
116 res.template topLeftCorner<3, 3>() =
inertia();
117 res.template topRightCorner<3, 3>() =
cog().cross33();
118 res.template bottomLeftCorner<3, 3>() = -
cog().cross33();
119 res.template bottomRightCorner<3, 3>() = ::Eigen::Matrix<Scalar, 3, 3>::Identity() *
mass();
123 template<
typename OtherDerived>
126 cog() = other.template topRightCorner<3, 3>().cross3();
127 inertia() = other.template topLeftCorner<3, 3>();
128 mass() = other.template bottomRightCorner<3, 3>().diagonal().mean();
150 template<
typename OtherScalar>
154 res.
cog() =
cog() * other;
160 template<
typename OtherScalar>
163 template<
typename OtherScalar>
167 res.
cog() =
cog() / other;
200 #endif // RL_MATH_RIGIDBODYINERTIA_H
::Eigen::Matrix< Scalar, 3, 1 > CenterOfGravityType
Definition: RigidBodyInertia.h:55
RigidBodyInertia operator*(const OtherScalar &other) const
Definition: RigidBodyInertia.h:151
RigidBodyInertia operator+(const RigidBodyInertia &other) const
Definition: RigidBodyInertia.h:132
ConstInertiaType & inertia() const
Definition: RigidBodyInertia.h:98
RigidBodyInertia & operator=(const ::Eigen::MatrixBase< OtherDerived > &other)
Definition: RigidBodyInertia.h:124
CenterOfGravityType centerOfGravityData
Definition: RigidBodyInertia.h:190
Rigid-body inertia.
Definition: RigidBodyInertia.h:47
RigidBodyInertia operator-(const RigidBodyInertia &other) const
Definition: RigidBodyInertia.h:141
const MassType ConstMassType
Definition: RigidBodyInertia.h:65
RigidBodyInertia()
Definition: RigidBodyInertia.h:67
Scalar ScalarType
Definition: RigidBodyInertia.h:51
spatial::MotionVector< Real > MotionVector
Definition: Spatial.h:56
MassType & mass()
Definition: RigidBodyInertia.h:103
InertiaType & inertia()
Definition: RigidBodyInertia.h:93
RigidBodyInertia(const ::Eigen::DenseBase< OtherDerived > &other)
Definition: RigidBodyInertia.h:72
const CenterOfGravityType ConstCenterOfGravityType
Definition: RigidBodyInertia.h:57
void setIdentity()
Definition: RigidBodyInertia.h:173
InertiaType inertiaData
Definition: RigidBodyInertia.h:192
::Eigen::Matrix< Scalar, 6, 6 > MatrixType
Definition: RigidBodyInertia.h:53
spatial::ForceVector< Real > ForceVector
Definition: Spatial.h:54
CenterOfGravityType & cog()
Definition: RigidBodyInertia.h:83
RigidBodyInertia operator/(const OtherScalar &other) const
Definition: RigidBodyInertia.h:164
void setZero()
Definition: RigidBodyInertia.h:180
const InertiaType ConstInertiaType
Definition: RigidBodyInertia.h:61
MatrixType matrix() const
Definition: RigidBodyInertia.h:113
Scalar MassType
Definition: RigidBodyInertia.h:63
Force vector.
Definition: ForceVector.h:46
virtual ~RigidBodyInertia()
Definition: RigidBodyInertia.h:79
MassType massData
Definition: RigidBodyInertia.h:194
Motion vector.
Definition: MotionVector.h:45
Matrix< Scalar, 3, 1 > cross3() const
Definition: MatrixBaseAddons.h:31
ConstMassType & mass() const
Definition: RigidBodyInertia.h:108
ConstCenterOfGravityType & cog() const
Definition: RigidBodyInertia.h:88
::Eigen::Matrix< Scalar, 3, 3 > InertiaType
Definition: RigidBodyInertia.h:59
Robotics Library.
Definition: AnalogInput.cpp:30