Skip to content
Tactiverge

Robotic kinematics

Move a planar arm's joints to see where the tip goes, then pick a target and solve for the joint angles that reach it.

Equation
x = L1·cos θ1 + L2·cos(θ1+θ2)
Equation
y = L1·sin θ1 + L2·sin(θ1+θ2)
Equation
cos θ2 = (x² + y² − L1² − L2²) / (2·L1·L2)

Predict first, change one thing at a time, notice what happens.

Predict firstIf you bend the elbow from straight (0°) to fully folded (180°), does the hand get closer to the shoulder, further away, or stay the same distance?

  1. Set both joints to 0° and note where the hand is.
  2. Change only the elbow, a little at a time, and watch the hand's distance from the base.
  3. Now change only the shoulder. What stays the same this time?

Want the full story? Where is the hand? Kinematics meets control (Level 3) uses this lab.

Explorer 01 — Robotic kinematics

From joint angles to a position, and back again

Forward kinematics turns joint angles into an end-effector position. Inverse kinematics asks the harder question: which angles put the tip where I want it?

REACH 35.0 CMHOLE 5.0J1J2(15.1, 26.4)

Fig. — 2-link planar arm · units cm · y up

Mode

Joint angles (relative)

35 °
60 °

Arm geometry

Links
20.0 cm
15.0 cm
End x
15.1 cm
End y
26.4 cm
Distance r
30.4 cm
workspace 5.0–35.0 cm
|sin θ2|
0.87
well-conditioned
Tip angle φ
95.0°

State

Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).

Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).

How to read this

The base sits at the centre (grid squares are 10 cm). Each thick bar is a link; circles are joints J1, J2. The shaded ring is the workspace: every point the tip can reach with unlimited joint travel. Its outer edge is L1 + L2; the inner hole appears when one link is longer than the others combined.

Arcs show each joint angle. θ1 is measured from the dashed horizontal; θ2 from the dashed extension of link 1. In inverse mode the square is the target (dashed and labelled unreachable when outside the ring), and the arm is solved with the law of cosines. Most targets have two solutions: elbow-up and elbow-down.

Assumptions & limitations
  • Ideal rigid links and revolute joints with no mass, friction, backlash, or flex.
  • Joints may rotate a full ±180°; real joints have hard limits that shrink the workspace, and links cannot pass through each other or the floor.
  • Kinematics only: nothing here says whether the motors are strong or fast enough to hold or reach a pose (that is dynamics).
  • Three-link inverse kinematics is made solvable by fixing the tool angle φ; real controllers choose among redundant solutions with extra goals.
  • Unreachable targets are projected onto the nearest edge of the reachable ring for display; a real controller would refuse or plan around them.

Guided experiments

Set up the lab as described, then enter what you measure. Answers are checked on the server.

  1. E1Where does the tip go?

    1. Use forward kinematics mode with link lengths 20, 15 and 6 cm.
    2. Set joint 1 to 30°, joint 2 to 45° and joint 3 to 0°.
    cm

  2. E2The hole in the workspace

    1. Set the link lengths to 25, 10 and 5 cm.
    2. Sweep the joints and watch which points near the base the tip can't reach.
    cm