1 #ifndef IIT_ROBOT_TESTIRB4600_INERTIA_PROPERTIES_H_ 2 #define IIT_ROBOT_TESTIRB4600_INERTIA_PROPERTIES_H_ 13 namespace testirb4600 {
24 template<
typename TRAIT>
27 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
29 typedef typename TRAIT::Scalar
SCALAR;
32 typedef Eigen::Matrix<SCALAR, 3, 1>
Vec3d;
72 template <
typename TRAIT>
75 template <
typename TRAIT>
77 return this->tensor_link1;
79 template <
typename TRAIT>
81 return this->tensor_link2;
83 template <
typename TRAIT>
85 return this->tensor_link3;
87 template <
typename TRAIT>
89 return this->tensor_link4;
91 template <
typename TRAIT>
93 return this->tensor_link5;
95 template <
typename TRAIT>
97 return this->tensor_link6;
99 template <
typename TRAIT>
101 return this->tensor_link1.
getMass();
103 template <
typename TRAIT>
105 return this->tensor_link2.
getMass();
107 template <
typename TRAIT>
109 return this->tensor_link3.
getMass();
111 template <
typename TRAIT>
113 return this->tensor_link4.
getMass();
115 template <
typename TRAIT>
117 return this->tensor_link5.
getMass();
119 template <
typename TRAIT>
121 return this->tensor_link6.
getMass();
123 template <
typename TRAIT>
125 return this->com_link1;
127 template <
typename TRAIT>
129 return this->com_link2;
131 template <
typename TRAIT>
133 return this->com_link3;
135 template <
typename TRAIT>
137 return this->com_link4;
139 template <
typename TRAIT>
141 return this->com_link5;
143 template <
typename TRAIT>
145 return this->com_link6;
148 template <
typename TRAIT>
150 return 120.0 + 120.0 + 120.0 + 40.0 + 10.0 + 5.0;
const IMatrix & getTensor_link5() const
Definition: inertia_properties.h:92
SCALAR getMass_link6() const
Definition: inertia_properties.h:120
const Vec3d & getCOM_link3() const
Definition: inertia_properties.h:132
iit::rbd::tpl::InertiaMatrixDense< SCALAR > IMatrix
Definition: inertia_properties.h:31
SCALAR getMass_link1() const
Definition: inertia_properties.h:100
SCALAR getMass_link2() const
Definition: inertia_properties.h:104
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef TRAIT::Scalar SCALAR
Definition: inertia_properties.h:29
Definition: InertiaMatrix.h:25
SCALAR getMass_link4() const
Definition: inertia_properties.h:112
Definition: inertia_properties.h:25
SCALAR getMass_link5() const
Definition: inertia_properties.h:116
InertiaProperties()
Definition: inertia_properties.impl.h:2
const Vec3d & getCOM_link1() const
Definition: inertia_properties.h:124
~InertiaProperties()
Definition: inertia_properties.h:73
const IMatrix & getTensor_link6() const
Definition: inertia_properties.h:96
tpl::InertiaMatrixDense< double > InertiaMatrixDense
Definition: InertiaMatrix.h:316
const Vec3d & getCOM_link4() const
Definition: inertia_properties.h:136
const Vec3d & getCOM_link5() const
Definition: inertia_properties.h:140
const Vec3d & getCOM_link2() const
Definition: inertia_properties.h:128
const IMatrix & getTensor_link4() const
Definition: inertia_properties.h:88
const IMatrix & getTensor_link3() const
Definition: inertia_properties.h:84
SCALAR getMass_link3() const
Definition: inertia_properties.h:108
SCALAR getTotalMass() const
Definition: inertia_properties.h:149
Eigen::Matrix< SCALAR, 3, 1 > Vec3d
Definition: inertia_properties.h:32
const IMatrix & getTensor_link1() const
Definition: inertia_properties.h:76
const Vec3d & getCOM_link6() const
Definition: inertia_properties.h:144
const IMatrix & getTensor_link2() const
Definition: inertia_properties.h:80