#[repr(C)]pub struct PamojaTwist {
pub vx: f32,
pub vy: f32,
pub omega: f32,
}Expand description
How fast a robot is asked to move.
Fields§
§vx: f32Forward speed along the x axis.
vy: f32Leftward speed along the y axis; zero for drives that cannot strafe.
omega: f32Yaw rate about the z axis, positive counter-clockwise.
Trait Implementations§
Source§impl Clone for PamojaTwist
impl Clone for PamojaTwist
Source§fn clone(&self) -> PamojaTwist
fn clone(&self) -> PamojaTwist
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 PamojaTwist
Source§impl Debug for PamojaTwist
impl Debug for PamojaTwist
Source§impl PartialEq for PamojaTwist
impl PartialEq for PamojaTwist
Source§fn eq(&self, other: &PamojaTwist) -> bool
fn eq(&self, other: &PamojaTwist) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaTwist
Auto Trait Implementations§
impl Freeze for PamojaTwist
impl RefUnwindSafe for PamojaTwist
impl Send for PamojaTwist
impl Sync for PamojaTwist
impl Unpin for PamojaTwist
impl UnsafeUnpin for PamojaTwist
impl UnwindSafe for PamojaTwist
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