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.
InsufficientTranslation
Accumulated camera-centre translation is below the trigger threshold.
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.
GyroBiasOutOfRange
A recovered gyro bias exceeded the configured physical sanity bound.
AccelBiasOutOfRange
A recovered accelerometer bias exceeded the configured physical sanity bound.
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
ImuRawResidualOutOfRange
The fixed-pose inertial initializer is too far from the IMU in physical units to seed the subsequent joint visual-inertial solve.
Fields
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
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.
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
impl Clone for MotionBasedViRejectionReason
Source§fn clone(&self) -> MotionBasedViRejectionReason
fn clone(&self) -> MotionBasedViRejectionReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MotionBasedViRejectionReason
impl Debug for MotionBasedViRejectionReason
impl StructuralPartialEq for MotionBasedViRejectionReason
Auto Trait Implementations§
impl Forget for MotionBasedViRejectionReason
impl Freeze for MotionBasedViRejectionReason
impl Move for MotionBasedViRejectionReason
impl RefUnwindSafe for MotionBasedViRejectionReason
impl Send for MotionBasedViRejectionReason
impl Sync for MotionBasedViRejectionReason
impl Unpin for MotionBasedViRejectionReason
impl UnsafeUnpin for MotionBasedViRejectionReason
impl UnwindSafe for MotionBasedViRejectionReason
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,
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> ⓘ
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> ⓘ
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>
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.