Wahba's problem

From HandWiki

In applied mathematics, Wahba's problem, first posed by Grace Wahba in 1965, seeks to find a rotation matrix (special orthogonal matrix) between two coordinate systems from a set of (weighted) vector observations. Solutions to Wahba's problem are often used in satellite attitude determination utilising sensors such as magnetometers and multi-antenna GPS receivers. The cost function that Wahba's problem seeks to minimise is as follows:

J(𝐑)=12k=1Nak𝐰k𝐑𝐯k2 for N2

where 𝐰k is the k-th 3-vector measurement in the reference frame, 𝐯k is the corresponding k-th 3-vector measurement in the body frame and 𝐑 is a 3 by 3 rotation matrix between the coordinate frames.[1] ak is an optional set of weights for each observation.

A number of solutions to the problem have appeared in literature, notably Davenport's q-method,[2] QUEST and methods based on the singular value decomposition (SVD). Several methods for solving Wahba's problem are discussed by Markley and Mortari.

This is an alternative formulation of the Orthogonal Procrustes problem (consider all the vectors multiplied by the square-roots of the corresponding weights as columns of two matrices with N columns to obtain the alternative formulation). An elegant derivation of the solution on one and a half page can be found in.[3]

Solution via SVD

One solution can be found using a singular value decomposition (SVD).

1. Obtain a matrix 𝐁 as follows:

𝐁=i=1nai𝐰i𝐯iT

2. Find the singular value decomposition of 𝐁

𝐁=𝐔𝐒𝐕T

3. The rotation matrix is simply:

𝐑=𝐔𝐌𝐕T

where 𝐌=diag([11det(𝐔)det(𝐕)])

Notes

  1. The rotation 𝐑 in the problem's definition transforms the body frame to the reference frame. Most publications define rotation in the reverse direction, i.e. from the reference to the body frame which amounts to 𝐑T.
  2. "Davenport's Q-method (Finding an orientation matching a set of point samples)". https://math.stackexchange.com/q/1634113. 
  3. Appel, M.. "Robust Spoofing Detection and Mitigation based on Direction of Arrival Estimation". Ion GNSS+ 2015 28. https://elib.dlr.de/99721/1/appel_ion_2015_v05.pdf. 

References

See also