Specify a full or partial position constraint on the center of mass. More...
#include <hpp/gik/constraint/com-constraint.hh>
Public Member Functions | |
virtual | ~ChppGikComConstraint () |
Destructor. More... | |
void | jacobianRoot (CjrlJoint &inJoint) |
Set the jacobian root. More... | |
Definition of the constraint | |
ChppGikComConstraint (CjrlDynamicRobot &inRobot, double inX, double inY) | |
Constructor. More... | |
CjrlGikStateConstraint * | clone () const |
Copy the object. More... | |
virtual unsigned int | dimension () const |
Get the dimension of the constraint. More... | |
virtual CjrlDynamicRobot & | robot () |
Get robot associated to the constraint. More... | |
virtual void | targetXY (double inX, double inY) |
Set a constraint on Xcom and Ycom (in world's frame). More... | |
virtual void | targetXYZ (const vectorN &inTarget) |
Set constraint on x,y,z of com (in world's frame). More... | |
virtual const vectorN & | worldTarget () |
Get the target point associated to the constraint (in world's frame). More... | |
Computations | |
virtual void | computeInfluencingDofs () |
Compute a binary vector whose size matches the robot cnfiguration's, where an element with value 1 indicates that the corresponding degree of freedom can modify the value of this constraint, and an element with value 0 cannot. More... | |
virtual vectorN & | influencingDofs () |
Get the influencing dofs. More... | |
virtual void | computeValue () |
Compute the value of the constraint. More... | |
virtual void | computeJacobian () |
Get the constraint Jacobian wrt internal configuration variables. More... | |
Getting result of computations | |
virtual const vectorN & | value () |
Get the constraint value. More... | |
virtual const matrixNxP & | jacobian () |
Get the constraint jacobian. More... | |
![]() | |
virtual | ~CjrlLinearConstraint () |
Specify a full or partial position constraint on the center of mass.
ChppGikComConstraint::ChppGikComConstraint | ( | CjrlDynamicRobot & | inRobot, |
double | inX, | ||
double | inY | ||
) |
Constructor.
|
inlinevirtual |
Destructor.
References dimension(), and jacobianRoot().
|
virtual |
|
virtual |
Compute a binary vector whose size matches the robot cnfiguration's, where an element with value 1 indicates that the corresponding degree of freedom can modify the value of this constraint, and an element with value 0 cannot.
Implements CjrlGikStateConstraint.
|
virtual |
Get the constraint Jacobian wrt internal configuration variables.
This method supposes that: the robot has at least one fixed joint. the jacobian for this fixed joint has been computed for the current configuration
Only the first fixed joint of the robot affects the computation of the jacobian. (closed kinematic chains are not handeled)
Implements CjrlGikStateConstraint.
Reimplemented in ChppGikRelativeComConstraint.
|
virtual |
Compute the value of the constraint.
Implements CjrlGikStateConstraint.
Reimplemented in ChppGikRelativeComConstraint.
|
virtual |
Get the dimension of the constraint.
Implements CjrlLinearConstraint.
Referenced by ~ChppGikComConstraint().
|
virtual |
Get the influencing dofs.
Implements CjrlGikStateConstraint.
|
virtual |
Get the constraint jacobian.
Implements CjrlLinearConstraint.
Reimplemented in ChppGikRelativeComConstraint.
|
virtual |
|
virtual |
Get robot associated to the constraint.
Implements CjrlGikStateConstraint.
|
virtual |
Set a constraint on Xcom and Ycom (in world's frame).
Implements CjrlGikComConstraint.
|
virtual |
Set constraint on x,y,z of com (in world's frame).
Implements CjrlGikComConstraint.
|
virtual |
Get the constraint value.
Implements CjrlLinearConstraint.
|
virtual |
Get the target point associated to the constraint (in world's frame).
Implements CjrlGikComConstraint.