This is an old revision of this page, as edited by Forderud(talk | contribs) at 23:37, 27 May 2005(fixed notation for quaternion rotation matrix). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 23:37, 27 May 2005 by Forderud(talk | contribs)(fixed notation for quaternion rotation matrix)
Spatial rotations in three dimensions can be parametrized using both Euler angles and unit quaternions. This article explains how to convert betweeen the two representatios.
A unit quaternion can be described as:
where
Simmilarly for Euler angles, we use:
Roll - : rotation about the X-axis
Pitch - : rotation about the Y-axis
Yaw - : rotation the Z-axis
where the X-axis points forward, Y-axis to the right and Z-axis downward
Rotation matrices
The orthogonal matrix corresponding to a rotation by the unit quaternion q is given by
The orthogonal matrix corresponding to a rotation with Euler angles , is given by
Conversion
By comparing the tems in the two matrices, we get....