Algorithm Search⌘K

Definitionintro

Denavit-Hartenberg convention

Also called DH parameters, Denavit-Hartenberg parameters.

Four parameters per link, two lengths and two angles, that fix frames on a serial chain so that each joint is one transform Rz(theta) Trans_z(d) Trans_x(a) Rx(alpha).

The Denavit-Hartenberg convention is a rule for putting one coordinate frame on each link of a serial robot so that the move from one frame to the next needs only four numbers. Two of them are lengths, aa and dd, and two are angles, α\alpha and θ\theta. One of the four is the joint value, and the other three are fixed by the shape of the link. A robot is then described by a table with one row per joint, and its forward kinematics is the product of one 4×44 \times 4 matrix per row. A general transform between two frames needs six numbers. The convention saves two per link by choosing where each frame goes.

Definition

Frames. Number the links 00 (the base) to nn and the joints 11 to nn, so that joint ii connects link i−1i - 1 to link ii. Frame {i}\{i\} is fixed to link ii. In the classic convention, used by Denavit and Hartenberg (1955) and by Spong, Hutchinson and Vidyasagar:

  1. The axis zi−1z_{i-1} is the axis of joint ii.
  2. The axis xix_i lies on the common normal of zi−1z_{i-1} and ziz_i, and points from zi−1z_{i-1} to ziz_i. So xix_i is perpendicular to zi−1z_{i-1} and meets it.
  3. The origin oio_i is where xix_i meets ziz_i, and yiy_i completes a right-handed frame.

Parameters. With these frames, link ii has four numbers:

parameter meaning
aia_i link length: the distance from zi−1z_{i-1} to ziz_i, along xix_i
αi\alpha_i link twist: the angle from zi−1z_{i-1} to ziz_i, about xix_i
did_i link offset: the distance from oi−1o_{i-1} to the foot of xix_i on zi−1z_{i-1}, along zi−1z_{i-1}
θi\theta_i joint angle: the angle from xi−1x_{i-1} to xix_i, about zi−1z_{i-1}

For a revolute joint θi\theta_i is the joint variable and ai,αi,dia_i, \alpha_i, d_i are constants. For a prismatic joint did_i is the variable.

Link transform. The pose of {i}\{i\} in {i−1}\{i - 1\} is

Ai=Rz(θi) Transz(di) Transx(ai) Rx(αi)=(cos⁡θi−sin⁡θicos⁡αisin⁡θisin⁡αiaicos⁡θisin⁡θicos⁡θicos⁡αi−cos⁡θisin⁡αiaisin⁡θi0sin⁡αicos⁡αidi0001),A_i = R_z(\theta_i)\, \mathrm{Trans}_z(d_i)\, \mathrm{Trans}_x(a_i)\, R_x(\alpha_i) = \begin{pmatrix} \cos\theta_i & -\sin\theta_i\cos\alpha_i & \sin\theta_i\sin\alpha_i & a_i\cos\theta_i \\ \sin\theta_i & \cos\theta_i\cos\alpha_i & -\cos\theta_i\sin\alpha_i & a_i\sin\theta_i \\ 0 & \sin\alpha_i & \cos\alpha_i & d_i \\ 0 & 0 & 0 & 1 \end{pmatrix},

and the end effector pose is T0n=A1A2⋯AnT_{0n} = A_1 A_2 \cdots A_n, followed by a fixed tool transform if the tool frame is not {n}\{n\}.

Why four numbers suffice. Let {i−1}\{i - 1\} and {i}\{i\} be frames such that xix_i is perpendicular to zi−1z_{i-1} and meets it. Then the pose of {i}\{i\} in {i−1}\{i - 1\} has the form AiA_i above. Proof. Since xi⊥zi−1x_i \perp z_{i-1}, in the coordinates of {i−1}\{i - 1\} we have xi=(cos⁡θ,sin⁡θ,0)x_i = (\cos\theta, \sin\theta, 0) for some θ\theta. The axis ziz_i is a unit vector perpendicular to xix_i, so it is cos⁡α zi−1+sin⁡α (zi−1×xi)\cos\alpha\, z_{i-1} + \sin\alpha\, (z_{i-1} \times x_i) for some α\alpha, and yi=zi×xiy_i = z_i \times x_i. These are the columns of Rz(θ)Rx(α)R_z(\theta) R_x(\alpha). Since the line of xix_i meets zi−1z_{i-1} at a point oi−1+d zi−1o_{i-1} + d\, z_{i-1}, and oio_i is on that line, oi=oi−1+d zi−1+a xio_i = o_{i-1} + d\, z_{i-1} + a\, x_i for some dd and aa, which is the last column of AiA_i. ■\blacksquare The two conditions on xix_i remove two of the six numbers of a general transform.

Choices that are not unique. If zi−1z_{i-1} and ziz_i are parallel, the common normal is not unique and did_i can take any value; the usual choice is di=0d_i = 0. If they meet, ai=0a_i = 0 and xix_i is normal to the plane of the two axes, with a choice of sign. Frame {0}\{0\} only needs z0z_0 on the first axis, and frame {n}\{n\} only needs xn⊥zn−1x_n \perp z_{n-1}. So two people can write different but correct tables for the same robot.

The modified convention. Craig's textbook puts frame {i}\{i\} on the axis of joint ii instead of joint i+1i + 1, and uses

Ai=Rx(αi−1) Transx(ai−1) Rz(θi) Transz(di),A_i = R_x(\alpha_{i-1})\, \mathrm{Trans}_x(a_{i-1})\, R_z(\theta_i)\, \mathrm{Trans}_z(d_i),

with αi−1\alpha_{i-1} and ai−1a_{i-1} taken from the previous link. The two conventions give different tables for the same arm, and a table must always say which one it uses. This page uses the classic one, except where it says otherwise.

Examples and non-examples

Planar 2R arm with L1=L2=1L_1 = L_2 = 1 m, classic convention:

ii θi\theta_i did_i aia_i αi\alpha_i
1 q1q_1 0 L1L_1 0
2 q2q_2 0 L2L_2 0

The last column of A1A2A_1 A_2 is (L1cos⁡q1+L2cos⁡(q1+q2), L1sin⁡q1+L2sin⁡(q1+q2), 0,1)(L_1\cos q_1 + L_2\cos(q_1 + q_2),\ L_1\sin q_1 + L_2\sin(q_1 + q_2),\ 0, 1). At q=(0,π/2)q = (0, \pi/2) this is the point (1,1,0)(1, 1, 0). In the modified convention the rows are (α0,a0,d1,θ1)=(0,0,0,q1)(\alpha_0, a_0, d_1, \theta_1) = (0, 0, 0, q_1) and (α1,a1,d2,θ2)=(0,L1,0,q2)(\alpha_1, a_1, d_2, \theta_2) = (0, L_1, 0, q_2), and the tool transform Transx(L2)\mathrm{Trans}_x(L_2) must be added, because frame {2}\{2\} now sits on the second joint and not at the tip. Both give the same matrix at q=(0,π/2)q = (0, \pi/2).

Spatial 3R arm (the anthropomorphic arm of Siciliano et al., Section 2.9, here with a shoulder height of 1 m and links of 1 m):

ii θi\theta_i did_i (m) aia_i (m) αi\alpha_i
1 q1q_1 1 0 π/2\pi/2
2 q2q_2 0 1 0
3 q3q_3 0 1 0

The twist α1=π/2\alpha_1 = \pi/2 turns the vertical first axis into the horizontal second axis. At q=0q = 0, A1A2A3A_1 A_2 A_3 has the rotation Rx(π/2)R_x(\pi/2) and the position (2,0,1)(2, 0, 1). At q=(π/2,0,π/2)q = (\pi/2, 0, \pi/2) it is

