Robotics
Forward kinematics: from joint angles to position
See it first
3D teardown
Inside the Unitree G1
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.