Axis–angle representation

6
Axisangle representation 1 Axisangle representation A visualization of a rotation represented by an Euler axis and angle. The axis-angle representation of a rotation parameterizes a rotation of a rigid body in a three-dimensional space by two values: a unit vector indicating the direction of an axis of rotation, and an angle θ describing the magnitude of the rotation about the axis. The rotation occurs in the sense prescribed by the right-hand rule. The rotation axis is sometimes called Euler axis. This representation evolves from Euler's rotation theorem, which implies that any rotation or sequence of rotations of a rigid body in a three-dimensional space is equivalent to a pure rotation about a single fixed axis. The axis-angle representation is equivalent to the more concise rotation vector, or Euler vector. In this case, both the rotation axis and the angle are represented by a vector codirectional with the rotation axis whose magnitude is the rotation angle θ: Rodrigues' rotation formula can be used to apply to a vector a rotation represented by an axis and an angle. Uses The axis-angle representation is convenient when dealing with rigid body dynamics. It is useful to both characterize rotations, and also for converting between different representations of rigid body motion, such as homogeneous transformations and twists. Example Say you are standing on the ground and you pick the direction of gravity to be the negative z direction. Then if you turn to your left, you will travel radians (or 90 degrees) about the z axis. In axis-angle representation, this would be Rotation vector The above example can be represented as a rotation vector with a magnitude of pointing in the z direction. This is the product of the angle and vector. It is more compact and is used for the exponential and log maps involving this representation.

Transcript of Axis–angle representation

Page 1: Axis–angle representation

Axisangle representation 1

Axis–angle representation

A visualization of a rotation represented by anEuler axis and angle.

The axis-angle representation of a rotation parameterizes a rotation ofa rigid body in a three-dimensional space by two values: a unit vector

indicating the direction of an axis of rotation, and an angle θdescribing the magnitude of the rotation about the axis. The rotationoccurs in the sense prescribed by the right-hand rule. The rotation axisis sometimes called Euler axis.

This representation evolves from Euler's rotation theorem, whichimplies that any rotation or sequence of rotations of a rigid body in athree-dimensional space is equivalent to a pure rotation about a singlefixed axis.

The axis-angle representation is equivalent to the more conciserotation vector, or Euler vector. In this case, both the rotation axisand the angle are represented by a vector codirectional with therotation axis whose magnitude is the rotation angle θ:

Rodrigues' rotation formula can be used to apply to a vector a rotationrepresented by an axis and an angle.

UsesThe axis-angle representation is convenient when dealing with rigid body dynamics. It is useful to both characterizerotations, and also for converting between different representations of rigid body motion, such as homogeneoustransformations and twists.

ExampleSay you are standing on the ground and you pick the direction of gravity to be the negative z direction. Then if youturn to your left, you will travel radians (or 90 degrees) about the z axis. In axis-angle representation, this would be

Rotation vector

The above example can be represented as a rotation vector with a magnitude of pointing in the z direction.

This is the product of the angle and vector. It is more compact and is used for the exponential and log mapsinvolving this representation.

Page 2: Axis–angle representation

Axisangle representation 2

Simultaneous orthogonal rotation angle

The orientation of a rigid-body indicated with three simultaneous rotations around therigid-body's intrisic axes and their single rotation equivalent.

Simultaneous Orthogonal RotationsAngle (SORA) is a vector representingangular orientation of a rigid-bodyrelative to some reference frame. Thecomponents of this vector are equal tothe angles of three simultaneousrotations around the rigid body'sintrinsic coordinate system axes,initially aligned with the axes of thereference frame, needed to move therigid body to its current angularorientation.

Every angular orientation can be represented by a single rotation. Therefore, the three simultaneous orthogonalrotations actually represent a single rotation around a certain axis v and for a certain angle . The orientation andmagnitude of SORA are equal to this equivalent single rotation axis v and angle , respectively. SORA is thereforethe rotation vector. Denoting the angles of the three simultaneous orthogonal rotations with , , and ,SORA is equal to:

where v and are the equivalent single rotation axis and angle respectively, equal to:

An analytic derivation of these single rotation equivalent axis and angle is achieved by decomposing the totalrotation to an infinite sequence of infinitesimally small rotations.The most common scenario, where simultaneous rotation around three orthogonal axes can be observed is whenperforming measurements with a gyroscope. The three simultaneous orthogonal rotations measured with a 3Dgyroscope represent a single rotation around a certain axis for a certain angle. When the measured angular velocitiesor their proportions are constant, this rotation and the resulting angular orientation can be uniquely represented withSORA. When this condition is met, the orientation of the rotation axis does not change and the components of SORAare equal to the angles of three simultaneous rotations measured with a 3D gyroscope.Using gyroscope measurements that provide rotation angle estimation, it is reasonable to combine angular velocitiesaround three orthogonal axes in vector form:

Angular velocity vector is orthogonal to the rotation plane, and its magnitude is equal to the angular velocity inthat plane. When the measured angular velocities or their proportions are approximately constant, the orientation ofthe rotation axis is also constant. It then holds:

