Denavit–Hartenberg parameters explained

In mechanical engineering, the Denavit–Hartenberg parameters (also called DH parameters) are the four parameters associated with a particular convention for attaching reference frames to the links of a spatial kinematic chain, or robot manipulator.

Jacques Denavit and Richard Hartenberg introduced this convention in 1955 in order to standardize the coordinate frames for spatial linkages.[1] [2]

Richard Paul demonstrated its value for the kinematic analysis of robotic systems in 1981.[3] While many conventions for attaching reference frames have been developed, the Denavit–Hartenberg convention remains a popular approach.

Denavit–Hartenberg convention

A commonly used convention for selecting frames of reference in robotics applications is the Denavit and Hartenberg (D–H) convention which was introduced by Jacques Denavit and Richard S. Hartenberg. In this convention, coordinate frames are attached to the joints between two links such that one transformation is associated with the joint, and the second is associated with the link . The coordinate transformations along a serial robot consisting of links form the kinematics equations of the robot:

[T]=[Z1][X1][Z2][X2]\ldots[Xn-1][Zn][Xn]

where is the transformation that characterizes the location and orientation of the end-link.

To determine the coordinate transformations and, the joints connecting the links are modeled as either hinged or sliding joints, each of which has a unique line in space that forms the joint axis and define the relative movement of the two links. A typical serial robot is characterized by a sequence of six lines, one for each joint in the robot. For each sequence of lines and, there is a common normal line . The system of six joint axes and five common normal lines form the kinematic skeleton of the typical six degree-of-freedom serial robot. Denavit and Hartenberg introduced the convention that z-coordinate axes are assigned to the joint axes and x-coordinate axes are assigned to the common normals .

This convention allows the definition of the movement of links around a common joint axis by the screw displacement:

[Zi]=\begin{bmatrix}\cos\thetai&-\sin\thetai&0&0\\sin\thetai&\cos\thetai&0&0\ 0&0&1&di\ 0&0&0&1\end{bmatrix}

where is the rotation around and is the sliding motion along the -axis. Each of these parameters could be a constant depending on the structure of the robot. Under this convention the dimensions of each link in the serial chain are defined by the screw displacement around the common normal from the joint to, which is given by

[Xi]=\begin{bmatrix}1&0&0&ri,i+1\ 0&\cos\alphai,i+1&-\sin\alphai,i+1&0\ 0&\sin\alphai,i+1&\cos\alphai,i+1&0\0&0&0&1\end{bmatrix},

where and define the physical dimensions of the link in terms of the angle measured around and distance measured along the X axis.

In summary, the reference frames are laid out as follows:

  1. The -axis is in the direction of the joint axis.
  2. The -axis is parallel to the common normal:

xn=zn x zn-1

(or away from)
If there is no unique common normal (parallel axes), then (below) is a free parameter. The direction of is from to, as shown in the video below.
  1. the -axis follows from the - and -axes by choosing it to be a right-handed coordinate system.

Four Parameters

The following four transformation parameters are known as D–H parameters:[4]

There is some choice in frame layout as to whether the previous axis or the next points along the common normal. The latter system allows branching chains more efficiently, as multiple frames can all point away from their common ancestor, but in the alternative layout the ancestor can only point toward one successor. Thus the commonly used notation places each down-chain axis collinear with the common normal, yielding the transformation calculations shown below.

We can note constraints on the relationships between the axes:

Denavit–Hartenberg matrix

It is common to separate a screw displacement into product of a pure translation along a line and a pure rotation about the line,[5] [6] so that

[Zi]=

\operatorname{Trans}
Zi

(di)

\operatorname{Rot}
Zi

(\thetai),

and

[Xi]=\operatorname{Trans}

Xi

(ri,i+1)

\operatorname{Rot}
Xi

(\alphai,i+1).

Using this notation, each link can be described by a coordinate transformation from the concurrent coordinate system to the previous coordinate system.

{}nTn =[Zn-1][Xn]

Note that this is the product of two screw displacements. The matrices associated with these operations are:

\operatorname{Trans}
zn

(dn) = \left[ \begin{array}{ccc|c} 1&0&0&0\\ 0&1&0&0\\ 0&0&1&dn\\ \hline 0&0&0&1 \end{array} \right]

