Hierarchical Task Prioritization via Null Space Projection

32 concepts30 papers1 proposal

When a robot operates in the real world, it rarely has the luxury of pursuing a single goal in isolation. A humanoid robot walking across a room must simultaneously maintain its balance, avoid colliding with furniture, keep its camera stabilized on an object, and swing its arms naturally.

The naive way to handle multiple competing objectives is to combine them into a single cost function using a weighted sum:

$$\mathcal{L} = w_1 \mathcal{L}_{\text{balance}} + w_2 \mathcal{L}_{\text{tracking}} + w_3 \mathcal{L}_{\text{posture}}$$

However, this approach suffers from a fundamental flaw: interference. If the robot encounters a difficult tracking configuration, the gradient of $\mathcal{L}_{\text{tracking}}$ might overpower $\mathcal{L}_{\text{balance}}$, causing the robot to fall over. Avoiding this requires tedious, trial-and-error tuning of the weights $w_i$, which often breaks down when the robot encounters novel environments.

To solve this, modern robotics relies on hierarchical task prioritization. Instead of blending goals together, this framework establishes a strict, non-negotiable hierarchy. Higher-priority tasks (like safety and balance) are guaranteed execution, while lower-priority tasks (like style or posture) are only allowed to use the "leftover" capabilities of the robot.

The Geometry of Redundancy

The secret that makes hierarchical control possible is kinematic redundancy. A robot is redundant when it possesses more degrees of freedom (DOFs) than are strictly required to execute a given task.

Consider your own arm. If you place your hand flat on a table, your hand's position and orientation are fixed (a 6-DOF task). Yet, you can still lift and lower your elbow. Because your arm has 7 DOFs, it has 1 redundant degree of freedom. The movement of your elbow does not alter the position of your hand at all.

Mathematically, we map joint velocities ($\dot{q}$) to task velocities ($\dot{x}$) using the task Jacobian matrix ($J$):

$$\dot{x} = J \dot{q}$$

When a robot is redundant, the Jacobian has a non-trivial null space (or kernel). The null space consists of all joint velocities $\dot{q}_{\text{null}}$ that result in zero task velocity:

$$J \dot{q}_{\text{null}} = 0$$

Any joint movement that lives entirely within this null space is completely invisible to the primary task.

Projecting into the Void

To exploit this property, we use a mathematical operator called the null-space projection matrix ($P$). For a primary task with a Jacobian $J_1$, the projection matrix is defined using its Moore-Penrose pseudoinverse ($J_1^\dagger$):

$$P_1 = I - J_1^\dagger J_1$$

This matrix acts as a geometric filter. If you take an arbitrary vector of desired joint velocities $\dot{q}_{\text{arbitrary}}$—perhaps commanded by a secondary task—and multiply it by $P_1$, the filter strips away any components that would disturb the primary task.

The final control command for a two-task hierarchy is formulated as:

$$\dot{q} = J_1^\dagger \dot{x}_1 + P_1 \dot{q}_2$$

Because $J_1 P_1 = J_1 (I - J_1^\dagger J_1) = J_1 - J_1 = 0$, the secondary command $\dot{q}_2$ can never compromise the primary task $\dot{x}_1$.

As shown in the foundational work by Peters et al., this single optimization principle can be stacked recursively to accommodate long chains of command. A third task would be projected into the joint null space of both the first and second tasks, and so on. Laumond et al. demonstrated how this allows complex behaviors, such as reaching while maintaining balance, to emerge naturally without manual coordination.

[Arbitrary Secondary Command] ──> [ Null-Space Filter (P₁) ] ──> [ Safe Secondary Command ]
                                                                             │
                                                                             ▼
[ Primary Task Command (J₁⁺ x₁) ] ────────────────────────────────────────> ( + ) ──> [ Final Joint Motor Command ]

From Equalities to Inequalities

The classical null-space projection described above works perfectly for equality constraints—tasks where you want an explicit value, such as keeping a camera focused on a target (Li et al.).

However, the most critical constraints in robotics are inequalities. For instance, joint torques must stay below a physical maximum, and links must stay outside of obstacles (Barbalata et al.). Standard linear projections cannot natively handle boundaries that only activate when a limit is breached.

To bridge this gap, researchers developed Hierarchical Quadratic Programming (HQP). Instead of using analytical matrix projections, the control problem is framed as a cascade of optimization problems solved in sequence.

As detailed by Mohammadi et al., the system first solves an optimization problem containing only the highest-priority inequality constraints (like joint limits and balance):

$$\min_{\dot{q}} \quad \text{subject to} \quad A_{\text{safety}} \dot{q} \le b_{\text{safety}}$$

Once the optimal solution space for this primary level is found, it is locked in as a hard constraint for the next optimization problem, which attempts to fulfill the secondary task. Del Prete et al. showed that this lexicographic optimization entirely eliminates the need for manual weight tuning, ensuring numerical stability even when switching rapidly between active constraints. This mathematical formulation underpins modern whole-body control frameworks like Task Space Inverse Dynamics (TSID), which decouple kinematics from physical contact forces (Del Prete et al.).

Real-World Implementations

This hierarchical architecture has become the standard paradigm across diverse robotic domains:

  • Humanoids and Quadrupeds: Whole-body controllers use HQP to guarantee center-of-mass stability and contact force constraints before allocating torque to limb trajectories (Cebe et al.; Ju et al.).
  • Multi-Agent Systems: Autonomous teams use null-space behavioral control to project group formation tasks into the null space of immediate collision-avoidance constraints, ensuring safety never takes a backseat to positioning (Zhou et al.).
  • Modular Reinforcement Learning: Rather than forcing a neural network to learn a massive, monolithic policy, researchers use null-space projections to safely compose simple, object-centric primitive controllers into complex manipulation hierarchies (Sharma et al.).

The Fundamental Limit: Control Space Saturation

While hierarchical task prioritization is powerful, it is bound by the laws of geometry. Degrees of freedom are a finite resource.

Every time a high-priority task is added to the stack, it consumes dimensions of the robot's control space, causing the remaining null space to shrink. As highlighted by Li et al., when a robot faces too many simultaneous constraints, it encounters control space saturation.

When saturation occurs, the null space shrinks to zero dimensions ($P = 0$). At this point, the robot has run out of operational freedom; lower-priority tasks are completely blocked from execution, and the robot will freeze those auxiliary movements entirely to preserve the integrity of its primary goals. Early robotic planners, such as the LAWALY system by Siklóssy et al., anticipated this by ranking tasks based on the preservation of operational freedom, ensuring that actions restricting future movement were always deferred to prevent premature saturation.

Key Foundational Work

A unifying framework for robot control with redundant DOFs (2008) — contributed 1 concept elements to this direction.
An Efficient Robot Planner which Generates Its Own Procedures (1973) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_hierarchical_task_prioritization_c42153ca,
  title = {hierarchical task prioritization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hierarchical-task-prioritization/rdr_c42153ca249b474a9bdd8aa84d87b329},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_hierarchical_task_prioritization_c42153ca_v1,
  title = {hierarchical task prioritization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hierarchical-task-prioritization/rdr_c42153ca249b474a9bdd8aa84d87b329/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake