ChppGikParallelConstraint Class Reference

Specify a 2D orientation constraint on a body of the robot. More...

#include <hpp/gik/constraint/parallel-constraint.hh>

Inheritance diagram for ChppGikParallelConstraint:
Collaboration diagram for ChppGikParallelConstraint:

Public Member Functions

 ChppGikParallelConstraint (CjrlDynamicRobot &inRobot, CjrlJoint &inJoint, const vector3d &inLocalVector, const vector3d &inTargetVector)
 Constructor. More...
 
virtual CjrlGikStateConstraintclone () const
 Copy the object. More...
 
virtual void localVector (const vector3d &inVector)
 Set the vector (in joint's local frame) associated to the constraint. More...
 
virtual const vector3dlocalVector ()
 Get the vector associated to the constraint (in joint's local frame). More...
 
virtual void targetVector (const vector3d &inVector)
 Set the target vector associated to the constraint (in world's frame). More...
 
virtual const vector3dtargetVector ()
 Get the target vector associated to the constraint (in world's frame). More...
 
virtual void computeVectorizedState ()
 Get the full state (this constraint and its first two derivatives) of the constraint expressed as a vectorN. More...
 
virtual void computeVectorizedTarget ()
 Compute the target of the constraint as a vectorN. More...
 
virtual bool vectorizedTarget (const vectorN &inTarget)
 A unified method to change the target of the constraint with a vectorN. More...
 
virtual void computeValue ()
 Compute the value of the constraint. More...
 
virtual void computeJacobian ()
 Get the constraint Jacobian wrt internal configuration variables. More...
 
virtual ~ChppGikParallelConstraint ()
 Destructor. More...
 
- Public Member Functions inherited from CjrlLinearConstraint
virtual ~CjrlLinearConstraint ()
 
- Public Member Functions inherited from ChppGikJointStateConstraint
 ChppGikJointStateConstraint (CjrlDynamicRobot &inRobot, CjrlJoint &inJoint, unsigned int inDimension)
 Constructor. 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 joint (CjrlJoint *inJoint)
 Set the joint associated to the constraint. More...
 
virtual CjrlJoint * joint ()
 Get the joint associated to the constraint. More...
 
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 const vectorNvalue ()
 Get the constraint value. More...
 
virtual const matrixNxPjacobian ()
 Get the constraint jacobian. More...
 
virtual vectorNinfluencingDofs ()
 Get the influencing dofs. More...
 
virtual void jacobianRoot (CjrlJoint &inJoint)
 inherited. More...
 
- Public Member Functions inherited from ChppGikVectorizableConstraint
virtual const vectorNvectorizedState () const
 Get the full state (this constraint and its first two derivatives) of the constraint expressed as a vectorN. More...
 
virtual const vectorNvectorizedTarget () const
 Get the target of the constraint expressed as a vectorN. More...
 
virtual ~ChppGikVectorizableConstraint ()
 Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from ChppGikJointStateConstraint
vectorN attValue
 
matrixNxP attJacobian
 
vectorN attInfluencingDofs
 
CjrlJoint * attRootJoint
 
- Protected Attributes inherited from ChppGikVectorizableConstraint
vectorN attVectorizedTarget
 The vectorial expression of the constraint's target at the moment of computation. More...
 
vectorN attVectorizedState
 The vectorial expression of the constraint's full sdtate at the moment of computation. More...
 

Detailed Description

Specify a 2D orientation constraint on a body of the robot.

Constructor & Destructor Documentation

◆ ChppGikParallelConstraint()

ChppGikParallelConstraint::ChppGikParallelConstraint ( CjrlDynamicRobot &  inRobot,
CjrlJoint &  inJoint,
const vector3d inLocalVector,
const vector3d inTargetVector 
)

Constructor.

◆ ~ChppGikParallelConstraint()

virtual ChppGikParallelConstraint::~ChppGikParallelConstraint ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ clone()

virtual CjrlGikStateConstraint* ChppGikParallelConstraint::clone ( ) const
virtual

Copy the object.

Implements CjrlGikStateConstraint.

◆ computeJacobian()

virtual void ChppGikParallelConstraint::computeJacobian ( )
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.

◆ computeValue()

virtual void ChppGikParallelConstraint::computeValue ( )
virtual

Compute the value of the constraint.

Implements CjrlGikStateConstraint.

◆ computeVectorizedState()

virtual void ChppGikParallelConstraint::computeVectorizedState ( )
virtual

Get the full state (this constraint and its first two derivatives) of the constraint expressed as a vectorN.

Implements ChppGikVectorizableConstraint.

◆ computeVectorizedTarget()

virtual void ChppGikParallelConstraint::computeVectorizedTarget ( )
virtual

Compute the target of the constraint as a vectorN.

Implements ChppGikVectorizableConstraint.

◆ localVector() [1/2]

virtual void ChppGikParallelConstraint::localVector ( const vector3d inVector)
virtual

Set the vector (in joint's local frame) associated to the constraint.

Implements CjrlGikParallelConstraint.

◆ localVector() [2/2]

virtual const vector3d& ChppGikParallelConstraint::localVector ( )
virtual

Get the vector associated to the constraint (in joint's local frame).

Implements CjrlGikParallelConstraint.

◆ targetVector() [1/2]

virtual void ChppGikParallelConstraint::targetVector ( const vector3d inVector)
virtual

Set the target vector associated to the constraint (in world's frame).

Implements CjrlGikParallelConstraint.

◆ targetVector() [2/2]

virtual const vector3d& ChppGikParallelConstraint::targetVector ( )
virtual

Get the target vector associated to the constraint (in world's frame).

Implements CjrlGikParallelConstraint.

◆ vectorizedTarget()

virtual bool ChppGikParallelConstraint::vectorizedTarget ( const vectorN inTarget)
virtual

A unified method to change the target of the constraint with a vectorN.

Returns
false if the argument's size does not match the one expected for this constraint type

Implements ChppGikVectorizableConstraint.