Skip to main content

OnlineSlamLoopClosureRefinementStats

Struct OnlineSlamLoopClosureRefinementStats 

Source
pub struct OnlineSlamLoopClosureRefinementStats {
Show 67 fields pub verified_candidate_count: usize, pub accepted_count: usize, pub pose_graph_result: Option<PoseGraphSe3Result>, pub gnc_result: Option<PoseGraphGncResult>, pub sim3_pose_graph_result: Option<Sim3PoseGraphResult>, pub sim3_scale_spread: Option<(f64, f64)>, pub loop_closures_rejected: usize, pub loop_closures_pcm_rejected: usize, pub loop_closures_covariance_rejected: usize, pub loop_closures_pose_information_rejected: usize, pub loop_closures_with_pose_information: usize, pub loop_pose_information_diagnostics: Vec<LoopPoseInformationDiagnostic>, pub loop_pose_information_failures: LoopPoseInformationFailureCounts, pub sequential_edges_with_pose_information: usize, pub sequential_pose_information_fallbacks: usize, pub sequential_pose_information_diagnostics: Vec<LoopPoseInformationDiagnostic>, pub sequential_pose_information_failures: LoopPoseInformationFailureCounts, pub loop_closures_pcm_promoted: usize, pub loop_closures_pcm_evicted: usize, pub keyframes_updated: usize, pub poses_marginalized: Vec<u64>, pub appearance_candidate_count: usize, pub appearance_ranked_candidate_count: usize, pub appearance_connected_region_rejected_count: usize, pub appearance_pnp_verified_count: usize, pub appearance_projection_rejected_count: usize, pub appearance_covisibility_rejected_count: usize, pub appearance_pending_projection_attempted_count: usize, pub appearance_pending_projection_verified_count: usize, pub appearance_pending_projection_correspondence_count: usize, pub appearance_pending_projection_inlier_count: usize, pub appearance_pending_projection_search_radius_px: Option<f64>, pub appearance_candidate_diagnostics: Vec<AppearanceLoopCandidateDiagnostic>, pub appearance_region_confirmation_waiting: bool, pub appearance_region_confirmed_count: usize, pub appearance_scale_estimation_failed_count: usize, pub appearance_scale_insufficient_points_count: usize, pub appearance_scale_insufficient_matches_count: usize, pub appearance_scale_no_consensus_count: usize, pub appearance_near_unit_scale_count: usize, pub appearance_accepted_count: usize, pub loop_fusion_pairs_considered: usize, pub loop_fusion_observations_inserted: usize, pub loop_fusion_observations_reassigned: usize, pub loop_fusion_pairs_robust_rejected: usize, pub loop_fusion_pairs_reprojection_rejected: usize, pub loop_fusion_pairs_skipped: usize, pub loop_welding_ba_attempted: bool, pub loop_welding_ba_succeeded: bool, pub loop_welding_ba_mean_reprojection_before_px: Option<f64>, pub loop_welding_ba_mean_reprojection_after_px: Option<f64>, pub loop_welding_initial_translation_meters: Option<f64>, pub loop_welding_initial_rotation_radians: Option<f64>, pub loop_welding_ba_updated_keyframes: usize, pub loop_welding_ba_updated_landmarks: usize, pub loop_welding_ba_rejected_or_failed: bool, pub loop_welding_post_pgo_attempted: bool, pub loop_welding_post_pgo_succeeded: bool, pub loop_welding_post_pgo_mean_reprojection_px: Option<f64>, pub loop_welding_post_ba_error: Option<CovisibilityLocalBaError>, pub loop_welding_post_ba_behind_camera_ratio: Option<f64>, pub admitted_constraints: Vec<OnlineSlamAdmittedLoopConstraint>, pub rejected_constraints: Vec<OnlineSlamRejectedLoopConstraint>, pub landmarks_moved: usize, pub max_landmark_displacement_meters: Option<f64>, pub mean_landmark_displacement_meters: Option<f64>, pub tracker_correction_applied: bool,
}
Expand description

Per-frame outcome of the online loop-closure + pose-graph refinement stage. Exposed on OnlineSlamResult::pose_graph_refinement and used by the demos to audit verifier acceptance + PGO trigger cadence.

Fields§

§verified_candidate_count: usize

Number of LoopClosureCandidates fed through the verifier this process_frame call.

§accepted_count: usize

Number of candidates the verifier accepted this frame. Note that only candidates whose query_frame_id matches the keyframe registered this frame are eligible — a verified candidate for a frame that did not become a keyframe is silently dropped because the running graph has no node for it.

§pose_graph_result: Option<PoseGraphSe3Result>

Some when PoseGraph::optimize_se3_iterative fired on this frame; None when no new constraint arrived, the new-constraint trigger threshold was not yet reached, or the GNC robust solver ran instead (see gnc_result).

§gnc_result: Option<PoseGraphGncResult>

Some when the GNC robust solver (PoseGraph::optimize_se3_gnc) fired this frame instead of the plain iterative one — i.e. when OnlineSlamLoopClosureRefinementConfig::gnc is set and the trigger threshold was met. Its edge_weights classify every graph edge as inlier/outlier; pose_graph_result is None on this path.

§sim3_pose_graph_result: Option<Sim3PoseGraphResult>

Some when Sim3PoseGraph::optimize fired on this frame — i.e. OnlineSlamLoopClosureRefinementConfig::solver is LoopRefinementSolver::Sim3 and the trigger threshold was met. Mutually exclusive with pose_graph_result / gnc_result (always None on the Se3 path).

§sim3_scale_spread: Option<(f64, f64)>

(min, max) per-node scale across the just-solved Sim3PoseGraph when sim3_pose_graph_result is Some — observability for how much scale drift the solve absorbed (both 1.0 when the graph is scale-consistent; a wide spread means the solve is actively redistributing accumulated monocular-style scale error). None on the Se3 path or when no Sim3 solve fired this frame.

§loop_closures_rejected: usize

Number of loop-closure edges the GNC solver drove below the inlier threshold (weight < 0.5) on the solve fired this frame — the verified-but-wrong closures caught and rejected at the back-end. Always 0 on the plain iterative path (gnc unset).

§loop_closures_pcm_rejected: usize

Number of verified loop closures the PCM front-end screen rejected this frame before they entered the graph (geometrically inconsistent with the established set). Always 0 when pcm is unset.

§loop_closures_covariance_rejected: usize

Number of verified loop closures the covariance gate rejected this frame before they entered the graph (innovation statistically implausible under the relative-pose covariance). Always 0 when covariance_gate is unset.

§loop_closures_pose_information_rejected: usize

Number of verified PnP loops rejected because their covariance-aware 6×6 information was unavailable, rank-deficient, or ill-conditioned.

§loop_closures_with_pose_information: usize

Number of admitted SE(3) loop edges carrying covariance-aware 6×6 information rather than an isotropic scalar.

§loop_pose_information_diagnostics: Vec<LoopPoseInformationDiagnostic>

Per-loop numerical evidence for covariance-aware matrices that passed the rank and condition gates, before PCM/covariance admission screens.

§loop_pose_information_failures: LoopPoseInformationFailureCounts

Typed reasons for loop information failures, preserving whether the problem was configuration, missing state, correspondence support, or pose geometry.

§sequential_edges_with_pose_information: usize

Sequential PnP edges carrying the same covariance-aware information convention as loop edges during this frame.

§sequential_pose_information_fallbacks: usize

Sequential edges that fell back to identity information because too few usable landmark covariances survived. The chain is never dropped.

§sequential_pose_information_diagnostics: Vec<LoopPoseInformationDiagnostic>§sequential_pose_information_failures: LoopPoseInformationFailureCounts

Typed reason for each sequential edge that used identity information.

§loop_closures_pcm_promoted: usize

Number of deferred loop closures the batch PCM re-screen promoted into the graph this frame (they joined the maximum-consistent consensus the incremental, order-dependent screen had wrongly excluded). Always 0 unless pcm_batch_rescreen is set.

§loop_closures_pcm_evicted: usize

Number of admitted loop closures the batch PCM re-screen evicted from the graph this frame (inconsistent with the larger consensus — e.g. a perceptual-aliasing closure admitted first against the empty set). Always 0 unless pcm_batch_rescreen is set.

§keyframes_updated: usize

Number of map.keyframes[id].frame.pose slots overwritten with the optimised pose after PGO. Zero unless a solve fired this frame (pose_graph_result.is_some() or gnc_result.is_some()).

§poses_marginalized: Vec<u64>

Pose ids the fixed-lag marginalization_window marginalized out of the graph this frame (oldest first), folded into a dense Gaussian prior. Empty unless marginalization_window is set and the graph exceeded it.

§appearance_candidate_count: usize

Number of appearance-ranked candidate keyframes evaluated this frame (post ranking / gap filter, pre PnP verification). Always 0 when OnlineSlamLoopClosureRefinementConfig::appearance_candidates is unset.

§appearance_ranked_candidate_count: usize

Number of keyframes surviving appearance ranking and the frame-gap filter before descriptor matching / PnP verification.

§appearance_connected_region_rejected_count: usize

Appearance regions rejected because they intersect the current keyframe’s connected/covisible local region and are not a loop.

§appearance_pnp_verified_count: usize

Candidates passing the primary current-vs-candidate-region PnP test.

§appearance_projection_rejected_count: usize

Primary-PnP successes rejected by the optional projection-rematch and refined-PnP gate.

§appearance_covisibility_rejected_count: usize

Primary-PnP successes rejected by current-side covisibility checking.

§appearance_pending_projection_attempted_count: usize

Pending-region projection verification attempts on later keyframes.

§appearance_pending_projection_verified_count: usize

Pending-region projection attempts that passed refined PnP.

