# 瓦巴问题

**瓦巴问题**是寻找旋转（姿态）矩阵的任务，该矩阵在加权最小二乘意义下最佳地对齐两组对应的向量观测。它由威斯康星大学麦迪逊分校（University of Wisconsin, Madison）的IJ Schoenberg-Hilldale统计学教授[格蕾丝·瓦巴](https://www.edgepedia.org/zh/grace-wahba)（Grace Wahba）于1965年7月在《SIAM评论》（SIAM Review）上作为问题65-1提出，其动机是从对恒星等已知物体的方向测量中估计卫星姿态。<sup>[1](https://epubs.siam.org/doi/10.1137/1007077)</sup><sup> • </sup><sup>[2](https://pages.stat.wisc.edu/~wahba/ftp1/oldie/wahbasproblem.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由格蕾丝·瓦巴作为问题65-1提出，《SIAM评论》第7卷第3期，1965年7月，第409页<sup>[1](https://epubs.siam.org/doi/10.1137/1007077)</sup> |
| 表述 | 求行列式为+1的正交矩阵 \(A\)，使 \(L(A)=\tfrac{1}{2}\sum_i a_i \lvert b_i - A r_i \rvert^2\) 最小，其中 \(b_i\) 为本体坐标系单位向量，\(r_i\) 为参考坐标系单位向量，\(a_i\) 为非负权重<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup> |
| 等价形式 | 最小化 \(L(A)\) 等于最大化 \(\mathrm{tr}(AB^T)\)，其中 \(B=\sum_i a_i b_i r_i^T\)；该问题是正交Procrustes问题，并附加要求 \(\det A=+1\)<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup> |
| 统计意义 | 若权重取为方差倒数 \(a_i=\sigma_i^{-2}\)，则解为姿态的最大似然估计<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup> |
| 经典算法 | 达文波特的q方法（达文波特矩阵的特征向量）、舒斯特的QUEST、马克利的SVD和FOAM、ESOQ以及FLAE<sup>[4](https://ntrs.nasa.gov/api/citations/20060012294/downloads/20060012294.pdf)</sup><sup> • </sup><sup>[5](https://www.spacejournal.cn/bjhkhtdxxb/article/doi/10.13700/j.bh.1001-5965.2022.0325)</sup> |
| 应用 | 由星敏感器、太阳和磁场敏感器进行航天器姿态确定；惯性/磁人体运动跟踪；机器人学；计算机视觉（旋转搜索）<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup><sup> • </sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3274035/)</sup><sup> • </sup><sup>[7](https://arxiv.org/abs/1905.12536)</sup> |

## 问题的表述

该问题假设一个载体，通常是航天器，其本体坐标系相对于一个已知参考坐标系旋转。如果载体测量到某个物体的方向，而该物体在参考坐标系中的方向已知，则两个坐标系之间的旋转可由两个或更多此类观测确定。由于测量从不精确，人们寻求最小二乘解。<sup>[8](https://ntrs.nasa.gov/api/citations/19670009376/downloads/19670009376.pdf?attachment=true)</sup>

形式化地说，给定 \(n \ge 2\) 对单位向量——航天器本体坐标系中的测量向量 \(\{b_i\}\) 和相应的参考向量 \(\{r_i\}\)——求正常正交矩阵 \(A\)（行列式为+1的正交矩阵），使

\[ L(A) = \frac{1}{2} \sum_{i=1}^{n} a_i \lvert b_i - A r_i \rvert^2, \]

最小，其中 \(a_i\) 为非负权重。如果向量无误差，并且单一真实姿态矩阵适用于所有测量，那么对每个 \(i\) 都有 \(b_i=A_{\mathrm{true}}r_i\)，损失函数在真实姿态处将恰好为零；数据有噪声时，使损失最小的 \(A\) 就是加权最小二乘估计。<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup><sup> • </sup><sup>[9](https://ntrs.nasa.gov/api/citations/19930015542/downloads/19930015542.pdf)</sup>

简单的矩阵运算可将损失改写为 \(L(A)=\lambda_0-\mathrm{tr}(AB^T)\)，其中 \(\lambda_0=\sum_i a_i\)，\(B=\sum_i a_i b_i r_i^T\)。因此，最小化 \(L(A)\) 等价于最大化 \(AB^T\) 的迹；又因为 \(A\) 是正交矩阵，这也等价于在弗罗贝尼乌斯（欧几里得）范数下寻找最接近 \(B\) 的正常正交矩阵。这使得瓦巴问题等价于正交[Procrustes](https://www.edgepedia.org/zh/procrustes)问题，但附带条件是 \(A\) 的行列式必须为+1，从而排除反射。<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup><sup> • </sup><sup>[9](https://ntrs.nasa.gov/api/citations/19930015542/downloads/19930015542.pdf)</sup>

**统计解释。** 将权重取为方差倒数 \(a_i=\sigma_i^{-2}\)，就把该问题与最大似然估计联系起来；瓦巴和许多后来的作者反而假设权重归一化为和为一，这一选择对姿态估计没有影响。在适当的测量模型下，瓦巴解是姿态的最大似然估计，而QUEST等估计量的协方差表现为[费希尔信息](https://www.edgepedia.org/zh/fisher-information)矩阵的逆。<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup><sup> • </sup><sup>[10](https://www.researchgate.net/publication/312792189_Static_Attitude_Determination_Methods)</sup>

## 早期解法

问题65-1的首批解法由J. L. 法雷尔（J. L. Farrell）和J. C. 施图尔普纳格尔（J. C. Stuelpnagel）发表在《SIAM评论》的问题专栏上，R. H. 韦斯纳（R. H. Wessner）、J. R. 维尔曼（J. R. Velman）和J. E. 布罗克（J. E. Brock）又给出了更多解法；瓦巴自己的历史注记记载，以她名字命名的问题，按她的说法，并不是她最先解决的。<sup>[2](https://pages.stat.wisc.edu/~wahba/ftp1/oldie/wahbasproblem.pdf)</sup><sup> • </sup><sup>[11](https://pages.stat.wisc.edu/~wahba/ftp1/wahba_s.problem.pdf)</sup> 这些早期解法直接求解姿态矩阵，通常通过极分解，需要对称矩阵的完整特征值和特征向量集，计算量很大；它们未获得广泛应用。<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup><sup> • </sup><sup>[12](https://ntrs.nasa.gov/api/citations/19940031098/downloads/19940031098.pdf)</sup>

## 求解算法

**达文波特的q方法。** 保罗·达文波特（Paul Davenport）使用姿态矩阵的四元数参数化，将九元素姿态矩阵中的二次损失转化为四分量四元数中的二次损失，后者所受约束更少。最优四元数是对称4×4达文波特矩阵 \(K\) 的最大特征值对应的特征向量。这种特征值表述是后来许多文献的起点。该方法稳健，但相对较慢。<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup><sup> • </sup><sup>[4](https://ntrs.nasa.gov/api/citations/20060012294/downloads/20060012294.pdf)</sup><sup> • </sup><sup>[12](https://ntrs.nasa.gov/api/citations/19940031098/downloads/19940031098.pdf)</sup>

**QUEST。** 舒斯特的QUEST（QUaternion ESTimator，四元数估计器）为达文波特方法提出的特征值问题提供了一种高效的闭式解，并且比q方法本身应用得广泛得多。<sup>[4](https://ntrs.nasa.gov/api/citations/20060012294/downloads/20060012294.pdf)</sup><sup> • </sup><sup>[12](https://ntrs.nasa.gov/api/citations/19940031098/downloads/19940031098.pdf)</sup>

**马克利的SVD和FOAM方法。** 美国国家航空航天局（NASA）戈达德空间飞行中心制导与控制分部的F·兰迪斯·马克利（F. Landis Markley）表明，奇异值分解 \(B=USV^T\) 直接给出最优姿态矩阵 \(A_{\mathrm{opt}}=U\,\mathrm{diag}(1,1,\det U\det V)\,V^T\)，从而修正了可能的反射情形。SVD方法非常稳健，但效率不高。马克利后来的FOAM（Fast Optimal Attitude Matrix，快速最优姿态矩阵）算法避免了奇异值分解，效率很高；马克利报告的执行时间甚至比此前已知最快的QUEST还快。<sup>[4](https://ntrs.nasa.gov/api/citations/20060012294/downloads/20060012294.pdf)</sup><sup> • </sup><sup>[9](https://ntrs.nasa.gov/api/citations/19930015542/downloads/19930015542.pdf)</sup><sup> • </sup><sup>[12](https://ntrs.nasa.gov/api/citations/19940031098/downloads/19940031098.pdf)</sup>

**TRIAD与双向量情形。** 作为首个已发表的、由一对向量观测计算航天器姿态的方法，TRIAD已广泛用于地面和航天器上的姿态确定，包括小型天文卫星（Small Astronomy Satellite）、海洋卫星（Seasat）、大气探测者任务（Atmospheric Explorer Mission）和动力学探测者（Dynamics Explorer）等任务。两次向量测量是确定三轴姿态所需的最小数目，例如用于粗略“太阳-磁”姿态的指向太阳的单位向量和[地球磁场](https://www.edgepedia.org/zh/earths-magnetic-field)，或用于精细姿态的两个恒星方向。TRIAD是确定性的且次优的：对双观测情形的分析表明，它仅在特殊权重选择（如等权重）下才最小化瓦巴损失函数。<sup>[3](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)</sup><sup> • </sup><sup>[9](https://ntrs.nasa.gov/api/citations/19930015542/downloads/19930015542.pdf)</sup><sup> • </sup><sup>[12](https://ntrs.nasa.gov/api/citations/19940031098/downloads/19940031098.pdf)</sup><sup> • </sup><sup>[13](https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19990052720.pdf)</sup>

**后来的发展。** 一篇综述列出了更多算法，包括ESOQ（estimator of the optimal quaternion，最优四元数估计器）、FLAE（fast linear quaternion attitude estimator，快速线性四元数姿态估计器）以及基于黎曼流形的方法，并同时列出了QUEST、FOAM和SVD。<sup>[5](https://www.spacejournal.cn/bjhkhtdxxb/article/doi/10.13700/j.bh.1001-5965.2022.0325)</sup> 在机器人学中，牛顿法已被改造，用于在单位四元数空间上直接求解标准问题，以进行轨迹优化。<sup>[14](https://www.ri.cmu.edu/publications/planning-with-attitude/)</sup> 对于受离群值污染的数据，麻省理工学院（MIT）的杨恒（Heng Yang）和卢卡·卡洛内（Luca Carlone）的QUASAR算法用截断最小二乘代价表述该问题，将其转化为单位四元数中的二次约束二次规划，并求解一个在大噪声下仍保持紧的半定规划松弛；即使95%的对应关系是离群值，它也能计算出可认证最优解，性能优于RANSAC、稳健局部优化、全局离群值移除和分支定界方法。<sup>[7](https://arxiv.org/abs/1905.12536)</sup>

## 应用

瓦巴问题起源于卫星姿态估计，其中星敏感器、太阳敏感器和磁强计提供向量观测。<sup>[1](https://epubs.siam.org/doi/10.1137/1007077)</sup><sup> • </sup><sup>[15](https://ntrs.nasa.gov/api/citations/20130014073/downloads/20130014073.pdf?attachment=true)</sup> 同一表述也支撑消费电子（如智能手机、可穿戴设备和无人机）中由加速度计-磁强计组合进行的姿态估计，其中达文波特特征值问题的快速解在低功耗硬件上受到重视。<sup>[16](https://onlinelibrary.wiley.com/doi/10.1155/2018/8787236)</sup> 用于人体朝向跟踪的惯性和磁传感，包括康复、机器人学和虚拟现实中的应用，被视为瓦巴问题的一个应用，[互补滤波器](https://www.edgepedia.org/zh/complementary-filter)和梯度下降方法（如马奇威克算法（Madgwick's algorithm））求解其四元数版本。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3274035/)</sup><sup> • </sup><sup>[17](https://pmc.ncbi.nlm.nih.gov/articles/PMC6263778/)</sup> 在计算机视觉和机器人学中，该问题被称为旋转搜索，是用于对齐向量观测集的基本例程。<sup>[7](https://arxiv.org/abs/1905.12536)</sup>

## References

1. [Grace Wahba (1965). Problem 65-1: A Least Squares Estimate of Satellite Attitude. SIAM Review 7(3), p. 409.](https://epubs.siam.org/doi/10.1137/1007077)
2. [Problem 65-1, A Least Squares Estimate of Satellite Attitude, by Grace Wahba (problem statement and Farrell–Stuelpnagel solution), Grace Wahba's website](https://pages.stat.wisc.edu/~wahba/ftp1/oldie/wahbasproblem.pdf)
3. [F. Landis Markley and colleagues. Statistical Attitude Determination, NASA Goddard Space Flight Center.](https://ntrs.nasa.gov/api/citations/20180000027/downloads/20180000027.pdf)
4. [F. Landis Markley. Humble Problems, NASA Goddard Space Flight Center.](https://ntrs.nasa.gov/api/citations/20060012294/downloads/20060012294.pdf)
5. [多矢量姿态测量算法研究综述 (Survey of multi-vector attitude determination algorithms), 北京航空航天大学学报](https://www.spacejournal.cn/bjhkhtdxxb/article/doi/10.13700/j.bh.1001-5965.2022.0325)
6. [Estimating Three-Dimensional Orientation of Human Body Parts by Inertial/Magnetic Sensing, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC3274035/)
7. [Heng Yang and Luca Carlone (2019). A Quaternion-based Certifiably Optimal Solution to the Wahba Problem with Outliers. arXiv:1905.12536.](https://arxiv.org/abs/1905.12536)
8. [A Vector Approach to the Algebra of Rotations, NASA Technical Reports Server](https://ntrs.nasa.gov/api/citations/19670009376/downloads/19670009376.pdf?attachment=true)
9. [F. Landis Markley. Attitude Determination Using Vector Observations: A Fast Optimal Matrix Algorithm, NASA Technical Reports Server](https://ntrs.nasa.gov/api/citations/19930015542/downloads/19930015542.pdf)
10. [Static Attitude Determination Methods, ResearchGate](https://www.researchgate.net/publication/312792189_Static_Attitude_Determination_Methods)
11. [Grace Wahba. Historical Note, in Multisensor Attitude Estimation, Grace Wahba's website](https://pages.stat.wisc.edu/~wahba/ftp1/wahba_s.problem.pdf)
12. [Wahba's Problem, NASA Technical Reports Server](https://ntrs.nasa.gov/api/citations/19940031098/downloads/19940031098.pdf)
13. [F. Landis Markley (1998). Attitude Determination Using Two Vector Measurements, NASA Technical Reports Server](https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19990052720.pdf)
14. [Brian E. Jackson, Kevin Tracy, and Zachary Manchester (2021). Planning With Attitude, IEEE Robotics and Automation Letters, CMU Robotics Institute](https://www.ri.cmu.edu/publications/planning-with-attitude/)
15. [NASA/TM–2013-208641, Attitude Determination Problem, NASA Technical Reports Server](https://ntrs.nasa.gov/api/citations/20130014073/downloads/20130014073.pdf?attachment=true)
16. [Liu (2018). Simplified Attitude Determination Algorithm Using Accelerometer and Magnetometer with Extremely Low Execution Time, Journal of Sensors](https://onlinelibrary.wiley.com/doi/10.1155/2018/8787236)
17. [Estimating Three-Dimensional Body Orientation Based on an Improved Complementary Filter for Human Motion Tracking, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC6263778/)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › Robot software, AI, and methods › Localization, state estimation, and navigation

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/wahbas-problem

English original: https://www.edgepedia.org/wahbas-problem
