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 ( R ) = 1 2 ∑ k = 1 N a k ‖ w k − R v k ‖ 2 {\displaystyle J(\mathbf {R} )={\frac {1}{2}}\sum _{k=1}^{N}a_{k}\|\mathbf {w} _{k}-\mathbf {R} \mathbf {v} _{k}\|^{2}} for N ≥ 2 {\displaystyle N\geq 2}
where w k {\displaystyle \mathbf {w} _{k}} is the k-th 3-vector measurement in the reference frame, v k {\displaystyle \mathbf {v} _{k}} is the corresponding k-th 3-vector measurement in the body frame and R {\displaystyle \mathbf {R} } is a 3 by 3 rotation matrix between the coordinate frames.
a k {\displaystyle a_{k}} 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, 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). A compact and elegant derivation can be found in Appel (2015).
Solution via SVD One solution can be found using a singular value decomposition (SVD). 1. Obtain a matrix B {\displaystyle \mathbf {B} } as follows:
B = ∑ i = 1 n a i w i v i T {\displaystyle \mathbf {B} =\sum _{i=1}^{n}a_{i}\mathbf {w} _{i}{\mathbf {v} _{i}}^{T}}
2. Find the singular value decomposition of B {\displaystyle \mathbf {B} }
B = U S V T {\displaystyle \mathbf {B} =\mathbf {U} \mathbf {S} \mathbf {V} ^{T}}
3. The rotation matrix is simply:
R = U M V T {\displaystyle \mathbf {R} =\mathbf {U} \mathbf {M} \mathbf {V} ^{T}}
where M = diag ( [ 1 1 det ( U ) det ( V ) ] ) {\displaystyle \mathbf {M} =\operatorname {diag} ({\begin{bmatrix}1&1&\det(\mathbf {U} )\det(\mathbf {V} )\end{bmatrix}})}
Notes
References Wahba, G. Problem 65–1: A Least Squares Estimate of Satellite Attitude, SIAM Review, 1965, 7(3), 409 Shuster, M. D. and Oh, S. D. Three-Axis Attitude Determination from Vector Observations, Journal of Guidance and Control, 1981, 4(1):70–77 Markley, F. L. Attitude Determination using Vector Observations and the Singular Value Decomposition, Journal of the Astronautical Sciences, 1988, 38:245–258 Markley, F. L. and Mortari, D. Quaternion Attitude Estimation Using Vector Observations, Journal of the Astronautical Sciences, 2000, 48(2):359–380 Markley, F. L. and Crassidis, J. L. Fundamentals of Spacecraft Attitude Determination and Control, Springer 2014 Libbus, B. and Simons, G. and Yao, Y. Rotating Multiple Sets of Labeled Points to Bring Them Into Close Coincidence: A Generalized Wahba Problem, The American Mathematical Monthly, 2017, 124(2):149–160 Lourakis, M. and Terzakis, G. Efficient Absolute Orientation Revisited, IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2018, pp. 5813-5818.
See also Triad method Kabsch algorithm Orthogonal Procrustes problem