\operatorname{Rot}
zn

(\thetan) = \left[ \begin{array}{ccc|c} \cos\thetan&-\sin\thetan&0&0\\ \sin\thetan&\cos\thetan&0&0\\ 0&0&1&0\\ \hline 0&0&0&1 \end{array} \right]

\operatorname{Trans}
xn

(rn) = \left[ \begin{array}{ccc|c} 1&0&0&rn\\ 0&1&0&0\\ 0&0&1&0\\ \hline 0&0&0&1 \end{array} \right]

\operatorname{Rot}
xn

(\alphan) = \left[ \begin{array}{ccc|c} 1&0&0&0\\ 0&\cos\alphan&-\sin\alphan&0\\ 0&\sin\alphan&\cos\alphan&0\\ \hline 0&0&0&1 \end{array} \right]

This gives:

\operatorname{}nTn = \left[ \begin{array}{ccc|c} \cos\thetan&-\sin\thetan\cos\alphan&\sin\thetan\sin\alphan&rn\cos\thetan\\ \sin\thetan&\cos\thetan\cos\alphan&-\cos\thetan\sin\alphan&rn\sin\thetan\\ 0&\sin\alphan&\cos\alphan&dn\\ \hline 0&0&0&1 \end{array} \right] = \left[ \begin{array}{ccc|c} &&&\\ &R&&T\\ &&&\\ \hline 0&0&0&1 \end{array} \right]

where R is the 3×3 submatrix describing rotation and T is the 3×1 submatrix describing translation.

In some books, the order of transformation for a pair of consecutive rotation and translation (such as

dn

and

\thetan

) is reversed. This is possible (despite the fact that in general, matrix multiplication is not commutative) since translations and rotations are concerned with the same axes

zn-1

and

xn

, respectively. As matrix multiplication order for these pairs does not matter, the result is the same. For example:
\operatorname{Trans}
zn

(dn)

\operatorname{Rot}
zn

(\thetan) =

\operatorname{Rot}
zn

(\thetan)

\operatorname{Trans}
zn

(dn)

.

Therefore, we can write the transformation

\operatorname{}nTn

as follows:

{}nTn=

\operatorname{Trans}
zn

(dn)

\operatorname{Rot}
zn

(\thetan)

\operatorname{Trans}
xn

(rn)

\operatorname{Rot}
xn

(\alphan)


{}nTn=

\operatorname{Rot}
zn

(\thetan)

\operatorname{Trans}
zn

(dn)

\operatorname{Trans}
xn

(rn)

\operatorname{Rot}
xn

(\alphan)

Use of Denavit and Hartenberg matrices

The Denavit and Hartenberg notation gives a standard (distal) methodology to write the kinematic equations of a manipulator. This is especially useful for serial manipulators where a matrix is used to represent the pose (position and orientation) of one body with respect to another.

The position of body

n

with respect to

n-1

may be represented by a position matrix indicated with the symbol

T

or

M

\operatorname{}nTn=Mn-1,n

This matrix is also used to transform a point from frame

n

to

n-1

Mn-1,n=\left[\begin{array}{ccc|c}Rxx&Rxy&Rxz&Tx\Ryx&Ryy&Ryz&Ty\Rzx&Rzy&Rzz&Tz\\ \hline 0&0&0&1\end{array}\right]

Where the upper left

3 x 3

submatrix of

M

represents the relativeorientation of the two bodies, and the upper right

3 x 1

represents their relative position or more specifically the body position in frame n − 1 represented with element of frame n.

The position of body

k

with respect to body

i

can be obtained as the product of the matrices representing the pose of

j

with respect of

i

and that of

k

with respect of

j

Mi,k=Mi,jMj,k

An important property of Denavit and Hartenberg matrices is that the inverse is

M-1= \left[ \begin{array}{ccc|c} &&&\\ &RT&&-RTT\\ &&&\\ \hline 0&0&0&1 \end{array} \right]

where

RT

is both the transpose and the inverse of the orthogonal matrix

R

, i.e.
-1
R
ij
T
=R
ij

=Rji

.

Kinematics

Further matrices can be defined to represent velocity and acceleration of bodies.[5] [6] The velocity of body

i

with respect to body

j

can be represented in frame

k

by the matrix

Wi,j(k)=\left[\begin{array}{ccc|c}0&-\omegaz&\omegay&vx\\omegaz&0&-\omegax&vy\ -\omegay&\omegax&0&vz\\ \hline 0&0&0&0\end{array}\right]

where

\omega

is the angular velocity of body

j

with respect to body

i

and all the components are expressed in frame

k

;

v

is the velocity of one point of body

j

with respect to body

i

(the pole). The pole is the point of

j

passing through the origin of frame

i

.

The acceleration matrix can be defined as the sum of the time derivative of the velocity plus the velocity squared

Hi,j(k)=

W

i,j(k)

2
+W
i,j(k)

The velocity and the acceleration in frame

i

of a point of body

j

can be evaluated as
P

=Wi,jP

\ddot{P}=Hi,jP

It is also possible to prove that

M

i,j=Wi,j(i)Mi,j

\ddot{M}i,j=Hi,j(i)Mi,j

Velocity and acceleration matrices add up according to the following rules

Wi,k=Wi,j+Wj,k

Hi,k=Hi,j+Hj,k+2Wi,jWj,k

in other words the absolute velocity is the sum of the parent velocity plus the relative velocity; for the acceleration the Coriolis' term is also present.

The components of velocity and acceleration matrices are expressed in an arbitrary frame

k

and transform from one frame to another by the following rule

W(h)=Mh,kW(k)Mk,h

H(h)=Mh,kH(k)Mk,h

Dynamics

For the dynamics, three further matrices are necessary to describe the inertia

J

, the linear and angular momentum

\Gamma

, and the forces and torques

\Phi

applied to a body.

Inertia

J

:

J=\left[\begin{array}{ccc|c}Ixx&Ixy&Ixz&xgm\Iyx&Iyy& Iyz&ygm\Izx&Izy&Izz&zgm\\ \hline xgm&ygm&zgm&m\end{array}\right]

where

m

is the mass,

xg,yg,zg

represent the position of the center of mass, and the terms

Ixx,Ixy,\ldots

represent inertia and are defined as

Ixx=\iintx2dm

\begin{align} Ixy&=\iintxydm\\ Ixz&=\\ &\vdots \end{align}

Action matrix

\Phi

, containing force

f

and torque

t

:

\Phi=\left[\begin{array}{ccc|c}0&-tz&ty&fx\tz&0&-tx&fy\ -ty&tx&0&fz\\ \hline -fx&-fy&-fz&0\end{array}\right]

Momentum matrix

\Gamma

, containing linear

\rho

and angular

\gamma

momentum

\Gamma=\left[\begin{array}{ccc|c}0&-\gammaz&\gammay&\rhox\\gammaz&0&-\gammax&\rhoy\ -\gammay&\gammax&0&\rhoz\\ \hline -\rhox&-\rhoy&-\rhoz&0\end{array}\right]

All the matrices are represented with the vector components in a certain frame

k

. Transformation of the components from frame

k

to frame

h

follows the rule

\begin{align} J(h)&=Mh,kJ(k)

T
M
h,k

\\ \Gamma(h)&=Mh,k\Gamma(k)

T
M
h,k

\\ \Phi(h)&=Mh,k\Phi(k)

T \end{align}
M
h,k

The matrices described allow the writing of the dynamic equations in a concise way.

Newton's law:

\Phi=HJ-JHt

Momentum:

\Gamma=WJ-JWt

The first of these equations express the Newton's law and is the equivalent of the vector equation

f=ma

(force equal mass times acceleration) plus

t=J

\omega

+\omega x J\omega

(angular acceleration in function of inertia and angular velocity); the second equation permits the evaluation of the linear and angular momentum when velocity and inertia are known.

Modified DH parameters

Some books such as Introduction to Robotics: Mechanics and Control (3rd Edition) [7] use modified (proximal) DH parameters. The difference between the classic (distal) DH parameters and the modified DH parameters are the locations of the coordinates system attachment to the links and the order of the performed transformations.Compared with the classic DH parameters, the coordinates of frame

Oi-1

is put on axis i − 1, not the axis i in classic DH convention. The coordinates of

Oi

is put on the axis i, not the axis i + 1 in classic DH convention.

Another difference is that according to the modified convention, the transform matrix is given by the following order of operations:

