hpp::model::Gripper Class Reference

Definition of a robot gripper. More...

#include <hpp/model/gripper.hh>

List of all members.

Public Member Functions

const JointPtr_tjoint () const
 Get joint that grip.
void joint (const JointPtr_t &joint)
 Set joint that grip.
const Transform3fobjectPositionInJoint () const
 Get handle position in the the Grippering joint.
const std::string & name () const
 get name
void name (const std::string &n)
 Set name.
void addDisabledCollision (const JointPtr_t &joint)
 add joint to disabled collision vector
void removeDisabledCollision (JointPtr_t &joint)
 remove joint of disabled collision vector
const JointVector_tgetDisabledCollisions () const
void removeAllDisabledCollisions ()
GripperPtr_t clone () const
virtual std::ostream & print (std::ostream &os) const

Static Public Member Functions

static GripperPtr_t create (const std::string &name, const JointPtr_t &joint, const Transform3f &objectPositionInJoint, const JointVector_t disabledCollisions)
 Return a shared pointer to new instance.

Protected Member Functions

 Gripper (const std::string &name, const JointPtr_t &joint, const Transform3f &objectPositionInJoint, const JointVector_t disabledCollisions)
 Constructor.
void init (GripperWkPtr_t weakPtr)

Detailed Description

Definition of a robot gripper.

This class represent a robot gripper as a frame attached to the joint of the robot that holds the gripper.

figure-gripper.png

To graps a box-shaped object with small lengths along x and y, the gripper frame should coincide with the object frame.


Constructor & Destructor Documentation

hpp::model::Gripper::Gripper ( const std::string &  name,
const JointPtr_t joint,
const Transform3f objectPositionInJoint,
const JointVector_t  disabledCollisions 
) [inline, protected]

Constructor.

Parameters:
jointjoint of the robot that holds the handle,
objectPositionInJointhandle position in the the grasping joint.
disabledCollisionsvector of joints that will be in collision with the object, so collisions detection will be disabled for those joints and the handles.

Member Function Documentation

void hpp::model::Gripper::addDisabledCollision ( const JointPtr_t joint) [inline]

add joint to disabled collision vector

static GripperPtr_t hpp::model::Gripper::create ( const std::string &  name,
const JointPtr_t joint,
const Transform3f objectPositionInJoint,
const JointVector_t  disabledCollisions 
) [inline, static]

Return a shared pointer to new instance.

Parameters:
jointjoint of the robot that will hold handles,
objectPositionInJointobject position in the the grasping joint.
disabledCollisionsvector of joints that will be in collision with the object, so collisions detection will be disabled for those joints and the handles.

References init().

void hpp::model::Gripper::init ( GripperWkPtr_t  weakPtr) [inline, protected]

Referenced by create().

const JointPtr_t& hpp::model::Gripper::joint ( ) const [inline]

Get joint that grip.

void hpp::model::Gripper::joint ( const JointPtr_t joint) [inline]

Set joint that grip.

const std::string& hpp::model::Gripper::name ( ) const [inline]

get name

void hpp::model::Gripper::name ( const std::string &  n) [inline]

Set name.

Get handle position in the the Grippering joint.

virtual std::ostream& hpp::model::Gripper::print ( std::ostream &  os) const [virtual]

remove joint of disabled collision vector

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends