pub struct ParallelWheelTracking<T: RotarySensor, U: RotarySensor> { /* private fields */ }Implementations§
Source§impl<T: RotarySensor, U: RotarySensor> ParallelWheelTracking<T, U>
impl<T: RotarySensor, U: RotarySensor> ParallelWheelTracking<T, U>
pub fn new( origin: Vec2, heading: f64, left_wheel: TrackingWheel<T>, right_wheel: TrackingWheel<U>, gyro: Option<InertialSensor>, ) -> Self
pub fn set_heading(&mut self, heading: f64)
pub fn set_position(&mut self, position: Vec2)
pub fn track_width(&self) -> f64
pub fn position(&self) -> Vec2
pub fn heading(&self) -> f64
pub fn forward_travel(&self) -> f64
Trait Implementations§
Source§impl<T: Debug + RotarySensor, U: Debug + RotarySensor> Debug for ParallelWheelTracking<T, U>
impl<T: Debug + RotarySensor, U: Debug + RotarySensor> Debug for ParallelWheelTracking<T, U>
Source§impl<T: PartialEq + RotarySensor, U: PartialEq + RotarySensor> PartialEq for ParallelWheelTracking<T, U>
impl<T: PartialEq + RotarySensor, U: PartialEq + RotarySensor> PartialEq for ParallelWheelTracking<T, U>
Source§impl<T: RotarySensor, U: RotarySensor> Tracking for ParallelWheelTracking<T, U>
impl<T: RotarySensor, U: RotarySensor> Tracking for ParallelWheelTracking<T, U>
Source§fn update(&mut self) -> TrackingContext
fn update(&mut self) -> TrackingContext
Updates the tracking system and returns the latest state estimate. Read more
impl<T: RotarySensor, U: RotarySensor> StructuralPartialEq for ParallelWheelTracking<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for ParallelWheelTracking<T, U>
impl<T, U> RefUnwindSafe for ParallelWheelTracking<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for ParallelWheelTracking<T, U>
impl<T, U> Sync for ParallelWheelTracking<T, U>
impl<T, U> Unpin for ParallelWheelTracking<T, U>
impl<T, U> UnwindSafe for ParallelWheelTracking<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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