pub enum BaError {
Show 13 variants
NoPoses,
NoLandmarks,
NoObservations,
AllPosesFixed,
MissingPose(u64),
MissingLandmark(u64),
UnsupportedCameraModel,
MissingStereoBaseline,
ObservationWeightCount {
expected: usize,
actual: usize,
},
InvalidObservationWeight(usize),
InvalidFixedRotationCount {
expected: usize,
actual: usize,
},
ObservationWeightsWithIntrinsicsRefinement,
SingularSystem,
}Variants§
NoPoses
NoLandmarks
NoObservations
AllPosesFixed
Every pose AND every landmark is fixed, so there is nothing to optimize. (Pose-only or landmark-only BA is allowed.)
MissingPose(u64)
MissingLandmark(u64)
UnsupportedCameraModel
Camera model is not pinhole (multi-model BA is a future extension).
MissingStereoBaseline
One or more BaStereoObservations were added but
BundleAdjustment::stereo_baseline is missing or non-positive.
ObservationWeightCount
The external visual-weight vector does not match the flattened visual observation count (mono, rectified stereo, general stereo).
InvalidObservationWeight(usize)
An external visual weight is negative, NaN, or infinite.
InvalidFixedRotationCount
A fixed-rotation diagnostic supplied a vector that is not aligned with the pose vector being optimized.
ObservationWeightsWithIntrinsicsRefinement
Confidence-weighted joint intrinsics refinement is not implemented.
SingularSystem
Reduced camera system was singular even after λ damping. Usually means the gauge is under-fixed (e.g., monocular without enough fixed poses or landmarks to remove scale).
Trait Implementations§
impl Eq for BaError
Source§impl Error for BaError
impl Error for BaError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BaError> for CovisibilityLocalBaError
impl From<BaError> for CovisibilityLocalBaError
Source§fn from(value: BaError) -> CovisibilityLocalBaError
fn from(value: BaError) -> CovisibilityLocalBaError
impl StructuralPartialEq for BaError
Auto Trait Implementations§
impl Forget for BaError
impl Freeze for BaError
impl Move for BaError
impl RefUnwindSafe for BaError
impl Send for BaError
impl Sync for BaError
impl Unpin for BaError
impl UnsafeUnpin for BaError
impl UnwindSafe for BaError
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.