38 for(
int i=0;
i<3;
i++)
52 for(
int i=0;
i<3;
i++)
void rotation(const fMat33 &ref, const fMat33 &tgt)
Computes the rotation from tgt to ref.
int t_given
torque or motion controlled
Inverse kinematics (UTPoser) class.
int calc_jacobian_sphere(Joint *cur)
fVec3 pos_des
desired joint position for 6DOF joints
double q_des
desired joint value for 1DOF joints
fMat33 att_des
desired joint orientation for 3/6 DOF joints
fVec3 rel_pos
(initial) position in parent joint's frame (for 0/3/6 DOF joints)
int GetJointValue(double &_q)
int i_dof
index in all DOF
int calc_jacobian_rotate(Joint *cur)
Joint * joint
target joint
JointType j_type
joint type
fVec fb
Jacobian matrix (n_const x total DOF)
fMat33 rel_att
(initial) orientation in parent joint's frame (for 0/3/6 DOF joints)
void sub(const fVec3 &vec1, const fVec3 &vec2)
int calc_feedback()
compute the feedback velocity
The class for representing a joint.
int calc_jacobian_slide(Joint *cur)
int calc_jacobian_free(Joint *cur)