Unit Quaternions and Smooth Rotation Interpolation

Use the double representation of a rotation to select compatible quaternion signs before interpolating.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Unit length carries the rotation contract
  2. Interpolate on the sphere of representatives

Unit length carries the rotation contract

A unit quaternion with scalar part \(\cos(\theta/2)\) and vector part \(u\sin(\theta/2)\) represents rotation by angle \(\theta\) about unit axis \(u\), under a stated handedness convention. Both \(q\) and \(-q\) represent the same physical rotation. Multiplying quaternions composes rotations in an order determined by the active or passive convention.

Interpolate on the sphere of representatives

Two equivalent signs for an endpoint can give different paths between representative points. To use the shorter arc when appropriate, choose signs with nonnegative dot product before spherical interpolation. Repeated floating-point updates can also drift from unit length, so account for normalization. Rotation matrices express the same geometric action. Trajectory time scaling decides how fast an interpolated motion proceeds.[1][2]

References

  1. Kevin M. Lynch and Frank C. Park, Modern Robotics: Mechanics, Planning, and Control ↩
  2. Russ Tedrake, Underactuated Robotics ↩