1 #ifndef IIT_ROBOT_CT_HYA_FORWARD_DYNAMICS_H_ 2 #define IIT_ROBOT_CT_HYA_FORWARD_DYNAMICS_H_ 5 #include <Eigen/StdVector> 12 #include "transforms.h" 34 template <
typename TRAIT>
37 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
53 typedef iit::ct_HyA::tpl::MotionTransforms<TRAIT>
MTransforms;
78 const JointState& q,
const JointState& qd,
const JointState& tau,
const ExtForces& fext = zeroExtForces);
81 const JointState& qd,
const JointState& tau,
const ExtForces& fext = zeroExtForces);
89 MTransforms* motionTransforms;
95 Matrix66S Shoulder_AA_AI;
96 Velocity Shoulder_AA_a;
97 Velocity Shoulder_AA_v;
98 Velocity Shoulder_AA_c;
101 Column6DS Shoulder_AA_U;
102 SCALAR Shoulder_AA_D;
103 SCALAR Shoulder_AA_u;
105 Matrix66S Shoulder_FE_AI;
106 Velocity Shoulder_FE_a;
107 Velocity Shoulder_FE_v;
108 Velocity Shoulder_FE_c;
111 Column6DS Shoulder_FE_U;
112 SCALAR Shoulder_FE_D;
113 SCALAR Shoulder_FE_u;
115 Matrix66S Humerus_R_AI;
116 Velocity Humerus_R_a;
117 Velocity Humerus_R_v;
118 Velocity Humerus_R_c;
121 Column6DS Humerus_R_U;
125 Matrix66S Elbow_FE_AI;
131 Column6DS Elbow_FE_U;
135 Matrix66S Wrist_R_AI;
145 Matrix66S Wrist_FE_AI;
151 Column6DS Wrist_FE_U;
155 static const ExtForces zeroExtForces;
158 template <
typename TRAIT>
160 (motionTransforms-> fr_Shoulder_AA_X_fr_HyABase)(q);
161 (motionTransforms-> fr_Shoulder_FE_X_fr_Shoulder_AA)(q);
162 (motionTransforms-> fr_Humerus_R_X_fr_Shoulder_FE)(q);
163 (motionTransforms-> fr_Elbow_FE_X_fr_Humerus_R)(q);
164 (motionTransforms-> fr_Wrist_R_X_fr_Elbow_FE)(q);
165 (motionTransforms-> fr_Wrist_FE_X_fr_Wrist_R)(q);
168 template<
typename TRAIT>
177 fd(qdd, qd, tau, fext);
Definition: derivativeIvState.hpp:21
PlainMatrix< Scalar, 6, 6 > Matrix66
iit::rbd::Core< SCALAR > CoreS
Definition: forward_dynamics.h:42
iit::ct_HyA::tpl::JointState< SCALAR > JointState
Definition: forward_dynamics.h:49
CoreS::VelocityVector Acceleration
Definition: forward_dynamics.h:47
CoreS::ForceVector Force
Definition: forward_dynamics.h:45
CoreS::Column6D Column6DS
Definition: forward_dynamics.h:48
ForwardDynamics(iit::ct_HyA::dyn::tpl::InertiaProperties< TRAIT > &in, MTransforms &tr)
Definition: forward_dynamics.impl.h:9
ct::core::ADCodegenLinearizer< state_dim, control_dim >::ADCGScalar Scalar
Definition: HyALinearizationCodeGen.cpp:23
Definition: forward_dynamics.h:35
Definition: link_data_map.h:12
iit::ct_HyA::tpl::MotionTransforms< TRAIT > MTransforms
Definition: forward_dynamics.h:53
CoreS::VelocityVector Velocity
Definition: forward_dynamics.h:46
void setJointStatus(const JointState &q) const
Definition: forward_dynamics.h:159
void fd(JointState &qdd, const JointState &q, const JointState &qd, const JointState &tau, const ExtForces &fext=zeroExtForces)
Definition: forward_dynamics.h:169
iit::rbd::tpl::InertiaMatrixDense< SCALAR > InertiaMatrix
Definition: forward_dynamics.h:52
CoreS::Matrix66 Matrix66S
Definition: forward_dynamics.h:50
LinkDataMap< typename CoreS::ForceVector > ExtForces
Definition: forward_dynamics.h:44
Definition: inertia_properties.h:26
Column6d< SCALAR > JointState
Definition: declarations.h:20
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef TRAIT::Scalar SCALAR
Definition: forward_dynamics.h:40