pub struct VisualInertialInitializerConfig {
pub gravity_world: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>,
pub min_stationary_window_seconds: f64,
pub max_gyro_std: f64,
pub max_mean_gyro_magnitude: f64,
pub max_accel_std: f64,
pub max_accel_magnitude_error: f64,
pub min_samples: usize,
pub detector_window_seconds: f64,
}Expand description
Configuration knobs for VisualInertialInitializer. The defaults
match the EuRoC stationary holding period (gravity z-up, ~0.5 s of
quiet samples, conservative noise thresholds).
Fields§
§gravity_world: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>Gravity in the world frame. EuRoC convention is z-up,
(0, 0, -9.81); KITTI convention is y-down, (0, 9.81, 0).
min_stationary_window_seconds: f64Minimum duration (seconds) of the stationary window. Below this threshold the initialiser refuses to commit even when the noise statistics look clean — too short a window leaves the gyro / accel means dominated by per-sample noise.
max_gyro_std: f64Maximum acceptable per-axis standard deviation of the gyro signal in the window (rad / s). Above this threshold the window is rejected as non-stationary.
max_mean_gyro_magnitude: f64Maximum norm of the time-weighted mean angular rate (rad/s). A low standard deviation alone cannot distinguish a stationary sensor from one rotating at nearly constant speed; without this gate that motion is silently absorbed as gyro bias.
max_accel_std: f64Maximum acceptable per-axis standard deviation of the accel signal in the window (m / s²).
max_accel_magnitude_error: f64Maximum acceptable deviation of the mean accel magnitude from
‖gravity_world‖ (m / s²). Helps reject sensor-saturation
windows that look stationary by std-dev alone but report a
drastically wrong magnitude (e.g. mis-scaled raw counts).
min_samples: usizeMinimum number of IMU samples in the window. A duration check alone is too loose under sparse / irregular sample rates.
detector_window_seconds: f64Width of the sliding detector window (seconds). When the
buffer exceeds this duration, only the most recent
detector_window_seconds of samples (the trailing slice) are
considered for every stationary-window predicate and statistic.
f64::INFINITY (the default) keeps the historical “all-buffer”
behaviour, where statistics are evaluated over every buffered
sample — appropriate for the simplest standalone case where a
caller buffers a single clean stationary segment up front. A
finite value is the pipeline-integration setup: it lets the
detector ride out a leading non-stationary segment (e.g. the
pipeline started during motion and the body settled later) by
re-evaluating on only the trailing window, so an early-motion
buffer no longer poisons the detector forever.
Trait Implementations§
Source§impl Clone for VisualInertialInitializerConfig
impl Clone for VisualInertialInitializerConfig
Source§fn clone(&self) -> VisualInertialInitializerConfig
fn clone(&self) -> VisualInertialInitializerConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for VisualInertialInitializerConfig
impl Default for VisualInertialInitializerConfig
Source§fn default() -> VisualInertialInitializerConfig
fn default() -> VisualInertialInitializerConfig
impl StructuralPartialEq for VisualInertialInitializerConfig
Auto Trait Implementations§
impl Forget for VisualInertialInitializerConfig
impl Freeze for VisualInertialInitializerConfig
impl Move for VisualInertialInitializerConfig
impl RefUnwindSafe for VisualInertialInitializerConfig
impl Send for VisualInertialInitializerConfig
impl Sync for VisualInertialInitializerConfig
impl Unpin for VisualInertialInitializerConfig
impl UnsafeUnpin for VisualInertialInitializerConfig
impl UnwindSafe for VisualInertialInitializerConfig
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.