1 #ifndef IIT_CT_HYA_INVERSE_DYNAMICS_H_ 2 #define IIT_CT_HYA_INVERSE_DYNAMICS_H_ 5 #include <Eigen/StdVector> 14 #include "transforms.h" 42 template <
typename TRAIT>
45 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
58 typedef iit::ct_HyA::tpl::MotionTransforms<TRAIT>
MTransforms;
84 const JointState& q,
const JointState& qd,
const JointState& qdd,
85 const ExtForces& fext = zeroExtForces);
88 const JointState& qd,
const JointState& qdd,
89 const ExtForces& fext = zeroExtForces);
96 void G_terms(JointState& jForces,
const JointState& q);
98 void G_terms(JointState& jForces);
105 void C_terms(JointState& jForces,
const JointState& q,
const JointState& qd);
107 void C_terms(JointState& jForces,
const JointState& qd);
150 void firstPass(
const JointState& qd,
const JointState& qdd,
const ExtForces& fext);
154 IProperties* inertiaProps;
159 const InertiaMatrix& Shoulder_AA_I;
160 Velocity Shoulder_AA_v;
161 Acceleration Shoulder_AA_a;
164 const InertiaMatrix& Shoulder_FE_I;
165 Velocity Shoulder_FE_v;
166 Acceleration Shoulder_FE_a;
169 const InertiaMatrix& Humerus_R_I;
170 Velocity Humerus_R_v;
171 Acceleration Humerus_R_a;
174 const InertiaMatrix& Elbow_FE_I;
176 Acceleration Elbow_FE_a;
179 const InertiaMatrix& Wrist_R_I;
181 Acceleration Wrist_R_a;
184 const InertiaMatrix& Wrist_FE_I;
186 Acceleration Wrist_FE_a;
191 static const ExtForces zeroExtForces;
194 template <
typename TRAIT>
197 (xm->fr_Shoulder_AA_X_fr_HyABase)(q);
198 (xm->fr_Shoulder_FE_X_fr_Shoulder_AA)(q);
199 (xm->fr_Humerus_R_X_fr_Shoulder_FE)(q);
200 (xm->fr_Elbow_FE_X_fr_Humerus_R)(q);
201 (xm->fr_Wrist_R_X_fr_Elbow_FE)(q);
202 (xm->fr_Wrist_FE_X_fr_Wrist_R)(q);
205 template <
typename TRAIT>
212 template <
typename TRAIT>
219 template <
typename TRAIT>
226 id(jForces, qd, qdd, fext);
CoreS::ForceVector Force
Definition: inverse_dynamics.h:51
CoreS::VelocityVector Acceleration
Definition: inverse_dynamics.h:54
Definition: derivativeIvState.hpp:21
const Acceleration & getAcceleration_Elbow_FE() const
Definition: inverse_dynamics.h:140
const Acceleration & getAcceleration_Shoulder_AA() const
Definition: inverse_dynamics.h:131
const Velocity & getVelocity_Shoulder_FE() const
Definition: inverse_dynamics.h:133
PlainMatrix< Scalar, 6, 6 > Matrix66
iit::rbd::Core< SCALAR > CoreS
Definition: inverse_dynamics.h:49
void setJointStatus(const JointState &q) const
Definition: inverse_dynamics.h:195
InertiaProperties< TRAIT > IProperties
Definition: inverse_dynamics.h:59
ct::core::ADCodegenLinearizer< state_dim, control_dim >::ADCGScalar Scalar
Definition: HyALinearizationCodeGen.cpp:23
Definition: inverse_dynamics.h:43
InverseDynamics(IProperties &in, MTransforms &tr)
Definition: inverse_dynamics.impl.h:8
iit::rbd::tpl::InertiaMatrixDense< SCALAR > InertiaMatrix
Definition: inverse_dynamics.h:55
const Force & getForce_Wrist_R() const
Definition: inverse_dynamics.h:144
const Velocity & getVelocity_Humerus_R() const
Definition: inverse_dynamics.h:136
Definition: link_data_map.h:12
void id(JointState &jForces, const JointState &q, const JointState &qd, const JointState &qdd, const ExtForces &fext=zeroExtForces)
Definition: inverse_dynamics.h:220
const Acceleration & getAcceleration_Wrist_R() const
Definition: inverse_dynamics.h:143
void C_terms(JointState &jForces, const JointState &q, const JointState &qd)
Definition: inverse_dynamics.h:213
const Acceleration & getAcceleration_Humerus_R() const
Definition: inverse_dynamics.h:137
const Force & getForce_Wrist_FE() const
Definition: inverse_dynamics.h:147
const Acceleration & getAcceleration_Wrist_FE() const
Definition: inverse_dynamics.h:146
const Velocity & getVelocity_Wrist_FE() const
Definition: inverse_dynamics.h:145
void firstPass(const JointState &qd, const JointState &qdd, const ExtForces &fext)
Definition: inverse_dynamics.impl.h:130
void G_terms(JointState &jForces, const JointState &q)
Definition: inverse_dynamics.h:206
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef TRAIT::Scalar SCALAR
Definition: inverse_dynamics.h:47
const Force & getForce_Elbow_FE() const
Definition: inverse_dynamics.h:141
const Force & getForce_Shoulder_AA() const
Definition: inverse_dynamics.h:132
void secondPass(JointState &jForces)
Definition: inverse_dynamics.impl.h:197
LinkDataMap< Force > ExtForces
Definition: inverse_dynamics.h:52
const Velocity & getVelocity_Shoulder_AA() const
Definition: inverse_dynamics.h:130
const Acceleration & getAcceleration_Shoulder_FE() const
Definition: inverse_dynamics.h:134
iit::ct_HyA::tpl::JointState< SCALAR > JointState
Definition: inverse_dynamics.h:56
CoreS::VelocityVector Velocity
Definition: inverse_dynamics.h:53
iit::ct_HyA::tpl::MotionTransforms< TRAIT > MTransforms
Definition: inverse_dynamics.h:58
const Force & getForce_Humerus_R() const
Definition: inverse_dynamics.h:138
Definition: inertia_properties.h:26
Column6d< SCALAR > JointState
Definition: declarations.h:20
const Velocity & getVelocity_Wrist_R() const
Definition: inverse_dynamics.h:142
const Velocity & getVelocity_Elbow_FE() const
Definition: inverse_dynamics.h:139
CoreS::Matrix66 Matrix66s
Definition: inverse_dynamics.h:57
const Force & getForce_Shoulder_FE() const
Definition: inverse_dynamics.h:135