20 #ifndef HPP_MANIPULATION_HANDLE_HH 21 # define HPP_MANIPULATION_HANDLE_HH 23 # include <pinocchio/spatial/se3.hpp> 26 # include <hpp/manipulation/config.hh> 29 namespace manipulation {
48 Handle* ptr =
new Handle (name, localPosition, robot, joint);
60 const std::string&
name ()
const 65 void name (
const std::string&
n)
94 return localPosition_;
98 void mask (
const std::vector<bool>& mask);
102 const std::vector<bool>&
mask ()
const 113 virtual ImplicitPtr_t createGrasp
122 virtual ImplicitPtr_t createGraspComplement
129 virtual ImplicitPtr_t createGraspAndComplement
139 virtual ImplicitPtr_t createPreGrasp
157 clearance_ = clearance;
168 name_ (name), localPosition_ (localPosition), joint_ (joint),
169 robot_ (robot), clearance_ (0), mask_ (6, true), weakPtr_ ()
172 void init (HandleWkPtr_t weakPtr)
177 virtual std::ostream& print (std::ostream& os)
const;
190 std::vector<bool> mask_;
192 HandleWkPtr_t weakPtr_;
201 #endif // HPP_MANIPULATION_HANDLE_HH void name(const std::string &n)
Set name.
Definition: handle.hh:65
void clearance(const value_type &clearance)
Definition: handle.hh:155
Handle(const std::string &name, const Transform3f &localPosition, const DeviceWkPtr_t &robot, const JointPtr_t &joint)
Definition: handle.hh:166
pinocchio::DeviceWkPtr_t DeviceWkPtr_t
const JointPtr_t & joint() const
Get joint to which the handle is linked.
Definition: handle.hh:75
Part of an object that is aimed at being grasped.
Definition: handle.hh:32
pinocchio::JointPtr_t JointPtr_t
Definition: fwd.hh:32
core::value_type value_type
Definition: fwd.hh:79
std::ostream & operator<<(std::ostream &os, const Handle &handle)
void init(HandleWkPtr_t weakPtr)
Definition: handle.hh:172
virtual ~Handle()
Definition: handle.hh:36
boost::shared_ptr< Device > DevicePtr_t
Definition: fwd.hh:29
const std::string & name() const
Get name.
Definition: handle.hh:60
boost::shared_ptr< Handle > HandlePtr_t
Definition: fwd.hh:48
const std::vector< bool > & mask() const
Definition: handle.hh:102
DevicePtr_t robot() const
Definition: handle.hh:85
constraints::ImplicitPtr_t ImplicitPtr_t
Definition: fwd.hh:105
value_type clearance() const
Definition: handle.hh:148
core::Transform3f Transform3f
Definition: fwd.hh:81
static HandlePtr_t create(const std::string &name, const Transform3f &localPosition, const DeviceWkPtr_t &robot, const JointPtr_t &joint)
Definition: handle.hh:43
boost::shared_ptr< Implicit > ImplicitPtr_t
const Transform3f & localPosition() const
Get local position in joint frame.
Definition: handle.hh:92
pinocchio::GripperPtr_t GripperPtr_t
Definition: fwd.hh:41
static std::string className
Definition: handle.hh:35
void joint(const JointPtr_t &joint)
Set joint to which the handle is linked.
Definition: handle.hh:80