|
This entry is the self study companion to numerical quaternion propagation and IMU attitude state integration.
All eighteen exercises are stated first. Complete worked solutions appear only after the exercise section.
PhysicsLibrary uses the passive inertial to body attitude quaternion
 |
(1) |
Hamilton multiplication and scalar first display order are used.
For body resolved gyroscope angular velocity,
 |
(2) |
A positive body frame delta angle
produces the passive incremental quaternion
 |
(3) |
Because the increment maps the old body frame into the new body frame, it multiplies on the left:
 |
(4) |
For a small passive frame error,
 |
(5) |
- Bias correction and delta angle.
An IMU reports
The estimated gyroscope bias is
For
compute the corrected angular rate and the delta angle vector.
- Exact incremental quaternion.
For
compute the exact passive incremental quaternion.
- Small angle increment.
For the increment of Exercise 2, compute the first order small angle approximation and compare its norm with one.
- One exact propagation step.
Starting from the identity attitude, propagate one sample using the exact increment from Exercise 2.
- Nonidentity attitude and a body increment.
Starting from the positive passive frame rotation about ,
apply the small body frame delta angle
Write the first order update in the correct multiplication order and expand the Hamilton product.
- Wrong multiplication side.
A programmer uses
 |
(6) |
for body resolved gyroscope data while storing
Explain the mistake and write the correct update.
- Forward Euler propagation.
Derive the forward Euler propagation formula from
- Forward Euler norm drift.
Show that a forward Euler step does not preserve quaternion norm exactly.
- Gyroscope bias accumulation.
A gyroscope has a constant uncorrected bias of
about one axis.
Approximately how large is the attitude error after ten minutes?
- Two hundred hertz constant
rotation.
An IMU runs at Hz and measures a constant positive body frame rotation rate of
about the axis.
Compute the delta angle per sample and the exact passive incremental quaternion.
- Leading coning term.
For two chronological small body frame increments
followed by
, derive the leading cross product term in the equivalent physical rotation vector.
- Numerical coning cross term.
Let
Compute the leading coning cross term.
- Normalization versus exact propagation.
Explain why normalizing a forward Euler update does not make it identical to an exact exponential update.
- Quaternion sign continuity.
A quaternion time history contains consecutive samples and with
 |
(7) |
What continuity operation is commonly applied, and why?
- Three component error state.
For a passive multiplicative error state, use
 |
(8) |
to explain why a three component attitude error can coexist with a four component nominal quaternion.
- Strapdown state propagation order.
A strapdown navigation state contains quaternion attitude, velocity, position, and gyroscope bias.
Describe the propagation order connecting gyroscope measurement, quaternion update, accelerometer transformation, and velocity update.
- Using IMU supplied delta angles.
Suppose an IMU reports delta angles directly.
Why is it usually preferable to use those delta angles rather than first divide by to construct an average angular rate and then multiply by again?
- Direct small increment versus filter small error.
Compare the intended use of the small angle approximation in direct IMU propagation with its use in a multiplicative error state filter.
The corrected rate is
Therefore
 |
(9) |
The delta angle is
Thus
 |
(10) |
The increment magnitude is
The positive physical frame axis is
.
Under the PhysicsLibrary passive convention,
Hence
 |
(11) |
Numerically,
 |
(12) |
The negative vector component is the passive sign for a positive frame rotation.
For a small passive body frame increment,
Therefore
 |
(13) |
Its norm is
Thus
 |
(14) |
The first order increment is therefore not exactly unit until normalized.
The initial attitude is
Body resolved increments left multiply:
Since ,
 |
(15) |
Therefore
 |
(16) |
The first order passive increment is
The correct body increment update is
Therefore
Expand:
Since
we obtain
 |
(17) |
If this first order increment is used numerically, the result should be normalized.
For
body resolved angular velocity satisfies
The finite body increment maps
and therefore appears on the left of the existing
map.
Thus the correct update is
 |
(18) |
Right multiplication would correspond to expressing the increment on the reference side under this passive convention.
Forward Euler gives
Substitute
Then
 |
(19) |
With
this can also be written
 |
(20) |
Let
For the exact quaternion differential equation,
because the derivative is tangent to the unit quaternion three sphere.
Thus
For nonzero angular rate,
 |
(21) |
The error is second order per step, so repeated unnormalized Euler propagation drifts from unit norm.
Ten minutes is
A constant bias of
therefore accumulates approximately
Hence
 |
(22) |
This illustrates why gyroscope bias estimation and correction are essential.
At Hz,
The sample rotation is
In radians,
 |
(23) |
The half angle is approximately
For a positive body frame rotation about , the passive increment is
 |
(24) |
Numerically,
 |
(25) |
The first order passive increments are
and
Because the first increment occurs before the second, body frame multiplication gives
Expand:
For pure vector quaternions,
The vector contribution is therefore
Match this with the passive form
The resulting equivalent physical rotation vector is
 |
