|
Robotics Library
0.6.2
|
Go to the documentation of this file.
27 #ifndef _RL_MATH_ARTICULATEDBODYINERTIA_H_
28 #define _RL_MATH_ARTICULATEDBODYINERTIA_H_
42 template<
typename Scalar >
46 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
60 typedef ::Eigen::Matrix< Scalar, 3, 3 >
MassType;
68 template<
typename OtherDerived >
71 inertiaData(other.template topLeftCorner< 3, 3 >()),
72 massData(other.template bottomRightCorner< 3, 3 >())
113 res.template topLeftCorner< 3, 3 >() =
inertia();
114 res.template topRightCorner< 3, 3 >() =
cog();
115 res.template bottomLeftCorner< 3, 3 >() =
cog().transpose();
116 res.template bottomRightCorner< 3, 3 >() =
mass();
120 template<
typename OtherDerived >
123 cog() = other.template topRightCorner< 3, 3 >();
124 inertia() = other.template topLeftCorner< 3, 3 >();
125 mass() = other.template bottomRightCorner< 3, 3 >();
129 template<
typename OtherScalar >
150 template<
typename OtherScalar >
154 res.
cog() =
cog() * other;
160 template<
typename OtherScalar >
163 template<
typename OtherScalar >
167 res.
cog() =
cog() / other;
177 mass().setIdentity();
200 #endif // _RL_MATH_ARTICULATEDBODYINERTIA_H_
MatrixType matrix() const
Definition: ArticulatedBodyInertia.h:110
::Eigen::Matrix< Scalar, 6, 6 > MatrixType
Definition: ArticulatedBodyInertia.h:50
MassType & mass()
Definition: ArticulatedBodyInertia.h:100
Definition: ArticulatedBodyInertia.h:44
Definition: RigidBodyInertia.h:44
ArticulatedBodyInertia operator*(const OtherScalar &other) const
Definition: ArticulatedBodyInertia.h:151
::Eigen::Matrix< Scalar, 3, 3 > MassType
Definition: ArticulatedBodyInertia.h:60
ArticulatedBodyInertia & operator=(const RigidBodyInertia< OtherScalar > &other)
InertiaType & inertia()
Definition: ArticulatedBodyInertia.h:90
MassType massData
Definition: ArticulatedBodyInertia.h:194
CenterOfGravityType centerOfGravityData
Definition: ArticulatedBodyInertia.h:190
ConstCenterOfGravityType & cog() const
Definition: ArticulatedBodyInertia.h:85
InertiaType inertiaData
Definition: ArticulatedBodyInertia.h:192
ArticulatedBodyInertia operator/(const OtherScalar &other) const
Definition: ArticulatedBodyInertia.h:164
virtual ~ArticulatedBodyInertia()
Definition: ArticulatedBodyInertia.h:76
ArticulatedBodyInertia & operator=(const ::Eigen::MatrixBase< OtherDerived > &other)
Definition: ArticulatedBodyInertia.h:121
CenterOfGravityType & cog()
Definition: ArticulatedBodyInertia.h:80
ArticulatedBodyInertia(const ::Eigen::DenseBase< OtherDerived > &other)
Definition: ArticulatedBodyInertia.h:69
const CenterOfGravityType ConstCenterOfGravityType
Definition: ArticulatedBodyInertia.h:54
ArticulatedBodyInertia operator+(const ArticulatedBodyInertia &other) const
Definition: ArticulatedBodyInertia.h:132
ArticulatedBodyInertia operator-(const ArticulatedBodyInertia &other) const
Definition: ArticulatedBodyInertia.h:141
ConstMassType & mass() const
Definition: ArticulatedBodyInertia.h:105
Scalar ScalarType
Definition: ArticulatedBodyInertia.h:48
const MassType ConstMassType
Definition: ArticulatedBodyInertia.h:62
ConstInertiaType & inertia() const
Definition: ArticulatedBodyInertia.h:95
::Eigen::Matrix< Scalar, 3, 3 > InertiaType
Definition: ArticulatedBodyInertia.h:56
void setZero()
Definition: ArticulatedBodyInertia.h:180
const InertiaType ConstInertiaType
Definition: ArticulatedBodyInertia.h:58
ArticulatedBodyInertia()
Definition: ArticulatedBodyInertia.h:64
Definition: ForceVector.h:43
void setIdentity()
Definition: ArticulatedBodyInertia.h:173
Definition: MotionVector.h:42
::Eigen::Matrix< Scalar, 3, 3 > CenterOfGravityType
Definition: ArticulatedBodyInertia.h:52