# 正向运动学

正向运动学是根据机器人各关节变量的取值，利用关节间连杆的固定几何关系，计算并确定机器人末端执行器位置与姿态的运算。<sup>[1](https://users.cs.duke.edu/~brd/Teaching/Bio/asmb/current/Papers/chap3-forward-kinematics.pdf)</sup> 形式上，它将关节坐标向量 \( q \in \mathbb{R}^{N} \)（其中 \( N \) 为关节数）映射为 \( SE(2) \) 或 \( SE(3) \) 中的末端执行器位姿 \( T_{ee} \)。<sup>[2](https://data.ciirc.cvut.cz/public/projects/2025CTURoboticsData/02_forward_kinematics_en_handout_withoutnotes.pdf)</sup> 逆问题即逆向运动学，是由期望位姿反求关节坐标，难度要大得多：对于串联链，正向映射具有唯一的闭式解，而逆向映射可能无解、有多解，对于运动学冗余机构甚至有无穷多解。<sup>[3](https://www.intechopen.com/chapters/72785)</sup>

| 关键事实 | 数值 |
|---|---|
| 输入–输出契约 | 关节向量 \( q \in \mathbb{R}^{N} \) → 末端执行器位姿 \( T_{ee} \in SE(3) \)<sup>[2](https://data.ciirc.cvut.cz/public/projects/2025CTURoboticsData/02_forward_kinematics_en_handout_withoutnotes.pdf)</sup> |
| 串联链复合 | 各关节齐次变换的乘积，例如 \( T_{04} = T_{01} \cdot T_{12} \cdot T_{23} \cdot T_{34} \)<sup>[4](http://publish.illinois.edu/ece470-intro-robotics/files/2021/09/ECE470Lec9FA21.pdf)</sup> |
| DH 参数 | 每个连杆四个：\( a \)、\( \alpha \)、\( d \)、\( \theta \)<sup>[5](https://opentextbooks.clemson.edu/wangrobotics/chapter/forward-kinematics/)</sup> |
| PoE 公式 | \( T(\theta) = e^{[S_1] \cdot \theta_1} \cdots e^{[S_n] \cdot \theta_n} \cdot M \)<sup>[6](http://www.cds.caltech.edu/~murray/mlswiki/index.php?title=Manipulator_Kinematics)</sup> |
| 解的数量 | 串联链具有唯一的闭式正向解<sup>[3](https://www.intechopen.com/chapters/72785)</sup> |
| 单趟计算成本 | 对至多数百个连杆的典型机器人，耗时为微秒级<sup>[7](https://motion.cs.illinois.edu/RoboticSystems/Kinematics.html)</sup> |
| 工业精度 | 1.5 m 臂展下，精度 0.2 至 1 mm，重复性 0.02 至 0.2 mm<sup>[8](https://wanxinjin.github.io/asu-robotics/lec6-8/fk.html)</sup> |

## 工作原理

对于串联链，每个关节连接两个连杆，一个连杆相对于前一个连杆的位姿写成一个齐次变换矩阵 \( A_i \)，表示坐标系 \( \{i\} \) 相对于坐标系 \( \{i-1\} \) 的关系。<sup>[1](https://users.cs.duke.edu/~brd/Teaching/Bio/asmb/current/Papers/chap3-forward-kinematics.pdf)</sup> 沿链将这些变换依次相乘，即得末端执行器位姿；对于一个三转动关节臂，复合结果为 \( T_{04} = T_{01} T_{12} T_{23} T_{34} \)。<sup>[4](http://publish.illinois.edu/ece470-intro-robotics/files/2021/09/ECE470Lec9FA21.pdf)</sup>

Denavit–Hartenberg（DH）约定将每个连杆变换参数化为 \( A_i = \mathrm{Rot}_{z,\theta}\, \mathrm{Trans}_{z,d}\, \mathrm{Trans}_{x,a}\, \mathrm{Rot}_{x,\alpha} \)，每对相邻连杆使用四个参数：连杆长度 \( a \)、连杆扭角 \( \alpha \)（两关节轴线之间的夹角）、关节偏距 \( d \) 和关节角 \( \theta \)。<sup>[5](https://opentextbooks.clemson.edu/wangrobotics/chapter/forward-kinematics/)</sup> 每个 \( A_i^{i-1}(q_i) \) 都只是单个关节变量的函数，因此整个计算就是一系列简单矩阵的递推乘积。<sup>[8](https://wanxinjin.github.io/asu-robotics/lec6-8/fk.html)</sup>

指数积（PoE）公式则把每个关节视为一根螺旋轴。每个关节运动定义一种螺旋运动，这些运动通过矩阵乘法复合起来。<sup>[9](http://publish.illinois.edu/ece470-intro-robotics/files/2024/09/07-lecture-filled.pdf)</sup> 正向映射为

\[ g_{st}(\theta) = e^{\widehat{\xi}_1 \cdot \theta_1} e^{\widehat{\xi}_2 \cdot \theta_2} \cdots e^{\widehat{\xi}_n \cdot \theta_n} \cdot g_{st}(0), \]

其中 \( \xi_i \) 是第 \( i \) 个关节轴在参考构型（\( \theta = 0 \)）下的旋量，\( g_{st}(0) \) 是初始位姿。<sup>[6](http://www.cds.caltech.edu/~murray/mlswiki/index.php?title=Manipulator_Kinematics)</sup> 该公式直接由刚体运动的指数坐标表示推导而来。<sup>[10](https://hades.mech.northwestern.edu/images/2/2a/Park-lynch.pdf)</sup> 在空间坐标系下写作 \( T(\theta) = e^{[S_1] \cdot \theta_1} e^{[S_2] \cdot \theta_2} \cdots e^{[S_n] \cdot \theta_n} \cdot M \)；物体坐标系形式则改为右乘。<sup>[5](https://opentextbooks.clemson.edu/wangrobotics/chapter/forward-kinematics/)</sup>

## 具体做法

实践者首先要选择一种表示方式。常见选择有：针对简单平面机器人的直接三角法、DH 约定，以及螺旋理论。<sup>[5](https://opentextbooks.clemson.edu/wangrobotics/chapter/forward-kinematics/)</sup>

**DH 路线。** 建立 \( i = 1, \ldots, n \) 的 DH 参数表 \( a_i, d_i, \alpha_i, \vartheta_i \)，构造齐次矩阵 \( A_i^{i-1}(q_i) \)，然后相乘：\( T_n^0(q) = A_1^0 \cdots A_n^{n-1} \)，完整的运动学函数为 \( T_e^b(q) = T_0^b\, T_n^0\, T_e^n \)。<sup>[8](https://wanxinjin.github.io/asu-robotics/lec6-8/fk.html)</sup> 每个变换都是以下四者的乘积：绕当前 \( z \) 轴旋转关节角、沿当前 \( z \) 轴平移连杆偏距 \( d \)、沿当前 \( x \) 轴平移连杆长度 \( a \)、绕当前 \( x \) 轴旋转连杆扭角。<sup>[11](https://mtsu.pressbooks.pub/robotics/chapter/chapter-3/)</sup>

**螺旋理论路线。** 建立空间坐标系 \( \{s\} \) 和末端执行器坐标系 \( \{b\} \)；确定 \( \theta = 0 \) 时末端执行器坐标系的变换 \( M \)；求出零构型下的螺旋轴 \( S_1 \) 至 \( S_n \)（空间坐标系）或 \( B_1 \) 至 \( B_n \)（物体坐标系）；然后将给定关节值代入 PoE 公式求值。<sup>[12](https://modernrobotics.northwestern.edu/nu-gm-book-resource/4-1-1-product-of-exponentials-formula-in-the-space-frame/)</sup><sup> • </sup><sup>[13](https://modernrobotics.northwestern.edu/nu-gm-book-resource/4-1-2-product-of-exponentials-formula-in-the-end-effector-frame/)</sup>

实践中，根据机器人描述文件用软件计算，往往比闭式符号推导更方便、更不易出错。Klamp't 和 Orocos KDL 等软件包可为任何以 URDF 描述的机器人计算正向运动学；URDF 是一种 XML 格式，用于定义连杆、关节、质量、几何形状和关节限位。<sup>[7](https://motion.cs.illinois.edu/RoboticSystems/Kinematics.html)</sup>

## 起源

齐次变换被用来表示机构的关节运动，这种模型形式此后几乎被普遍采用。<sup>[14](https://www.cs.cmu.edu/~alonzo/pubs/reports/kinematics_V2.pdf)</sup> 在同一理论的逆问题方面，Pieper 证明了：若六自由度机械臂的最后三个关节交于一点，则总是可以闭式求解——这正是大多数机械臂采用这种结构的原因。<sup>[14](https://www.cs.cmu.edu/~alonzo/pubs/reports/kinematics_V2.pdf)</sup> PoE 公式则建立在经典螺旋理论的现代几何解释之上。<sup>[15](https://www.cambridge.org/core/journals/robotica/article/abs/kinematic-calibration-using-the-product-of-exponentials-formula/8D1CCCF7F714A624B26FE37042432B5A)</sup>

## 变体

**DH 与 PoE 对比。** DH 表示使用的参数更少，但要求按特殊分配规则为每个连杆附加参考坐标系，可能相当繁琐。<sup>[10](https://hades.mech.northwestern.edu/images/2/2a/Park-lynch.pdf)</sup> 由于参数数量最少（每连杆四个），DH 在机器人结构优化问题（如标定）中仍然流行，即使它并非设计或计算中最方便的表示。<sup>[7](https://motion.cs.illinois.edu/RoboticSystems/Kinematics.html)</sup> PoE 公式则无需连杆坐标系：只需一个基坐标系和一个末端执行器坐标系，且二者可任意选取。<sup>[10](https://hades.mech.northwestern.edu/images/2/2a/Park-lynch.pdf)</sup> 与基于 DH 的表示不同，PoE 公式中的运动学参数随关节轴变化而平滑变化，因此无需针对 DH 固有奇异性的临时处理方法。<sup>[15](https://www.cambridge.org/core/journals/robotica/article/abs/kinematic-calibration-using-the-product-of-exponentials-formula/8D1CCCF7F714A624B26FE37042432B5A)</sup>

**姿态表示。** 末端执行器是刚体，其姿态可用[欧拉角](https://www.edgepedia.org/zh/euler-angles)、四元数或旋转矩阵表示。一种基于 DH 约定的对偶四元数算法已在六自由度工业机器人 RL15 上验证，据称紧凑、数值鲁棒且计算高效，因为它使用了计算所需的最少参数。<sup>[16](https://aeletters.com/vol8-no2-2/)</sup>

**软件。** ManipulaPy 使用基于螺旋理论的 PoE 公式，以获得数值稳定的计算。<sup>[17](https://manipulapy.readthedocs.io/en/stable/user_guide/Kinematics.html)</sup> pytorch_kinematics 提供并行、可微的正向运动学、雅可比矩阵和阻尼最小二乘逆向运动学，可从 URDF、SDF 和 MJCF 格式加载模型。<sup>[18](https://github.com/um-arm-lab/pytorch_kinematics/)</sup>

## 应用

在机械臂控制中，正向运动学根据测得的关节值给出夹爪或工具位姿，随后规划、逆向运动学和关节级控制在此基础上运行。cuMotion 的 API 反映了这种分工：坐标系的“正向”运动学是直接查询，而逆向运动学被描述为困难得多的问题，因为给定工具位姿可能对应许多有效关节构型，也可能一个都没有。<sup>[19](https://nvidia-isaac.github.io/cumotion/tutorials/kinematics_tutorial.html)</sup>

较新的应用是在学习流水线内部。DLKinematics 在计算正向运动学的同时，提供对关节构型和模型参数的梯度访问，从而支持基于梯度的学习和运动学模型辨识；典型的 ROS 提供的正向运动学组件不具备这一能力，因为它们不可微。<sup>[20](https://arxiv.org/pdf/2301.09954)</sup>

正向运动学可沿连杆单趟算出，对至多数百个连杆的典型机器人，耗时仅为微秒量级。<sup>[7](https://motion.cs.illinois.edu/RoboticSystems/Kinematics.html)</sup> 在物理层面，对于最大臂展 1.5 m 的机械臂，工作空间内精度为 0.2 至 1 mm，重复性为 0.02 至 0.2 mm。<sup>[8](https://wanxinjin.github.io/asu-robotics/lec6-8/fk.html)</sup>

## 局限与替代方案

**模型失配。** 若实际机械参数与数据手册中的标称值不同，实际到达位置与运动学模型计算位置之间就会出现偏差；这一偏差定义了精度。<sup>[8](https://wanxinjin.github.io/asu-robotics/lec6-8/fk.html)</sup> [运动学标定](https://www.edgepedia.org/zh/kinematic-calibration)可解决此问题，已有基于 PoE 的标定算法，采用六轴开链上的最小二乘估计。<sup>[15](https://www.cambridge.org/core/journals/robotica/article/abs/kinematic-calibration-using-the-product-of-exponentials-formula/8D1CCCF7F714A624B26FE37042432B5A)</sup>

**奇异性和关节限位。** 这些主要通过逆问题体现：运动学冗余被用于避奇异、避障、避关节限位、提高可操作度、最小化能耗与运动力矩，以及优化执行时间。<sup>[3](https://www.intechopen.com/chapters/72785)</sup> 在建模方面，DH 参数在关节轴变化时具有固有奇异性，而 PoE 从构造上避免了这一点。<sup>[15](https://www.cambridge.org/core/journals/robotica/article/abs/kinematic-calibration-using-the-product-of-exponentials-formula/8D1CCCF7F714A624B26FE37042432B5A)</sup>

**并联机械臂。** 串联链公式不直接适用于闭链机构。一种受控微分方程（CDE）算子学习框架可逼近异构并联机器人从可测关节数据到末端执行器构型的映射，在多个可行的正向运动学解中选出轨迹一致的输出，同时保持高精度和实时性。<sup>[21](https://www.sciencedirect.com/science/article/abs/pii/S1007570426005630)</sup>

## References

1. [Chapter 3: Forward Kinematics (course PDF, Duke)](https://users.cs.duke.edu/~brd/Teaching/Bio/asmb/current/Papers/chap3-forward-kinematics.pdf)
2. [Robotics: Forward kinematics of open chains (CTU Prague handout)](https://data.ciirc.cvut.cz/public/projects/2025CTURoboticsData/02_forward_kinematics_en_handout_withoutnotes.pdf)
3. [Kinematics of Serial Manipulators | IntechOpen](https://www.intechopen.com/chapters/72785)
4. [Introduction to Robotics, Lecture 9: Forward Kinematics: PoE in body frame and Denavit-Hartenberg parameters (UIUC ECE470)](http://publish.illinois.edu/ece470-intro-robotics/files/2021/09/ECE470Lec9FA21.pdf)
5. [Forward Kinematics – Modeling, Motion Planning, and Control of Manipulators and Mobile Robots (Clemson open textbook)](https://opentextbooks.clemson.edu/wangrobotics/chapter/forward-kinematics/)
6. [Manipulator Kinematics, MLSwiki (Murray, Li, Sastry companion)](http://www.cds.caltech.edu/~murray/mlswiki/index.php?title=Manipulator_Kinematics)
7. [Robotic Systems, by Kris Hauser, Kinematics](https://motion.cs.illinois.edu/RoboticSystems/Kinematics.html)
8. [Forward Kinematics, Modeling and Control of Robots (ASU lecture notes)](https://wanxinjin.github.io/asu-robotics/lec6-8/fk.html)
9. [Lecture 7: Exponential Coordinates and Forward Kinematics (ECE 470, University of Illinois)](http://publish.illinois.edu/ece470-intro-robotics/files/2024/09/07-lecture-filled.pdf)
10. [Modern Robotics: Chapter 4 draft (Lynch & Park), Product of Exponentials formula for forward kinematics](https://hades.mech.northwestern.edu/images/2/2a/Park-lynch.pdf)
11. [Forward Kinematics for Serial Manipulators – Robotics and Controls Engineering (MTSU)](https://mtsu.pressbooks.pub/robotics/chapter/chapter-3/)
12. [4.1.1. Product of Exponentials Formula in the Space Frame – Modern Robotics](https://modernrobotics.northwestern.edu/nu-gm-book-resource/4-1-1-product-of-exponentials-formula-in-the-space-frame/)
13. [4.1.2. Product of Exponentials Formula in the End-Effector Frame – Modern Robotics](https://modernrobotics.northwestern.edu/nu-gm-book-resource/4-1-2-product-of-exponentials-formula-in-the-end-effector-frame/)
14. [Essential Kinematics for Autonomous Vehicles (CMU technical report)](https://www.cs.cmu.edu/~alonzo/pubs/reports/kinematics_V2.pdf)
15. [Kinematic calibration using the product of exponentials formula (Robotica, Vol. 14, Issue 4, July 1996, pp. 415–421)](https://www.cambridge.org/core/journals/robotica/article/abs/kinematic-calibration-using-the-product-of-exponentials-formula/8D1CCCF7F714A624B26FE37042432B5A)
16. [Forward kinematics algorithm in dual quaternion space based on Denavit-Hartenberg convention, Applied Engineering Letters](https://aeletters.com/vol8-no2-2/)
17. [ManipulaPy Kinematics User Guide](https://manipulapy.readthedocs.io/en/stable/user_guide/Kinematics.html)
18. [UM-ARM-Lab/pytorch_kinematics](https://github.com/um-arm-lab/pytorch_kinematics/)
19. [Kinematics Tutorial, cuMotion (NVIDIA Isaac)](https://nvidia-isaac.github.io/cumotion/tutorials/kinematics_tutorial.html)
20. [DLKinematics: a differentiable, batched forward kinematics library based on Tensorflow 2](https://arxiv.org/pdf/2301.09954)
21. [A CDE operator learning framework for forward kinematics of heterogeneous parallel robots](https://www.sciencedirect.com/science/article/abs/pii/S1007570426005630)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › 机器人学的力学基础

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/forward-kinematics

English original: https://www.edgepedia.org/forward-kinematics
