2 template <
typename TRAIT>
6 template <
typename TRAIT>
8 inertiaProps( & inertia ),
10 Link1_I(inertiaProps->getTensor_Link1() ),
11 Link2_I(inertiaProps->getTensor_Link2() )
13 #ifndef EIGEN_NO_DEBUG 14 std::cout <<
"Robot ct_DoubleInvertedPendulum, InverseDynamics<TRAIT>::InverseDynamics()" << std::endl;
15 std::cout <<
"Compiled with Eigen debug active" << std::endl;
23 template <
typename TRAIT>
33 template <
typename TRAIT>
37 Link1_a = (xm->fr_Link1_X_fr_DoubleInvertedPendulumBase).col(
iit::rbd::LZ) *
Scalar(iit::rbd::g);
38 Link1_f = Link1_I * Link1_a;
40 Link2_a = (xm->fr_Link2_X_fr_Link1) * Link1_a;
41 Link2_f = Link2_I * Link2_a;
46 template <
typename TRAIT>
55 Link2_v = ((xm->fr_Link2_X_fr_Link1) * Link1_v);
58 iit::rbd::motionCrossProductMx<Scalar>(Link2_v, vcross);
68 template <
typename TRAIT>
72 Link1_a = (xm->fr_Link1_X_fr_DoubleInvertedPendulumBase).col(
iit::rbd::LZ) *
Scalar(iit::rbd::g);
79 Link2_v = ((xm->fr_Link2_X_fr_Link1) * Link1_v);
82 iit::rbd::motionCrossProductMx<Scalar>(Link2_v, vcross);
91 template <
typename TRAIT>
96 Link1_f += xm->fr_Link2_X_fr_Link1.transpose() * Link2_f;
Definition: link_data_map.h:12
void secondPass(JointState &jForces)
Definition: inverse_dynamics.impl.h:92
void id(JointState &jForces, const JointState &q, const JointState &qd, const JointState &qdd, const ExtForces &fext=zeroExtForces)
Definition: inverse_dynamics.h:182
iit::ct_DoubleInvertedPendulum::tpl::JointState< Scalar > JointState
Definition: inverse_dynamics.h:54
Definition: declarations.h:27
void firstPass(const JointState &qd, const JointState &qdd, const ExtForces &fext)
Definition: inverse_dynamics.impl.h:69
Definition: declarations.h:26
void G_terms(JointState &jForces, const JointState &q)
Definition: inverse_dynamics.h:168
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef TRAIT::Scalar Scalar
Definition: inverse_dynamics.h:45
Force< DScalar > vxIv(const Velocity< DScalar > &v, const MatrixBase< Derived > &I)
Definition: inverse_dynamics.h:41
Definition: declarations.h:32
InverseDynamics(IProperties &in, MTransforms &tr)
Definition: inverse_dynamics.impl.h:7
void C_terms(JointState &jForces, const JointState &q, const JointState &qd)
Definition: inverse_dynamics.h:175
iit::ct_DoubleInvertedPendulum::tpl::MotionTransforms< TRAIT > MTransforms
Definition: inverse_dynamics.h:56
Definition: inertia_properties.h:24
Definition: declarations.h:33