Struct franka::gripper::Gripper[][src]

pub struct Gripper { /* fields omitted */ }

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

Implementations

impl Gripper[src]

pub fn new(franka_address: &str) -> FrankaResult<Gripper>[src]

Establishes a connection with a gripper connected to a robot.

Arguments

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

Errors

pub fn move_gripper(&mut self, width: f64, speed: f64) -> FrankaResult<bool>[src]

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.

pub fn homing(&mut self) -> FrankaResult<bool>[src]

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.

pub fn stop(&mut self) -> FrankaResult<bool>[src]

Stops a currently running gripper move or grasp.

Errors

Return

True if command was successful, false otherwise.

pub fn grasp(
    &mut self,
    width: f64,
    speed: f64,
    force: f64,
    epsilon_inner: Option<f64>,
    epsilon_outer: Option<f64>
) -> FrankaResult<bool>
[src]

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.

pub fn read_once(&mut self) -> FrankaResult<GripperState>[src]

Waits for a gripper state update and returns it.

Errors

Return

Current gripper state.

pub fn server_version(&self) -> u16[src]

Returns the software version reported by the connected server.

Return

Software version of the connected server.

Auto Trait Implementations

impl RefUnwindSafe for Gripper

impl Send for Gripper

impl Sync for Gripper

impl Unpin for Gripper

impl UnwindSafe for Gripper

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,