|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_MATH_ARTICULATEDBODYINERTIA_H
28 #define RL_MATH_ARTICULATEDBODYINERTIA_H
45 template<
typename Scalar>
49 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
63 typedef ::Eigen::Matrix<Scalar, 3, 3>
MassType;
71 template<
typename OtherDerived>
75 massData(other.template bottomRightCorner<3, 3>())
116 res.template topLeftCorner<3, 3>() =
inertia();
117 res.template topRightCorner<3, 3>() =
cog();
118 res.template bottomLeftCorner<3, 3>() =
cog().transpose();
119 res.template bottomRightCorner<3, 3>() =
mass();
123 template<
typename OtherDerived>
126 cog() = other.template topRightCorner<3, 3>();
127 inertia() = other.template topLeftCorner<3, 3>();
128 mass() = other.template bottomRightCorner<3, 3>();
132 template<
typename OtherScalar>
153 template<
typename OtherScalar>
157 res.
cog() =
cog() * other;
163 template<
typename OtherScalar>
166 template<
typename OtherScalar>
170 res.
cog() =
cog() / other;
180 mass().setIdentity();
203 #endif // RL_MATH_ARTICULATEDBODYINERTIA_H
MatrixType matrix() const
Definition: ArticulatedBodyInertia.h:113
MassType & mass()
Definition: ArticulatedBodyInertia.h:103
Articulated-body inertia.
Definition: ArticulatedBodyInertia.h:47
Rigid-body inertia.
Definition: RigidBodyInertia.h:47
ArticulatedBodyInertia operator*(const OtherScalar &other) const
Definition: ArticulatedBodyInertia.h:154
::Eigen::Matrix< Scalar, 6, 6 > MatrixType
Definition: ArticulatedBodyInertia.h:53
ArticulatedBodyInertia & operator=(const RigidBodyInertia< OtherScalar > &other)
InertiaType & inertia()
Definition: ArticulatedBodyInertia.h:93
MassType massData
Definition: ArticulatedBodyInertia.h:197
CenterOfGravityType centerOfGravityData
Definition: ArticulatedBodyInertia.h:193
ConstCenterOfGravityType & cog() const
Definition: ArticulatedBodyInertia.h:88
InertiaType inertiaData
Definition: ArticulatedBodyInertia.h:195
ArticulatedBodyInertia operator/(const OtherScalar &other) const
Definition: ArticulatedBodyInertia.h:167
virtual ~ArticulatedBodyInertia()
Definition: ArticulatedBodyInertia.h:79
ArticulatedBodyInertia & operator=(const ::Eigen::MatrixBase< OtherDerived > &other)
Definition: ArticulatedBodyInertia.h:124
CenterOfGravityType & cog()
Definition: ArticulatedBodyInertia.h:83
ArticulatedBodyInertia(const ::Eigen::DenseBase< OtherDerived > &other)
Definition: ArticulatedBodyInertia.h:72
::Eigen::Matrix< Scalar, 3, 3 > CenterOfGravityType
Definition: ArticulatedBodyInertia.h:55
const CenterOfGravityType ConstCenterOfGravityType
Definition: ArticulatedBodyInertia.h:57
ArticulatedBodyInertia operator+(const ArticulatedBodyInertia &other) const
Definition: ArticulatedBodyInertia.h:135
ArticulatedBodyInertia operator-(const ArticulatedBodyInertia &other) const
Definition: ArticulatedBodyInertia.h:144
ConstMassType & mass() const
Definition: ArticulatedBodyInertia.h:108
Scalar ScalarType
Definition: ArticulatedBodyInertia.h:51
const MassType ConstMassType
Definition: ArticulatedBodyInertia.h:65
ConstInertiaType & inertia() const
Definition: ArticulatedBodyInertia.h:98
::Eigen::Matrix< Scalar, 3, 3 > MassType
Definition: ArticulatedBodyInertia.h:63
void setZero()
Definition: ArticulatedBodyInertia.h:183
const InertiaType ConstInertiaType
Definition: ArticulatedBodyInertia.h:61
ArticulatedBodyInertia()
Definition: ArticulatedBodyInertia.h:67
Force vector.
Definition: ForceVector.h:46
void setIdentity()
Definition: ArticulatedBodyInertia.h:176
Motion vector.
Definition: MotionVector.h:45
::Eigen::Matrix< Scalar, 3, 3 > InertiaType
Definition: ArticulatedBodyInertia.h:59
Robotics Library.
Definition: AnalogInput.cpp:30