hpp-manipulation 7.0.0 Classes for manipulation planning. |
#include <hpp/manipulation/handle.hh>
Public Member Functions | |
| virtual | ~Handle () |
| virtual HandlePtr_t | clone () const |
| Return a pointer to the copy of this. | |
| const Transform3s & | localPosition () const |
| Get local position in joint frame. | |
| void | localPosition (const Transform3s &localPosition) |
| Set local position in joint frame. | |
| void | mask (const std::vector< bool > &mask) |
| Set constraint mask. | |
| const std::vector< bool > & | mask () const |
| void | maskComp (const std::vector< bool > &mask) |
| Set mask of complement constraint. | |
| const std::vector< bool > & | maskComp () const |
| Get mask of complement constraint. | |
| virtual ImplicitPtr_t | createGrasp (const GripperPtr_t &gripper, std::string name) const |
| virtual ImplicitPtr_t | createGraspComplement (const GripperPtr_t &gripper, std::string name) const |
| virtual ImplicitPtr_t | createGraspAndComplement (const GripperPtr_t &gripper, std::string name) const |
| virtual ImplicitPtr_t | createPreGrasp (const GripperPtr_t &gripper, const value_type &shift, std::string name) const |
| value_type | clearance () const |
| void | clearance (const value_type &clearance) |
| const vector3_t & | approachingDirection () const |
| void | approachingDirection (const vector3_t &dir) |
Name | |
| const std::string & | name () const |
| Get name. | |
| void | name (const std::string &n) |
| Set name. | |
Joint | |
| const JointPtr_t & | joint () const |
| Get joint to which the handle is linked. | |
| void | joint (const JointPtr_t &joint) |
| Set joint to which the handle is linked. | |
| DevicePtr_t | robot () const |
Static Public Member Functions | |
| static HandlePtr_t | create (const std::string &name, const Transform3s &pose, const DeviceWkPtr_t &robot, const JointPtr_t &joint) |
Static Public Attributes | |
| static std::string | className |
Protected Member Functions | |
| Handle (const std::string &name, const Transform3s &pose, const DeviceWkPtr_t &robot, const JointPtr_t &joint) | |
| void | init (HandleWkPtr_t weakPtr) |
| virtual std::ostream & | print (std::ostream &os) const |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Handle &handle) |
Frame attached to an object that is aimed at being grasped
Together with a hpp::pinocchio::Gripper, a handle defines a grasp. A vector of 6 Boolean values called a mask can be passed to the constructor to define the symmetries of the handle. For example, {True,True,True,False,True,True} means that the handle can be grasped with free orientation around x-axis. See https://hal.laas.fr/hal-02995125v2 for details. The setter method mask allows users to define the mask.
Along motions where the handle is grasped by a gripper, an additional constraint is enforced, called the complement constraint. This latter constraint ensures that the object is rigidly fixed to the gripper.
However, for some applications, the complement constraint can be customized using setter maskComp. Note that calling setter method mask reinitializes the mask complement.
| inlinevirtual |
| inlineprotected |
Constructor
| name | name of the handle, |
| pose | pose of the handle frame in the joint frame, |
| robot | kinematic chain containing the robot or object the handle is attached to, |
| joint | Joint to which the handle is attached. |
| inline |
Get approaching direction for pregrasp Default is x-axis (1, 0, 0)
| inline |
Set approaching direction for pregrasp
| dir | unit vector defining the approach direction in handle frame |
| inline |
Get the clearance
The clearance is a distance, from the center of the gripper and along the x-aixs, that "ensures" an object being at that distance is not colliding with this gripper. It also gives an order of magnitude of the size of the gripper.
| inline |
Set the clearance
| virtual |
Return a pointer to the copy of this.
| inlinestatic |
Create Handle
| name | name of the handle, |
| pose | pose of the handle frame in the joint frame, |
| robot | kinematic chain containing the robot or object the handle is attached to, |
| joint | joint to which the handle is attached, |
| virtual |
Create constraint corresponding to a gripper grasping this handle
| gripper | object containing the gripper information |
| virtual |
Create constraint composed of grasp constraint and its complement
| gripper | object containing the gripper information |
| virtual |
Create complement constraint of gripper grasping this handle
| gripper | object containing the gripper information |
| virtual |
Create constraint corresponding to a pregrasping task.
| gripper | object containing the gripper information |
| inlineprotected |
| inline |
Get joint to which the handle is linked.
| inline |
Set joint to which the handle is linked.
| inline |
Get local position in joint frame.
| inline |
Set local position in joint frame.
| inline |
Get constraint mask See mask(const std::vector<bool>&)
| void hpp::manipulation::Handle::mask | ( | const std::vector< bool > & | mask | ) |
Set constraint mask.
| inline |
Get mask of complement constraint.
| void hpp::manipulation::Handle::maskComp | ( | const std::vector< bool > & | mask | ) |
Set mask of complement constraint.
| inline |
Get name.
| inline |
Set name.
| protectedvirtual |
| inline |
| friend |
| static |