Robotics terminology
Inverse kinematics
Also called: IK · position to joint angles · elbow up elbow down
Definition
Inverse kinematics finds joint angles that place the end-effector at a desired position. There may be several solutions, one, or none.
Picture it
For a two-link arm, the cosine rule gives the elbow angle from the distance to the target; a point inside the workspace has an elbow-up and an elbow-down solution. Points outside the reach have no solution, and code must handle that rather than crash on acos of a number above 1.
The maths
cos θ2 = (x² + y² − L1² − L2²) / (2 L1 L2) θ1 = atan2(y, x) − atan2(L2 sin θ2, L1 + L2 cos θ2)
| Quantity | Unit | Symbol |
|---|---|---|
| length | metre | m |
| angle | radian | rad |
| angle | degree | ° |
Worked example
L1 = L2 = 0.25 m. Find the elbow angle θ2 (elbow-down, positive) to reach (0.30, 0.20) m.
- x² + y² = 0.09 + 0.04 = 0.13
- cos θ2 = (0.13 − 0.0625 − 0.0625) / (2 × 0.0625) = 0.005 / 0.125 = 0.04
- θ2 = acos 0.04 = 87.7°
Answerθ2 ≈ 87.7°.
✓ The number in this answer is recomputed from scratch by an automated test.
Common misconceptions
- Misconception: IK does not always have a unique answer; the controller must choose one consistently.
- Misconception: An unreachable target gives |cos θ2| > 1; clamp or reject it.