(26) |
The physical coning cross term has the same positive cross product form, although the quaternion vector part itself carries the passive negative sign.
The cross product is
Therefore the leading coning contribution is
 |
(27) |
Normalization restores
It does not reconstruct higher order rotational information omitted by a forward Euler step.
The exact exponential update follows the correct finite rotation on the unit quaternion manifold for a constant sample rotation vector.
Normalized Euler first takes a tangent line approximation and then projects that approximate point back onto the unit sphere.
The projected point is generally close to, but not identical with, the exact exponential result.
One commonly applies
 |
(28) |
Because and represent the same physical orientation, this operation does not alter attitude.
It simply chooses the representative closer to the preceding quaternion. This improves continuity for plotting, interpolation, finite differencing, and optimization.
The nominal quaternion is a global attitude representation with four stored components constrained by
Therefore it has three independent degrees of freedom.
A local passive multiplicative error can be written
The three vector components of
are therefore sufficient to represent the local orientation perturbation.
An estimator can consequently propagate the nominal attitude as a full unit quaternion while carrying only three attitude error variables in the linearized covariance state.
A typical passive quaternion strapdown propagation order is:
- read body gyroscope and accelerometer measurements;
- correct the gyroscope measurement or delta angle using the current bias estimate;
- form the passive body incremental quaternion;
- update attitude using
- obtain the updated or appropriately time centered attitude for accelerometer processing;
- transform measured body specific force into the navigation or inertial frame using the inverse attitude map;
- combine specific force with gravity and any required rotating frame terms;
- integrate velocity and position;
- propagate gyroscope bias and other estimator states according to their process models.
For
the body to inertial specific force transformation is
A delta angle output is already the sensor's estimate of integrated angular motion over the sample.
Converting it to an average rate by dividing by and then multiplying by again adds unnecessary operations.
More importantly, the device may have formed the delta angle using internal high rate samples and may already include coning or other compensation.
Reducing that output to a single average rate can hide how the device formed the integrated quantity and can invite accidental duplicate processing.
Therefore the sensor supplied delta angle is normally the more natural input to the finite quaternion update, subject to the device documentation and bias correction model.
In direct IMU propagation,
is an approximation to the actual physical rotation occurring during one sample.
Its usefulness depends on the sample rotation being sufficiently small.
In a multiplicative error state filter,
has a different role.
The nominal attitude remains a full unit quaternion representing the global orientation, while the three component vector
represents only a local estimation error around that nominal attitude.
The nominal vehicle attitude may therefore be arbitrarily large even though the error state is intentionally kept small.
| Quantity |
PhysicsLibrary passive result |
| Attitude state |
 |
| Body rate kinematics |
 |
| Positive body increment |
 |
| Body increment update |
 |
| Small body increment |
![$\delta q_B\approx[1,-\Delta\boldsymbol\theta^B/2]^T$ $\delta q_B\approx[1,-\Delta\boldsymbol\theta^B/2]^T$](https://images.physicslibrary.org/cache/objects/1110/l2h/img112.png) |
| Passive error state |
![$\delta q\approx[1,-\delta\boldsymbol\theta/2]^T$ $\delta q\approx[1,-\delta\boldsymbol\theta/2]^T$](https://images.physicslibrary.org/cache/objects/1110/l2h/img113.png) |
| Sign continuity |
when
 |
This companion follows the eighteen problem progression of the earlier PhysicsLibrary example article but rewrites every convention sensitive formula and worked result for the passive inertial to body convention.
Sommer and coauthors provide a modern discussion of quaternion convention management. Solà provides a detailed treatment of quaternion kinematics and error state filtering. Titterton and Weston provide a broad engineering treatment of strapdown inertial navigation. Savage develops classical strapdown attitude integration and coning compensation.
- 1
- H. Sommer, I. Gilitschenski, M. Bloesch, S. Weiss, R. Siegwart, and J. Nieto, “Why and How to Avoid the Flipped Quaternion Multiplication,” Aerospace, vol. 5, no. 3, article 72, 2018. Published under CC BY 4.0. Publisher article https://www.mdpi.com/2226-4310/5/3/72
- 2
- J. Solà, “Quaternion Kinematics for the Error State Kalman Filter,” arXiv:1711.02508, 2017. arXiv preprint https://arxiv.org/abs/1711.02508
- 3
- D. H. Titterton and J. L. Weston, Strapdown Inertial Navigation Technology, 2nd ed., The Institution of Engineering and Technology, 2004/2005. Engineering reference. IET book page https://shop.theiet.org/strapdn-inertial-navig-t-2ed
- 4
- P. G. Savage, “Strapdown Inertial Navigation Integration Algorithm Design Part 1: Attitude Algorithms,” Journal of Guidance, Control, and Dynamics, vol. 21, no. 1, pp. 19–28, 1998. DOI record https://doi.org/10.2514/2.4228
Unless otherwise noted, this PhysicsLibrary entry is intended for release under the Creative Commons Attribution ShareAlike 4.0 International license.
|