Misplaced Pages

Denavit–Hartenberg parameters

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Convention for attaching reference frames to links of a kinematic chain This article is about DH parameters used in robotics. For the Diffie–Hellman parameters ("dhparam") used in cryptography, see Diffie–Hellman key exchange.

In mechatronics engineering, the Denavit–Hartenberg parameters (also called DH parameters) are the four parameters associated with the DH 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.

Richard Paul demonstrated its value for the kinematic analysis of robotic systems in 1981. 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 n links form the kinematics equations of the robot:

[ T ] = [ Z 1 ] [ X 1 ] [ Z 2 ] [ X 2 ] [ X n 1 ] [ Z n ] [ X n ] {\displaystyle =\ldots \!}

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 S 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 Si (i = 1, 2, ..., 6), one for each joint in the robot. For each sequence of lines Si and Si+1, there is a common normal line Ai,i+1. The system of six joint axes Si and five common normal lines Ai,i+1 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 Si and x-coordinate axes are assigned to the common normals Ai,i+1.

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

[ Z i ] = [ cos θ i sin θ i 0 0 sin θ i cos θ i 0 0 0 0 1 d i 0 0 0 1 ] {\displaystyle ={\begin{bmatrix}\cos \theta _{i}&-\sin \theta _{i}&0&0\\\sin \theta _{i}&\cos \theta _{i}&0&0\\0&0&1&d_{i}\\0&0&0&1\end{bmatrix}}}

where θi is the rotation around and di is the sliding motion along the z-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 Ai,i+1 from the joint Si to Si+1, which is given by

[ X i ] = [ 1 0 0 r i , i + 1 0 cos α i , i + 1 sin α i , i + 1 0 0 sin α i , i + 1 cos α i , i + 1 0 0 0 0 1 ] , {\displaystyle ={\begin{bmatrix}1&0&0&r_{i,i+1}\\0&\cos \alpha _{i,i+1}&-\sin \alpha _{i,i+1}&0\\0&\sin \alpha _{i,i+1}&\cos \alpha _{i,i+1}&0\\0&0&0&1\end{bmatrix}},}

where αi,i+1 and ri,i+1 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 z-axis is in the direction of the joint axis.
  2. The x-axis is parallel to the common normal: x n = z n × z n 1 {\displaystyle x_{n}=z_{n}\times z_{n-1}} (or away from zn–1)
    If there is no unique common normal (parallel z axes), then d (below) is a free parameter. The direction of xn is from zn–1 to zn, as shown in the video below.
  3. the y-axis follows from the x- and z-axes by choosing it to be a right-handed coordinate system.

Four Parameters

The four parameters of classic DH convention are shown in red text, which are θi, di, ai, αi. With those four parameters, we can translate the coordinates from Oi–1Xi–1Yi–1Zi–1 to OiXiYiZi.

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

  • d: offset along previous z to the common normal
  • θ: angle about previous z from old x to new x
  • r: length of the common normal (aka a, but if using this notation, do not confuse with α). Assuming a revolute joint, this is the radius about previous z.
  • α: angle about common normal, from old z axis to new z axis

There is some choice in frame layout as to whether the previous x axis or the next x 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 x axis collinear with the common normal, yielding the transformation calculations shown below.

We can note constraints on the relationships between the axes:

  • the xn axis is perpendicular to both the zn–1 and zn axes
  • the xn-axis intersects both zn–1 and zn axes
  • the origin of joint n is at the intersection of xn and zn
  • yn completes a right-handed reference frame based on xn and zn

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, so that

[ Z i ] = Trans Z i ( d i ) Rot Z i ( θ i ) , {\displaystyle =\operatorname {Trans} _{Z_{i}}(d_{i})\operatorname {Rot} _{Z_{i}}(\theta _{i}),}

and

[ X i ] = Trans X i ( r i , i + 1 ) Rot X i ( α i , i + 1 ) . {\displaystyle =\operatorname {Trans} _{X_{i}}(r_{i,i+1})\operatorname {Rot} _{X_{i}}(\alpha _{i,i+1}).}

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

n 1 T n = [ Z n 1 ] [ X n ] {\displaystyle {}^{n-1}T_{n}=\cdot }

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

