XBotInterface
2.4.1
XBotInterface provides a generic API to model and control a robot.
|
Go to the documentation of this file.
20 #ifndef __XBOT_HAND_H__
21 #define __XBOT_HAND_H__
40 typedef std::shared_ptr<Hand>
Ptr;
51 Hand(
int hand_id, std::string hand_name);
72 void grasp(
double grasp_percentage);
99 std::string _hand_name;
101 double _grasp_percentage;
int getHandId()
get the hand id
Definition: Hand.cpp:30
void setGraspState(double grasp_state)
set the grasp state read from the hand
Definition: Hand.cpp:58
const std::string & getHandName()
get the hand name
Definition: Hand.cpp:36
std::shared_ptr< Hand > Ptr
Definition: Hand.h:40
double getGraspState() const
get actual grasp percentage
Definition: Hand.cpp:53
Hand(int hand_id, std::string hand_name)
Constructor with the hand id.
Definition: Hand.cpp:25
Hand.
Definition: Hand.h:34
std::shared_ptr< const Hand > ConstPtr
Definition: Hand.h:41
void grasp(double grasp_percentage)
grasp till grasp_percentage
Definition: Hand.cpp:42
Definition: IXBotModel.h:20
double getGraspReference()
get the grasp reference set with grasp_percentage
Definition: Hand.cpp:47