Exponential and Log Maps
Exponential and Log Maps
The bridge between rotation vectors (where Gaussians, means and covariances work) and unit quaternions (where rotations compose).
Definitions
exp — rotation vector → quaternion. With :
Small angle: . Use to avoid dividing by 0.
log — quaternion → rotation vector. First flip to (shortest rotation), then:
atan2 is accurate at all angles, unlike 2*acos(w), which loses precision near 0 and throws when creeps above 1.
| Original code | ukf_core |
|
|---|---|---|
| exp | Quaternion.from_axis_angle |
qexp |
| log | Quaternion.axis_angle |
qlog |
⊞ and ⊟ ("box-plus / box-minus")
These let you treat the rotation manifold as if it were a vector space, locally:
That's the left / world-frame version. The right / body-frame version is and .
Uses in the UKF
| Step | Operation |
|---|---|
| Sigma points | |
| Process model | (body-frame increment) |
| Mean | iterate → Quaternion Averaging |
| Covariance | |
| Update |
Lie-group view (optional)
Unit quaternions form the Lie group ; rotation vectors live in its Lie algebra . exp/log are the standard maps between them. Further reading: Solà, Deray & Atchuthan, "A micro Lie theory for state estimation in robotics" (2018).
Next: Quaternion Averaging