Algorithm Search⌘K

Techniqueadvanced

Operational space formulation

Also called task-space dynamics, Khatib operational space.

Write the robot dynamics in task coordinates, Lambda x'' + eta = F with Lambda = (J M^-1 J^T)^-1, control the task with a force F, and apply tau = J^T F plus null-space torques.

The operational space formulation writes the dynamics of a robot in the coordinates of the task, such as the position of the hand, instead of the joint angles. The result is a mass-spring-like equation Λx¨+η=F\Lambda \ddot x + \eta = F, in which Λ\Lambda is the inertia that the hand seems to have and FF is a force at the hand. A controller chooses FF to give the hand the desired motion or contact force, and the joint torques are τ=JTF\tau = J^T F, plus torques that act only in the null space of the task when the robot is redundant (Khatib 1987).

In plain words

When you push the hand of a robot arm, it feels heavier in some directions than in others, because the push must move different amounts of the arm. The method works out this felt weight for the current pose, and also the forces that come from gravity and from the motion of the arm. With these, the hand behaves like a single object that you can push. The controller decides how hard to push the hand to follow a path or to press on a surface, and then turns that push into motor efforts. If the arm has more joints than the task needs, the extra joints can do a second job, such as keeping the elbow away from an obstacle. The method gives a way to do that second job without disturbing the motion of the hand.

When it applies

  • The joint dynamics M(q)q¨+C(q,q˙)q˙+g(q)=τM(q)\ddot q + C(q, \dot q)\dot q + g(q) = \tau are known well enough, and the joints are torque controlled.
  • The task is a set of mm coordinates x=f(q)x = f(q) with the Jacobian J(q)=∂f/∂qJ(q) = \partial f / \partial q of size m×nm \times n, m≤nm \le n, and JJ has full row rank mm in the region of use, away from singularities.
  • The task is a motion, a force on the environment, or a mix of the two in different directions.

The template

  1. Task inertia. Compute Λ(q)=(JM−1JT)−1\Lambda(q) = (J M^{-1} J^T)^{-1}, an m×mm \times m symmetric positive definite matrix.
  2. Task dynamics. With x¨=Jq¨+J˙q˙\ddot x = J \ddot q + \dot J \dot q and h=Cq˙+gh = C\dot q + g, the joint dynamics give, for every torque of the form τ=JTF+NTτ0\tau = J^T F + N^T \tau_0,
Λx¨+η=F,η=Λ(JM−1h−J˙q˙).\Lambda \ddot x + \eta = F, \qquad \eta = \Lambda \big(J M^{-1} h - \dot J \dot q\big).
  1. Task control. Choose F=Λa+ηF = \Lambda a + \eta, where aa is the desired task acceleration, for example a=x¨d+KD(x˙d−x˙)+KP(xd−x)a = \ddot x_d + K_D(\dot x_d - \dot x) + K_P(x_d - x). Then x¨=a\ddot x = a: each task coordinate behaves as a unit mass with a PD law. For a force task, put the desired force into FF directly in the constrained directions.
  2. Null space. With the dynamically consistent generalized inverse Jˉ=M−1JTΛ\bar J = M^{-1} J^T \Lambda, define N=I−JˉJN = I - \bar J J. Any τ0\tau_0 enters as NTτ0N^T \tau_0.
  3. Torques. Apply τ=JTF+NTτ0\tau = J^T F + N^T \tau_0.

Step 2 holds because JM−1NT=JM−1−JM−1JTJˉT=JM−1−Λ−1ΛJM−1=0J M^{-1} N^T = J M^{-1} - J M^{-1} J^T \bar J^T = J M^{-1} - \Lambda^{-1}\Lambda J M^{-1} = 0. So the null-space torque has no effect on x¨\ddot x, and x¨=JM−1(JTF−h)+J˙q˙\ddot x = J M^{-1}(J^T F - h) + \dot J \dot q, which rearranges to the task equation. This is a theorem for exact models; with model errors it holds only approximately.

For a robot with n=mn = m and an invertible JJ, N=0N = 0, Λ=J−TMJ−1\Lambda = J^{-T} M J^{-1}, and the template is computed-torque control written in task coordinates.

Classic examples

The planar arm with two joints. Take links of 1 m with point masses of 1 kg at their ends, and the pose q=(0,π/2)q = (0, \pi/2), where the hand is at (1,1)(1, 1) m. Then

M=(3111),J=(−1−110),JM−1JT=(1000.5),Λ=(1002) kg.M = \begin{pmatrix} 3 & 1 \\ 1 & 1 \end{pmatrix}, \quad J = \begin{pmatrix} -1 & -1 \\ 1 & 0 \end{pmatrix}, \quad J M^{-1} J^T = \begin{pmatrix} 1 & 0 \\ 0 & 0.5 \end{pmatrix}, \quad \Lambda = \begin{pmatrix} 1 & 0 \\ 0 & 2 \end{pmatrix} \text{ kg}.

The hand feels a mass of 1 kg along xx and 2 kg along yy. Along yy, the push points along link 2 and must move the elbow mass with the hand; along xx, only the hand mass moves, as joint 2 turns. The manipulability ellipsoid of the dynamics has these directions as its axes.

