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: boolWhen 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: boolWhen 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: usizeCap 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: boolWhen 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: boolWhen 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: usizeMinimum retained previous-inlier landmarks required to attempt the temporal track stage. Below this, skip straight to the normal path.
temporal_landmark_tracking_history_frames: usizeNumber 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: usizeInlier 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
impl Clone for TrackingConfig
Source§fn clone(&self) -> TrackingConfig
fn clone(&self) -> TrackingConfig
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 TrackingConfig
impl Debug for TrackingConfig
Source§impl Default for TrackingConfig
impl Default for TrackingConfig
Source§fn default() -> TrackingConfig
fn default() -> TrackingConfig
Source§impl PartialEq for TrackingConfig
impl PartialEq for TrackingConfig
impl StructuralPartialEq for TrackingConfig
Auto Trait Implementations§
impl Forget for TrackingConfig
impl Freeze for TrackingConfig
impl Move for TrackingConfig
impl RefUnwindSafe for TrackingConfig
impl Send for TrackingConfig
impl Sync for TrackingConfig
impl Unpin for TrackingConfig
impl UnsafeUnpin for TrackingConfig
impl UnwindSafe for TrackingConfig
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.