Use this to concatenate several CjrlGikStateConstraint objects. More...
#include <hpp/gik/core/motion-plan-element.hh>
Public Member Functions | |
ChppGikMotionPlanElement (CjrlDynamicRobot *inRobot, unsigned int inPriority, double inDampingFactor=0.0) | |
Constructor. More... | |
CjrlGikStateConstraint * | clone () const |
Copy. More... | |
CjrlDynamicRobot & | robot () |
Get associated robot. More... | |
unsigned int | priority () const |
Get the priority. More... | |
void | addConstraint (CjrlGikStateConstraint *inJrlStateConstraint) |
Add a constraint. More... | |
bool | removeConstraint (const CjrlGikStateConstraint *inJrlStateConstraint) |
Remove a constraint. More... | |
void | dampingFactor (double inDF) |
Set the damping factor. More... | |
double | dampingFactor () const |
Get the damping factor. More... | |
unsigned int | dimension () const |
Get the dimension of this motion plan element. More... | |
const vectorN & | workingJoints () const |
Get a mask on the configuration vector denoting the working degrees of freedom. More... | |
void | workingJoints (const vectorN &inVec) |
Set a mask on the configuration vector denoting the working degrees of freedom. More... | |
void | clear () |
Clear stored references to constraints. More... | |
void | jacobianRoot (CjrlJoint &inJoint) |
const std::vector< CjrlGikStateConstraint * > & | constraints () |
Get constraints included in this element. More... | |
~ChppGikMotionPlanElement () | |
Computations | |
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... | |
void | computeValue () |
Compute the value of this motion plan element (task). More... | |
void | computeJacobian () |
Compute the Jacobian of this motion plan element (task) from robot's root taking into account contacts with the environement. More... | |
Getting result of computations | |
vectorN & | influencingDofs () |
Get the influencing dofs. More... | |
const vectorN & | value () |
Get the current value of this motion plan element (task). More... | |
const matrixNxP & | jacobian () |
Get the current Jacobian. More... | |
![]() | |
virtual | ~CjrlLinearConstraint () |
Use this to concatenate several CjrlGikStateConstraint objects.
ChppGikMotionPlanElement::ChppGikMotionPlanElement | ( | CjrlDynamicRobot * | inRobot, |
unsigned int | inPriority, | ||
double | inDampingFactor = 0.0 |
||
) |
Constructor.
ChppGikMotionPlanElement::~ChppGikMotionPlanElement | ( | ) |
Referenced by constraints().
void ChppGikMotionPlanElement::addConstraint | ( | CjrlGikStateConstraint * | inJrlStateConstraint | ) |
Add a constraint.
void ChppGikMotionPlanElement::clear | ( | ) |
Clear stored references to constraints.
|
virtual |
Copy.
Implements CjrlGikStateConstraint.
|
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 |
Compute the Jacobian of this motion plan element (task) from robot's root taking into account contacts with the environement.
Implements CjrlGikStateConstraint.
|
virtual |
Compute the value of this motion plan element (task).
Implements CjrlGikStateConstraint.
|
inline |
Get constraints included in this element.
References ~ChppGikMotionPlanElement().
void ChppGikMotionPlanElement::dampingFactor | ( | double | inDF | ) |
Set the damping factor.
double ChppGikMotionPlanElement::dampingFactor | ( | ) | const |
Get the damping factor.
|
virtual |
Get the dimension of this motion plan element.
Implements CjrlLinearConstraint.
|
virtual |
Get the influencing dofs.
Implements CjrlGikStateConstraint.
|
virtual |
Get the current Jacobian.
Implements CjrlLinearConstraint.
|
virtual |
Implements CjrlGikStateConstraint.
unsigned int ChppGikMotionPlanElement::priority | ( | ) | const |
Get the priority.
bool ChppGikMotionPlanElement::removeConstraint | ( | const CjrlGikStateConstraint * | inJrlStateConstraint | ) |
Remove a constraint.
Recomputing new value and jacobian is NOT done automatically.
|
virtual |
Get associated robot.
Implements CjrlGikStateConstraint.
|
virtual |
Get the current value of this motion plan element (task).
Implements CjrlLinearConstraint.
const vectorN& ChppGikMotionPlanElement::workingJoints | ( | ) | const |
Get a mask on the configuration vector denoting the working degrees of freedom.
void ChppGikMotionPlanElement::workingJoints | ( | const vectorN & | inVec | ) |
Set a mask on the configuration vector denoting the working degrees of freedom.