Base class for constraints.
More...
#include <ik.h>
Base class for constraints.
Definition at line 253 of file ik.h.
◆ IKConstraint()
Default constructor.
Default constructor.
- Parameters
-
[in] | _ik | pointer to the IK object |
[in] | _jname | name of the joint to which the constraint is attached |
[in] | _jnt | pointer to the joint |
[in] | _pri | priority of the constraint |
[in] | _gain | gain of the constraint |
Definition at line 266 of file ik.h.
◆ ~IKConstraint()
virtual IKConstraint::~IKConstraint |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 286 of file ik.h.
◆ Activate()
void IKConstraint::Activate |
( |
| ) |
|
|
inline |
activate the constraint
Definition at line 307 of file ik.h.
◆ Active()
int IKConstraint::Active |
( |
| ) |
|
|
inline |
whether the constraint is activate
Definition at line 315 of file ik.h.
◆ calc_feedback()
virtual int IKConstraint::calc_feedback |
( |
| ) |
|
|
protectedpure virtual |
◆ calc_jacobian() [1/2]
int IKConstraint::calc_jacobian |
( |
| ) |
|
|
protectedvirtual |
◆ calc_jacobian() [2/2]
int IKConstraint::calc_jacobian |
( |
Joint * |
cur | ) |
|
|
protected |
the function recursively called for all joints (don't override)
Definition at line 84 of file update_ik.cpp.
◆ calc_jacobian_free()
virtual int IKConstraint::calc_jacobian_free |
( |
Joint * |
cur | ) |
|
|
inlineprotectedvirtual |
◆ calc_jacobian_rotate()
virtual int IKConstraint::calc_jacobian_rotate |
( |
Joint * |
cur | ) |
|
|
inlineprotectedvirtual |
◆ calc_jacobian_slide()
virtual int IKConstraint::calc_jacobian_slide |
( |
Joint * |
cur | ) |
|
|
inlineprotectedvirtual |
◆ calc_jacobian_sphere()
virtual int IKConstraint::calc_jacobian_sphere |
( |
Joint * |
cur | ) |
|
|
inlineprotectedvirtual |
◆ copy_jacobian()
int IKConstraint::copy_jacobian |
( |
| ) |
|
|
protected |
copy each constraint Jacobian to the whole Jacobian matrix
Definition at line 446 of file update_ik.cpp.
◆ count_constraints()
int IKConstraint::count_constraints |
( |
| ) |
|
|
private |
◆ Diactivate()
void IKConstraint::Diactivate |
( |
| ) |
|
|
inline |
diactivate the constraint
Definition at line 311 of file ik.h.
◆ Disable()
void IKConstraint::Disable |
( |
| ) |
|
|
inline |
disable the constraint
Definition at line 302 of file ik.h.
◆ Dropped()
int IKConstraint::Dropped |
( |
| ) |
|
|
inline |
Definition at line 350 of file ik.h.
◆ Enable()
void IKConstraint::Enable |
( |
| ) |
|
|
inline |
enable the constraint
Definition at line 298 of file ik.h.
◆ GetGain()
double IKConstraint::GetGain |
( |
| ) |
|
|
inline |
get the gain
Definition at line 324 of file ik.h.
◆ GetJoint()
Joint* IKConstraint::GetJoint |
( |
| ) |
|
|
inline |
Definition at line 344 of file ik.h.
◆ GetPriority()
get the priproty
Definition at line 333 of file ik.h.
◆ GetType()
◆ iConst()
int IKConstraint::iConst |
( |
| ) |
|
|
inline |
Definition at line 337 of file ik.h.
◆ ID()
Definition at line 347 of file ik.h.
◆ nConst()
int IKConstraint::nConst |
( |
| ) |
|
|
inline |
Definition at line 340 of file ik.h.
◆ Reset()
virtual int IKConstraint::Reset |
( |
| ) |
|
|
inlinevirtual |
◆ SetCharacterScale()
virtual void IKConstraint::SetCharacterScale |
( |
double |
_scale, |
|
|
const char * |
charname = 0 |
|
) |
| |
|
inlinevirtual |
◆ SetGain()
void IKConstraint::SetGain |
( |
double |
_gain | ) |
|
|
inline |
set the gain
Definition at line 320 of file ik.h.
◆ SetPriority()
set the priproty
Definition at line 329 of file ik.h.
◆ IK
Definition at line 255 of file ik.h.
◆ active
Definition at line 400 of file ik.h.
◆ enabled
int IKConstraint::enabled |
|
protected |
number of constraints
Definition at line 399 of file ik.h.
◆ fb
Jacobian matrix (n_const x total DOF)
Definition at line 403 of file ik.h.
◆ gain
double IKConstraint::gain |
|
protected |
priority
Definition at line 396 of file ik.h.
◆ i_const
int IKConstraint::i_const |
|
protected |
feedback velocity (n_const)
Definition at line 404 of file ik.h.
◆ id
ID (unique to each constraint)
Definition at line 393 of file ik.h.
◆ ik
Definition at line 390 of file ik.h.
◆ is_dropped
int IKConstraint::is_dropped |
|
protected |
index in the constraints with the same priority
Definition at line 406 of file ik.h.
Definition at line 402 of file ik.h.
◆ joint
Joint* IKConstraint::joint |
|
protected |
target joint
Definition at line 391 of file ik.h.
◆ joint_name
char* IKConstraint::joint_name |
|
protected |
Definition at line 392 of file ik.h.
◆ n_const
int IKConstraint::n_const |
|
protected |
weight
Definition at line 398 of file ik.h.
◆ priority
Definition at line 395 of file ik.h.
◆ weight
fVec IKConstraint::weight |
|
protected |
feedback gain
Definition at line 397 of file ik.h.
The documentation for this class was generated from the following files: