pub struct PositionPriorObservation {
pub keyframe_id: u64,
pub camera_center_world: OPoint<f64, Const<3>>,
pub axis_weights: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>,
}Expand description
One absolute position measurement for a single keyframe. The
expected world-frame camera centre is compared against the BA’s
current estimate of 竏坦盞 ツキ t. Designed for translation-domain
priors fed from GNSS, an external altimeter, or 窶・in evaluation
scenarios 窶・ground-truth poses; the prior constrains TRANSLATION
only, complementing GravityPrior which constrains ROTATION
only.
axis_weights enables per-axis stiffness: a per-pose altitude
constraint sets axis_weights = (0, w, 0) so only the vertical
component is anchored (the most common shape for fixing seq08-style
vertical drift without claiming horizontal GNSS accuracy).
Fields§
§keyframe_id: u64Keyframe whose world camera centre is being constrained. The
pose must already be added to BundleAdjustment. Fixed poses
still contribute to the cost (for diagnostics) but generate no
Jacobian rows because they have no Hessian slot.
camera_center_world: OPoint<f64, Const<3>>Expected world-frame camera centre. For a level KITTI-style
y-down camera this is the same coordinate frame as
pose.camera_center_world().
axis_weights: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>Per-axis weights in the cost ホ」 w盞「 ツキ (C盞「 竏・target盞「)ツイ and the
normal-equations contribution. A zero entry removes that axis
from the prior entirely; mixed positive entries pin a subset of
axes with different stiffnesses ((0, w, 0) for altitude-only).
Trait Implementations§
Source§impl Clone for PositionPriorObservation
impl Clone for PositionPriorObservation
Source§fn clone(&self) -> PositionPriorObservation
fn clone(&self) -> PositionPriorObservation
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 PositionPriorObservation
impl Debug for PositionPriorObservation
Source§impl PartialEq for PositionPriorObservation
impl PartialEq for PositionPriorObservation
impl StructuralPartialEq for PositionPriorObservation
Auto Trait Implementations§
impl Forget for PositionPriorObservation
impl Freeze for PositionPriorObservation
impl Move for PositionPriorObservation
impl RefUnwindSafe for PositionPriorObservation
impl Send for PositionPriorObservation
impl Sync for PositionPriorObservation
impl Unpin for PositionPriorObservation
impl UnsafeUnpin for PositionPriorObservation
impl UnwindSafe for PositionPriorObservation
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.