Turn joint angles into a gripper position
Each joint turns the links that follow it. Move the shoulder and elbow to see how their angles combine to place the gripper on the workbench.
Planar arm lab
Change either joint angle and read the gripper position. The elbow angle is relative to the first link.
Robot arm workbench
The 3D workspace loads when it comes into view.
Gripper (1.00, 0.80) m
More controls
Shoulder 0.0° · Elbow 90.0°
Gripper (1.00, 0.80) m. Pose clear. Move the shoulder and elbow controls to articulate the arm. The links remain in one horizontal plane.
2D reference and fallback
Optional reasoning check
Model limits
Two ideal links, 1.00 m and 0.80 m. Free joints in one horizontal plane, no gravity, torque, joint limits, self-collision, or grasp physics. The planner tests direct motions and a finite set of waypoints at at most 2° joint increments. This sampling can miss collisions between poses; it is not a hardware motion planner.
Opening the Python editor…
Requirements and learning goals
Before you start
- A browser with JavaScript
- No robot, account, or installation
You will be able to
- Distinguish joint angles from positions
- Predict a two-link arm's endpoint
- Explain the model's limits
Two joints, one position
A robot arm receives joint commands, but its task is usually described by a gripper position. is the calculation from those joint angles to that position. This track uses the same two-link arm throughout: a 1.00 m link attached to the base, followed by a 0.80 m link and a gripper. Allow about 10 minutes for this browser exercise.
The arm moves across a tabletop. Select Top view to look straight down: positive x points right and positive y points up the screen. Orbiting the 3D view changes your viewpoint, not the . Both links move in the tabletop plane. The shoulder angle is measured from positive x; the elbow angle is measured relative to the first link. An elbow angle of zero means the links point the same way, even when the shoulder has rotated.
Work through the starting pose
At shoulder 0° and elbow 90°, the first link reaches (1.00, 0.00). The second link points upward for another 0.80 m, so the gripper reaches (1.00, 0.80). With both angles at zero, their lengths add along x and the gripper reaches (1.80, 0.00).
For any angles, each link contributes a horizontal and vertical component. The second link's direction is shoulder plus elbow. Treating the elbow as a world angle gives the wrong endpoint when you turn the shoulder.
Try it
- Read the starting gripper position before changing a slider.
- Predict the result when the elbow changes from 90° to 0°. Move the slider and check the result. The reasoning check is optional.
- Keep the elbow at zero and set the shoulder to 90°. Predict both coordinates first.
- Set shoulder 90° and elbow -90°. Sketch which way each link points, then compare with the diagram.
Check the expected result
The four poses above give (1.00, 0.80), (1.80, 0.00), (0.00, 1.80), and (0.80, 1.00) meters. Tiny negative zeros in a readout are rounding artifacts. You are done when you can explain the last pose using the direction of each link rather than memorizing a number.
Troubleshooting
If your numbers differ, use Reset and check the two angle values. A negative angle rotates clockwise. The range sliders accept keyboard arrow keys; use them for an exact setting. Without JavaScript, the starting diagram and these worked examples remain available, but the controls cannot run.
This model deliberately omits gravity, torque, joint limits, and self-collision. It teaches geometry, not which commands a real arm can execute. The following lesson reverses the problem: choose a gripper position and find joint angles that reach it.
Before you move on
Can you do each of these?
- Distinguish joint angles from positions
- Predict a two-link arm's endpoint
- Explain the model's limits
0 of 2 checkpoints solved. Try checkpoint 1