A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Denavit-Hartenberg Notation and Transformation Matrices

Graduate Depth 97 in the knowledge graph ☐ I know this ☆ Set as goal
20topics build on this
374prerequisites beneath it
See this on the map →
Forward and Inverse Kinematics→→Dynamics of Robot ManipulatorsThe Robot Jacobian and Velocity Control
denavit-hartenberg dh-convention transformation-matrices homogeneous-coordinates kinematic-chain

Core Idea

The Denavit-Hartenberg (DH) convention is a systematic method for assigning coordinate frames to each joint and link of a robot arm. Using DH parameters (link length a, twist α, link offset d, joint angle θ), you construct a sequence of 4×4 homogeneous transformation matrices—one for each joint—whose product gives the total transformation from the base frame to the end-effector frame. This makes forward kinematics a deterministic matrix multiplication chain and greatly simplifies implementation and derivation of the robot's Jacobian.

How It's Best Learned

Work through a 2-link planar arm first: assign DH frames by hand, compute all four DH parameters, construct the individual transformation matrices, multiply them to recover the forward kinematics equations you already know. Verify that the result matches. Move to a 3-DOF SCARA arm, then to a 6-DOF industrial robot like the PUMA or UR. Use a textbook table of DH parameters for a real robot and practice reconstructing the forward kinematics.

Common Misconceptions

Explainer

When you first computed forward kinematics for a simple robot arm, you probably added the position contributions of each link by hand, tracking angles carefully. This approach works for small arms but becomes tedious and error-prone for robots with six or more joints. The Denavit-Hartenberg convention provides a systematic framework for this accounting.

The key insight is to assign a coordinate frame to each link—frame i attached to link i. The robot is then a chain of frames: base frame (frame 0) → frame 1 (attached to link 1) → frame 2 → ... → frame n (end-effector). The forward kinematics computation becomes: what is the cumulative transformation from frame 0 to frame n? This is expressed as a product of homogeneous transformation matrices, each of which describes how one frame relates to the previous one.

The DH convention provides rules for assigning these frames consistently. For each joint i:

1. The z-axis of frame i-1 points along the axis of rotation of joint i (for revolute joints) or along the direction of translation (for prismatic joints).

2. The x-axis points along the common normal between the z-axes of frames i-1 and i (or along the line from joint i-1 to i if the axes are parallel).

3. The y-axis completes the right-handed system.

With frames assigned, each link is described by four parameters:

The transformation from frame i-1 to frame i is then the product of four basic matrices:

T_{i-1}^{i} = Rot_z(θ_i) · Trans_z(d_i) · Trans_x(a_i) · Rot_x(α_i)

The forward kinematics is the product chain:

T_0n = T_01 · T_12 · ... · T_{n-1}^{n}

This matrix encodes both position and orientation of the end-effector relative to the base.

Why use DH instead of just multiplying arbitrary transformation matrices? Because DH enforces a standard, which makes forward kinematics systematic and automatable. You write a general function that takes a DH parameter table, builds the matrices in order, and returns the product—no robot-specific code needed. This also makes comparing different robots straightforward: their geometries are captured in different DH tables, but the algorithm is identical. Moreover, the Jacobian (the derivative of forward kinematics with respect to joint angles) also follows a standard formula in the DH framework, enabling systematic design of controllers, singularity avoidance, and velocity control.

DH parameters must be measured or calibrated from the actual robot. In practice, calibration involves measuring reference points on the end-effector and fitting DH parameters to minimize the error between predicted and measured positions. Once you have accurate DH parameters, forward kinematics becomes a reliable computational tool.

Practice Questions 1 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Vectors in Two Dimensions → Vectors in R^n → Scalar Multiplication of Vectors → Dot Product (Inner Product in R^n) → Matrix Multiplication → Determinants of 2×2 and 3×3 Matrices → Invertible Matrices and Matrix Inverses → Systems of Linear Equations and Matrix Form → Gaussian Elimination and Row Reduction → Row Echelon Form and Back Substitution → The Standard Matrix of a Linear Transformation → Forward and Inverse Kinematics → Denavit-Hartenberg Notation and Transformation Matrices

Longest path: 98 steps · 374 total prerequisite topics

Prerequisites (1)

Leads To (2)