- Introduced by
- Denavit, J. and Hartenberg, R. S.
- Year
- 1955
- Type
- Mathematical convention for describing articulated mechanisms
- Family
- Kinematic representation
What does it do?
The Denavit-Hartenberg (DH) convention is a systematic method for assigning coordinate frames to the links of a serial articulated mechanism, so that each joint is described by four parameters: link length, link twist, link offset and joint angle.
Introduced by Denavit and Hartenberg in 1955 in the context of lower-pair linkages, it lets the transformation between the base and the tool be computed as a product of per-joint matrices. This page covers the convention and its main variants, and the points where it is commonly misapplied.
The intuition behind the method
The core idea is to assign one coordinate frame per link and relate each frame to the next through four parameters: link length a, link twist alpha, link offset d and joint angle theta. Because the frame assignment is constrained to this pattern, any serial chain of joints can be described with the same small set of parameters rather than arbitrary 3D transformations. Each joint contributes one variable: the joint angle theta for a revolute joint, or the offset d for a prismatic joint. The other parameters are constant geometry of the mechanism.
History
Denavit and Hartenberg published the notation in 1955 as a matrix-based way to describe lower-pair mechanisms. It is now presented in the robotics textbooks cited on this page, where it is a standard approach to serial manipulator kinematics. Modified forms of the convention with different frame assignment rules also exist.
When to use it
Use Denavit-Hartenberg parameters for open serial chains with a sequence of joints, such as industrial serial arms, SCARA-type and articulated manipulators, or the individual limbs of legged machines. It is well suited to forward kinematics, kinematic simulation and programming of such chains. Do not use the plain convention as the complete model of a closed-loop or parallel mechanism without adding loop-closure constraints, and do not use it alone when dynamic properties such as mass and inertia are needed for control. The DH parameters describe geometry only.
Limitations and considerations
- Requires careful, consistent frame assignment; errors in parameter definition lead to incorrect kinematics
- Does not encode dynamic properties such as mass and inertia, which are needed for control
- Closed kinematic loops and parallel mechanisms, such as delta-type robots, are not described by a single open chain and need additional loop-closure constraints
- At kinematic singularities, for example when consecutive joint axes align, the mapping from joint values to tool pose becomes degenerate, which complicates inverse kinematics
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Compact, systematic representation requiring only four parameters per joint
- Enables efficient computation of forward kinematics using matrix multiplication
- Provides a standardized notation facilitating communication between researchers and engineers
- Allows closed-form inverse kinematics for many common arm geometries with special structure, such as intersecting wrist axes; this does not hold for arbitrary chains
- Scales naturally to mechanisms with many degrees of freedom
Applications
- Industrial serial manipulators: describing and programming SCARA and articulated robot arms for manufacturing tasks
- Legged and mobile robots: describing the kinematic chain of each limb, with loop constraints handled separately where the platform is closed
- Surgical robotics: modelling the serial joint chains of manipulator arms that hold instruments
- Humanoid robotics: describing the open kinematic chains of arms and legs
How it works
How it works
Obtain the physical configuration of the mechanism: the length of each link, the order of the joint axes, the offsets between axes, and whether each joint is revolute (rotational) or prismatic (sliding).
Establish the base frame and the tool frame at the end-effector, and number the joints sequentially from base to tool.
For each pair of consecutive joint axes, identify the common perpendicular between them. Its direction and the position of its intersection with each axis determine the frame orientation and the link parameters. Where axes are parallel or intersect, the choice of frame direction is not unique and must be fixed by an explicit rule.
Assign a_i, alpha_i, d_i and theta_i for each joint, following either the standard or the modified convention, and do not mix the two. For the standard convention, the transform from frame i-1 to frame i is the product Rot_z(theta_i) Trans_z(d_i) Trans_x(a_i) Rot_x(alpha_i), written as the homogeneous transformation matrix A_i = [[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]]. Multiply the matrices for all joints, in order from base to tool, to obtain the transformation from base to tool: T = A_1 A_2 ... A_n.
Use the composed transformation to compute forward kinematics, which gives the tool position and orientation for given joint values. Before relying on the model, check it by setting all joint values to zero and comparing the computed tool pose with the known pose of the physical mechanism in that configuration, then repeat the check for one or two other configurations with known tool poses. For inverse kinematics, solve the resulting equations for joint values that produce a desired tool pose, noting that the solution may not be unique.
Common pitfalls
- Mixing the standard and modified DH conventions in one model, which produces parameter sets that do not match each other
- Confusing link length a with link offset d; for parallel consecutive axes the perpendicular distance between them is a, while d is the displacement along the joint axis
- Applying the transform factors in the wrong order; the standard product is Rot_z(theta) Trans_z(d) Trans_x(a) Rot_x(alpha), and reordering these operations changes the result
- Leaving the frame direction for parallel or intersecting axes undefined, which makes the parameters ambiguous
- Using the wrong sign for theta or alpha: both are positive by the right-hand rule about z_i and x_i respectively, and a reversed sign produces a model that runs without error but does not match the mechanism
Frequently asked questions
What is the difference between the standard DH convention and the modified DH convention?
The two conventions assign the frames differently. In the standard convention, the z-axis of frame i is placed along the axis of joint i+1, the next joint. In the modified convention, it is placed along the axis of joint i, the current joint. Because the frames differ, the two conventions give different parameter sets for the same mechanism, so they must not be mixed. Choose one and apply it consistently.
How do I assign DH parameters for a planar 2-link arm?
For a 2-link planar arm with revolute joints, all joint axes are parallel and perpendicular to the plane of motion. Place frame 0 at the base joint axis, frame 1 at joint 2, and frame 2 at the end-effector tool point. The link length a1 (from joint 1 to joint 2) and a2 (from joint 2 to the tool point along the second link) are the non-zero parameters. All twist angles alpha_i and link offsets d_i are zero, because the axes are parallel and the frames are kept in the plane of motion. The joint angles theta1 and theta2 are the variables. If the tool point is offset from the second link, that offset is a third transform with its own parameters and must be added explicitly.
What happens if two consecutive joint axes are parallel?
For parallel axes the twist angle alpha is zero. The perpendicular distance between the two axes is then given by the link length a, not by the offset d. The offset d describes the displacement along the joint axis, so it is set by the position of the frame origins along that axis. The frame direction along the common perpendicular is not unique and must be fixed by an explicit rule.
Can I use DH parameters for a robot with closed-loop kinematic chains?
DH parameters are designed for open-chain mechanisms. Closed loops require additional constraint equations that relate the joint variables around the loop. A common approach is to cut the loop, model each resulting open chain with DH parameters, and add the loop-closure constraints explicitly.
Related methods
Sources
Denavit, J., & Hartenberg, R. S. (1955). A kinematic notation for lower-pair mechanisms based on matrices. Journal of Applied Mechanics, 22(2), 215-221.
Open publication referenceCraig, J. J. (2005). Introduction to Robotics: Mechanics and Control (3rd ed.). Pearson Education.
ISBN: 0-13-123629-6Spong, M. W., Hutchinson, S., & Vidyasagar, M. (2006). Robot Modeling and Control. John Wiley & Sons.
ISBN: 0-471-64990-2