pub enum ViInitializationEvent {
Succeeded {
result: VisualInertialInitializationResult,
first_keyframe_id: Option<u64>,
discarded_stale_factor_count: usize,
},
StillBuffering {
reason: StationaryRejectionReason,
},
GaveUp {
last_reason: StationaryRejectionReason,
fallback: ViInitFallback,
},
}Expand description
State-transition event exposed on crate::OnlineSlamResult::vi_init.
Some only on the frame where the auto-bootstrap stage actually
transitioned state; None otherwise. The terminal events
(Succeeded / GaveUp) are emitted at most once per sequence.
Variants§
Succeeded
try_initialize succeeded this frame. The pipeline has atomically:
- Reset
imu_state.preintegratorwith the new bias linearisation. - Mirrored
imu_state.config.{bias_gyro, bias_acc}to the new values. - Rewritten the just-registered keyframe’s
Poseifseed_first_keyframe_rotationwas true (rotation only; camera centre preserved). - Seeded
local_vi_ba_state.keyframe_state[first_keyframe_id]withvelocity_world = 0, bias = (b_g, b_a).
Fields
StillBuffering
try_initialize was attempted this frame and rejected; the
buffer is preserved and the next attempt will run on the next
keyframe.
Fields
§
reason: StationaryRejectionReasonGaveUp
max_wait_duration_seconds or max_buffered_samples was reached
without success. The pipeline applied
OnlineSlamViInitConfig::on_persistent_rejection.
Trait Implementations§
Source§impl Clone for ViInitializationEvent
impl Clone for ViInitializationEvent
Source§fn clone(&self) -> ViInitializationEvent
fn clone(&self) -> ViInitializationEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ViInitializationEvent
impl Debug for ViInitializationEvent
Source§impl PartialEq for ViInitializationEvent
impl PartialEq for ViInitializationEvent
impl StructuralPartialEq for ViInitializationEvent
Auto Trait Implementations§
impl Forget for ViInitializationEvent
impl Freeze for ViInitializationEvent
impl Move for ViInitializationEvent
impl RefUnwindSafe for ViInitializationEvent
impl Send for ViInitializationEvent
impl Sync for ViInitializationEvent
impl Unpin for ViInitializationEvent
impl UnsafeUnpin for ViInitializationEvent
impl UnwindSafe for ViInitializationEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.