pub struct PoseGraphSe3Config {
pub max_iterations: usize,
pub step_tolerance: f64,
pub cost_tolerance: f64,
pub robust_kernel: RobustKernel,
pub initial_lambda: Option<f64>,
pub lambda_increase_factor: f64,
pub lambda_decrease_factor: f64,
pub damping: DampingMode,
pub max_lambda: f64,
pub min_lambda: f64,
pub linear_solver: LinearSolver,
pub chordal_init: bool,
}Expand description
Configuration for PoseGraph::optimize_se3_iterative.
Fields§
§max_iterations: usizeHard cap on iterations (including rejected LM steps).
step_tolerance: f64Convergence threshold on the largest per-node 6-vector update of the most recent accepted step.
cost_tolerance: f64Convergence threshold on the absolute cost change between two successive accepted steps.
robust_kernel: RobustKernelRobust kernel applied to each edge’s squared residual norm.
initial_lambda: Option<f64>Initial Levenberg-Marquardt damping λ. None runs pure
Gauss-Newton (every step is accepted unconditionally). Some(λ₀)
enables LM: solve (H + λI) δ = -g, accept if cost decreases (and
scale λ down by lambda_decrease_factor), otherwise reject and
scale λ up by lambda_increase_factor.
lambda_increase_factor: f64Multiplier applied to λ after a rejected LM step.
lambda_decrease_factor: f64Multiplier applied to λ after an accepted LM step.
damping: DampingModeHow λ enters H. Defaults to DampingMode::Identity (H + λI, leaves
every solve bit-identical). Switch to DampingMode::Diagonal
(H + λ·diag(H)) for graphs with mixed rotation/translation curvature.
max_lambda: f64Upper bound on λ. When a step is rejected and λ * factor > max_lambda,
the optimizer gives up and returns converged: false.
min_lambda: f64Lower bound on λ. Decreases stop here so λ cannot collapse to zero.
linear_solver: LinearSolverLinear-solver backend. Defaults to dense Cholesky for parity with the
pre-sparse solver. Switch to LinearSolver::Sparse when the graph
has more than a few hundred nodes so the optimizer scales linearly in
non-zero edges instead of cubically in node count.
chordal_init: boolSeed the solve with a chordal rotation initialization
(PoseGraph::initialize_rotations_chordal) before the first
Gauss-Newton step. Defaults to true: it is strictly beneficial —
the rotation optimum is a fixed point of the relaxation, so on an
already-consistent graph it leaves the estimate essentially unchanged
(a cheap extra factorization), while on a hard, odometry-initialized 3D
graph it rescues the solve from a poor basin. The seeding is best-effort:
if its relaxed system is singular it is silently skipped and the solve
proceeds from the unmodified estimate, so enabling it can never turn a
previously-successful optimization into a failure.
Trait Implementations§
Source§impl Clone for PoseGraphSe3Config
impl Clone for PoseGraphSe3Config
Source§fn clone(&self) -> PoseGraphSe3Config
fn clone(&self) -> PoseGraphSe3Config
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 PoseGraphSe3Config
impl Debug for PoseGraphSe3Config
Source§impl Default for PoseGraphSe3Config
impl Default for PoseGraphSe3Config
Source§fn default() -> PoseGraphSe3Config
fn default() -> PoseGraphSe3Config
Source§impl PartialEq for PoseGraphSe3Config
impl PartialEq for PoseGraphSe3Config
impl StructuralPartialEq for PoseGraphSe3Config
Auto Trait Implementations§
impl Forget for PoseGraphSe3Config
impl Freeze for PoseGraphSe3Config
impl Move for PoseGraphSe3Config
impl RefUnwindSafe for PoseGraphSe3Config
impl Send for PoseGraphSe3Config
impl Sync for PoseGraphSe3Config
impl Unpin for PoseGraphSe3Config
impl UnsafeUnpin for PoseGraphSe3Config
impl UnwindSafe for PoseGraphSe3Config
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.