#[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 From<PamojaTwist> for Twist
impl From<PamojaTwist> for Twist
Source§fn from(value: PamojaTwist) -> Self
fn from(value: PamojaTwist) -> Self
Converts to this type from the input type.
Source§impl From<Twist> for PamojaTwist
impl From<Twist> for PamojaTwist
Source§impl PartialEq for PamojaTwist
impl PartialEq for PamojaTwist
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