# FABRIK

**FABRIK**（Forward And Backward Reaching Inverse Kinematics，前向与后向到达逆运动学）是一种求解逆运动学问题的启发式迭代算法，它将每个关节视为空间中的一个点、每根骨骼视为一根刚性杆，完全避开旋转角度和矩阵，转而通过在直线上定位点来求出每个关节的位置。该算法由[剑桥大学](https://www.edgepedia.org/zh/university-of-cambridge)的安德烈亚斯·阿里斯蒂杜（Andreas Aristidou）和琼·拉森比（Joan Lasenby）于2011年发表在《图形模型》（*Graphical Models*）73(5): 243–260上。<sup>[1](https://andreasaristidou.com/FABRIK)</sup>

| 关键事实 | 详情 |
|---|---|
| 原始发表 | 阿里斯蒂杜与拉森比，《图形模型》73(5): 243–260，2011年9月，剑桥大学<sup>[1](https://andreasaristidou.com/FABRIK)</sup> |
| 方法 | 纯几何方法：关节是点，骨骼是固定长度的刚性杆；每次迭代先执行从末端执行器到根节点的后向传递，再执行从根节点到末端执行器的前向传递<sup>[2](https://github.khronos.org/Vulkan-Site/tutorial/latest/Advanced_glTF/Procedural_Animation_IK/03_fabrik.html)</sup> |
| 避免的内容 | 不使用旋转角度，不使用雅可比矩阵，不做矩阵求逆，因此没有奇异性问题<sup>[1](https://andreasaristidou.com/FABRIK)</sup><sup> • </sup><sup>[3](https://project.dke.maastrichtuniversity.nl/robotlab/wp-content/uploads/Bachelor-thesis-Renzo-Poddighe.pdf)</sup> |
| 每次迭代的计算代价 | 关于关节数量的O(n)，而基于雅可比的方法每步为O(n²)–O(n³)<sup>[4](https://www.mysimulator.uk/content/articles/jacobian-ik-vs-fabrik.html)</sup> |
| 报告的精度 | 在原始论文的重建测试中，FABRIK在65次迭代、每次迭代1.6毫秒的条件下达到0.0246毫米的中位误差，而CCD为0.3060毫米，雅可比转置法为1.4334毫米<sup>[5](https://www.researchgate.net/publication/220632147_FABRIK_A_fast_iterative_solver_for_the_Inverse_Kinematics_problem)</sup> |
| 约束与链 | 关节限制可以直接纳入，并且支持带多个末端执行器的多条链<sup>[1](https://andreasaristidou.com/FABRIK)</sup> |
| 典型用途 | 角色动画、实时游戏、触手与蜘蛛腿；生产引擎通常将其与CCD配合使用，由CCD处理受约束的肢体关节<sup>[4](https://www.mysimulator.uk/content/articles/jacobian-ik-vs-fabrik.html)</sup><sup> • </sup><sup>[2](https://github.khronos.org/Vulkan-Site/tutorial/latest/Advanced_glTF/Procedural_Animation_IK/03_fabrik.html)</sup> |

## 工作原理

FABRIK将[运动链](https://www.edgepedia.org/zh/kinematic-chain)视为由固定长度的刚性连杆连接的一系列点。给定末端执行器的目标位置后，它分两个阶段在链上重新分配各关节。后向阶段将末端执行器锚定在目标处，并将链条朝根节点方向推进；前向阶段将根节点重新锚定在原始位置，再向末端执行器方向推进。每一步中，一个关节被吸附到指向其邻居的直线上，距离保持为固定连杆长度，因此连杆长度被精确保持。重复这两个阶段即可快速收敛到解。<sup>[2](https://github.khronos.org/Vulkan-Site/tutorial/latest/Advanced_glTF/Procedural_Animation_IK/03_fabrik.html)</sup>

按原始论文的记号，关节位置为p₁到pₙ，目标为t，连杆长度为dᵢ = |pᵢ₊₁ − pᵢ|，后向传递将最后一个关节设为目标位置，然后将前面每个关节重新定位到指向其后继的直线上；前向传递从固定的根节点出发做同样的操作。<sup>[5](https://www.researchgate.net/publication/220632147_FABRIK_A_fast_iterative_solver_for_the_Inverse_Kinematics_problem)</sup> 所有操作都是关于位置的向量运算，因此该方法除了归一化之外不需要任何线性代数工具。<sup>[4](https://www.mysimulator.uk/content/articles/jacobian-ik-vs-fabrik.html)</sup>

**为何能避开奇异性。** 基于雅可比的求解器从机械臂的速度矩阵计算关节更新。在奇异点附近，普通伪逆会除以一个接近零的奇异值，产生巨大且不稳定的关节指令；阻尼最小二乘加入一个阻尼项来将其限制在有限范围内，代价是需要调节阻尼常数。<sup>[4](https://www.mysimulator.uk/content/articles/jacobian-ik-vs-fabrik.html)</sup> FABRIK完全绕开了这个问题，因为它避免了矩阵求逆，所以不受奇异性问题困扰。<sup>[3](https://project.dke.maastrichtuniversity.nl/robotlab/wp-content/uploads/Bachelor-thesis-Renzo-Poddighe.pdf)</sup>

**与CCD的比较。** 循环坐标下降（Cyclic Coordinate Descent, CCD）考虑的是关节和旋转，而FABRIK考虑的是位置。CCD倾向于将修正集中在最靠近末端执行器的关节上，这是一种末端执行器偏置；FABRIK避免了这一点，因为它的两个阶段对称地处理链上的每个关节。对于全臂伸展以及脊柱和更长的链，FABRIK将修正更均匀地分布到整条链上，产生平滑、流畅的弯曲，而CCD应用于五骨骼脊柱时会使骨盆附近的骨骼过度旋转。<sup>[2](https://github.khronos.org/Vulkan-Site/tutorial/latest/Advanced_glTF/Procedural_Animation_IK/03_fabrik.html)</sup>

## 性能

原始论文的重建比较在20次运行上取平均，MATLAB运行时间以毫秒计，报告结果如下：<sup>[5](https://www.researchgate.net/publication/220632147_FABRIK_A_fast_iterative_solver_for_the_Inverse_Kinematics_problem)</sup>

| 方法 | 迭代次数 | 每次迭代时间（毫秒） | 中位误差（毫米） |
|---|---|---|---|
| FABRIK | 65 | 1.6 | 0.0246 |
| CCD | 67 | 20.5 | 0.3060 |
| 雅可比转置 | 1352 | 1928.0 | 1.4334 |
| 雅可比DLS | 804 | 1533.0 | 1.9067 |
| 雅可比SVD-DLS | 723 | 1494.0 | 2.0664 |

马斯特里赫特大学的伦佐·波迪盖（Renzo Poddighe）和尼科斯·罗斯（Nicoos Roos）在2013年发表的一项同行评审研究中，在NAO人形机器人的手臂上测试了这些方法，发现FABRIK（该研究将其描述为一种启发式迭代近似算法）在计算时间、精度和收敛速度上均优于两种基于雅可比逆技术的传统方法。人工神经网络在计算时间上远超所有算法，但精度不足。同一项研究使用FABRIK让一台[NAO机器人](https://www.edgepedia.org/zh/nao-robot)下井字棋。<sup>[6](https://cris.maastrichtuniversity.nl/en/publications/a-nao-robot-playing-tic-tac-toe-comparing-alternative-methods-for/)</sup>

在游戏引擎中，实际性能差距可能很小。一项在Unity中实现“FABRIK IK”求解器的研究测量了帧率差异，与Unity内置的“双骨IK”（Two Bone IK）和“链式IK”（Chain IK）求解器相比，差异在−8.29%到5.89%之间，同时发现FABRIK提供了更多内置功能、支持多个末端执行器，并且与“链式IK”相比具有解剖学上更合理的行走周期。<sup>[7](https://journals.vilniustech.lt/index.php/MLA/article/view/19216)</sup>

## 扩展与变体

**受约束的FABRIK。** 阿里斯蒂杜、约尔戈斯·赫里桑图（Yiorgos Chrysanthou）和琼·拉森比在2016年发表于《计算机动画与虚拟世界》（*Computer Animation & Virtual Worlds*）27(1): 35–57的后续论文中，用模型约束扩展了FABRIK，支持多种不同的关节，并在一个人形模型上评估了该方法。<sup>[1](https://andreasaristidou.com/FABRIK)</sup> 该求解器的一个早期版本还用共形几何代数（Conformal Geometric Algebra）实现，并应用于人手模型的实时手部姿态跟踪。<sup>[8](https://andreasaristidou.com/publications/papers/Inverse_Kinematics_GA.pdf)</sup>

**连续体与超冗余机器人。** FABRIKx由德米特里·科尔帕什奇科夫（Dmitrii Kolpashchikov）、奥尔加·格尔格特（Olga Gerget）和维亚切斯拉夫·达尼洛夫（Viacheslav Danilov）于2022年发表在《机器人学》（*Robotics*）11(6): 128上，在分段常曲率假设下将该算法适配到具有可变曲率的多段连续体机器人；在仿真中，它比基于雅可比和基于FABRIKc的算法成功率高、求解时间短。作者选择FABRIK作为基础算法，因为它无奇异性。<sup>[9](https://ouci.dntb.gov.ua/en/works/7pvZOpxl/)</sup> 一种形状可控的改进FABRIK方法用于超冗余机器人，由牛平安、韩亮、黄云志和闫磊于2024年1月发表在《机器人学》（*Robotica*）42(1): 225–241上，解决了受限空间中的路径与形状约束问题，而经典FABRIK方法和雅可比伪逆方法在这些情况下难以施加约束。<sup>[10](https://www.cambridge.org/core/journals/robotica/article/shapecontrollable-inverse-kinematics-of-hyperredundant-robots-based-on-the-improved-fabrik-method/99EEF9807B3D5D8C6E5879967B63B6B5)</sup> VO-FABRIK（2024年）将用于可重复确定性逆运动学计算的FABRIK与受速度障碍启发的方法相结合，用于在碰撞和关节限制约束下的路径规划，并在一个具有19个驱动关节的工业超冗余机械臂上表现出良好性能，而最先进的逆运动学求解器在该机械臂上失败了。<sup>[11](https://arxiv.org/abs/2403.05399)</sup>

**与优化算法混合。** 2022年的一种算法将FABRIK与序列二次规划（Sequential Quadratic Programming, SQP）相结合：由FABRIK推导出的关节角为SQP阶段提供初始值，以避免陷入局部最小值。在高误差约束下，该组合方法比单独使用FABRIK成功率高、求解时间短，并在路径跟踪中为UR5和KUKA LBR IIWA 14 R820机械臂生成了连续轨迹。<sup>[12](https://arxiv.org/abs/2209.02532)</sup>

## 在生产系统中的应用

FABRIK发表后迅速产生影响力，因为在许多场景中它在视觉上优于CCD，且实现简单。<sup>[2](https://github.khronos.org/Vulkan-Site/tutorial/latest/Advanced_glTF/Procedural_Animation_IK/03_fabrik.html)</sup> 它适合角色动画、实时游戏以及触手或蜘蛛腿链，而雅可比方法适合真实机械臂、考虑力矩的规划以及冗余自由度机械臂，在这些应用中处理方向和关节限制很重要。<sup>[4](https://www.mysimulator.uk/content/articles/jacobian-ik-vs-fabrik.html)</sup> 在实践中，许多生产系统同时使用这两类方法：FABRIK（或CCD）用于快速近似到达，当需要精确的末端执行器方向时，再用几次雅可比阻尼最小二乘迭代进行细化<sup>[4](https://www.mysimulator.uk/content/articles/jacobian-ik-vs-fabrik.html)</sup>；许多生产游戏引擎使用CCD处理肢体IK，使用FABRIK处理脊柱和特殊情况，因为从场景图的角度来看，两种算法共享相同的接口。<sup>[2](https://github.khronos.org/Vulkan-Site/tutorial/latest/Advanced_glTF/Procedural_Animation_IK/03_fabrik.html)</sup>

## References

1. [Aristidou, A. & Lasenby, J. FABRIK: a fast, iterative solver for the inverse kinematics problem, Graphical Models 73(5): 243–260, 2011 (author page with abstract and BibTeX)](https://andreasaristidou.com/FABRIK)
2. [FABRIK: Forward And Backward Reaching IK, Vulkan Documentation Project, Procedural Animation & IK tutorial](https://github.khronos.org/Vulkan-Site/tutorial/latest/Advanced_glTF/Procedural_Animation_IK/03_fabrik.html)
3. [Poddighe, R. (2013). Comparing FABRIK and neural networks to traditional methods in solving Inverse Kinematics, Bachelor thesis, Maastricht University](https://project.dke.maastrichtuniversity.nl/robotlab/wp-content/uploads/Bachelor-thesis-Renzo-Poddighe.pdf)
4. [Jacobian-based IK vs FABRIK: A Comparison, MySimulator](https://www.mysimulator.uk/content/articles/jacobian-ik-vs-fabrik.html)
5. [Aristidou, A. & Lasenby, J. FABRIK: A fast, iterative solver for the Inverse Kinematics problem (full text via ResearchGate)](https://www.researchgate.net/publication/220632147_FABRIK_A_fast_iterative_solver_for_the_Inverse_Kinematics_problem)
6. [Poddighe, R. & Roos, N. (2013). A Nao robot playing tic-tac-toe – Comparing alternative methods for Inverse Kinematics, BNAIC 2013, pp. 144–151, Maastricht University research portal](https://cris.maastrichtuniversity.nl/en/publications/a-nao-robot-playing-tic-tac-toe-comparing-alternative-methods-for/)
7. [Procedural animation technology application for humanoid game agents, Mokslas – Lietuvos ateitis / Science – Future of Lithuania](https://journals.vilniustech.lt/index.php/MLA/article/view/19216)
8. [Aristidou, A. & Lasenby, J. Inverse Kinematics Solutions Using Conformal Geometric Algebra, in Guide to Geometric Algebra in Practice, Springer, 2011](https://andreasaristidou.com/publications/papers/Inverse_Kinematics_GA.pdf)
9. [Kolpashchikov, D., Gerget, O. & Danilov, V. FABRIKx: Tackling the Inverse Kinematics Problem of Continuum Robots with Variable Curvature, Robotics 2022, 11(6), 128](https://ouci.dntb.gov.ua/en/works/7pvZOpxl/)
10. [Niu, P., Han, L., Huang, Y. & Yan, L. Shape-controllable inverse kinematics of hyper-redundant robots based on the improved FABRIK method, Robotica 42(1): 225–241, 2024](https://www.cambridge.org/core/journals/robotica/article/shapecontrollable-inverse-kinematics-of-hyperredundant-robots-based-on-the-improved-fabrik-method/99EEF9807B3D5D8C6E5879967B63B6B5)
11. [Morasso, C. et al. (2024). Planning and Inverse Kinematics of Hyper-Redundant Manipulators with VO-FABRIK, arXiv:2403.05399](https://arxiv.org/abs/2403.05399)
12. [Xu, Z. et al. (2022). A Combined Inverse Kinematics Algorithm Using FABRIK with Optimization, arXiv:2209.02532](https://arxiv.org/abs/2209.02532)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › Mechanical foundations of robotics › Robot kinematics and differential kinematics

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/fabrik

English original: https://www.edgepedia.org/fabrik
