Struct rubullet::JointState[][src]

pub struct JointState {
    pub joint_position: f64,
    pub joint_velocity: f64,
    pub joint_force_torque: [f64; 6],
    pub joint_motor_torque: f64,
}

Represents the current state of a joint. It can be retrieved via get_joint_state()

Note

joint_force_torque will be [0.;6] if the sensor is not enabled via enable_joint_torque_sensor()

See also

  • JointInfo - For basic information about a joint

Fields

joint_position: f64

The position value of this joint.

joint_velocity: f64

The velocity value of this joint.

joint_force_torque: [f64; 6]

These are the joint reaction forces, if a torque sensor is enabled for this joint it is [Fx, Fy, Fz, Mx, My, Mz]. Without torque sensor, it is [0,0,0,0,0,0]. This is is NOT the motor torque/force, but the spatial reaction force vector at joint.

joint_motor_torque: f64

This is the motor torque applied during the last step_simulation(). Note that this only applies in velocity and position control. If you use torque control then the applied joint motor torque is exactly what you provide, so there is no need to report it separately.

Trait Implementations

impl Clone for JointState[src]

impl Copy for JointState[src]

impl Debug for JointState[src]

impl Default for JointState[src]

impl From<b3JointSensorState> for JointState[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> 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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