Maintains a network connection to the vacuum gripper, provides the current vacuum gripper state, and allows the execution of commands.
More...
#include <vacuum_gripper.h>
|
enum class | ProductionSetupProfile { kP0
, kP1
, kP2
, kP3
} |
| Vacuum production setup profile.
|
|
using | ServerVersion = uint16_t |
| Version of the vacuum gripper server.
|
|
Maintains a network connection to the vacuum gripper, provides the current vacuum gripper state, and allows the execution of commands.
- Note
- The members of this class are threadsafe.
- Examples
- vacuum_object.cpp.
◆ VacuumGripper() [1/2]
franka::VacuumGripper::VacuumGripper |
( |
const std::string & |
franka_address | ) |
|
|
explicit |
Establishes a connection with a vacuum gripper connected to a robot.
- Parameters
-
[in] | franka_address | IP/hostname of the robot the vacuum gripper is connected to. |
- Exceptions
-
◆ VacuumGripper() [2/2]
franka::VacuumGripper::VacuumGripper |
( |
VacuumGripper && |
vacuum_gripper | ) |
|
|
noexcept |
◆ dropOff()
bool franka::VacuumGripper::dropOff |
( |
std::chrono::milliseconds |
timeout | ) |
const |
Drops the grasped object off.
- Parameters
-
[in] | timeout | Dropoff timeout. Unit: \([ms]\). |
- Returns
- True if command was successful, false otherwise.
- Exceptions
-
- Examples
- vacuum_object.cpp.
◆ operator=()
◆ readOnce()
Waits for a vacuum gripper state update and returns it.
- Returns
- Current vacuum gripper state.
- Exceptions
-
- Examples
- vacuum_object.cpp.
◆ serverVersion()
Returns the software version reported by the connected server.
- Returns
- Software version of the connected server.
◆ stop()
bool franka::VacuumGripper::stop |
( |
| ) |
const |
Stops a currently running vacuum gripper vacuum or drop off operation.
- Returns
- True if command was successful, false otherwise.
- Exceptions
-
- Examples
- vacuum_object.cpp.
◆ vacuum()
bool franka::VacuumGripper::vacuum |
( |
uint8_t |
vacuum, |
|
|
std::chrono::milliseconds |
timeout, |
|
|
ProductionSetupProfile |
profile = ProductionSetupProfile::kP0 |
|
) |
| const |
Vacuums an object.
- Parameters
-
[in] | vacuum | Setpoint for control mode. Unit: \([10*mbar]\). |
[in] | timeout | Vacuum timeout. Unit: \([ms]\). |
[in] | profile | Production setup profile P0 to P3. Default: P0. |
- Returns
- True if the vacuum has been established, false otherwise.
- Exceptions
-
- Examples
- vacuum_object.cpp.
The documentation for this class was generated from the following file: