Flexiv RDK APIs  0.10
Gripper.hpp
Go to the documentation of this file.
1 
6 #ifndef FLEXIVRDK_GRIPPER_HPP_
7 #define FLEXIVRDK_GRIPPER_HPP_
8 
9 #include "Robot.hpp"
10 #include <memory>
11 
12 namespace flexiv {
13 
18 class Gripper
19 {
20 public:
27  Gripper(const Robot& robot);
28  virtual ~Gripper();
29 
42  void grasp(double force);
43 
57  void move(double width, double velocity, double forceLimit = 0);
58 
66  void stop(void);
67 
73 
74 private:
75  class Impl;
76  std::unique_ptr<Impl> m_pimpl;
77 };
78 
79 } /* namespace flexiv */
80 
81 #endif /* FLEXIVRDK_GRIPPER_HPP_ */
Interface with grippers supported by Flexiv.
Definition: Gripper.hpp:19
void stop(void)
[Blocking] Stop the gripper.
void move(double width, double velocity, double forceLimit=0)
[Blocking] Move the gripper fingers with position control.
void getGripperStates(GripperStates &output)
[Non-blocking] Get current gripper states.
Gripper(const Robot &robot)
[Non-blocking] Create a flexiv::Gripper instance and initialize robot gripper control.
void grasp(double force)
[Blocking] Grasp with direct force control. Requires the mounted gripper to support direct force cont...
Main interface with the robot, containing several function categories and background services.
Definition: Robot.hpp:25
Data struct containing the gripper states.
Definition: Data.hpp:236