Post · 11 min read· pp. 37–46

IMU Propagation Derivations » Analytical Propagation

The state definition and general propagation equations are covered in the IMU Propagation Derivations page. Here we will cover the continuous-time integration of the state dynamics and inclusion of IMU intrinsic parameters. First we will cover how we can propagate our mean forward, afterwhich we cover how to derive the linearized error-state system propagation and approximations used. Key references for analytical inertial integration include:

  • Indirect Kalman Filter for 3D Attitude Estimation [40]
  • Consistency Analysis and Improvement of Vision-aided Inertial Navigation [18] [17]
  • High-precision, consistent EKF-based visual-inertial odometry [27] [26]
  • Closed-form preintegration methods for graph-based visual-inertial navigation [13] [12]
  • Analytic Combined IMU Integration (ACI^2) for Visual-Inertial Navigation [44] [43]
  • Online Self-Calibration for Visual-Inertial Navigation: Models, Analysis and Degeneracy [46]

IMU Intrinsic Models

First we can re-write our IMU measurement models to find the the true (or corrected) angular velocity diagram and linear acceleration diagram. This is how we will relate incoming measurements to IMU dynamics (see IMU Kinematic Equations).

diagram

where diagram and diagram. Note that here we have factored out the diagram gravity term (see below state evolution equations). In practice, we calibrate diagram, diagram, diagram (or diagram) and diagram to prevent unneeded matrix inversions and transposes in the measurement equation. We only calibrate either diagram or diagram since the base "inertial" frame must coincide with one frame arbitrarily. If both diagram and diagram are calibrated, it will make the rotation between the IMU and camera unobservable due to over parameterization [45] [46]. We define two different models of interested:

  • KALIBR: Contains diagram, diagram, diagram and gravity sensitivity diagram. This model follows IMU intrinsic calibration presented in [37] and the output used in the open-source calibration toolbox Kalibr [15].
  • RPNG: Contains diagram, diagram, the rotation diagram, and gravity sensitivity diagram. diagram and diagram are uptriangular matrices, and follows imu2 analyzed in [45] [46].

It is important to note that one should use the KALIBR model if there is a non-negligible transformation between the gyroscope and accelerometer (it is negligible for most MEMS IMUs, see [29] [38]) since it assumes the accelerometer frame to be the inertial frame and rigid bodies share the same angular velocity at all points. We can define the following matrices:

diagram

Full State with Calibration

In the following derivations, we will compute the Jacobians for all the variables that might appear in the IMU models, including scale/axis correction for gyroscope diagram (6 parameters), scale/axis correction for accelerometer diagram (6 parameters), rotation from gyroscope to IMU frame diagram, rotation from accelerometer to IMU frame diagram and gravity sensitivity diagram (9 parameters). The state vector contains the IMU state and its intrinsics:

diagram

where diagram denotes the rotation matrix diagram from diagram to diagram. diagram and diagram denote the IMU position and velocity in diagram. diagram denotes the IMU navigation states and diagram denotes the IMU biases. The IMU intrinsics, diagram, contain the non-zero elements stored column-wise:

diagram

Analytical State Mean Integration

First we redefine the continuous-time integration equations mentioned in the Continuous-time Inertial Integration section. They are summarized as follows:

diagram

where diagram, diagram, diagram is the diagram matrix exponential [8], and vectors are evaluated at their subscript timesteps (e.g. diagram). We have the following integration components:

diagram

where we define the following integrations:

diagram

where diagram and the diagram and diagram integration components can be evaluated either analytically (see Integration Component Definitions) or numerically using RK4. diagram and diagram are defined as (dropping the timestamp):

diagram

Under the assumption of constant diagram and diagram, the above equations are also constant over the time interval. The mean propagation for the new state at diagram can be written after taking the expectation:

diagram

Model Linearization Derivations

Error States Definitions

We first remind the reader of the error states used throughout the system. It is crucial that all error states are consistent between propagation and update. OpenVINS has a type system (see ov_type and Type System) for which Jacobians need to be derived from. We have the following pose (orientation + position) errors (based on ov_type::PoseJPL)

diagram

For all other vectors (such as IMU intrinsics etc), we leverage simple additive error (based on ov_type::Vec)

diagram

IMU Reading Linearization

We first define the diagram and diagram error states. For diagram and diagram, we have:

diagram

For diagram and diagram, we have:

diagram

where we need to define diagram, diagram and diagram. For the KALIBR model, we have:

diagram

For the RPNG model, we have:

diagram

By summarizing the above equations, we have:

diagram

where we have defined:

diagram

diagram

Inertial State Linearization

We then linearize diagram, diagram and diagram. For the diagram, we can get:

diagram

For the integration of diagram, we get:

diagram

For the integration of diagram, we get:

diagram

where diagram and diagram are shown in the Integration Component Definitions section. diagram is the right Jacobian of diagram [see ov_core::Jr_so3() [3]]. In summary, we have the following linearized integration components (see Integration Component Definitions):

diagram

where diagram and diagram and diagram are defined as:

diagram

Linearized Error-state Evolution

Hence, the linearized IMU system is:

diagram

The overall linearized error state system is:

diagram

where diagram and diagram are the state transition matrix and noise Jacobians for IMU dynamic model; diagram are Jacobians related to bias, IMU intrinsics and noises, which can be found from previous derivations; diagram is the discrete-time IMU noises; diagram and diagram can be computed as:

diagram

How to apply FEJ to ensure consistency?

When using First-Estimate Jacobians (see First-Estimate Jacobian Estimators for an overview) for the state transition matrix, we need to replace diagram, diagram and diagram as:

diagram

This ensure the semi-group property of the state transition matrix by ensuring that the previous timestep is evaluated at the same linearization point (their estimate before update / their estimate when they were first initialized into the state).

Note that diagram and hence the covariance for diagram can be written as:

diagram

Finally, the covariance propagation can be derived as:

diagram

Integration Component Definitions

When deriving the components, we drop the subscripts for simplicity. As we define angular velocity diagram, rotation axis diagram, and the small interval we are integrating over as diagram. The first integration we need is:

diagram

The second integration we need is:

diagram

The third integration can be written as:

diagram

The fourth integration we need is:

diagram

When diagram is too small, in order to avoid numerical instability, we can compute the above integration identities as (see L'Hôpital's rule):

diagram

We currently do not implement a RK4 version of the above integrations. This would likely improve performance if leveraged as it would allow for the measurement to evolve over the integration period.