Trans z n 1 ( d n ) = [ 1 0 0 0 0 1 0 0 0 0 1 d n 0 0 0 1 ] {\displaystyle \operatorname {Trans} _{z_{n-1}}(d_{n})=\left}
Rot z n 1 ( θ n ) = [ cos θ n sin θ n 0 0 sin θ n cos θ n 0 0 0 0 1 0 0 0 0 1 ] {\displaystyle \operatorname {Rot} _{z_{n-1}}(\theta _{n})=\left}
Trans x n ( r n ) = [ 1 0 0 r n 0 1 0 0 0 0 1 0 0 0 0 1 ] {\displaystyle \operatorname {Trans} _{x_{n}}(r_{n})=\left}
Rot x n ( α n ) = [ 1 0 0 0 0 cos α n sin α n 0 0 sin α n cos α n 0 0 0 0 1 ] {\displaystyle \operatorname {Rot} _{x_{n}}(\alpha _{n})=\left}

This gives:

n 1 T n = [ cos θ n sin θ n cos α n sin θ n sin α n r n cos θ n sin θ n cos θ n cos α n cos θ n sin α n r n sin θ n 0 sin α n cos α n d n 0 0 0 1 ] = [ R T 0 0 0 1 ] {\displaystyle \operatorname {} ^{n-1}T_{n}=\left=\left}

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 d n {\displaystyle d_{n}} and θ n {\displaystyle \theta _{n}} ) 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 z n 1 {\displaystyle z_{n-1}} and x n {\displaystyle x_{n}} , respectively. As matrix multiplication order for these pairs does not matter, the result is the same. For example: Trans z n 1 ( d n ) Rot z n 1 ( θ n ) = Rot z n 1 ( θ n ) Trans z n 1 ( d n ) {\displaystyle \operatorname {Trans} _{z_{n-1}}(d_{n})\cdot \operatorname {Rot} _{z_{n-1}}(\theta _{n})=\operatorname {Rot} _{z_{n-1}}(\theta _{n})\cdot \operatorname {Trans} _{z_{n-1}}(d_{n})} .

Therefore, we can write the transformation n 1 T n {\displaystyle \operatorname {} ^{n-1}T_{n}} as follows:
n 1 T n = Trans z n 1 ( d n ) Rot z n 1 ( θ n ) Trans x n ( r n ) Rot x n ( α n ) {\displaystyle {}^{n-1}T_{n}=\operatorname {Trans} _{z_{n-1}}(d_{n})\cdot \operatorname {Rot} _{z_{n-1}}(\theta _{n})\cdot \operatorname {Trans} _{x_{n}}(r_{n})\cdot \operatorname {Rot} _{x_{n}}(\alpha _{n})}
n 1 T n = Rot z n 1 ( θ n ) Trans z n 1 ( d n ) Trans x n ( r n ) Rot x n ( α n ) {\displaystyle {}^{n-1}T_{n}=\operatorname {Rot} _{z_{n-1}}(\theta _{n})\cdot \operatorname {Trans} _{z_{n-1}}(d_{n})\cdot \operatorname {Trans} _{x_{n}}(r_{n})\cdot \operatorname {Rot} _{x_{n}}(\alpha _{n})}

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 {\displaystyle n} with respect to n 1 {\displaystyle n-1} may be represented by a position matrix indicated with the symbol T {\displaystyle T} or M {\displaystyle M}

n 1 T n = M n 1 , n {\displaystyle \operatorname {} ^{n-1}T_{n}=M_{n-1,n}}

This matrix is also used to transform a point from frame n {\displaystyle n} to n 1 {\displaystyle n-1}

M n 1 , n = [ R x x R x y R x z T x R y x R y y R y z T y R z x R z y R z z T z 0 0 0 1 ] {\displaystyle M_{n-1,n}=\left}