{}nTn=

\operatorname{Rot}
xn-1

(\alphan-1)

\operatorname{Trans}
xn-1

(an-1)

\operatorname{Rot}
zn

(\thetan)

\operatorname{Trans}
zn

(dn)

Thus, the matrix of the modified DH parameters becomes

\operatorname{}nTn = \left[ \begin{array}{ccc|c} \cos\thetan&-\sin\thetan&0&an-1\\ \sin\thetan\cos\alphan-1&\cos\thetan\cos\alphan-1&-\sin\alphan-1&-dn\sin\alphan-1\\ \sin\thetan\sin\alphan-1&\cos\thetan\sin\alphan-1&\cos\alphan-1&dn\cos\alphan-1\\ \hline 0&0&0&1 \end{array} \right]

Note that some books (e.g.:[8]) use

an

and

\alphan

to indicate the length and twist of link n − 1 rather than link n. As a consequence,

{}nTn

is formed only with parameters using the same subscript.

In some books, the order of transformation for a pair of consecutive rotation and translation (such as

dn

and

\thetan

) is replaced. However, because matrix multiplication order for such pair does not matter, the result is the same. For example:
\operatorname{Trans}
zn

(dn)

\operatorname{Rot}
zn

(\thetan) =

\operatorname{Rot}
zn

(\thetan)

\operatorname{Trans}
zn

(dn)

.

Surveys of DH conventions and its differences have been published.[9] [10]

See also

Notes and References

  1. Denavit. Jacques. Hartenberg. Richard Scheunemann. A kinematic notation for lower-pair mechanisms based on matrices. Journal of Applied Mechanics. 1955. 22. 2. 215–221. 10.1115/1.4011045.
  2. Book: Hartenberg. Richard Scheunemann. Denavit. Jacques. Kinematic synthesis of linkages. 1965. McGraw-Hill. New York. 435. McGraw-Hill series in mechanical engineering. 2012-01-13. https://web.archive.org/web/20130928181639/http://ebooks.library.cornell.edu/k/kmoddl/toc_hartenberg1.html. 2013-09-28. live.
  3. Book: Paul , Richard . Robot manipulators: mathematics, programming, and control : the computer control of robot manipulators . MIT Press . Cambridge, MA . 1981 . 978-0-262-16082-7 . 2016-09-22 . https://web.archive.org/web/20170215160742/https://books.google.com/books?id=UzZ3LAYqvRkC&printsec=frontcover . 2017-02-15 . live .
  4. Book: Spong. Mark W.. Vidyasagar. M.. Robot Dynamics and Control . John Wiley & Sons. New York. 1989. 9780471503521.
  5. Legnani. Giovanni. Casolo. Federico. Righettini. Paolo. Zappa. Bruno. A homogeneous matrix approach to 3D kinematics and dynamics — I. Theory. Mechanism and Machine Theory. 31. 5. 1996. 573–587. 10.1016/0094-114X(95)00100-D.
  6. Legnani. Giovanni. Casolo. Federico. Righettini. Paolo. Zappa. Bruno. A homogeneous matrix approach to 3D kinematics and dynamics—II. Applications to chains of rigid bodies and serial manipulators. Mechanism and Machine Theory. 31. 5. 1996. 589–605. 10.1016/0094-114X(95)00101-4.
  7. John J. Craig, Introduction to Robotics: Mechanics and Control (3rd Edition)
  8. Book: Khalil . Wisama . Dombre . Etienne . Modeling, identification and control of robots . Taylor Francis . New York . 2002 . 1-56032-983-1 . 2016-09-22 . https://web.archive.org/web/20170312131028/https://books.google.com/books?id=Nx4X95PNyAkC . 2017-03-12 . live .
  9. Lipkin. Harvey. Volume 7: 29th Mechanisms and Robotics Conference, Parts a and B. 2005. 2005. 921–926. 10.1115/DETC2005-85460. A Note on Denavit–Hartenberg Notation in Robotics. 0-7918-4744-6.
  10. Book: Waldron . Kenneth . Springer Handbook of Robotics . Schmiedeler . James . 2008 . 9–33 . 10.1007/978-3-540-30301-5_2 . Kinematics . 978-3-540-23957-4.