Struct Motor

Source
pub struct Motor(/* private fields */);

Implementations§

Source§

impl Motor

Source

pub fn set_position(&self, position: f64)

Source

pub fn set_acceleration(&self, acceleration: f64)

Source

pub fn set_velocity(&self, velocity: f64)

Source

pub fn set_force(&self, force: f64)

Source

pub fn set_torque(&self, torque: f64)

Source

pub fn set_available_force(&self, available_force: f64)

Source

pub fn set_available_torque(&self, available_torque: f64)

Source

pub fn set_control_pid(&self, p: f64, i: f64, d: f64)

Source

pub fn enable_force_feedback(&self, sampling_period: i32)

Source

pub fn disable_force_feedback(&self)

Source

pub fn get_force_feedback_sampling_period(&self) -> i32

Source

pub fn get_force_feedback(&self) -> f64

Source

pub fn enable_torque_feedback(&self, sampling_period: i32)

Source

pub fn disable_torque_feedback(&self)

Source

pub fn get_torque_feedback_sampling_period(&self) -> i32

Source

pub fn get_torque_feedback(&self) -> f64

Source

pub fn get_type(&self) -> JointType

Source

pub fn get_target_position(&self) -> f64

Source

pub fn get_min_position(&self) -> f64

Source

pub fn get_max_position(&self) -> f64

Source

pub fn get_velocity(&self) -> f64

Source

pub fn get_max_velocity(&self) -> f64

Source

pub fn get_acceleration(&self) -> f64

Source

pub fn get_available_force(&self) -> f64

Source

pub fn get_max_force(&self) -> f64

Source

pub fn get_available_torque(&self) -> f64

Source

pub fn get_max_torque(&self) -> f64

Source

pub fn get_multiplier(&self) -> f64

Source

pub fn get_brake(&self) -> Brake

Source

pub fn get_position_sensor(&self) -> PositionSensor

Auto Trait Implementations§

§

impl Freeze for Motor

§

impl RefUnwindSafe for Motor

§

impl Send for Motor

§

impl Sync for Motor

§

impl Unpin for Motor

§

impl UnwindSafe for Motor

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.