|
|
|
Main Menu
|
|
Sections
Meta
Talkback
Downloads
Information
|
|
|
|
|
example of quaternion kinematics and angular velocity
|
(Example)
|
|
|
This companion article belongs to the PhysicsLibrary entry quaternion kinematics and angular velocity. All exercises are stated first. Complete solutions appear only after the exercise section so that the article is self study friendly.
We use the attitude quaternion , Hamilton multiplication, scalar-first display notation, and
 |
(1) |
for body resolved angular velocity, while
 |
(2) |
for inertial resolved angular velocity.
Starting from a short time body frame rotation increment, derive
 |
(3) |
Starting from an inertial frame rotation increment, derive
 |
(4) |
Show that the body resolved and inertial resolved equations are equivalent if
 |
(5) |
Let
 |
(6) |
and let the body resolved angular velocity be
 |
(7) |
Compute .
For the same attitude in Exercise 4, find the inertial resolved angular velocity
and verify that the inertial rate equation gives the same .
Derive the scalar and vector equations
 |
(8) |
 |
(9) |
Derive the right multiplication rate matrix
for scalar-first ordering.
Derive the left multiplication rate matrix
for scalar-first ordering.
Prove that the continuous quaternion kinematic equation preserves the norm of a unit quaternion.
Starting from , let
 |
(10) |
be constant. Find exactly.
For the angular rate in Exercise 10, compute the exact quaternion after
.
Use one forward Euler step with
for Exercise 10. Compute the norm of the unnormalized result and compare it with the exact quaternion.
A body mounted gyro reports
 |
(11) |
for
. Form the first order incremental quaternion.
Explain why replacing an attitude trajectory by requires replacing by
but does not change the physical motion.
A program stores quaternions scalar last and uses the body rate matrix written for scalar-first ordering without permuting the state. Explain the resulting bug and how to correct it.
A programmer uses
 |
(12) |
for a quaternion driven by body resolved gyro measurements. What is wrong, and what symptom would you expect for rotations not aligned with a principal coordinate axis?
Over , the body frame incremental rotation is
 |
(13) |
Since it is resolved about the current body axes, it composes on the right:
 |
(14) |
Thus
 |
(15) |
and taking gives
 |
(16) |
For an inertial resolved increment,
 |
(17) |
and the increment composes on the left:
 |
(18) |
Therefore
 |
(19) |
Using
 |
(20) |
and ,
 |
(21) |
Multiplying by proves that the two kinematic equations are identical.
Write
 |
(22) |
Then
because
. Hence
 |
(24) |
The attitude is a rotation about , so a body frame vector is mapped into inertial . Therefore
 |
(25) |
Then
which gives exactly the same as Exercise 4.
Using the scalar vector Hamilton product,
 |
(27) |
Multiplying by gives the required scalar and vector equations.
Expanding
in scalar-first ordering gives
 |
(28) |
Thus
.
Expanding
gives
 |
(29) |
Thus
.
Both and are skew symmetric. Therefore
 |
(30) |
Hence the exact continuous equation preserves .
The angular speed magnitude is
and the axis is . Therefore
 |
(31) |
The physical rotation angle is radians.
At
,
 |
(32) |
Thus
 |
(33) |
or numerically
 |
(34) |
At ,
 |
(35) |
A forward Euler step gives
 |
(36) |
Its norm is
 |
(37) |
The exact quaternion from Exercise 11 has norm exactly one.
The first order increment is
 |
(38) |
Therefore
 |
(39) |
If satisfies the kinematic equation, multiplying the entire trajectory by gives the same physical orientation because and represent the same rotation. Differentiating gives
. The kinematic equation is linear in , so the sign reversed pair remains a valid solution describing the same physical motion.
The matrix sign pattern assumes the state order
. A scalar-last array uses a different ordering, so direct multiplication associates the wrong coefficients with the wrong state components. The state and matrix must be permuted consistently, or the quaternion must be converted to scalar-first ordering before applying the formula.
For and body resolved gyro measurements, the correct equation is
 |
(40) |
Using
treats the numerical components as though they were resolved in the inertial frame. For single axis rotations aligned with an axis that commutes with the current quaternion, the error can be hidden. For general three-dimensional motion, the attitude will propagate with incorrect coupling and sign behavior because quaternion multiplication is not commutative.
This article is an original synthesis prepared for PhysicsLibrary and intended for release under CC BY-SA 4.0.
| "example of quaternion kinematics and angular velocity" is owned by bloftin.(view preamble)
|
|
| Keywords: |
quaternion, angular velocity, quaternion kinematics, attitude propagation, gyroscope, exercises, worked solutions |
This object's parent.
Cross-references: quaternion multiplication, commutes, formula, magnitude, speed, program, motion, norm, kinematic, matrix, vector, scalar, velocity, quaternion, section, quaternion kinematics and angular velocity
This is version 1 of example of quaternion kinematics and angular velocity, born on 2026-08-24.
Object id is 1106, canonical name is ExampleOfQuaternionKinematicsAndAngularVelocity.
Accessed 6 times total.
Classification:
|
|
|
|
|
|
|
|
Pending Errata and Addenda
|
|
|
|
|
|
|
|
|
|
|