1 #ifndef IIT_CT_INVERTEDPENDULUM_INVERSE_DYNAMICS_H_ 2 #define IIT_CT_INVERTEDPENDULUM_INVERSE_DYNAMICS_H_ 12 #include "transforms.h" 16 namespace ct_InvertedPendulum {
40 template <
typename TRAIT>
43 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
56 typedef iit::ct_InvertedPendulum::tpl::MotionTransforms<TRAIT>
MTransforms;
82 const JointState& q,
const JointState& qd,
const JointState& qdd,
83 const ExtForces& fext = zeroExtForces);
86 const JointState& qd,
const JointState& qdd,
87 const ExtForces& fext = zeroExtForces);
94 void G_terms(JointState& jForces,
const JointState& q);
96 void G_terms(JointState& jForces);
103 void C_terms(JointState& jForces,
const JointState& q,
const JointState& qd);
105 void C_terms(JointState& jForces,
const JointState& qd);
133 void firstPass(
const JointState& qd,
const JointState& qdd,
const ExtForces& fext);
137 IProperties* inertiaProps;
142 const InertiaMatrix& Link1_I;
144 Acceleration Link1_a;
149 static const ExtForces zeroExtForces;
152 template <
typename TRAIT>
155 (xm->fr_Link1_X_fr_InvertedPendulumBase)(q);
158 template <
typename TRAIT>
165 template <
typename TRAIT>
172 template <
typename TRAIT>
179 id(jForces, qd, qdd, fext);
void C_terms(JointState &jForces, const JointState &q, const JointState &qd)
Definition: inverse_dynamics.h:166
iit::ct_InvertedPendulum::tpl::MotionTransforms< TRAIT > MTransforms
Definition: inverse_dynamics.h:56
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef TRAIT::Scalar Scalar
Definition: inverse_dynamics.h:45
CoreS::ForceVector Force
Definition: inverse_dynamics.h:49
PlainMatrix< Scalar, 6, 6 > Matrix66
void setJointStatus(const JointState &q) const
Definition: inverse_dynamics.h:153
const Velocity & getVelocity_Link1() const
Definition: inverse_dynamics.h:128
Definition: inertia_properties.h:24
iit::rbd::Core< Scalar > CoreS
Definition: inverse_dynamics.h:47
const Force & getForce_Link1() const
Definition: inverse_dynamics.h:130
ct::core::ADCodegenLinearizer< state_dim, control_dim >::ADCGScalar Scalar
Definition: HyALinearizationCodeGen.cpp:23
CoreS::VelocityVector Velocity
Definition: inverse_dynamics.h:50
Definition: link_data_map.h:12
iit::ct_InvertedPendulum::tpl::JointState< Scalar > JointState
Definition: inverse_dynamics.h:54
Column1d< SCALAR > JointState
Definition: declarations.h:19
CoreS::Matrix66 Matrix66s
Definition: inverse_dynamics.h:52
void secondPass(JointState &jForces)
Definition: inverse_dynamics.impl.h:66
void id(JointState &jForces, const JointState &q, const JointState &qd, const JointState &qdd, const ExtForces &fext=zeroExtForces)
Definition: inverse_dynamics.h:173
LinkDataMap< Force > ExtForces
Definition: inverse_dynamics.h:55
void firstPass(const JointState &qd, const JointState &qdd, const ExtForces &fext)
Definition: inverse_dynamics.impl.h:54
InertiaProperties< TRAIT > IProperties
Definition: inverse_dynamics.h:57
iit::rbd::tpl::InertiaMatrixDense< Scalar > InertiaMatrix
Definition: inverse_dynamics.h:53
Definition: inverse_dynamics.h:41
const Acceleration & getAcceleration_Link1() const
Definition: inverse_dynamics.h:129
void G_terms(JointState &jForces, const JointState &q)
Definition: inverse_dynamics.h:159
CoreS::VelocityVector Acceleration
Definition: inverse_dynamics.h:51
InverseDynamics(IProperties &in, MTransforms &tr)
Definition: inverse_dynamics.impl.h:7