pub struct ConstantVelocityMotionModel { /* private fields */ }Implementations§
Source§impl ConstantVelocityMotionModel
impl ConstantVelocityMotionModel
pub fn new() -> ConstantVelocityMotionModel
Trait Implementations§
Source§impl Clone for ConstantVelocityMotionModel
impl Clone for ConstantVelocityMotionModel
Source§fn clone(&self) -> ConstantVelocityMotionModel
fn clone(&self) -> ConstantVelocityMotionModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstantVelocityMotionModel
impl Debug for ConstantVelocityMotionModel
Source§impl Default for ConstantVelocityMotionModel
impl Default for ConstantVelocityMotionModel
Source§fn default() -> ConstantVelocityMotionModel
fn default() -> ConstantVelocityMotionModel
Returns the “default value” for a type. Read more
Source§impl MotionModel for ConstantVelocityMotionModel
impl MotionModel for ConstantVelocityMotionModel
fn predict_pose( &self, _frame: &Frame, _last_result: Option<&TrackingResult>, last_successful_pose: Option<&Pose>, ) -> Option<Pose>
fn observe(&mut self, result: &TrackingResult)
fn reset(&mut self)
Source§fn apply_pose_correction(&mut self, correction: &SE3)
fn apply_pose_correction(&mut self, correction: &SE3)
Apply a rigid world-frame correction to any cached world-frame
state the model carries (velocities, cached poses).
correction
maps OLD world-frame points/poses to NEW world-frame points/poses:
p_new = correction.transform_point(&p_old). Called by
crate::Tracker::apply_pose_correction after an external
pose-graph optimisation (e.g. visloc-slam’s online loop-closure
refinement) rewrites keyframe poses, so the model’s own state
stays consistent with the corrected map instead of predicting the
next prior from stale, pre-correction poses/velocities. Read moreSource§fn allows_pnp_pose_prior_warm_start(&self) -> bool
fn allows_pnp_pose_prior_warm_start(&self) -> bool
Whether this model’s prediction is informative enough to seed the
PnP optimizer itself. Candidate selection and pose-quality gating may
still use every returned prior when this is
false. Read moreSource§fn apply_similarity_correction(&mut self, correction: &Sim3)
fn apply_similarity_correction(&mut self, correction: &Sim3)
Apply a rigid-plus-scale (
Sim(3)) world-frame correction —
apply_pose_correction’s
counterpart for a Sim(3) pose-graph solve (see visloc-slam’s
online loop-closure refinement Sim3 solver, which corrects
monocular-style scale drift a rigid SE(3) graph cannot
represent). correction follows the same OLD-world -> NEW-world
convention as apply_pose_correction, generalised with a scale
factor: p_new = correction.transform_point(&p_old). Read moreimpl StructuralPartialEq for ConstantVelocityMotionModel
Auto Trait Implementations§
impl Forget for ConstantVelocityMotionModel
impl Freeze for ConstantVelocityMotionModel
impl Move for ConstantVelocityMotionModel
impl RefUnwindSafe for ConstantVelocityMotionModel
impl Send for ConstantVelocityMotionModel
impl Sync for ConstantVelocityMotionModel
impl Unpin for ConstantVelocityMotionModel
impl UnsafeUnpin for ConstantVelocityMotionModel
impl UnwindSafe for ConstantVelocityMotionModel
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
Mutably borrows from an owned value. Read more
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> ⓘ
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 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> ⓘ
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 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.