Where the upper left 3 × 3 {\displaystyle 3\times 3} submatrix of M {\displaystyle M} represents the relative orientation of the two bodies, and the upper right 3 × 1 {\displaystyle 3\times 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 {\displaystyle k} with respect to body i {\displaystyle i} can be obtained as the product of the matrices representing the pose of j {\displaystyle j} with respect of i {\displaystyle i} and that of k {\displaystyle k} with respect of j {\displaystyle j}

M i , k = M i , j M j , k {\displaystyle M_{i,k}=M_{i,j}M_{j,k}}

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

M 1 = [ R T R T T 0 0 0 1 ] {\displaystyle M^{-1}=\left}

where R T {\displaystyle R^{T}} is both the transpose and the inverse of the orthogonal matrix R {\displaystyle R} , i.e. R i j 1 = R i j T = R j i {\displaystyle R_{ij}^{-1}=R_{ij}^{T}=R_{ji}} .

Kinematics

Further matrices can be defined to represent velocity and acceleration of bodies. The velocity of body i {\displaystyle i} with respect to body j {\displaystyle j} can be represented in frame k {\displaystyle k} by the matrix

W i , j ( k ) = [ 0 ω z ω y v x ω z 0 ω x v y ω y ω x 0 v z 0 0 0 0 ] {\displaystyle W_{i,j(k)}=\left}

where ω {\displaystyle \omega } is the angular velocity of body j {\displaystyle j} with respect to body i {\displaystyle i} and all the components are expressed in frame k {\displaystyle k} ; v {\displaystyle v} is the velocity of one point of body j {\displaystyle j} with respect to body i {\displaystyle i} (the pole). The pole is the point of j {\displaystyle j} passing through the origin of frame i {\displaystyle i} .

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

H i , j ( k ) = W ˙ i , j ( k ) + W i , j ( k ) 2 {\displaystyle H_{i,j(k)}={\dot {W}}_{i,j(k)}+W_{i,j(k)}^{2}}

The velocity and the acceleration in frame i {\displaystyle i} of a point of body j {\displaystyle j} can be evaluated as

P ˙ = W i , j P {\displaystyle {\dot {P}}=W_{i,j}P}
P ¨ = H i , j P {\displaystyle {\ddot {P}}=H_{i,j}P}

It is also possible to prove that

M ˙ i , j = W i , j ( i ) M i , j {\displaystyle {\dot {M}}_{i,j}=W_{i,j(i)}M_{i,j}}
M ¨ i , j = H i , j ( i ) M i , j {\displaystyle {\ddot {M}}_{i,j}=H_{i,j(i)}M_{i,j}}

Velocity and acceleration matrices add up according to the following rules

W i , k = W i , j + W j , k {\displaystyle W_{i,k}=W_{i,j}+W_{j,k}}
H i , k = H i , j + H j , k + 2 W i , j W j , k {\displaystyle H_{i,k}=H_{i,j}+H_{j,k}+2W_{i,j}W_{j,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 {\displaystyle k} and transform from one frame to another by the following rule

W ( h ) = M h , k W ( k ) M k , h {\displaystyle W_{(h)}=M_{h,k}W_{(k)}M_{k,h}}
H ( h ) = M h , k H ( k ) M k , h {\displaystyle H_{(h)}=M_{h,k}H_{(k)}M_{k,h}}

Dynamics

For the dynamics, three further matrices are necessary to describe the inertia J {\displaystyle J} , the linear and angular momentum Γ {\displaystyle \Gamma } , and the forces and torques Φ {\displaystyle \Phi } applied to a body.

Inertia J {\displaystyle J} :

J = [ I x x I x y I x z x g m I y x I y y I y z y g m I z x I z y I z z z g m x g m y g m z g m m ] {\displaystyle J=\left}

where m {\displaystyle m} is the mass, x g , y g , z g {\displaystyle x_{g},\,y_{g},\,z_{g}} represent the position of the center of mass, and the terms I x x , I x y , {\displaystyle I_{xx},\,I_{xy},\ldots } represent inertia and are defined as

I x x = x 2 d m {\displaystyle I_{xx}=\iint x^{2}\,dm}
I x y = x y d m I x z = {\displaystyle {\begin{aligned}I_{xy}&=\iint xy\,dm\\I_{xz}&=\cdots \\&\,\,\,\vdots \end{aligned}}}

Action matrix Φ {\displaystyle \Phi } , containing force f {\displaystyle f} and torque t {\displaystyle t} :

Φ = [ 0 t z t y f x t z 0 t x f y t y t x 0 f z f x f y f z 0 ] {\displaystyle \Phi =\left}

Momentum matrix Γ {\displaystyle \Gamma } , containing linear ρ {\displaystyle \rho } and angular γ {\displaystyle \gamma } momentum

Γ = [ 0 γ z γ y ρ x γ z 0 γ x ρ y γ y γ x 0 ρ z ρ x ρ y ρ z 0 ] {\displaystyle \Gamma =\left}

All the matrices are represented with the vector components in a certain frame k {\displaystyle k} . Transformation of the components from frame k {\displaystyle k} to frame h {\displaystyle h} follows the rule

J ( h ) = M h , k J ( k ) M h , k T Γ ( h ) = M h , k Γ ( k ) M h , k T Φ ( h ) = M h , k Φ ( k ) M h , k T {\displaystyle {\begin{aligned}J_{(h)}&=M_{h,k}J_{(k)}M_{h,k}^{T}\\\Gamma _{(h)}&=M_{h,k}\Gamma _{(k)}M_{h,k}^{T}\\\Phi _{(h)}&=M_{h,k}\Phi _{(k)}M_{h,k}^{T}\end{aligned}}}

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

Newton's law:

Φ = H J J H t {\displaystyle \Phi =HJ-JH^{t}\,}

Momentum:

Γ = W J J W t {\displaystyle \Gamma =WJ-JW^{t}\,}

The first of these equations express the Newton's law and is the equivalent of the vector equation f = m a {\displaystyle f=ma} (force equal mass times acceleration) plus t = J ω ˙ + ω × J ω {\displaystyle t=J{\dot {\omega }}+\omega \times 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) 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.

Modified DH parameters

Compared with the classic DH parameters, the coordinates of frame O i 1 {\displaystyle O_{i-1}} is put on axis i − 1, not the axis i in classic DH convention. The coordinates of O i {\displaystyle O_{i}} 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:

n 1 T n = Rot x n 1 ( α n 1 ) Trans x n 1 ( a n 1 ) Rot z n ( θ n ) Trans z n ( d n ) {\displaystyle {}^{n-1}T_{n}=\operatorname {Rot} _{x_{n-1}}(\alpha _{n-1})\cdot \operatorname {Trans} _{x_{n-1}}(a_{n-1})\cdot \operatorname {Rot} _{z_{n}}(\theta _{n})\cdot \operatorname {Trans} _{z_{n}}(d_{n})}

Thus, the matrix of the modified DH parameters becomes

n 1 T n = [ cos θ n sin θ n 0 a n 1 sin θ n cos α n 1 cos θ n cos α n 1 sin α n 1 d n sin α n 1 sin θ n sin α n 1 cos θ n sin α n 1 cos α n 1 d n cos α n 1 0 0 0 1 ] {\displaystyle \operatorname {} ^{n-1}T_{n}=\left}

Note that some books (e.g.:) use a n {\displaystyle a_{n}} and α n {\displaystyle \alpha _{n}} to indicate the length and twist of link n − 1 rather than link n. As a consequence, n 1 T n {\displaystyle {}^{n-1}T_{n}} is formed only with parameters using the same subscript.

Surveys of DH conventions and its differences have been published.

See also

References

  1. Denavit, Jacques; Hartenberg, Richard Scheunemann (1955). "A kinematic notation for lower-pair mechanisms based on matrices". Journal of Applied Mechanics. 22 (2): 215–221. doi:10.1115/1.4011045.
  2. Hartenberg, Richard Scheunemann; Denavit, Jacques (1965). Kinematic synthesis of linkages. McGraw-Hill series in mechanical engineering. New York: McGraw-Hill. p. 435. Archived from the original on 2013-09-28. Retrieved 2012-01-13.
  3. Paul, Richard (1981). Robot manipulators: mathematics, programming, and control : the computer control of robot manipulators. Cambridge, MA: MIT Press. ISBN 978-0-262-16082-7. Archived from the original on 2017-02-15. Retrieved 2016-09-22.
  4. Spong, Mark W.; Vidyasagar, M. (1989). Robot Dynamics and Control. New York: John Wiley & Sons. ISBN 9780471503521.
  5. ^ Legnani, Giovanni; Casolo, Federico; Righettini, Paolo; Zappa, Bruno (1996). "A homogeneous matrix approach to 3D kinematics and dynamics — I. Theory". Mechanism and Machine Theory. 31 (5): 573–587. doi:10.1016/0094-114X(95)00100-D.
  6. ^ Legnani, Giovanni; Casolo, Federico; Righettini, Paolo; Zappa, Bruno (1996). "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): 589–605. doi:10.1016/0094-114X(95)00101-4.
  7. John J. Craig, Introduction to Robotics: Mechanics and Control (3rd Edition) ISBN 978-0201543612
  8. Khalil, Wisama; Dombre, Etienne (2002). Modeling, identification and control of robots. New York: Taylor Francis. ISBN 1-56032-983-1. Archived from the original on 2017-03-12. Retrieved 2016-09-22.
  9. Lipkin, Harvey (2005). "A Note on Denavit–Hartenberg Notation in Robotics". Volume 7: 29th Mechanisms and Robotics Conference, Parts a and B. Vol. 2005. pp. 921–926. doi:10.1115/DETC2005-85460. ISBN 0-7918-4744-6.
  10. Waldron, Kenneth; Schmiedeler, James (2008). "Kinematics". Springer Handbook of Robotics. pp. 9–33. doi:10.1007/978-3-540-30301-5_2. ISBN 978-3-540-23957-4.
Category: