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