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)
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?
Fig. — 2-link planar arm · units cm · y up
Joint angles (relative)
Arm geometry
- 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.
E1Where does the tip go?
- Use forward kinematics mode with link lengths 20, 15 and 6 cm.
- Set joint 1 to 30°, joint 2 to 45° and joint 3 to 0°.
E2The hole in the workspace
- Set the link lengths to 25, 10 and 5 cm.
- Sweep the joints and watch which points near the base the tip can't reach.