The same arm with a task of one coordinate. Let the task be only the xx coordinate of the hand, so J=(−1,−1)J = (-1, -1) and the arm has one redundant degree of freedom. Then Λ=1\Lambda = 1 kg, Jˉ=M−1JTΛ=(0,−1)T\bar J = M^{-1} J^T \Lambda = (0, -1)^T, and

N=I−JˉJ=(10−10),NTτ0=(τ0,1−τ0,2, 0).N = I - \bar J J = \begin{pmatrix} 1 & 0 \\ -1 & 0 \end{pmatrix}, \qquad N^T \tau_0 = (\tau_{0,1} - \tau_{0,2},\ 0).

A null-space torque τ0=(1,0)\tau_0 = (1, 0) N m gives NTτ0=(1,0)N^T\tau_0 = (1, 0) and the task acceleration JM−1NTτ0=0J M^{-1} N^T \tau_0 = 0: joint 1 turns and joint 2 turns back so that the hand does not move in xx. With the projector of the Moore-Penrose pseudoinverse in place of NN, the torque becomes (0.5,−0.5)(0.5, -0.5) and the hand accelerates at 0.50.5 m/s2^2: that projector is not consistent with the dynamics.

Force control on a surface. For a hand that presses on a plane with the normal zz, choose FzF_z as the desired contact force plus a force feedback term, and FxF_x, FyF_y by the motion law of step 3. This is the unified motion and force control of Khatib (1987), and it is the dynamic form of hybrid position/force control.

Variations

  • Several tasks with priorities. A second task acts through NTN^T of the first, and its own inertia is computed in the null space of the first; this gives a hierarchy of tasks, as in task-priority inverse kinematics at the level of torques.
  • Impedance in task space. Choose FF to make the hand behave like a chosen mass, spring and damper; see impedance control.
  • Whole-body control. For a robot with a floating base, the task dynamics include the contact constraints, and whole-body control solves the same problem with a quadratic program that also enforces torque limits and friction cones.
  • Object-level control. Khatib (1995) combined the task inertias of several arms and of a held object into one model of the object, so that a controller can command the object directly.

Pitfalls

  • Singularities. As JJ loses rank, JM−1JTJ M^{-1} J^T becomes singular and Λ\Lambda grows without bound in the lost direction, so the commanded torques become very large. Damp the inverse or remove the direction from the task near singular poses.
  • Model errors. The cancellation of η\eta and the null-space property both use MM, CC and gg. Errors couple the null-space motion into the task.
  • Unstable null-space motion. If τ0\tau_0 has no damping term, the redundant joints can drift, because the task controller does not see them. Add a joint damping term to τ0\tau_0.
  • The wrong inverse. The null space must be built with Jˉ\bar J, not with the pseudoinverse of JJ, unless MM is a multiple of the identity.
  • Mixed units. For a task with a position and an orientation, Λ\Lambda mixes kilograms and kilogram square meters; gains must be chosen per block, and the orientation error must be a proper error on SO(3).

Exercises

  1. Show that JM−1NT=0J M^{-1} N^T = 0 for N=I−JˉJN = I - \bar J J, and that NN is a projector: N2=NN^2 = N.
  2. For the planar arm of the example, compute MM, JJ and Λ\Lambda at q=(0,π/2)q = (0, \pi/2) and confirm Λ=diag(1,2)\Lambda = \mathrm{diag}(1, 2) kg.
  3. Show that q˙=Jˉx˙\dot q = \bar J \dot x minimizes the kinetic energy 12q˙TMq˙\tfrac12 \dot q^T M \dot q among all q˙\dot q with Jq˙=x˙J \dot q = \dot x. In the second example, compare the kinetic energy for x˙=1\dot x = 1 m/s: 0.5 joule with Jˉ\bar J and 0.75 joule with the pseudoinverse.
  4. For n=mn = m and invertible JJ, show that Λ=J−TMJ−1\Lambda = J^{-T} M J^{-1} and that the template with τ0=0\tau_0 = 0 gives the computed-torque law in task coordinates.

References

  1. Oussama Khatib, A unified approach for motion and force control of robot manipulators: the operational space formulation, IEEE Journal of Robotics and Automation 3(1), 1987, pages 43 to 53
  2. Oussama Khatib, Inertial properties in robotic manipulation: an object-level framework, The International Journal of Robotics Research 14(1), 1995, pages 19 to 36
  3. Roy Featherstone and Oussama Khatib, Load independence of the dynamically consistent inverse of the Jacobian matrix, The International Journal of Robotics Research 16(2), 1997, pages 168 to 170
  4. Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Chapter 8, Section 8.6 (dynamics in the task space)
  5. Bruno Siciliano, Lorenzo Sciavicco, Luigi Villani and Giuseppe Oriolo, Robotics, Modelling, Planning and Control, Springer, 2009, Chapter 7, Section 7.8 (operational space dynamic model) and Section 7.9 (dynamic manipulability ellipsoid)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • three classic examples