Skip to the content
FixTheRobot Explore Robotics / Manipulator Basics / Labs / Lab 06

Manipulator Basics · Lab 06 of 10

Lab 06: Jacobian and Singularities

Watch joint velocities become end-effector velocity, manipulability ellipses shrink and inverse Jacobians blow up.

Objective

See the Jacobian map joint velocities to end-effector velocity, read manipulability, singular values and the condition number, drive the arm into a singularity, watch the inverse Jacobian demand huge joint speeds, and tame it with damped least squares.

Brief theory

The Jacobian relates velocities: x˙=J(q) q˙\dot x = J(q)\,\dot q. For the 2R arm (position rows only)

J(q)=[−L1s1−L2s12−L2s12L1c1+L2c12L2c12],det⁡J=L1L2sin⁡q2J(q) = \begin{bmatrix} -L_1 s_1 - L_2 s_{12} & -L_2 s_{12} \\ L_1 c_1 + L_2 c_{12} & L_2 c_{12} \end{bmatrix},\qquad \det J = L_1 L_2 \sin q_2

The singular values σ1≥σ2\sigma_1 \ge \sigma_2 of JJ are the semi-axes of the manipulability ellipse: the end-effector velocities a unit-norm joint velocity can produce. Manipulability w=det⁡(JJ⊤)=σ1σ2w = \sqrt{\det(JJ^{\top})} = \sigma_1\sigma_2 and the condition number κ=σ1/σ2\kappa = \sigma_1/\sigma_2 measure how close the arm is to a singularity, where σmin⁡→0\sigma_{\min} \to 0 and some direction cannot be produced at all. Resolved-rate control computes q˙=J−1x˙\dot q = J^{-1}\dot x; near a singularity that blows up, while q˙=J⊤(JJ⊤+λ2I)−1x˙\dot q = J^{\top}(JJ^{\top}+\lambda^2 I)^{-1}\dot x stays bounded. See Module 08.

Simulation workspace

Drag in the view where the controls say you can. Every number shown is computed live by the simulation engine running in your browser.

Loading the simulation…

Guided tasks

Each task ticks itself when the simulation sees you do it. Progress is saved in this browser.

  1. Move the arm into different configurationsChange the joint angles and watch the ellipse change shape.
  2. Change joint velocitiesSet non-zero joint velocities and read the resulting end-effector velocity arrow and numbers.
  3. Approach a singularityBring the elbow near 0° (arm stretched) until the singularity indicator lights up.
  4. Observe inverse-Jacobian instabilityRun the outward motion with the plain inverse until the demanded joint speed passes the 3 rad/s limit.
  5. Apply damped least-squares controlRun a motion with DLS that stays within the 3 rad/s limit and compare the peak joint speed and the tracking error.

Challenges

Each challenge states an objective, its constraints and how success is measured. The live line under it is computed from the simulation. Hints and full solutions are there when you want them.

Success criteria

  • All numbers (J, singular values, w, κ) are computed from the model at the current configuration; the finite-difference Jacobian shown next to the analytical one agrees with it.
  • You have produced a run where the inverse demands more than the joint speed limit and a DLS run that stays within it.

Explanation of the results

At the stretched configuration the two columns of JJ are parallel: both joints can only move the tool sideways, never along the arm. One singular value drops to zero, the ellipse collapses to a line, and J−1J^{-1} does not exist. Close to it, J−1J^{-1} exists but its entries are about 1/σmin⁡1/\sigma_{\min}, so a modest tool velocity along the arm needs a very large joint velocity: that is the spike in the plot.

Damped least squares replaces 1/σ1/\sigma by σ/(σ2+λ2)\sigma/(\sigma^2+\lambda^2), which is never larger than 1/(2λ)1/(2\lambda). The price is a tracking error in the hard direction near the singularity, visible in the error plot. Real controllers use exactly this trade-off (often with a damping that grows only near singularities).