Forward and inverse kinematics for a 6-DOF robot arm
PUMA
Lets users explore joint angles and gripper poses in a live MATLAB simulation.
- Company
University of Utah- Role
- Researcher
- Domains
- Research
- Hardware

- Degrees of freedom in joint space:
- 6
- Inverse kinematics solutions enumerated:
- 4
On this page
Tools & methods
- MATLAB
- Denavit-Hartenberg
- Robotics Toolbox
- 3D graphics
- Inverse kinematics
The problem
Tell a robot arm to reach a point in space, and there isn't just one way to do it: there can be multiple valid joint configurations that all land the arm at the same position.
The challenge is figuring out which solution is physically possible, and which ones would snap a joint past its mechanical limit.
The challenge
Building a correct inverse kinematics solver for a 6-joint robot arm means handling the inherent ambiguity of IK: a single Cartesian target can be reached by multiple joint configurations. The PUMA 762 IK has two sign choices (sqrt can be + or −) for θ1 and θ3, yielding up to 4 distinct solution branches. The solver must enumerate all branches, evaluate the full 6-joint angle set for each, and select the first solution where every joint stays within its physical travel limits.
System design
Forward kinematics uses the standard Denavit-Hartenberg chain: each joint contributes a 4×4 homogeneous transform, and the end-effector pose is the product of all six. Link parameters: a₂=650mm, a₃=0, d₃=190mm, d₄=600mm.
The IK solver loops over all 4 sign-combination branches, computing θ1 and θ3 from the geometric decoupling solution, then back-solving θ2 from the joint-2/3 coupled equation, and finally resolving θ4-θ6 from the wrist orientation matrix. The 3D GUI (puma3d.m) renders the full arm model using capsule primitives, with interactive sliders for each joint, a motion trail renderer, and collision detection via capsule-capsule intersection tests.
Results
The simulator correctly solves FK and IK for any reachable workspace point, selecting joint configurations that satisfy all six physical travel limits. The interactive GUI runs in real time, allowing the user to drag joint sliders or click a target position and watch the full arm animate to the solution. Collision detection via capsule-capsule intersection tests flags self-collisions during motion. The project formed the foundation for subsequent robot control research at the University of Utah.
Gallery
Select an image to open the viewer. Choose Actual size for images that offer it.
More from University of Utah

iRobot Create
Compares four ways to plan a collision-free route for an iRobot Create.
Next case study

Perch landing
Estimates a perch's distance and orientation from a single camera.

RC glider
Shows how a hand-built RC glider steers with two servos and one brushless motor.

Quadrotor
Uses camera input to guide a quadrotor onto a perch when GPS is unavailable.

Quanser
Coordinates two robot arms so they can move a shared load.
7 other case studies from University of Utah, 5 shown here.
All University of Utah projectsTalk through the research
I can walk you through the research covered here: Forward and inverse kinematics for a 6-DOF robot arm. We can discuss the method and what the results mean in practice.