Struct franka::utils::MotionGenerator[][src]

pub struct MotionGenerator { /* fields omitted */ }

An example showing how to generate a joint pose motion to a goal position. Adapted from: Wisama Khalil and Etienne Dombre. 2002. Modeling, Identification and Control of Robots (Kogan Page Science Paper edition).

Implementations

impl MotionGenerator[src]

pub fn new(speed_factor: f64, q_goal: &[f64; 7]) -> Self[src]

Creates a new MotionGenerator instance for a target q.

Arguments

  • speed_factor - General speed factor in range [0, 1].
  • q_goal - Target joint positions.

pub fn generate_motion(
    &mut self,
    robot_state: &RobotState,
    period: &Duration
) -> JointPositions
[src]

Sends joint position calculations

Arguments

robot_state - Current state of the robot. period - Duration of execution.

Return

Joint positions for use inside a control loop.

Trait Implementations

impl Debug for MotionGenerator[src]

Auto Trait Implementations

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>,