rapid
A ROS robotics library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
gripper.h
Go to the documentation of this file.
1 #ifndef _RAPID_FETCH_GRIPPER_H_
2 #define _RAPID_FETCH_GRIPPER_H_
3 
4 #include "actionlib/client/simple_action_client.h"
5 #include "control_msgs/GripperCommandAction.h"
6 
7 namespace rapid {
8 namespace fetch {
9 // Gripper is a wrapper around the action to open/close the Fetch's gripper.
10 class Gripper {
11  public:
12  Gripper();
13 
14  bool Close(double max_effort = 0);
15  bool Open(double max_effort = 0);
16 
17  static const char kGripperAction[];
18  static const double kClosedPosition;
19  static const double kOpenedPosition;
20 
21  private:
22  actionlib::SimpleActionClient<control_msgs::GripperCommandAction> client_;
23 };
24 } // namespace fetch
25 } // namespace rapid
26 
27 #endif // _RAPID_FETCH_GRIPPER_H_
static const double kClosedPosition
Definition: gripper.h:18
static const double kOpenedPosition
Definition: gripper.h:19
bool Close(double max_effort=0)
bool Open(double max_effort=0)
static const char kGripperAction[]
Definition: gripper.h:17