T03=(00100−10110020001).T_{03} = \begin{pmatrix} 0 & 0 & 1 & 0 \\ 0 & -1 & 0 & 1 \\ 1 & 0 & 0 & 2 \\ 0 & 0 & 0 & 1 \end{pmatrix}.

Check against the product of exponentials. The same arm in product of exponentials form has the home pose MM equal to A1A2A3A_1 A_2 A_3 at q=0q = 0, and the screw axes S1=(0,0,1,0,0,0)\mathcal{S}_1 = (0, 0, 1, 0, 0, 0), S2=(0,−1,0,1,0,0)\mathcal{S}_2 = (0, -1, 0, 1, 0, 0) (axis −y-y through (0,0,1)(0, 0, 1)) and S3=(0,−1,0,1,0,−1)\mathcal{S}_3 = (0, -1, 0, 1, 0, -1) (axis −y-y through (1,0,1)(1, 0, 1)). The axes point along −y-y because z1=Rx(π/2) z=(0,−1,0)z_1 = R_x(\pi/2)\, z = (0, -1, 0). A script compared the two products at 1000 random joint vectors and found a largest difference of 1.3×10−151.3 \times 10^{-15} in any entry. For the 2R table above it found 9×10−169 \times 10^{-16}.

Non-example: a ball joint as one row. A spherical joint has three freedoms, and one row has one joint variable. The joint must be written as three revolute rows with a=d=0a = d = 0 and twists of ±π/2\pm\pi/2, with two massless links in between.

Non-example: a closed chain. A DH table describes a path of joints. A parallel manipulator needs one table per leg and loop closure equations between them.

  • Product of exponentials formula: the other standard way to write the forward kinematics. It needs no link frames but uses six numbers per joint and the home pose MM, against four numbers per joint here.
  • Forward kinematics: the problem that the table solves, by the product A1⋯AnA_1 \cdots A_n.
  • Kinematic calibration: the DH parameters are not a continuous model near parallel axes. If two nominally parallel axes are tilted by a small angle, the common normal jumps and did_i can change by a large amount. Hayati (1983) showed this and added a rotation about yy for such joints.
  • Pieper criterion: many arms whose inverse kinematics has a closed form have DH tables with ai=0a_i = 0 and di=0d_i = 0 at the wrist, so that three axes meet in a point.

History

Denavit and Hartenberg (1955) proposed the four parameters to describe lower-pair mechanisms by matrices. The notation became the standard for robot arms in the 1970s and 1980s. Craig's textbook made the modified convention common, and many texts on dynamics now use it. Brockett (1984) proposed the product of exponentials as an alternative without link frames.

References

  1. J. Denavit and R. S. Hartenberg, A kinematic notation for lower-pair mechanisms based on matrices, Journal of Applied Mechanics 22, 1955, pages 215 to 221, the four parameters of each link and the matrix that relates neighboring frames
  2. Mark W. Spong, Seth Hutchinson and M. Vidyasagar, Robot Modeling and Control, 2nd edition, Wiley, 2020, the chapter on forward kinematics, the Denavit-Hartenberg convention and its existence and uniqueness argument (general locator)
  3. Bruno Siciliano, Lorenzo Sciavicco, Luigi Villani and Giuseppe Oriolo, Robotics, Modelling, Planning and Control, Springer, 2009, Section 2.8.2, Denavit-Hartenberg Convention, and Section 2.9, kinematics of typical manipulator structures (the anthropomorphic arm)
  4. Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Appendix C, Denavit-Hartenberg Parameters, with the comparison to the product of exponentials
  5. John J. Craig, Introduction to Robotics: Mechanics and Control, 3rd edition, Pearson Prentice Hall, 2005, Chapter 3, Manipulator kinematics, the modified convention with alpha and a of the previous link (general locator)
  6. S. A. Hayati, Robot arm geometric link parameter estimation, Proceedings of the 22nd IEEE Conference on Decision and Control, 1983, pages 1477 to 1483, the failure of the parameters for nearly parallel joint axes

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/CX82KN/text.yaml