3 template <
typename TRAIT>
7 template <
typename TRAIT>
9 inertiaProps( & inertia ),
10 motionTransforms( & transforms )
22 template <
typename TRAIT>
30 Link1_AI = inertiaProps->getTensor_Link1();
31 Link1_p = - fext[
LINK1];
32 Link2_AI = inertiaProps->getTensor_Link2();
33 Link2_p = - fext[
LINK2];
49 Link2_v = (motionTransforms-> fr_Link2_X_fr_Link1) * Link1_v;
53 iit::rbd::motionCrossProductMx<Scalar>(Link2_v, vcross);
70 pa = Link2_p + Ia_r * Link2_c + Link2_U * Link2_u/Link2_D;
73 Link1_p += (motionTransforms-> fr_Link2_X_fr_Link1).transpose() * pa;
83 Link1_a = (motionTransforms-> fr_Link1_X_fr_DoubleInvertedPendulumBase).col(
iit::rbd::LZ) *
Scalar(iit::rbd::g);
84 qdd(
JOINT1) = (Link1_u - Link1_U.dot(Link1_a)) / Link1_D;
87 Link2_a = (motionTransforms-> fr_Link2_X_fr_Link1) * Link1_a + Link2_c;
88 qdd(
JOINT2) = (Link2_u - Link2_U.dot(Link2_a)) / Link2_D;
Definition: link_data_map.h:12
ForwardDynamics(InertiaProperties< TRAIT > &in, MTransforms &tr)
Definition: forward_dynamics.impl.h:8
Definition: declarations.h:27
void compute_Ia_revolute(const MatrixBase< D1 > &IA, const Vec6< typename D1::Scalar > &U, const typename D1::Scalar &D, const MatrixBase< D2 > &Ia_const)
CoreS::ForceVector Force
Definition: forward_dynamics.h:41
Definition: declarations.h:26
void fd(JointState &qdd, const JointState &q, const JointState &qd, const JointState &tau, const ExtForces &fext=zeroExtForces)
Definition: forward_dynamics.h:120
Force< DScalar > vxIv(const Velocity< DScalar > &v, const MatrixBase< Derived > &I)
iit::ct_DoubleInvertedPendulum::tpl::MotionTransforms< TRAIT > MTransforms
Definition: forward_dynamics.h:48
iit::ct_DoubleInvertedPendulum::tpl::JointState< Scalar > JointState
Definition: forward_dynamics.h:47
Definition: declarations.h:32
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef TRAIT::Scalar Scalar
Definition: forward_dynamics.h:37
CoreS::Matrix66 Matrix66S
Definition: forward_dynamics.h:45
void ctransform_Ia_revolute(const MatrixBase< D1 > &Ia_A, const MatrixBase< D2 > &XM, const MatrixBase< D3 > &Ia_B_const)
Definition: inertia_properties.h:24
Definition: declarations.h:33
Definition: forward_dynamics.h:32