Page 3: Axis–angle representation

Axisangle representation 3

SORA represents a unique angular orientation of a rigid-body relative to some reference frame. Using SORA as ageneralized representation of angular orientation, we can avoid the problem of rotation non-commutativity. AsSORA indicates a single rotation for a specific angular orientation, the Gimbal problem is here avoided. Because ofthe mentioned, SORA is much more suitable for representation of angular orientation than widely used Euler angles.SORA is simple and well-suited for use in the real-time calculation of orientation based on angular velocitymeasurements derived using a gyroscope, as long as the measured angular velocities or their proportions areapproximately constant. Under this condition, using SORA, orientation calculation only requires a single step.SORA is appropriate for use in a number of applications that require angular orientation information, includingnavigation and motion tracking.Finally, SORA helps interpret the meaning of the rotation vector with measurable quantities.

Rotating a vectorRodrigues' rotation formula (named after Olinde Rodrigues) is an efficient algorithm for rotating a vector in space,given a rotation axis and an angle of rotation. In other words, the Rodrigues formula provides an algorithm tocompute the exponential map from so(3) to SO(3) without computing the full matrix exponent (the rotation matrix).If v is a vector in and ω is a unit vector describing an axis of rotation about which we want to rotate v by anangle θ (in a right-handed sense), the Rodrigues formula to obtain the rotated vector is:

This is more efficient than converting ω and θ into a rotation matrix, and using the rotation matrix to compute therotated vector.

Relationship to other representationsThere are many ways to represent a rotation. It is useful to understand how different representations relate to oneanother, and how to convert between them.

Exponential map from so(3) to SO(3)The exponential map is used as a transformation from axis-angle representation of rotations to rotation matrices.

Essentially, by using a Taylor expansion you can derive a closed form relationship between these tworepresentations. Given a unit vector representing the Euler axis, and an angle, , an equivalentrotation matrix is given by the following:

where R is a 3×3 rotation matrix and is the cross product matrix of . This can be easily derived fromRodrigues' rotation formula. – Due to the existence of the above mentioned exponential map, the unit vector representing the rotation axis, and the angle are sometimes called the exponential coordinates of the rotationmatrix R.

Page 4: Axis–angle representation

Axisangle representation 4

Log map from SO(3) to so(3)To retrieve the axis-angle representation of a rotation matrix calculate the angle of rotation:

and then use it to find the normalized axis:

Note, also that the Matrix logarithm of the rotation matrix R is:

Except when R has eigenvalues equal to -1 where the log is not unique. However, even in the case where theFrobenius norm of the log is:

Note that given rotation matrices A and B:

is the geodesic distance on the 3D manifold of rotation matrices. Note that for small rotations, the above computationof may be numerically imprecise as the derivative of arccos goes to infinity as theta approaches zero. In that case,the off-axis terms will provide better information about , as for small angles, where is thematrix representation of the cross product.This formulation also has numerical problems at . There, the off-axis terms don't give information about therotation axis (which is still defined up to a sign ambiguity). In that case, we must reconsider the above formula:

At we have

and so let

so the diagonal terms of B are the squares of the elements of and the signs (up to sign ambiguity) can bedetermined from the signs of the off-axis terms of B.

Unit QuaternionsTo transform from axis-angle coordinates to unit quaternions use the following expression:

Given a unit quaternion, , the axis-angle coordinates can be extracted using the following:

A more numerically stable expression of the rotation angle is the following:

It may also be useful to know:

Page 5: Axis–angle representation

Axisangle representation 5

References

Page 6: Axis–angle representation

Article Sources and Contributors 6

Article Sources and ContributorsAxis–angle representation  Source: http://en.wikipedia.org/w/index.php?oldid=566492973  Contributors: Angus Lepper, BenFrantzDale, Calaka, Fmalan, Hamidbaghi, Hyacinth, Ideal gasequation, Incnis Mrsi, Ionut79, Jheald, Jitse Niesen, JohnBlackburne, Juansempere, Kborer, Lantonov, Lisonator, Magioladitis, Mhss, MuDavid, NOrbeck, Oleg Alexandrov, PAR, Paolo.dL,RDBury, Robertmacl, Samuel Huang, Sargenije, Skysmith, Sunlen, Switchercat, UESgirl18, YuryBrodskiy, 43 anonymous edits

Image Sources, Licenses and ContributorsImage:Euler AxisAngle.png  Source: http://en.wikipedia.org/w/index.php?title=File:Euler_AxisAngle.png  License: Public Domain  Contributors: DF MalanFile:SimultaneousRotationsSingleRotationEquivalent.png  Source: http://en.wikipedia.org/w/index.php?title=File:SimultaneousRotationsSingleRotationEquivalent.png  License: CreativeCommons Attribution-Sharealike 3.0  Contributors: User:Sargenije

LicenseCreative Commons Attribution-Share Alike 3.0//creativecommons.org/licenses/by-sa/3.0/