Maintains a network connection to the gripper, provides the current gripper state, and allows the execution of commands.
More...
#include <gripper.h>
Maintains a network connection to the gripper, provides the current gripper state, and allows the execution of commands.
- Note
- The members of this class are threadsafe.
Definition at line 27 of file gripper.h.
Version of the gripper server.
Definition at line 32 of file gripper.h.
franka::Gripper::Gripper |
( |
const std::string & |
franka_address | ) |
|
|
explicit |
Establishes a connection with a gripper connected to a robot.
- Parameters
-
[in] | franka_address | IP/hostname of the robot the gripper is connected to. |
- Exceptions
-
franka::Gripper::Gripper |
( |
Gripper && |
gripper | ) |
|
|
noexcept |
Move-constructs a new Gripper instance.
- Parameters
-
franka::Gripper::~Gripper |
( |
| ) |
|
|
noexcept |
bool franka::Gripper::grasp |
( |
double |
width, |
|
|
double |
speed, |
|
|
double |
force, |
|
|
double |
epsilon_inner = 0.005 , |
|
|
double |
epsilon_outer = 0.005 |
|
) |
| const |
Grasps an object.
An object is considered grasped if the distance between the gripper fingers satisfies .
- Parameters
-
[in] | width | Size of the object to grasp. [m] |
[in] | speed | Closing speed. [m/s] |
[in] | force | Grasping force. [N] |
[in] | epsilon_inner | Maximum tolerated deviation when the actual grasped width is smaller than the commanded grasp width. |
[in] | epsilon_outer | Maximum tolerated deviation when the actual grasped width is larger than the commanded grasp width. |
- Returns
- True if an object has been grasped, false otherwise.
- Exceptions
-
bool franka::Gripper::homing |
( |
| ) |
const |
Performs homing of the gripper.
After changing the gripper fingers, a homing needs to be done. This is needed to estimate the maximum grasping width.
- Returns
- True if command was successful, false otherwise.
- Exceptions
-
- See also
- GripperState for the maximum grasping width.
bool franka::Gripper::move |
( |
double |
width, |
|
|
double |
speed |
|
) |
| const |
Moves the gripper fingers to a specified width.
- Parameters
-
[in] | width | Intended opening width. [m] |
[in] | speed | Closing speed. [m/s] |
- Returns
- True if command was successful, false otherwise.
- Exceptions
-
Waits for a gripper state update and returns it.
- Returns
- Current gripper state.
- Exceptions
-
Returns the software version reported by the connected server.
- Returns
- Software version of the connected server.
bool franka::Gripper::stop |
( |
| ) |
const |
Stops a currently running gripper move or grasp.
- Returns
- True if command was successful, false otherwise.
- Exceptions
-
std::unique_ptr<Network> franka::Gripper::network_ |
|
private |
uint16_t franka::Gripper::ri_version_ |
|
private |
The documentation for this class was generated from the following file: