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: usizeNumber of LoopClosureCandidates fed through the verifier
this process_frame call.
accepted_count: usizeNumber 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: usizeNumber 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: usizeNumber 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: usizeNumber 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: usizeNumber of verified PnP loops rejected because their covariance-aware 6×6 information was unavailable, rank-deficient, or ill-conditioned.
loop_closures_with_pose_information: usizeNumber 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: LoopPoseInformationFailureCountsTyped reasons for loop information failures, preserving whether the problem was configuration, missing state, correspondence support, or pose geometry.
sequential_edges_with_pose_information: usizeSequential PnP edges carrying the same covariance-aware information convention as loop edges during this frame.
sequential_pose_information_fallbacks: usizeSequential 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: LoopPoseInformationFailureCountsTyped reason for each sequential edge that used identity information.
loop_closures_pcm_promoted: usizeNumber 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: usizeNumber 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: usizeNumber 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: usizeNumber 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: usizeNumber of keyframes surviving appearance ranking and the frame-gap filter before descriptor matching / PnP verification.
appearance_connected_region_rejected_count: usizeAppearance regions rejected because they intersect the current keyframe’s connected/covisible local region and are not a loop.
appearance_pnp_verified_count: usizeCandidates passing the primary current-vs-candidate-region PnP test.
appearance_projection_rejected_count: usizePrimary-PnP successes rejected by the optional projection-rematch and refined-PnP gate.
appearance_covisibility_rejected_count: usizePrimary-PnP successes rejected by current-side covisibility checking.
appearance_pending_projection_attempted_count: usizePending-region projection verification attempts on later keyframes.
appearance_pending_projection_verified_count: usizePending-region projection attempts that passed refined PnP.
appearance_pending_projection_correspondence_count: usizeProjection correspondences produced for the pending-region attempt on this keyframe (zero when not attempted or correspondence build failed).
appearance_pending_projection_inlier_count: usizeRefined-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: boolA geometrically verified region is being carried into later keyframes.
appearance_region_confirmed_count: usizeA pending region reached its configured cross-keyframe confirmation count.
appearance_scale_estimation_failed_count: usizeAppearance 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: usizeRobust scale observations rejected because they were within the Sim3 arm’s five-percent no-op band around unit scale.
appearance_accepted_count: usizeNumber of appearance candidates admitted into the graph this frame
(subset of accepted_count). Always 0 when
appearance_candidates is unset.
loop_fusion_pairs_considered: usizeAccepted appearance-PnP inlier pairs considered by the optional cross-loop observation fusion stage.
loop_fusion_observations_inserted: usizeNew query-keyframe/old-landmark observation relations inserted.
loop_fusion_observations_reassigned: usizeInsertions that replaced a query keypoint’s relation to a different local duplicate landmark.
loop_fusion_pairs_robust_rejected: usizePairs withheld because final GNC classified their loop edge below the inlier threshold.
loop_fusion_pairs_reprojection_rejected: usizePairs withheld because the corrected query pose failed the pixel-space reprojection gate.
loop_fusion_pairs_skipped: usizePairs 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: usizeNumber 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: booltrue 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
impl Clone for OnlineSlamLoopClosureRefinementStats
Source§fn clone(&self) -> OnlineSlamLoopClosureRefinementStats
fn clone(&self) -> OnlineSlamLoopClosureRefinementStats
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 OnlineSlamLoopClosureRefinementStats
impl Default for OnlineSlamLoopClosureRefinementStats
Source§fn default() -> OnlineSlamLoopClosureRefinementStats
fn default() -> OnlineSlamLoopClosureRefinementStats
impl StructuralPartialEq for OnlineSlamLoopClosureRefinementStats
Auto Trait Implementations§
impl Forget for OnlineSlamLoopClosureRefinementStats
impl Freeze for OnlineSlamLoopClosureRefinementStats
impl Move for OnlineSlamLoopClosureRefinementStats
impl RefUnwindSafe for OnlineSlamLoopClosureRefinementStats
impl Send for OnlineSlamLoopClosureRefinementStats
impl Sync for OnlineSlamLoopClosureRefinementStats
impl Unpin for OnlineSlamLoopClosureRefinementStats
impl UnsafeUnpin for OnlineSlamLoopClosureRefinementStats
impl UnwindSafe for OnlineSlamLoopClosureRefinementStats
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.