pub trait TracksPosition {
// Required method
fn position(&self) -> Vec2<f64>;
}Expand description
A tracking system that localizes a robot’s 2D position.
This trait defines a system for tracking and reporting the position of a mobile robot in a 2D environment. The process of localizing a mobile robot’s position is also commonly known as odometry.
§Coordinate System
Implementors of this trait MUST provide their position estimate in the cartesian coordinate system. Units are expected to be in wheel units — the same units that were used to measure the robot’s wheel diameter.