- 3.0.2 models module.
traits.h
Go to the documentation of this file.
1 #ifndef IIT_ROBOGEN__CT_DOUBLEINVERTEDPENDULUM_TRAITS_H_
2 #define IIT_ROBOGEN__CT_DOUBLEINVERTEDPENDULUM_TRAITS_H_
3 
4 #include "declarations.h"
5 #include "transforms.h"
6 #include "inverse_dynamics.h"
7 #include "forward_dynamics.h"
8 #include "jsim.h"
9 #include "inertia_properties.h"
10 #include "jacobians.h"
12 
13 
14 namespace iit {
15 namespace ct_DoubleInvertedPendulum {
16 
17 namespace tpl {
18 
19 template <typename SCALAR>
20 struct Traits {
21  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
22 
23  typedef SCALAR S;
24 
28 
30 
31 
32 
33  typedef typename ct_DoubleInvertedPendulum::tpl::HomogeneousTransforms<Trait> HomogeneousTransforms;
34  typedef typename ct_DoubleInvertedPendulum::tpl::MotionTransforms<Trait> MotionTransforms;
35  typedef typename ct_DoubleInvertedPendulum::tpl::ForceTransforms<Trait> ForceTransforms;
36  typedef typename ct_DoubleInvertedPendulum::tpl::Jacobians<Trait> Jacobians;
37 
42 
43  static const int joints_count = ct_DoubleInvertedPendulum::jointsCount;
44  static const int links_count = ct_DoubleInvertedPendulum::linksCount;
45  static const bool floating_base = false;
46 
47  static inline const JointID* orderedJointIDs();
48  static inline const LinkID* orderedLinkIDs();
49 };
50 
51 template <typename SCALAR>
53  return ct_DoubleInvertedPendulum::orderedJointIDs;
54 }
55 template <typename SCALAR>
57  return ct_DoubleInvertedPendulum::orderedLinkIDs;
58 }
59 
60 }
61 
62 typedef tpl::Traits<double> Traits; // default instantiation - backward compatibility...
63 
64 }
65 }
66 
67 #endif
ct_DoubleInvertedPendulum::tpl::MotionTransforms< Trait > MotionTransforms
Definition: traits.h:34
static const JointID * orderedJointIDs()
Definition: traits.h:52
static const int links_count
Definition: traits.h:44
iit::ct_DoubleInvertedPendulum::dyn::tpl::JSIM< Trait > JSIM
Definition: traits.h:41
Column2d< SCALAR > JointState
Definition: declarations.h:19
ct_DoubleInvertedPendulum::LinkIdentifiers LinkID
Definition: traits.h:26
static const int joints_count
Definition: traits.h:43
tpl::Traits< double > Traits
Definition: traits.h:62
JointIdentifiers
Definition: declarations.h:25
iit::ct_DoubleInvertedPendulum::dyn::tpl::ForwardDynamics< Trait > FwdDynEngine
Definition: traits.h:39
CppAD::AD< CppAD::cg::CG< double > > SCALAR
Definition: HyQLinearizationCodegen.cpp:14
iit::ct_DoubleInvertedPendulum::dyn::tpl::InverseDynamics< Trait > InvDynEngine
Definition: traits.h:40
ct_DoubleInvertedPendulum::tpl::ForceTransforms< Trait > ForceTransforms
Definition: traits.h:35
ct_DoubleInvertedPendulum::tpl::JointState< SCALAR > JointState
Definition: traits.h:29
static const bool floating_base
Definition: traits.h:45
ct_DoubleInvertedPendulum::tpl::Jacobians< Trait > Jacobians
Definition: traits.h:36
iit::rbd::tpl::TraitSelector< SCALAR >::Trait Trait
Definition: traits.h:27
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef SCALAR S
Definition: traits.h:23
iit::ct_DoubleInvertedPendulum::dyn::tpl::InertiaProperties< Trait > InertiaProperties
Definition: traits.h:38
ct_DoubleInvertedPendulum::tpl::HomogeneousTransforms< Trait > HomogeneousTransforms
Definition: traits.h:33
ct_DoubleInvertedPendulum::JointIdentifiers JointID
Definition: traits.h:25
static const LinkID * orderedLinkIDs()
Definition: traits.h:56
LinkIdentifiers
Definition: declarations.h:30