The equations of motion for the quaternions have been discussed by several authors [7,11, 12,13] with varying degrees of completeness. Note that the explicit form for the matrix connecting the angular velocity of the object in the body-fixed frame and the time derivatives of the quaternions is not treated with a uniform notation, so care must be taken when comparing the elements of this matrix as presented by different authors. For this reason, we present the development of the equations of motion in detail.
The quaternion parameters, χ, η, ξ, and ζ for a individual body are related to the Euler angles, as described by Goldstein [14], by [7]
The quaternions satisfy the constraint,
| (1) |
The connection of the quaternions with the description of the dynamics of the rigid object is through the matrix equation that connects the time derivatives of the quaternions with the principal angular velocity ω p,
The 4 x 4 matrix in this equation is orthogonal so that the transformation is singularity free.
Equations of motion for the quaternions are obtained by transforming the Euler equations for a rigid body that has the center of mass fixed and is subject to torques N, in the principal frame,
into a quaternion form using the following sequence of matrix operations. First, define matrices Q = (ξ, η, ζ, χ) T and W = ( ωpx, ωpy, ωpz, 0 )T so that Eq. (2) becomes
where repeated Greek indices are summed. Now
and
where
is obtained from the right-hand side of
Eq. (3) with
.
This reduces to
which in turn simplifies to
when the conditions
and
are applied.
Note that the explicit form of the matrix M depends on the order
of the quaternion parameters in the matrix Q and that different
authors have made different choices. The general form for the
equations of motion for
is independent of this choice but
any given implementation must be internally consistent.