Part of an object that is aimed at being grasped. More...
#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 Transform3f & | localPosition () const |
Get local position in joint frame. More... | |
void | mask (const std::vector< bool > &mask) |
Set constraint mask. More... | |
const std::vector< bool > & | mask () const |
Get constraint mask See mask(const std::vector<bool>&) More... | |
virtual ImplicitPtr_t | createGrasp (const GripperPtr_t &gripper, std::string name) const |
Create constraint corresponding to a gripper grasping this handle. More... | |
virtual ImplicitPtr_t | createGraspComplement (const GripperPtr_t &gripper, std::string name) const |
Create complement constraint of gripper grasping this handle. More... | |
virtual ImplicitPtr_t | createGraspAndComplement (const GripperPtr_t &gripper, std::string name) const |
Create constraint composed of grasp constraint and its complement. More... | |
virtual ImplicitPtr_t | createPreGrasp (const GripperPtr_t &gripper, const value_type &shift, std::string name) const |
Create constraint corresponding to a pregrasping task. More... | |
value_type | clearance () const |
Get the clearance. More... | |
void | clearance (const value_type &clearance) |
Set the clearance. More... | |
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 Transform3f &localPosition, const DeviceWkPtr_t &robot, const JointPtr_t &joint) |
Create constraint corresponding to a gripper grasping this object. More... | |
Static Public Attributes | |
static std::string | className |
Protected Member Functions | |
Handle (const std::string &name, const Transform3f &localPosition, const DeviceWkPtr_t &robot, const JointPtr_t &joint) | |
Constructor. More... | |
void | init (HandleWkPtr_t weakPtr) |
virtual std::ostream & | print (std::ostream &os) const |
Friends | |
std::ostream & | operator<< (std::ostream &, const Handle &) |
Part of an object that is aimed at being grasped.
|
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 |
References init().
|
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 |
References hpp::manipulation::operator<<(), print(), and robot_.
Referenced by create().
|
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.
void hpp::manipulation::Handle::mask | ( | const std::vector< bool > & | mask | ) |
Set constraint mask.
|
inline |
Get constraint mask See mask(const std::vector<bool>&)
|
inline |
Get name.
|
inline |
Set name.
|
protectedvirtual |
|
inline |
References robot_.
|
friend |
|
static |