What Is Forward Kinematics? DH Parameters & UR5 Python

What is forward kinematics? Map joint angles to end-effector pose with DH parameters (theta, d, a, alpha), a 2-link worked example, and UR5 Python FK code.

In this article

  • Denavit-Hartenberg Parameters
  • Denavit-Hartenberg Parameters: Theta, d, a, Alpha Definitions
  • Computing End-Effector Pose
  • Practical Implementation
  • DH Parameters Step-by-Step
  • DH Parameters Rules
  • Transformation Matrix
  • Standard DH Transformation Matrix Formula
  • Modified DH Parameters vs Standard DH Parameters
  • How to Build a DH Table for a 6-DOF Robot Arm
  • DH Table Example for a 2-DOF Planar Robotic Arm
  • Example: 2R Planar Manipulator
  • Forward Kinematics Equations for a 2-Link Robot Arm
  • Velocity Kinematics
  • Implementation in Code
  • Direct Kinematics vs Forward Kinematics
  • Tool Center Point (TCP) Offsets
  • Forward Kinematics in Real Robots
  • ROS 2 Workflow: Where FK Actually Shows Up
  • URDF and Forward Kinematics
  • Debugging Checklist
  • Validation Techniques
  • Common Mistakes
  • Robotics Toolbox UR5 Example in Python
  • UR5 DH Model vs URDF Model
  • roboticstoolbox-python robot.plot() and Matplotlib Axes
  • Common Robotics Toolbox UR5 Errors
  • FAQ: Forward Kinematics and DH Parameters