§appearance_pending_projection_correspondence_count: usize

Projection correspondences produced for the pending-region attempt on this keyframe (zero when not attempted or correspondence build failed).

§appearance_pending_projection_inlier_count: usize

Refined-PnP inliers from the pending-region attempt on this keyframe.

§appearance_pending_projection_search_radius_px: Option<f64>

Radius selected by the adaptive pending-region projection search.

§appearance_candidate_diagnostics: Vec<AppearanceLoopCandidateDiagnostic>

Per-primary-PnP candidate evidence for reproducible gate analysis.

§appearance_region_confirmation_waiting: bool

A geometrically verified region is being carried into later keyframes.

§appearance_region_confirmed_count: usize

A pending region reached its configured cross-keyframe confirmation count.

§appearance_scale_estimation_failed_count: usize

Appearance candidates whose PnP verification succeeded but whose matched 3D regions could not produce a robust Sim3 scale observation.

§appearance_scale_insufficient_points_count: usize§appearance_scale_insufficient_matches_count: usize§appearance_scale_no_consensus_count: usize§appearance_near_unit_scale_count: usize

Robust scale observations rejected because they were within the Sim3 arm’s five-percent no-op band around unit scale.

§appearance_accepted_count: usize

Number of appearance candidates admitted into the graph this frame (subset of accepted_count). Always 0 when appearance_candidates is unset.

§loop_fusion_pairs_considered: usize

Accepted appearance-PnP inlier pairs considered by the optional cross-loop observation fusion stage.

§loop_fusion_observations_inserted: usize

New query-keyframe/old-landmark observation relations inserted.

§loop_fusion_observations_reassigned: usize

Insertions that replaced a query keypoint’s relation to a different local duplicate landmark.

§loop_fusion_pairs_robust_rejected: usize

Pairs withheld because final GNC classified their loop edge below the inlier threshold.

§loop_fusion_pairs_reprojection_rejected: usize

Pairs withheld because the corrected query pose failed the pixel-space reprojection gate.

§loop_fusion_pairs_skipped: usize

Pairs skipped because the landmark/keypoint was missing, invalid, or the older landmark already had another observation in the query frame.

§loop_welding_ba_attempted: bool§loop_welding_ba_succeeded: bool§loop_welding_ba_mean_reprojection_before_px: Option<f64>§loop_welding_ba_mean_reprojection_after_px: Option<f64>§loop_welding_initial_translation_meters: Option<f64>§loop_welding_initial_rotation_radians: Option<f64>§loop_welding_ba_updated_keyframes: usize§loop_welding_ba_updated_landmarks: usize§loop_welding_ba_rejected_or_failed: bool§loop_welding_post_pgo_attempted: bool§loop_welding_post_pgo_succeeded: bool§loop_welding_post_pgo_mean_reprojection_px: Option<f64>§loop_welding_post_ba_error: Option<CovisibilityLocalBaError>§loop_welding_post_ba_behind_camera_ratio: Option<f64>§admitted_constraints: Vec<OnlineSlamAdmittedLoopConstraint>

Loop-closure constraints admitted into the graph this frame — both the shared-landmark and (when configured) appearance streams — with enough detail for external diagnostics (e.g. examples/euroc_online_slam_vi_image_demo’s loop_constraints.csv). Does NOT include constraints admitted via the pcm_batch_rescreen promotion path.

§rejected_constraints: Vec<OnlineSlamRejectedLoopConstraint>

Verified loop measurements rejected by PCM or the covariance gate this frame. Unlike the aggregate counters, this retains the pose needed for post-hoc ground-truth correctness and over-rejection analysis.

§landmarks_moved: usize

Number of landmarks moved by OnlineSlamLoopClosureRefinementConfig::propagate_corrections’s landmark-propagation pass this frame. Always 0 when propagate_corrections is false, no solve fired this frame, or the solve updated no keyframe with a previously-known pose.

§max_landmark_displacement_meters: Option<f64>

Maximum per-landmark displacement (metres) applied by the propagation pass this frame. None when landmarks_moved == 0.

§mean_landmark_displacement_meters: Option<f64>

Mean per-landmark displacement (metres) applied by the propagation pass this frame. None when landmarks_moved == 0.

§tracker_correction_applied: bool

true when the tracker’s continuation state (last_successful_pose plus motion-model state) was corrected this frame via Tracker::apply_pose_correction with the most-recently solved keyframe’s correction. Always false when propagate_corrections is false or no solve fired this frame.

Trait Implementations§

Source§

impl Clone for OnlineSlamLoopClosureRefinementStats

Source§

fn clone(&self) -> OnlineSlamLoopClosureRefinementStats

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 OnlineSlamLoopClosureRefinementStats

Source§

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

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

impl Default for OnlineSlamLoopClosureRefinementStats

Source§

fn default() -> OnlineSlamLoopClosureRefinementStats

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

impl PartialEq for OnlineSlamLoopClosureRefinementStats

Source§

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

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