tevaughan said:
Let
\boldsymbol{\theta}(t) = \int_0^t \boldsymbol{\omega}(u) \text{d}u,
That does not make any sense.
To show why, consider a different situation. Suppose you want to compute the sum of two vectors. You are given the cartesian coordinates of each vector. So just sum the components, right? That works only if the two vectors are expressed in the same reference frame. If, for example, one of the vectors is expressed in north-east-down coordinates and the other in east-north-up coordinates a simple component-by-component sum of the two vectors is meaningless.
That is exactly what you have done when you said θ=∫ωdt. Those angular velocities are expressed in body coordinates. The x,y, and z axes at some time t
1 and the x,y, and z axes at some other time t
2 point in different directions.
How do I know that your ω is in body coordinates? Simple: You wrote dq/dt = ½qw. That expression is only true if you are using right transformation quaternions and are expressing angular velocity in body coordinates. There are four possibilities here: left versus right quaternions, and angular velocity expressed in body versus inertial coordinates.
What's this left versus right business? Since it makes the math look cleaner, I will use the abuse of notation qv to denote the product of a quaternion and a pure imaginary quaternion with imaginary part equal to the vector v. There are two ways to use quaternions to transform a vector from frame A to frame B:
v
B = qv
Aq
-1 (right quaternions)
v
B = q
-1v
Aq (left quaternions)
The the two forms differ only in the location of the non-inversed quaternion: qvq
-1 versus q
-1vq. Asking which one is "right" is the wrong question. Both are perfectly valid, and both forms are used.
Here the equations for the quaternion derivative in each of the four possible notation schemes:
\begin{array}{ccccc}<br />
\quad & \text{Quaternion} & \text{Ang. Vel.} & \quad & \text{Quaternion} \\<br />
&\text{Type} & \text{Ref. Frame} && \text{Derivative} \\ \hline<br />
&\text{Left} & \text{Body} && \dot q = -\frac 1 2 \omega \, q \\[6pt]<br />
&\text{Left} & \text{Inertial} && \dot q = -\frac 1 2 q \, \omega \\[6pt]<br />
&\text{Right} & \text{Body} && \dot q = \phantom{-}\frac 1 2 q \, \omega \\[6pt]<br />
&\text{Right} & \text{Inertial} && \dot q = \phantom{-}\frac 1 2 \omega \, q \\<br />
\end{array}
While integrating angular velocity when angular velocity is expressed in body frame coordinates does not make sense, integrating angular velocity expressed in inertial coordinates might make sense. Now we have two new problems. (1) We are now chaining in the wrong direction, and (2) that is not how angular velocity is represented. There are many solid reasons for expressing angular velocity in body coordinates. One is that the rotational equations of motion, ugly as they with angular rate expressed in body coordinates, become much much uglier when rotation rate is expressed in inertial coordinates. Another is that the quantities of interest such as the inertia tensor and angular velocity itself are typically measured in and expressed in body coordinates.