pub struct ImuPredictiveMotionModelConfig {
pub gravity_world: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>,
pub bias_gyro: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>,
pub bias_acc: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>,
pub body_to_sensor: SE3,
pub carry_forward_velocity_world: bool,
}Expand description
Static parameters for ImuPredictiveMotionModel.
Fields§
§gravity_world: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>World-frame gravity vector. KITTI y-down default (0, 9.81, 0);
EuRoC z-up convention uses (0, 0, -9.81).
bias_gyro: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>Gyro bias subtracted from every sample before integration.
bias_acc: Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>Accel bias subtracted from every sample before integration.
body_to_sensor: SE3T_BS body-from-sensor (= body-from-camera) rigid transform:
p_body = body_to_sensor · p_sensor. Used by predict_pose to
(a) convert the input camera pose to a body pose before
strapdown integration, and (b) convert the integrated body pose
back to a camera pose on the way out. Defaults to identity
(body == camera, the assumption the original wire-up made).
EuRoC’s cam0/sensor.yaml::T_BS is exactly this transform: pass
the parsed SE3 verbatim. The camera-relative offset is
~0.1 m on EuRoC, so the identity default is a usable
approximation but a metric-tight prediction wants the real
extrinsic.
carry_forward_velocity_world: boolWhen true, observe re-integrates the pending IMU
samples from the previously-tracked pose to advance
velocity_world for the next frame. Without this, the seed
velocity stays frozen at the last set_velocity_world
(i.e., last VI-BA mirror) until the next mirror fires — so on
frames between mirrors, the strapdown integration restarts from
the KF-time velocity rather than the velocity at the just-tracked
frame. Defaults to false for backwards compatibility.
Trait Implementations§
Source§impl Clone for ImuPredictiveMotionModelConfig
impl Clone for ImuPredictiveMotionModelConfig
Source§fn clone(&self) -> ImuPredictiveMotionModelConfig
fn clone(&self) -> ImuPredictiveMotionModelConfig
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 ImuPredictiveMotionModelConfig
impl Default for ImuPredictiveMotionModelConfig
Source§fn default() -> ImuPredictiveMotionModelConfig
fn default() -> ImuPredictiveMotionModelConfig
impl StructuralPartialEq for ImuPredictiveMotionModelConfig
Auto Trait Implementations§
impl Forget for ImuPredictiveMotionModelConfig
impl Freeze for ImuPredictiveMotionModelConfig
impl Move for ImuPredictiveMotionModelConfig
impl RefUnwindSafe for ImuPredictiveMotionModelConfig
impl Send for ImuPredictiveMotionModelConfig
impl Sync for ImuPredictiveMotionModelConfig
impl Unpin for ImuPredictiveMotionModelConfig
impl UnsafeUnpin for ImuPredictiveMotionModelConfig
impl UnwindSafe for ImuPredictiveMotionModelConfig
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.