pub struct Odometry {
pub distance_traveled_m: Option<f64>,
pub session_distance_m: Option<f64>,
pub total_rotation_deg: Option<f64>,
pub wheel_odometry: Option<WheelOdometry>,
}Expand description
Odometry data.
Fields§
§distance_traveled_m: Option<f64>Total distance traveled in meters
session_distance_m: Option<f64>Distance traveled in current session
total_rotation_deg: Option<f64>Total rotation accumulated in degrees
wheel_odometry: Option<WheelOdometry>Wheel odometry (if available)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Odometry
impl<'de> Deserialize<'de> for Odometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Odometry
impl RefUnwindSafe for Odometry
impl Send for Odometry
impl Sync for Odometry
impl Unpin for Odometry
impl UnwindSafe for Odometry
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