Part of an object that is aimed at being grasped. More...
#include <hpp/manipulation/handle.hh>
Public Member Functions | |
virtual HandlePtr_t | clone () const |
Return a pointer to the copy of this. | |
const Transform3f & | localPosition () const |
Get local position in joint frame. | |
virtual DifferentiableFunctionPtr_t | createGrasp (const GripperPtr_t &gripper) const |
Create constraint corresponding to a gripper grasping this object. | |
virtual DifferentiableFunctionPtr_t | createGraspComplement (const GripperPtr_t &gripper) const |
Create constraint that acts on the non-constrained axis of the constraint generated by Handle::createGrasp. | |
virtual DifferentiableFunctionPtr_t | createPreGrasp (const GripperPtr_t &gripper) const |
Create constraint corresponding to a pregrasping task. | |
virtual DifferentiableFunctionPtr_t | createPreGraspComplement (const GripperPtr_t &gripper, const value_type &shift) const |
Create constraint that acts on the non-constrained axis of the constraint generated by Handle::createPreGrasp. | |
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. | |
Static Public Member Functions | |
static HandlePtr_t | create (const std::string &name, const Transform3f &localPosition, const JointPtr_t &joint) |
Create constraint corresponding to a gripper grasping this object. | |
static DifferentiableFunctionPtr_t | createGrasp (const GripperPtr_t &gripper, const HandlePtr_t &handle) |
Protected Member Functions | |
Handle (const std::string &name, const Transform3f &localPosition, const JointPtr_t &joint) | |
Constructor. | |
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.
hpp::manipulation::Handle::Handle | ( | const std::string & | name, |
const Transform3f & | localPosition, | ||
const JointPtr_t & | joint | ||
) | [inline, protected] |
Constructor.
robot | the robot that grasps the handle, |
grasp | object containing the grasp information |
Referenced by create().
virtual HandlePtr_t hpp::manipulation::Handle::clone | ( | ) | const [virtual] |
Return a pointer to the copy of this.
Reimplemented in hpp::manipulation::AxialHandle.
static HandlePtr_t hpp::manipulation::Handle::create | ( | const std::string & | name, |
const Transform3f & | localPosition, | ||
const JointPtr_t & | joint | ||
) | [inline, static] |
Create constraint corresponding to a gripper grasping this object.
robot | the robot that grasps the handle, |
grasp | object containing the grasp information |
Reimplemented in hpp::manipulation::AxialHandle.
virtual DifferentiableFunctionPtr_t hpp::manipulation::Handle::createGrasp | ( | const GripperPtr_t & | gripper | ) | const [virtual] |
Create constraint corresponding to a gripper grasping this object.
gripper | object containing the gripper information |
Reimplemented in hpp::manipulation::AxialHandle.
static DifferentiableFunctionPtr_t hpp::manipulation::Handle::createGrasp | ( | const GripperPtr_t & | gripper, |
const HandlePtr_t & | handle | ||
) | [inline, static] |
virtual DifferentiableFunctionPtr_t hpp::manipulation::Handle::createGraspComplement | ( | const GripperPtr_t & | gripper | ) | const [virtual] |
Create constraint that acts on the non-constrained axis of the constraint generated by Handle::createGrasp.
gripper | object containing the gripper information |
Reimplemented in hpp::manipulation::AxialHandle.
virtual DifferentiableFunctionPtr_t hpp::manipulation::Handle::createPreGrasp | ( | const GripperPtr_t & | gripper | ) | const [virtual] |
Create constraint corresponding to a pregrasping task.
gripper | object containing the gripper information |
Reimplemented in hpp::manipulation::AxialHandle.
virtual DifferentiableFunctionPtr_t hpp::manipulation::Handle::createPreGraspComplement | ( | const GripperPtr_t & | gripper, |
const value_type & | shift | ||
) | const [virtual] |
Create constraint that acts on the non-constrained axis of the constraint generated by Handle::createPreGrasp.
gripper | object containing the gripper information |
shift | the target value along the x-axis |
Reimplemented in hpp::manipulation::AxialHandle.
void hpp::manipulation::Handle::init | ( | HandleWkPtr_t | weakPtr | ) | [inline, protected] |
Referenced by create().
const JointPtr_t& hpp::manipulation::Handle::joint | ( | ) | const [inline] |
Get joint to which the handle is linked.
Referenced by joint().
void hpp::manipulation::Handle::joint | ( | const JointPtr_t & | joint | ) | [inline] |
Set joint to which the handle is linked.
References joint().
const Transform3f& hpp::manipulation::Handle::localPosition | ( | ) | const [inline] |
Get local position in joint frame.
const std::string& hpp::manipulation::Handle::name | ( | ) | const [inline] |
Get name.
void hpp::manipulation::Handle::name | ( | const std::string & | n | ) | [inline] |
Set name.
virtual std::ostream& hpp::manipulation::Handle::print | ( | std::ostream & | os | ) | const [protected, virtual] |
Reimplemented in hpp::manipulation::AxialHandle.
std::ostream& operator<< | ( | std::ostream & | , |
const Handle & | |||
) | [friend] |