Skip to main content

TrackingConfig

Struct TrackingConfig 

Source
pub struct TrackingConfig {
Show 18 fields pub min_successive_failures_to_lost: usize, pub last_pose_candidate_radius: Option<f64>, pub max_pose_prior_translation_error: Option<f64>, pub pose_prior_visual_override: Option<PosePriorVisualOverrideConfig>, pub min_inliers: usize, pub min_inlier_ratio: f64, pub max_mean_reprojection_error: Option<f64>, pub covisibility_local_map: Option<CovisibilityLocalMapConfig>, pub pnp_pose_prior_warm_start: bool, pub pose_jump_gap_scaling: bool, pub pose_jump_gap_scaling_max_multiplier: usize, pub projection_guided_tracking: Option<ProjectionGuidedTrackingConfig>, pub accept_motion_prior_on_failure: bool, pub max_consecutive_motion_prior_coasts: Option<usize>, pub temporal_landmark_tracking: bool, pub temporal_landmark_tracking_min_landmarks: usize, pub temporal_landmark_tracking_history_frames: usize, pub temporal_landmark_tracking_min_inliers: usize,
}

Fields§

§min_successive_failures_to_lost: usize§last_pose_candidate_radius: Option<f64>§max_pose_prior_translation_error: Option<f64>§pose_prior_visual_override: Option<PosePriorVisualOverrideConfig>

Permit a bounded widening of the pose-prior translation gate when the independently estimated visual pose has unusually strong geometric support. This addresses motion-prior disagreement during fast motion without disabling the teleport guard for weak/repetitive matches.

§min_inliers: usize§min_inlier_ratio: f64§max_mean_reprojection_error: Option<f64>§covisibility_local_map: Option<CovisibilityLocalMapConfig>

Restrict descriptor-matching candidates to a local map built from the covisibility graph around the last successfully tracked keyframe. When the local map is too small (e.g. early-startup, lost-state, or below min_local_map_landmarks), the tracker falls back to the full map.

§pnp_pose_prior_warm_start: bool

When true, hand the motion-model pose prior to the PnP RANSAC as a warm-start hypothesis (ORB-SLAM3-style motion-only BA seed). Random samples must beat the prior’s inlier count to win, so a well-aligned prior short-circuits RANSAC on hard scenes while a misaligned prior gracefully degrades to the standard random search. Off by default to preserve the existing behaviour where the prior is consumed only as a candidate-radius filter.

§pose_jump_gap_scaling: bool

When true, scale max_pose_prior_translation_error by the number of frames elapsed since the last successful track (capped at pose_jump_gap_scaling_max_multiplier, floored at 1). A pose prior that has gone stale because tracking failed for several frames in a row is compared against a proportionally widened gate instead of the fixed radius, so a good PnP solution arriving after a gap is not rejected purely because the (frozen) prior is far from it. When the immediately preceding frame tracked successfully the gap is 1 and the gate is unchanged from today’s fixed-radius behaviour. Off by default.

§pose_jump_gap_scaling_max_multiplier: usize

Cap on the gap-scaling multiplier applied when pose_jump_gap_scaling is enabled. Prevents an extended tracking outage from inflating the gate to an unbounded radius.

§projection_guided_tracking: Option<ProjectionGuidedTrackingConfig>

ORB-SLAM3-style projection-guided tracking: when a pose prior is available, restrict descriptor matching to a per-landmark projection window instead of an appearance-global search, with a widen-retry ladder and post-hoc local-map refinement. None (the default) preserves today’s appearance-global-then-warm-start behaviour bit-for-bit; enabling the feature can only ADD tracking chances, because the widen-retry ladder falls back to the existing appearance-global path if every projection attempt fails.

§accept_motion_prior_on_failure: bool

When true and the motion model exposes a predictive prior (allows_pnp_pose_prior_warm_start), accept that prior as the frame pose whenever visual localization / quality gates fail. Keeps the IMU strapdown window draining and the trajectory continuous through brief visual cliffs without writing a bad PnP teleport; keyframe policies should still reject 0-inlier coasts. Off by default.

§max_consecutive_motion_prior_coasts: Option<usize>

Cap on consecutive motion-prior coasts. After this many coasts without a visual success, fall back to reporting failure so the adaptive model can switch / reloc can fire. None = unlimited (gate67: 626 coasts collapsed Sim(3) scale to 0.02 — do not use).

§temporal_landmark_tracking: bool

When true, try matching the current frame against only the landmark ids that were inliers on the previous successful track before falling back to the full appearance-global / projection path. This is the image-free temporal track analogue of Basalt KLT: keep associating the same 3D points frame-to-frame via descriptors. Off by default.

§temporal_landmark_tracking_min_landmarks: usize

Minimum retained previous-inlier landmarks required to attempt the temporal track stage. Below this, skip straight to the normal path.

§temporal_landmark_tracking_history_frames: usize

Number of recent successful inlier sets whose landmark ids are unioned for the temporal store. 1 is last-frame-only (gate70); larger values keep short-term tracks alive across brief dropouts.

§temporal_landmark_tracking_min_inliers: usize

Inlier floor applied only when the temporal landmark stage produced the candidate pose. Can be lower than Self::min_inliers so a brief dropout does not discard a still-associated track, without softening the full-map appearance path (gate72 softened global min_inliers to 20 and path-dependently hurt coverage).

Trait Implementations§

Source§

impl Clone for TrackingConfig

Source§

fn clone(&self) -> TrackingConfig

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 TrackingConfig

Source§

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

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

impl Default for TrackingConfig

Source§

fn default() -> TrackingConfig

Returns the “default value” for a type. Read more
Source§

impl PartialEq for TrackingConfig

Source§

fn eq(&self, other: &TrackingConfig) -> 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 TrackingConfig

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