Position constraint. More...
#include <ik.h>
Public Member Functions | |
void | GetAtt (fMat33 &_abs_att) |
obtain constraint orientation More... | |
void | GetConstIndex (IK::ConstIndex _cindex[]) |
void | GetPos (fVec3 &_abs_pos) |
obtain constraint position More... | |
IK::ConstType | GetType () |
Returns the constraint type. More... | |
IKHandle (IK *_ik, const char *_jname, Joint *_jnt, IK::ConstIndex cindex[6], IK::Priority _pri, double _gain, const fVec3 &_rel_pos=0.0, const fMat33 &_rel_att=1.0, Joint *_other_joint=0) | |
int | Reset () |
reset the constraint position/orientation by the current values More... | |
void | SetAtt (const fMat33 &_abs_att) |
set the constraint orientation More... | |
void | SetCharacterScale (double _scale, const char *charname=0) |
void | SetPos (const fVec3 &_abs_pos) |
set the constraint position More... | |
void | SetRelPos (const fVec3 &_rel_pos) |
set relative position of the constraint More... | |
~IKHandle () | |
Public Member Functions inherited from IKConstraint | |
void | Activate () |
activate the constraint More... | |
int | Active () |
whether the constraint is activate More... | |
void | Diactivate () |
diactivate the constraint More... | |
void | Disable () |
disable the constraint More... | |
int | Dropped () |
void | Enable () |
enable the constraint More... | |
double | GetGain () |
get the gain More... | |
Joint * | GetJoint () |
IK::Priority | GetPriority () |
get the priproty More... | |
int | iConst () |
int | ID () |
IKConstraint (IK *_ik, const char *_jname, Joint *_jnt, IK::Priority _pri, double _gain) | |
Default constructor. More... | |
int | nConst () |
void | SetGain (double _gain) |
set the gain More... | |
void | SetPriority (IK::Priority _pri) |
set the priproty More... | |
virtual | ~IKConstraint () |
Destructor. More... | |
Protected Member Functions | |
int | calc_feedback () |
compute the feedback velocity More... | |
int | calc_jacobian () |
Computes the constraint Jacobian. More... | |
Protected Member Functions inherited from IKConstraint | |
int | calc_jacobian (Joint *cur) |
the function recursively called for all joints (don't override) More... | |
virtual int | calc_jacobian_free (Joint *cur) |
virtual int | calc_jacobian_rotate (Joint *cur) |
virtual int | calc_jacobian_slide (Joint *cur) |
virtual int | calc_jacobian_sphere (Joint *cur) |
int | copy_jacobian () |
copy each constraint Jacobian to the whole Jacobian matrix More... | |
Protected Attributes | |
fMat33 | abs_att |
current constraint orientation More... | |
fVec3 | abs_pos |
current constraint position More... | |
IK::ConstIndex | const_index [6] |
with/without constraint for each DOF More... | |
Joint * | other_joint |
connected to other joint: constrains the relative position and/or orientation w.r.t. other_joint's frame More... | |
fMat33 | rel_att |
fVec3 | rel_pos |
Protected Attributes inherited from IKConstraint | |
int | active |
int | enabled |
number of constraints More... | |
fVec | fb |
Jacobian matrix (n_const x total DOF) More... | |
double | gain |
priority More... | |
int | i_const |
feedback velocity (n_const) More... | |
int | id |
ID (unique to each constraint) More... | |
IK * | ik |
int | is_dropped |
index in the constraints with the same priority More... | |
fMat | J |
Joint * | joint |
target joint More... | |
char * | joint_name |
int | n_const |
weight More... | |
IK::Priority | priority |
fVec | weight |
feedback gain More... | |
Friends | |
class | IK |
|
inline |
Default constructor.
[in] | _ik | |
[in] | _jname | |
[in] | _jnt | |
[in] | cindex | |
[in] | _pri | |
[in] | _gain | |
[in] | _rel_pos | relative position in joint frame (default: 0,0,0) |
[in] | _rel_att | relative orientation in joint frame (default: identity) |
[in] | _other_joint | joint to which the constraint is attached (default: world) |
|
protectedvirtual |
|
protectedvirtual |
Computes the constraint Jacobian.
Computes the constraint Jacobian. implementing the function:
calc_jacobian_slide()
- calc_jacobian_free()
calc_jacobian()
calls each function depending on the joint typecalc_jacobian()
Reimplemented from IKConstraint.
Definition at line 16 of file handle.cpp.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
reset the constraint position/orientation by the current values
Reimplemented from IKConstraint.
Reimplemented from IKConstraint.
|
protected |
|
protected |
|
protected |