- 3.0.2 models module.
inertia_properties.h
Go to the documentation of this file.
1 #ifndef IIT_ROBOT_CT_INVERTEDPENDULUM_INERTIA_PROPERTIES_H_
2 #define IIT_ROBOT_CT_INVERTEDPENDULUM_INERTIA_PROPERTIES_H_
3 
4 #include <iit/rbd/rbd.h>
6 #include <iit/rbd/utils.h>
8 
9 #include "declarations.h"
10 
11 namespace iit {
12 namespace ct_InvertedPendulum {
17 namespace dyn {
18 
20 
21 namespace tpl {
22 
23 template <typename TRAIT>
25  public:
26  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
27 
28  typedef typename TRAIT::Scalar Scalar;
31  typedef typename CoreS::Vector3 Vec3d;
32 
35  const IMatrix& getTensor_Link1() const;
36  Scalar getMass_Link1() const;
37  const Vec3d& getCOM_Link1() const;
38  Scalar getTotalMass() const;
39 
40  private:
41 
42  IMatrix tensor_Link1;
43  Vec3d com_Link1;
44 };
45 
46 template <typename TRAIT>
48 
49 template <typename TRAIT>
51  return this->tensor_Link1;
52 }
53 template <typename TRAIT>
55  return this->tensor_Link1.getMass();
56 }
57 template <typename TRAIT>
59  return this->com_Link1;
60 }
61 
62 template <typename TRAIT>
64  return 1.811;
65 }
66 
67 }
68 
70 
71 }
72 }
73 }
74 
76 
77 #endif
Scalar getTotalMass() const
Definition: inertia_properties.h:63
iit::rbd::Core< Scalar > CoreS
Definition: inertia_properties.h:29
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef TRAIT::Scalar Scalar
Definition: inertia_properties.h:28
CoreS::Vector3 Vec3d
Definition: inertia_properties.h:31
iit::rbd::tpl::InertiaMatrixDense< Scalar > IMatrix
Definition: inertia_properties.h:30
ct::core::ADCodegenLinearizer< state_dim, control_dim >::ADCGScalar Scalar
Definition: HyALinearizationCodeGen.cpp:23
Scalar getMass_Link1() const
Definition: inertia_properties.h:54
const IMatrix & getTensor_Link1() const
Definition: inertia_properties.h:50
tpl::InertiaMatrixDense< double > InertiaMatrixDense
~InertiaProperties()
Definition: inertia_properties.h:47
const Vec3d & getCOM_Link1() const
Definition: inertia_properties.h:58
InertiaProperties()
Definition: inertia_properties.impl.h:2
PlainMatrix< Scalar, 3, 1 > Vector3