|
|
|||||||
This is the passive quaternion for a positive 15∘ frame error about +z. The exact physical error is therefore
12 Check: left and right errors need not be equalTake the current attitude as a positive 90∘ frame rotation about +x:
Take the desired attitude as a positive 90∘ frame rotation about +y:
The current conjugate is
![]() The left error is
![]() Thus
The right error is
![]() Thus
The two errors have the same scalar part and the same vector magnitude but different vector directions. Finite attitude error is therefore convention sensitive even when the error angle itself is unchanged.
13 Same physical attitude with opposite quaternion signsSuppose the stored current and desired quaternions satisfy
![]() They represent exactly the same physical attitude. The left error is
![]() Thus
The quaternion −1 represents the identity orientation just as +1 does. For a local error representation, change the sign to the principal representative
The physical attitude error is zero, not 360∘.
14 Desired versus actual attitude in controlFor control, let
![]() be the measured or estimated actual passive attitude and let
![]() be the commanded passive attitude. A body side correction can be formed with
![]() For a small error,
![]() Therefore a controller that requires a physical positive frame correction vector should use
away from the 180∘ sign ambiguity. The sign factor selects the locally shortest quaternion representative. A control law should not use the raw quaternion vector part without first accounting for the active or passive convention.
15 True versus estimated attitude in estimationLet the true passive attitude be
![]() and a nominal estimate be
![]() A left multiplicative error is defined by
Therefore
A right multiplicative error is defined by
so
For a passive small error state,
The filter covariance, Jacobians, reset equation, and correction injection must all use the same left or right definition.
16 Error injectionSuppose an estimator has computed a correction quaternion δq. For a left error model, update the nominal attitude by
For a right error model,
Mixing a right error covariance model with a left injection, or vice versa, changes the coordinate interpretation of the correction and is generally inconsistent.
17 Relative attitude between two physical bodiesThe same algebra applies when neither attitude is merely a desired command. Let two physical frames B1 and B2 have passive attitudes
![]() and
![]() The direct coordinate map from B1 into B2 is
This is exactly the same form as the left error quaternion. Therefore relative attitude and attitude error are mathematically the same operation. The difference is the engineering interpretation assigned to the two endpoint frames.
18 Why Euler angle subtraction is generally not exactSuppose the actual and desired attitudes are displayed as yaw, pitch, and roll triples. The component difference
![]() is generally not the exact finite attitude error vector. Euler Angles are nonlinear coordinates associated with an ordered sequence of rotations. Finite rotations do not commute, so subtracting the three coordinates does not reproduce the group product
![]() or
![]() For sufficiently small errors and away from an Euler singularity, angle differences may provide a local approximation. The exact error should nevertheless be formed first with quaternions or DCMs.
19 Error near
|
![]() | (45) |
An equivalent numerically robust form is
![]() | (46) |
The second form behaves well for both small and large angles.
The first order passive error quaternion is
![[ ]
δq ≈ 1 .
− 12δ𝜃](https://images.physicslibrary.org/cache/objects/1107/make4ht/RelativeAttitudeAndErrorQuaternions106x.png)
Its squared Euclidean norm is

Thus
![]() | (47) |
The unit norm error introduced by the first order small error approximation is second order in the attitude error magnitude.
A relative attitude implementation should pass the following checks.
If

then both errors must equal +1 up to quaternion sign.
If

the physical error must still be zero.
For current yaw 10∘ and desired yaw 25∘, the passive error must represent a positive 15∘ frame yaw and therefore have a negative k vector component.
Verify

and

Verify

Verify

and

For a small positive frame rotation vector δ𝜃, verify

The exact relative attitude is multiplicative, not additive.
For the PhysicsLibrary passive frame quaternion,

The order must be stated. qdq∗ and q∗q d are generally different.
The filter or controller must keep the chosen side consistent.
versus
equivalence.
An error quaternion near −1 can represent almost zero physical error.
Near 180∘, the principal sign choice can switch discontinuously.
The small physical frame error is approximately −2δqv.
Euler coordinates are sequence dependent nonlinear coordinates, not a global rotation vector.
They represent the same geometric error but are transported through the current attitude.
The preceding article, quaternion kinematics and angular velocity, derives the passive quaternion differential equations used to propagate the nominal attitude.
The present article defines exact relative attitude and multiplicative error quaternions and establishes the passive small error sign used in estimation and control.
A separate companion entry, Relative Attitude and Error Quaternions: Examples, Exercises, and Solutions, provides the Q12E self study problem bank.
The next main article, numerical quaternion propagation and IMU attitude state integration, combines quaternion kinematics, sampled gyro increments, bias correction, and small error concepts in a discrete navigation implementation.
Relative attitude and multiplicative quaternion errors are standard tools in spacecraft attitude estimation, inertial navigation, robotics, and nonlinear state estimation. Their exact signs and multiplication sides depend on the chosen quaternion frame map.
Sommer and coauthors provide a modern discussion of quaternion convention management and passive frame transformations. Markley and Crassidis provide a broad spacecraft attitude treatment including quaternion errors and estimation. Shuster discusses historical spacecraft quaternion conventions. Solà provides a detailed engineering discussion of quaternion perturbations and error state Kalman filtering; its formulas should be translated carefully when the quaternion map differs from the PhysicsLibrary passive convention.
[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
[2] F. L. Markley and J. L. Crassidis, Fundamentals of Spacecraft Attitude Determination and Control, Springer, 2014. Engineering reference. Publisher book page
[3] M. D. Shuster, “The Nature of the Quaternion,” The Journal of the Astronautical Sciences, vol. 56, no. 3, pp. 359–373, 2008. Reference source. DOI record
[4] J. Solà, “Quaternion Kinematics for the Error State Kalman Filter,” technical report, 2017. arXiv preprint
Unless otherwise noted, this PhysicsLibrary entry is intended for release under the Creative Commons Attribution ShareAlike 4.0 International license.
| Other names: | relative attitude quaternion, error quaternion |
| Also defines: | error quaternions, relative attitude |
| Keywords: | quaternion, relative attitude, error quaternion, attitude error, multiplicative error, small angle error, spacecraft attitude, error state estimation, attitude control |
|
| Physics Classification: | 02.40.Yy (Geometric mechanics ) |
| 02.10.Hh (Rings and algebras) | |
| 45.40.-f (Dynamics and kinematics of rigid bodies) |
None.
No messages.