Enum rubullet::ControlModeArray[][src]

pub enum ControlModeArray<'a> {
    Positions(&'a [f64]),
    PositionsWithPd {
        target_positions: &'a [f64],
        target_velocities: &'a [f64],
        position_gains: &'a [f64],
        velocity_gains: &'a [f64],
    },
    Velocities(&'a [f64]),
    Torques(&'a [f64]),
    Pd {
        target_positions: &'a [f64],
        target_velocities: &'a [f64],
        position_gains: &'a [f64],
        velocity_gains: &'a [f64],
    },
}

Can be used in set_joint_motor_control_array(). It is basically the same as ControlMode but with arrays. See ControlMode for details.

Variants

Positions(&'a [f64])

Position Control with the desired joint positions.

PositionsWithPd

Same as Positions, but you can set your own gains

Fields of PositionsWithPd

target_positions: &'a [f64]

desired target positions

target_velocities: &'a [f64]

desired target velocities

position_gains: &'a [f64]

position gains

velocity_gains: &'a [f64]

velocity gains

Velocities(&'a [f64])

Velocity control with the desired joint velocities

Torques(&'a [f64])

Torque control with the desired joint torques.

Pd

PD Control

Fields of Pd

target_positions: &'a [f64]

desired target positions

target_velocities: &'a [f64]

desired target velocities

position_gains: &'a [f64]

position gains

velocity_gains: &'a [f64]

velocity gains

Auto Trait Implementations

impl<'a> RefUnwindSafe for ControlModeArray<'a>

impl<'a> Send for ControlModeArray<'a>

impl<'a> Sync for ControlModeArray<'a>

impl<'a> Unpin for ControlModeArray<'a>

impl<'a> UnwindSafe for ControlModeArray<'a>

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> Pointable for T

type Init = T

The type for initializers.

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