pub struct WheelCalibrationConfig {
pub max_gap_ns: i64,
pub min_turn_deg: f64,
pub min_travel_m: f64,
pub min_pairs: usize,
pub min_fixes: usize,
pub max_fix_residual_m: f64,
pub window_s: f64,
pub segment_s: f64,
pub fix_segment_s: f64,
pub offset_stddev_m: f64,
pub level: bool,
}Fields§
§max_gap_ns: i64A wheel pose pairs with the nearest VIO pose at most this far away.
min_turn_deg: f64The VIO gives the estimate once the wheel odometry has turned this many degrees in total over its pairs (which shows the offset) …
min_travel_m: f64… and travelled this many metres (which shows the scale; turning in place alone cannot tell a larger offset from a larger scale) …
min_pairs: usize… over at least this many pairs.
min_fixes: usizeMap localizations give the level once there are this many, and the
scale (and without a VIO the offset) once they have also travelled
min_travel_m.
max_fix_residual_m: f64A map localization further than this (m) from the fit through the others is left out of it.
window_s: f64Only pairs from the last window_s seconds count (0: all), so that
a long run’s estimate follows the odometry’s slow changes.
segment_s: f64VIO pairs within this many seconds of the first of their stretch share a heading and a position against the VIO (0: all pairs one stretch); the offset and the scale are shared by all. Short enough that the wheel odometry’s heading drift stays small within one.
fix_segment_s: f64The same for map localizations, longer: they are sparser and noisier than the VIO pairs, so a stretch needs more of them.
offset_stddev_m: f64How far (m) the offset may be from the prior’s (or from zero) before the pairs show it: the fit holds the offset there where the turns seen so far do not show it, as map localizations rarely do.
level: boolLevel the body frame against the reference’s gravity (a level floor).
Trait Implementations§
Source§impl Clone for WheelCalibrationConfig
impl Clone for WheelCalibrationConfig
Source§impl Debug for WheelCalibrationConfig
impl Debug for WheelCalibrationConfig
Source§impl Default for WheelCalibrationConfig
impl Default for WheelCalibrationConfig
Source§impl PartialEq for WheelCalibrationConfig
impl PartialEq for WheelCalibrationConfig
impl StructuralPartialEq for WheelCalibrationConfig
Auto Trait Implementations§
impl Forget for WheelCalibrationConfig
impl Freeze for WheelCalibrationConfig
impl Move for WheelCalibrationConfig
impl RefUnwindSafe for WheelCalibrationConfig
impl Send for WheelCalibrationConfig
impl Sync for WheelCalibrationConfig
impl Unpin for WheelCalibrationConfig
impl UnsafeUnpin for WheelCalibrationConfig
impl UnwindSafe for WheelCalibrationConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.