Skip to main content

MotionBasedViRejectionReason

Enum MotionBasedViRejectionReason 

Source
pub enum MotionBasedViRejectionReason {
Show 14 variants InsufficientKeyframes { have: usize, need: usize, }, InsufficientTranslation { have: f64, need: f64, }, NoUsableImuFactors, MissingKeyframeData, SolverFailed, VelocityOutOfRange { kf_id: u64, magnitude_mps: f64, limit_mps: f64, }, GyroBiasOutOfRange { kf_id: u64, magnitude_rad_s: f64, limit_rad_s: f64, }, AccelBiasOutOfRange { kf_id: u64, magnitude_mps2: f64, limit_mps2: f64, }, ImuNisOutOfRange { normalized_nis_per_dof: f64, rotation_residual_rms_rad: Option<f64>, velocity_residual_rms_mps: Option<f64>, position_residual_rms_meters: Option<f64>, limit: f64, }, ImuRawResidualOutOfRange { rotation_residual_rms_rad: Option<f64>, velocity_residual_rms_mps: Option<f64>, position_residual_rms_meters: Option<f64>, max_rotation_residual_rms_rad: Option<f64>, max_velocity_residual_rms_mps: Option<f64>, max_position_residual_rms_meters: Option<f64>, }, AwaitingBiasReleaseExcitation { have_keyframes: usize, need_keyframes: usize, have_translation_meters: f64, need_translation_meters: f64, }, GravityEstimateDegenerate, GravityEstimateOutOfRange { raw_norm_mps2: f64, expected_mps2: f64, max_deviation_ratio: f64, }, GyroBiasEstimateDegenerate,
}
Expand description

Why a MotionBasedViInitializer::try_initialize call returned without a fresh result.

Variants§

§

InsufficientKeyframes

Fewer than min_keyframes keyframes have been registered.

Fields

§have: usize
§need: usize
§

InsufficientTranslation

Accumulated camera-centre translation is below the trigger threshold.

Fields

§have: f64
§need: f64
§

NoUsableImuFactors

The keyframe set has at least min_keyframes entries and meets the translation gate, but none of the supplied preintegration factors connect any pair of registered keyframes — the IMU stream has not yet emitted factors over this window, or the caller passed an unrelated factor slice.

§

MissingKeyframeData

One or more registered keyframes are missing their pose, or the camera lookup failed.

§

SolverFailed

Inner LM solver failed to converge (singular system, etc.).

§

VelocityOutOfRange

Inner LM solver returned, but at least one per-keyframe ||velocity_world|| exceeded MotionBasedViInitializerConfig::max_velocity_magnitude_mps. The solver’s bias / velocity slots are NOT promoted to self.completed, and its speculative map poses are discarded, so the next trigger re-runs from the same linearisation point. kf_id is the worst-offender keyframe; magnitude_mps is its recovered speed; limit_mps echoes the configured gate.

Fields

§kf_id: u64
§magnitude_mps: f64
§limit_mps: f64
§

GyroBiasOutOfRange

A recovered gyro bias exceeded the configured physical sanity bound.

Fields

§kf_id: u64
§magnitude_rad_s: f64
§limit_rad_s: f64
§

AccelBiasOutOfRange

A recovered accelerometer bias exceeded the configured physical sanity bound.

Fields

§kf_id: u64
§magnitude_mps2: f64
§limit_mps2: f64
§

ImuNisOutOfRange

The covariance-whitened IMU residual is statistically inconsistent with the proposed state, so promotion would hand a bad linearisation point to local VI-BA.

Fields

§normalized_nis_per_dof: f64
§rotation_residual_rms_rad: Option<f64>
§velocity_residual_rms_mps: Option<f64>
§position_residual_rms_meters: Option<f64>
§limit: f64
§

ImuRawResidualOutOfRange

The fixed-pose inertial initializer is too far from the IMU in physical units to seed the subsequent joint visual-inertial solve.

Fields

§rotation_residual_rms_rad: Option<f64>
§velocity_residual_rms_mps: Option<f64>
§position_residual_rms_meters: Option<f64>
§max_rotation_residual_rms_rad: Option<f64>
§max_velocity_residual_rms_mps: Option<f64>
§max_position_residual_rms_meters: Option<f64>
§

AwaitingBiasReleaseExcitation

A BiasReleaseSchedule Stage A (“velocity stage”) solve has already fired, but the schedule’s bias-release gates are not yet met, so there is nothing new to solve — the caller should keep registering keyframes / translation and retry later. have_* report the current accumulated metrics; need_* echo the configured BiasReleaseSchedule thresholds.

Fields

§have_keyframes: usize
§need_keyframes: usize
§have_translation_meters: f64
§need_translation_meters: f64
§

GravityEstimateDegenerate

MotionBasedViInitializerConfig::estimate_gravity is true, but the gravity/velocity alignment degenerated: fewer than 2 usable in-window IMU factors survived the alignment’s own windowing, or the unconstrained linear solve produced a non-finite or near-zero gravity vector. Distinct from Self::NoUsableImuFactors, which covers the (looser) “the solver has nothing to solve at all” case; this variant means the alignment specifically could not condition well enough to propose a gravity estimate at all.

§

GravityEstimateOutOfRange

MotionBasedViInitializerConfig::estimate_gravity recovered a gravity vector whose UNCONSTRAINED magnitude (raw_norm_mps2) sits further from the expected magnitude (expected_mps2, i.e. config.gravity_world.norm()) than max_deviation_ratio allows. This is the observability gate: a well-conditioned window recovers the true magnitude on its own with no norm constraint imposed, so a large deviation means the window’s IMU excitation does not yet make gravity direction reliably observable.

Fields

§raw_norm_mps2: f64
§expected_mps2: f64
§max_deviation_ratio: f64
§

GyroBiasEstimateDegenerate

MotionBasedViInitializerConfig::estimate_gyro_bias is true, but the rotation-only alignment degenerated: fewer than 2 usable in-window IMU factors survived the alignment’s own windowing (a missing keyframe pose counts as unusable too), or the Gauss-Newton normal equations were singular on the very first iteration.

Trait Implementations§

Source§

impl Clone for MotionBasedViRejectionReason

Source§

fn clone(&self) -> MotionBasedViRejectionReason

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MotionBasedViRejectionReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for MotionBasedViRejectionReason

Source§

fn eq(&self, other: &MotionBasedViRejectionReason) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MotionBasedViRejectionReason

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V