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.

Browser walkthrough·Beginner·About 10 min

Planar arm lab

Change either joint angle and read the gripper position. The elbow angle is relative to the first link.

Robot arm workbench

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
Two-link arm viewed from aboveThe gripper is at x 1.00, y 0.80 meters. No collision at this pose.+x+y
Optional reasoning check
Predict before you try

With both joint angles at 0°, where is the gripper?

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.

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.

Checkpoint 1 of 2

The shoulder is at 45° and the elbow at 0°. How far is the gripper from the base?

Commit to an answer. Every choice explains itself.

Try it

  1. Read the starting gripper position before changing a slider.
  2. Predict the result when the elbow changes from 90° to 0°. Move the slider and check the result. The reasoning check is optional.
  3. Keep the elbow at zero and set the shoulder to 90°. Predict both coordinates first.
  4. 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.

Checkpoint 2 of 2

A fifth pose: shoulder 90° and elbow 90°. Where is the gripper?

Commit to an answer. Every choice explains itself.

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.

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

Make a robot arm pick something up
All lessons in this topic
  1. 1. Turn joint angles into a gripper position
  2. 2. Find joint angles for a target
  3. 3. Check the motion between two poses
  4. 4. Complete a simulated pick-and-place task

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.