Post · 6 min read· pp. 47–50

IMU Propagation Derivations » Discrete Propagation

The state definition and general propagation equations are covered in the IMU Propagation Derivations page. Here we will cover a simplified discrete inertial model which does not include IMU intrinsic parameters. First we will cover how we can propagate our mean forward, afterwhich we cover how to derive the linearized discrete error-state system.

Zeroth Order Quaternion Integrator

First we look at how to integrate our orientation equation forward in time. One could use the integration property of a diagram's matrix exponential or as we will do here, derive it for a quaternion orientation. The solution to the quaternion evolution has the following general form (see [Indirect Kalman Filter for 3D Attitude Estimation] [40] Section 1.6):

diagram

Differentiating and reordering the terms yields the governing equation for diagram as

diagram

where we have defined:

diagram

and diagram. If we take diagram to be constant over the the period diagram, then the above system is linear time-invariant (LTI), and diagram can be solved as (see [31]):

diagram

where diagram is the general matrix exponential which has a closed form solution, and the approximation assumes small diagram. We can formulate the quaternion propagation from diagram to diagram using the estimated rotational velocity diagram as:

diagram

Discrete-time IMU Propagation

We model the measurements as discrete-time over the integration period. To do this, the measurements can be assumed to be constant during the sampling period. We employ this assumption and approximate that the measurement at time diagram remains the same until we get the next measurement at diagram. For the quaternion propagation, it is the same as continuous-time propagation with constant measurement assumption diagram. We use subscript diagram to denote it is the measurement we get at time diagram. Therefore the propagation of quaternion can be written as:

diagram

where diagram. For the velocity and position propagation we have constant diagram over diagram. We can therefore directly solve for the new states as:

diagram

The propagation of each bias is likewise the continuous system:

diagram

Note that the noises used here are the discrete ones which need to be converted from their continuous-time versions. In particular, when the covariance matrix of the continuous-time measurement noises is given by diagram and diagram, then the discrete-time noise covariance diagram can be computed as (see [Indirect Kalman Filter for 3D Attitude Estimation] [40] Eq. (129) and (130)):

diagram

where diagram are the discrete IMU sensor noises which have been converted from their continuous representations. We define the stacked discrete measurement noise as follows:

diagram

Discrete-time Error-state Propagation

In order to propagate the covariance matrix, we should derive the linearized error-state propagation, i.e., computing the system Jacobian diagram and noise Jacobian diagram. The method of computing Jacobians is to "perturb" each variable in the system and see how the old error "perturbation" relates to the new error state. That is, diagram and diagram can be found by perturbing each variable as:

diagram

For the orientation error propagation, we start with the diagram perturbation using diagram (which can be shown to be exactly equivalent to the state's quaternion error, see [40] and ov_type::JPLQuat):

diagram

where diagram handles both the perturbation to the bias and measurement noise. diagram is the right Jacobian of diagram that maps the variation of rotation angle in the parameter vector space into the variation in the tangent vector space to the manifold [see ov_core::Jr_so3() and [3]]. By neglecting the second order terms from above, we obtain the following orientation error propagation:

diagram

where we have defined diagram. This describes how tht error of the next orientation is related to the previous, gyroscope bias, and noise. Now we can do error propagation of position and velocity using the same scheme:

diagram

diagram

where diagram. By neglecting the second order error terms, we obtain the following position and velocity error propagation:

diagram

The propagation of the two random-walk biases are as follows:

diagram

diagram

By collecting all the perturbation results, we can build diagram and diagram matrices as:

diagram

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 ensure that we evaluate all state estimates of prior seen states at the same linearization point they were previously evaluated at (their estimate before update / their estimate when they were first initialized into the state). This ensure the semi-group property of the state transition matrix.

Now, with the computed diagram and diagram matrices, we can propagate the covariance from diagram to diagram:

diagram