Struct rp6::robot_base::RobotBase

source ·
pub struct RobotBase;
Expand description

Struct managing all actions regarding the robot’s base.

Implementations§

source§

impl RobotBase

source

pub fn set_acs_power_off()

Disable the ACS of the robot.

source

pub fn set_acs_power_low()

Set the ACS of the robot to low power.

source

pub fn set_acs_power_medium()

Set the ACS of the robot to medium power.

source

pub fn set_acs_power_high()

Set the ACS of the robot to high power.

source§

impl RobotBase

source

pub fn init()

source

pub fn init_ports()

Initializes the IO ports of the robot.

source

pub fn power_on()

Enable power on the RobotBase.

source

pub fn power_off()

Disable power on the RobotBase.

source

pub fn enable_reset_button()

Enable the hardware reset button on the robot.

source

pub fn disable_reset_button()

Disable the hardware reset button on the robot.

source

pub fn disable_ircomm()

Disable the IRCOMM of the robot.

source

pub fn set_leds(value: u8)

Set the LEDs on the RobotBase to the least significant 6 bits of the provided value

Auto Trait Implementations§

§

impl RefUnwindSafe for RobotBase

§

impl Send for RobotBase

§

impl Sync for RobotBase

§

impl Unpin for RobotBase

§

impl UnwindSafe for RobotBase

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

const: unstable§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

const: unstable§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

const: unstable§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

const: unstable§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable§

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

Performs the conversion.
§

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

§

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

The type returned in the event of a conversion error.
const: unstable§

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

Performs the conversion.