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