Lab 01: planar arm
Home | 02 Geometry and Kinematics
Goal: understand geometry well enough to detect a frame or Jacobian bug. No physical robot is required.
- Implement the two-link forward kinematics in NumPy.
- Derive and implement the analytic Jacobian.
- Approximate each Jacobian column with central finite differences at several nonsingular configurations.
- Plot two configurations that reach the same point.
- Implement damped least-squares inverse kinematics with a bounded update.
- Test reachable, unreachable, and near-singular targets.
Use a small finite-difference step and report sensitivity to its value; floating-point error eventually dominates when the step becomes too small.
Pass condition: explain the dimensions of each matrix, demonstrate agreement between analytic and numerical derivatives, and show graceful handling of an unreachable target. “The picture looks right” is not enough.
Extension: express a target in a rotated camera frame, transform it to the arm frame, and verify the reach. Record one deliberately reversed transform and the resulting error.
Use Experiment Template to keep code version, plots, and observations together.