humanoidsdata.com

Search

Search companies, datasets, articles, and glossary terms for humanoids and embodied AI.

← All glossary terms

Hardware & control

Control barrier function

CBF

A control barrier function is a scalar function used to describe a safe set of system states and constrain control choices so trajectories remain inside that set. It is commonly enforced through an optimisation problem that modifies a nominal control input only when needed; its guarantee depends on the dynamics model, state estimate, constraints, and assumptions used to define the safe set.

Updated

A function draws the boundary of a safe set

In a common formulation, a scalar function h(x) describes a safe set through the condition h(x) >= 0, where x is the system state. The control problem is to choose inputs that stop the state from crossing that boundary. Ames and colleagues connect this idea to forward invariance: once the system begins inside the specified set, the controller should keep its future trajectory inside it under the formulation's assumptions.

The function does not discover safety by itself. Engineers choose the state, dynamics, constraints, and meaning of the boundary. A distance-based CBF might protect a keep-out region; another could describe speed, balance, actuator, or contact limits.

A CBF-QP changes a nominal command when required

Control barrier constraints are often placed inside a quadratic program. The objective stays close to a nominal command from a planner, policy, or human operator, while the inequalities require the result to remain inside or move towards the safe set. If the proposed command is already feasible, a minimum-intervention formulation can pass it through unchanged.

This differs from model predictive control. MPC explicitly optimises a sequence over a future horizon. A CBF condition can be enforced in a compact one-step optimisation, although predictive controllers can also include barrier constraints.

A mathematical safe set is not a complete robot guarantee

The guarantee covers the set that was actually encoded. Model mismatch, delayed or incorrect state estimates, unmodelled contacts, actuator saturation, numerical tolerances, and an incomplete hazard definition can all break the link between the optimisation and the physical robot.

CSF illustrates a newer semantic use. Safe and unsafe generated motions define affine margins, and a CBF-QP pushes the current motion estimate to the allowed side of those margins. The paper proves properties of that constructed motion-space set. It does not convert a semantic rule into a universal physical-safety guarantee.

For logged robot data, preserve the barrier definition, dynamics and state source, active constraints, nominal and filtered commands, solver result, tolerances, intervention magnitude, and measured outcome. Without those fields, a “CBF applied” label cannot explain what was protected or whether the hardware followed the filtered command.

Sources