Franky 0.12.0
A High-Level Motion API for Franka
|
A wrapper around the franka::Gripper class that adds asynchronous functionality. More...
#include <gripper.hpp>
Public Member Functions | |
Gripper (const std::string &franka_address) | |
Gripper (Gripper &&gripper) noexcept | |
std::shared_future< bool > | graspAsync (double width, double speed, double force, double epsilon_inner=0.005, double epsilon_outer=0.005) |
Asynchronous variant of the franka::Gripper::grasp function. | |
std::shared_future< bool > | moveAsync (double width, double speed) |
Asynchronous variant of the franka::Gripper::move function. | |
bool | open (double speed) |
Opens the gripper fully. | |
std::shared_future< bool > | openAsync (double speed) |
Asynchronous variant of the open function. | |
std::shared_future< bool > | homingAsync () |
Asynchronous variant of the franka::Gripper::homing function. | |
std::shared_future< bool > | stopAsync () |
Asynchronous variant of the franka::Gripper::stop function. | |
double | width () const |
Current opening width of the gripper [m]. | |
bool | is_grasped () const |
Whether the gripper is grasping. | |
double | max_width () const |
Maximum width of the gripper [m]. | |
franka::GripperState | state () const |
Current gripper state. | |
A wrapper around the franka::Gripper class that adds asynchronous functionality.
|
inlineexplicit |
|
inlinenoexcept |
std::shared_future< bool > franky::Gripper::graspAsync | ( | double | width, |
double | speed, | ||
double | force, | ||
double | epsilon_inner = 0.005 , |
||
double | epsilon_outer = 0.005 |
||
) |
Asynchronous variant of the franka::Gripper::grasp function.
width | Size of the object to grasp in [m]. |
speed | Closing speed in [m/s]. |
force | Grasping force in [N]. |
epsilon_inner | Maximum tolerated deviation when the actual grasped width is smaller than the commanded grasp width. |
epsilon_outer | Maximum tolerated deviation when the actual grasped width is larger than the commanded grasp width. |
std::shared_future< bool > franky::Gripper::homingAsync | ( | ) |
Asynchronous variant of the franka::Gripper::homing function.
|
inline |
Whether the gripper is grasping.
|
inline |
Maximum width of the gripper [m].
Asynchronous variant of the franka::Gripper::move function.
width | Intended opening width in [m]. |
speed | Speed of the movement in [m/s]. |
Opens the gripper fully.
speed | Speed of the movement in [m/s]. |
Asynchronous variant of the open function.
speed | Speed of the movement in [m/s]. |
|
inline |
Current gripper state.
std::shared_future< bool > franky::Gripper::stopAsync | ( | ) |
Asynchronous variant of the franka::Gripper::stop function.
|
inline |
Current opening width of the gripper [m].