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