pub struct Gripper { /* private fields */ }
Expand description

Maintains a network connection to the gripper, provides the current gripper state, and allows the execution of commands.

Implementations

Establishes a connection with a gripper connected to a robot.

Arguments
  • franka_address - IP/hostname of the robot the gripper is connected to.
Errors

Moves the gripper fingers to a specified width.

Arguments
  • width - Intended opening width. [m]
  • speed - Closing speed. [m/s]
Errors
Return

True if command was successful, false otherwise.

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.

Errors
Return

True if command was successful, false otherwise.

Stops a currently running gripper move or grasp.

Errors
Return

True if command was successful, false otherwise.

Grasps an object.

An object is considered grasped if the distance d between the gripper fingers satisfies a

Arguments
  • width - Size of the object to grasp. [m]
  • speed - Closing speed. [m/s]
  • force - Grasping force. [N]
  • epsilon_inner - Maximum tolerated deviation when the actual grasped width is smaller than the commanded grasp width. Default is 0.005.
  • epsilon_outer - Maximum tolerated deviation when the actual grasped width is larger than the commanded grasp width. Default is 0.005.
Errors
Return

True if an object has been grasped, false otherwise.

Waits for a gripper state update and returns it.

Errors
Return

Current gripper state.

Returns the software version reported by the connected server.

Return

Software version of the connected server.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.