pub struct WheeledTracking { /* private fields */ }Expand description
Tracking system that uses wheels to track position and orientation.
Implementations§
Source§impl WheeledTracking
impl WheeledTracking
Sourcepub fn new<T: RotarySensor + 'static, U: RotarySensor + 'static, const NUM_FORWARD: usize, const NUM_SIDEWAYS: usize>(
origin: Vec2<f64>,
heading: Angle,
forward_wheels: [TrackingWheel<T>; NUM_FORWARD],
sideways_wheels: [TrackingWheel<U>; NUM_SIDEWAYS],
imu: Option<InertialSensor>,
) -> Self
pub fn new<T: RotarySensor + 'static, U: RotarySensor + 'static, const NUM_FORWARD: usize, const NUM_SIDEWAYS: usize>( origin: Vec2<f64>, heading: Angle, forward_wheels: [TrackingWheel<T>; NUM_FORWARD], sideways_wheels: [TrackingWheel<U>; NUM_SIDEWAYS], imu: Option<InertialSensor>, ) -> Self
Creates a new wheeled tracking system.
Sourcepub fn forward_only<T: RotarySensor + 'static, const NUM_FORWARD: usize>(
origin: Vec2<f64>,
heading: Angle,
forward_wheels: [TrackingWheel<T>; NUM_FORWARD],
imu: Option<InertialSensor>,
) -> Self
pub fn forward_only<T: RotarySensor + 'static, const NUM_FORWARD: usize>( origin: Vec2<f64>, heading: Angle, forward_wheels: [TrackingWheel<T>; NUM_FORWARD], imu: Option<InertialSensor>, ) -> Self
Creates a new wheeled tracking system with no sideways tracking wheels.
Sourcepub fn set_heading(&mut self, heading: Angle)
pub fn set_heading(&mut self, heading: Angle)
Offsets the currently tracked heading to a given Angle.
Sourcepub fn set_position(&mut self, position: Vec2<f64>)
pub fn set_position(&mut self, position: Vec2<f64>)
Sets the currently tracked position to a new point.
Trait Implementations§
Source§impl Debug for WheeledTracking
impl Debug for WheeledTracking
Source§impl TracksForwardTravel for WheeledTracking
impl TracksForwardTravel for WheeledTracking
Source§fn forward_travel(&self) -> f64
fn forward_travel(&self) -> f64
Returns the signed forward wheel travel of the robot in wheel units. Read more
Source§impl TracksHeading for WheeledTracking
impl TracksHeading for WheeledTracking
Source§impl TracksPosition for WheeledTracking
impl TracksPosition for WheeledTracking
Source§impl TracksVelocity for WheeledTracking
impl TracksVelocity for WheeledTracking
Source§fn angular_velocity(&self) -> f64
fn angular_velocity(&self) -> f64
Returns the robot’s estimated angular velocity in radians per second.
Source§fn linear_velocity(&self) -> f64
fn linear_velocity(&self) -> f64
Returns the robot’s estimated linear velocity in wheel units per second.
Auto Trait Implementations§
impl Freeze for WheeledTracking
impl !RefUnwindSafe for WheeledTracking
impl !Send for WheeledTracking
impl !Sync for WheeledTracking
impl Unpin for WheeledTracking
impl !UnwindSafe for WheeledTracking
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