Skip to content
Snippets Groups Projects
Commit 34c8148b authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Add a method createGraspAndComplement in Handle classes

  - create a constraint merging a grasp constraint and its complement.
parent ec8d8640
No related branches found
No related tags found
No related merge requests found
...@@ -99,23 +99,25 @@ namespace hpp { ...@@ -99,23 +99,25 @@ namespace hpp {
/// \param gripper object containing the gripper information /// \param gripper object containing the gripper information
/// \return the constraint of relative transformation between the handle /// \return the constraint of relative transformation between the handle
/// and the gripper. /// and the gripper.
/// \note The 6 DOFs of the relative transformation are constrained. /// The degrees of freedom of the relative transformation that are
/// constrained are determined by the mask. \sa NumericalConstraint::mask.
/// The constraint is not parameterizable (has constant right hand side).
virtual NumericalConstraintPtr_t createGrasp virtual NumericalConstraintPtr_t createGrasp
(const GripperPtr_t& gripper, std::string name) const; (const GripperPtr_t& gripper, std::string name) const;
/// Create complement constraint of gripper grasping this handle /// Create complement constraint of gripper grasping this handle
/// \param gripper object containing the gripper information /// \param gripper object containing the gripper information
/// \return trivial constraint /// \return complement constraint: constraint combined with its complement
/// \note for this base class, the complement constraint is trivial, i.e. /// constitute a full relative transformation constraint.
/// it is of dimension 0. /// The complement constraint is parameterizable (has non constant right
/// hand side).
virtual NumericalConstraintPtr_t createGraspComplement virtual NumericalConstraintPtr_t createGraspComplement
(const GripperPtr_t& gripper, std::string name) const; (const GripperPtr_t& gripper, std::string name) const;
/// Create constraint composed of grasp constraint and its complement /// Create constraint composed of grasp constraint and its complement
/// \param gripper object containing the gripper information /// \param gripper object containing the gripper information
/// \return the composition of grasp constraint and its complement. /// \return the composition of grasp constraint and its complement, that
/// \note for this base class, this constraint is the same as the grasp /// that is a full relative transformation constraint.
/// constraint.
virtual NumericalConstraintPtr_t createGraspAndComplement virtual NumericalConstraintPtr_t createGraspAndComplement
(const GripperPtr_t& gripper, std::string name) const; (const GripperPtr_t& gripper, std::string name) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment