pub struct OdometryEstimate {
pub decision: OdometryDecision,
pub delta: (f64, f64),
pub confidence: f64,
pub ambiguous: bool,
pub weak_step: bool,
pub step_error: f64,
pub content_change: Option<ContentChange>,
pub rescue: Option<Rescue>,
}Fields§
§decision: OdometryDecision§delta: (f64, f64)§confidence: f64On Tracked: the fully computed step confidence (best.m.confidence.max(0.05) * exp(-stepError / 20) * ambiguous/weakStep factors) — see the comment at this field’s one call site below for why the exp
factor is finished here rather than by the TS caller. On Static/Lost: the input confidence, unchanged.
ambiguous: bool§weak_step: bool§step_error: f64f64::INFINITY on the Static/Lost branches, exactly like the TS original’s stepError.
content_change: Option<ContentChange>§rescue: Option<Rescue>On Static/Lost: the rescued step, when there is one.
Auto Trait Implementations§
impl Freeze for OdometryEstimate
impl RefUnwindSafe for OdometryEstimate
impl Send for OdometryEstimate
impl Sync for OdometryEstimate
impl Unpin for OdometryEstimate
impl UnsafeUnpin for OdometryEstimate
impl UnwindSafe for OdometryEstimate
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more