pub struct TrackingContext {
pub position: Vec2,
pub heading: f64,
pub forward_travel: f64,
pub linear_velocity: f64,
pub angular_velocity: f64,
}Expand description
State information about a robot’s position and motion.
Fields§
§position: Vec2The estimated 2D position of the robot in its coordinate frame.
heading: f64The robot’s heading angle in radians.
Positive angles represent counterclockwise rotation from the positive x-axis.
forward_travel: f64The total distance the robot has traveled forward.
This accumulates the robot’s forward motion over time, regardless of turns or direction changes.
linear_velocity: f64The robot’s current forward velocity in distance units per second.
Positive values indicate forward motion, negative values indicate backward motion.
angular_velocity: f64The robot’s current rate of rotation in radians per second.
Positive values typically indicate counterclockwise rotation, negative values indicate clockwise rotation.
Trait Implementations§
Source§impl Clone for TrackingContext
impl Clone for TrackingContext
Source§fn clone(&self) -> TrackingContext
fn clone(&self) -> TrackingContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackingContext
impl Debug for TrackingContext
Source§impl Default for TrackingContext
impl Default for TrackingContext
Source§fn default() -> TrackingContext
fn default() -> TrackingContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for TrackingContext
impl PartialEq for TrackingContext
impl Copy for TrackingContext
impl StructuralPartialEq for TrackingContext
Auto Trait Implementations§
impl Freeze for TrackingContext
impl RefUnwindSafe for TrackingContext
impl Send for TrackingContext
impl Sync for TrackingContext
impl Unpin for TrackingContext
impl UnwindSafe for TrackingContext
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