Skip to main content
Torqheart
← Foundations

Robotics

Forward kinematics: from joint angles to position

Forward kinematics works out where a hand or foot is once every joint angle is known, by chaining the sine and cosine of each link.

See it first

3D teardown

Inside the Unitree G1

Open full screen
FreeParts, 29 joints, Where the energy goes, Where the money goes🔒 In the workshopKnee torque, More partsDrag to turn, use the buttons to take it apart. Numbers come from published research; our own estimates are marked on the page. A model for learning, not a product spec.

The teardown opens on its “29 joints” mode, which shows this principle. Drag to turn it.

One step at a time

Step by step

Forward kinematics: from joint angles to position

Step 1 of 5

Know every link length

Thigh 0.4 m, shin 0.4 m, and so on.

In words

A leg with hip, knee and ankle is a chain of links. The foot's position is the sum of every link, each turned by the accumulated angle of the joints before it.

The reverse (inverse kinematics) is harder: to put the foot here, how far does each joint turn? There may be many answers, or none. The books teach the forward direction first because everything builds on it.

The formula

x = L₁·cos θ₁ + L₂·cos(θ₁+θ₂), y = L₁·sin θ₁ + L₂·sin(θ₁+θ₂)

Where you meet this in a robot

In the humanoid teardown's joints mode, see how turning one joint carries every part beyond it.