pub struct WheelSpeeds {
pub front_left: f32,
pub front_right: f32,
pub rear_left: f32,
pub rear_right: f32,
}Expand description
The four wheel speeds of a mecanum or omni base, front and rear, left and right.
Each value is the speed of that wheel’s contact point in the same units as the body velocity, positive when the wheel drives the robot forward.
Fields§
§front_left: f32Front-left wheel speed.
front_right: f32Front-right wheel speed.
rear_left: f32Rear-left wheel speed.
rear_right: f32Rear-right wheel speed.
Trait Implementations§
Source§impl Clone for WheelSpeeds
impl Clone for WheelSpeeds
Source§fn clone(&self) -> WheelSpeeds
fn clone(&self) -> WheelSpeeds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WheelSpeeds
Source§impl Debug for WheelSpeeds
impl Debug for WheelSpeeds
Source§impl PartialEq for WheelSpeeds
impl PartialEq for WheelSpeeds
Source§fn eq(&self, other: &WheelSpeeds) -> bool
fn eq(&self, other: &WheelSpeeds) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WheelSpeeds
Auto Trait Implementations§
impl Freeze for WheelSpeeds
impl RefUnwindSafe for WheelSpeeds
impl Send for WheelSpeeds
impl Sync for WheelSpeeds
impl Unpin for WheelSpeeds
impl UnsafeUnpin for WheelSpeeds
impl UnwindSafe for WheelSpeeds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more