hpp-manipulation
6.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. More... | |
const Transform3s & | localPosition () const |
Get local position in joint frame. More... | |
void | localPosition (const Transform3s &localPosition) |
Set local position in joint frame. More... | |
void | mask (const std::vector< bool > &mask) |
Set constraint mask. More... | |
const std::vector< bool > & | mask () const |
void | maskComp (const std::vector< bool > &mask) |
Set mask of complement constraint. More... | |
const std::vector< bool > & | maskComp () const |
Get mask of complement constraint. More... | |
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) |
Name | |
const std::string & | name () const |
Get name. More... | |
void | name (const std::string &n) |
Set name. More... | |
Joint | |
const JointPtr_t & | joint () const |
Get joint to which the handle is linked. More... | |
void | joint (const JointPtr_t &joint) |
Set joint to which the handle is linked. More... | |
DevicePtr_t | robot () const |
Static Public Member Functions | |
static HandlePtr_t | create (const std::string &name, const Transform3s &localPosition, 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 &localPosition, 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 &, const 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
robot | the robot that grasps the handle, |
grasp | object containing the grasp information |
|
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 constraint corresponding to a gripper grasping this object
robot | the robot that grasps the handle, |
grasp | object containing the grasp information |
|
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 |