Robot safety boundaries: safe sets, safety filters and their assumptions
机器人安全边界
State robot safety as a safe set that must stay invariant, turn it into a per-step constraint with a control barrier function, filter a nominal or learned command minimally, see on a synthetic 1-D example how actuator lag breaks the guarantee, and read what crash tests and the machine-learning accident taxonomy add.
robot-safetyDrawing a line the robot may not cross
Robot safety asks how to keep a moving robot from harming people, itself or its surroundings, even when its control system was learned from data and may act unexpectedly. One common answer is a boundary. First describe the states that count as safe. Then add a separate layer that changes the robot’s command only when it would push the robot outside those safe states. For example, a mobile robot may drive toward a person at full speed while far away. As it gets close it must slow down, so that it never comes within 0.5 m.
The traditional approach in factories is separation. Guards, locked doors or light barriers keep people away from the robot, and the robot stops when someone crosses them. Robots that share space with people need something finer than a fence. Fenced robots
Instead of a fence, this approach starts with a safe set: the collection of all states, such as positions and speeds, that we accept as safe. The requirement is that the robot, once inside the set, never leaves it. Control theorists call this property forward invariance. Safe set
A safety filter then sits between the task controller and the motors. The task controller, which may be hand-written or learned, proposes a command, called the nominal command. The filter passes it through unchanged if it is safe. If not, the filter replaces it with the closest command that keeps the robot in the safe set. Control barrier functions, introduced below, make this a quick calculation at every step. Safety filter Learning-based control
Every such guarantee rests on assumptions. A filter is proven safe for a model of the robot. If the real robot responds differently, for instance with a delay, the guarantee can fail. A review of safe learning in robotics stresses that guarantees come only from the assumptions built into the problem. Assumptions
Physical experiments add a different kind of evidence. Crash tests with a lightweight robot arm and car-crash dummies found low head-injury readings for blunt impacts at 2 m/s. The authors also identified clamping, where a body part is pinned, as a serious danger. Crash tests Robots that learn also bring their own accident types, such as trying dangerous actions while exploring or exploiting loopholes in their reward score. Five problems
The rest of the article states safety precisely and derives the safety filter. A small simulation then shows where the guarantee holds and where it breaks. Finally, it summarises what the crash tests and the accident taxonomy add.
Safe sets, barrier functions and the evidence on contact
This section defines safety as invariance, gives three levels of strictness, derives the control barrier function filter, and then reviews physical crash tests and the accident sources of learning systems.
Safety as invariance
Ames and colleagues trace the formal idea to Lamport’s 1977 work on program correctness. A safety property says that “bad” things never happen. A liveness property says that “good” things eventually happen. Staying inside a set is a safety property; converging to a goal is a liveness property. §I We did not read Lamport’s paper; this is Ames et al.’s account.
The safe set is described by a function of the state that is positive inside, zero on the edge and negative outside. Eq. (5)
In words: the safe set is every state where is zero or positive. For a robot that must stay at least 0.5 m from a person, can be the distance minus 0.5 m. The system is called safe if every trajectory that starts in stays in , which is forward invariance. Definition 1
According to Ames et al., Nagumo gave necessary and sufficient conditions for invariance in the 1940s. Roughly, must not decrease on the boundary. The idea was rediscovered around the 1970s and again in the 2000s, as barrier certificates for verifying hybrid systems. Viability theory extended it to systems with control inputs. §I-A
Three levels of strictness
Brunke and colleagues frame safe learning control as an optimisation with three parts: a model of the system, a cost, and constraints. Any of them may be partly unknown at the start. §2.1 They then sort constraints into three safety levels. §2.1.3, eqs. (3)–(5)
In words: each is a constraint on the state , command and disturbance at step . Level III must hold at all times (a hard constraint). Level II must hold with probability at least (a chance constraint). Level I only encourages it, allowing a slack or a penalty (a soft constraint). Input limits are typically hard, while state constraints may be soft. These levels are the review’s own taxonomy, not a standard.
The same review notes that safety matters both for the final policy and during learning, when the robot is still trying things. §1 The math of expected-cost budgets in reinforcement learning is in safe reinforcement learning.
Control barrier functions
Consider a robot whose state changes as : a drift plus an effect of the command . The quantity is then the rate of change of along the motion. ( and are Lie derivatives, the gradient of dotted with and .) A function is a control barrier function (CBF) if: Definition 2, eq. (7)
In words: in every state there is some command that keeps from falling faster than . Here is an increasing function with (technically an extended class- function). Far from the edge, may fall quickly; near the edge, it may barely fall at all.
The commands that satisfy this inequality form the set of safe inputs. The inequality is linear in , so the set is a half-space, easy to compute with. Eq. (10)
Ames et al.’s Theorem 2 says what this buys. Suppose is a CBF whose gradient does not vanish on the boundary. Then any Lipschitz controller (one whose output changes at most in proportion to a change in the state, so it never jumps) that always picks a safe input keeps invariant. The set is also attractive: if noise or a model error pushes the state outside, such controllers drive it back. Theorem 2, Remarks 5–6 Theorem 3 gives the converse: if some controller keeps a compact set with a regular boundary invariant, then on that set is a CBF. Theorem 3
The safety filter
Now take any nominal controller , hand-written or learned. The safety filter picks the safe command closest to it. §II-C
In words: among all commands that satisfy the barrier condition, choose the one nearest the nominal command. This is a quadratic program (QP) with a single linear constraint. Without input limits it has a closed-form solution, found from the KKT conditions; see also constrained optimization. §II-C
Ames et al. call this design “minimally invasive”. The word means minimal in the QP’s distance at the current instant. It does not mean the filtered behaviour is best for the task over time. Stability and safety can also share one QP. The stability constraint then gets a penalised slack variable, so that safety wins when the two conflict. §II-C
Brunke et al. describe the same idea for learning-based control, sometimes called a shield. The filter makes the smallest change to the learned command that keeps the state in a safe set, robust to all modelled disturbances. §3.3.2, eq. (16) Because the filter and the learner are separate, the learner may keep pushing against the constraint and behave sub-optimally. Learning the unknown part of the dynamics can improve the barrier constraint. But any learning error “can still lead to applying falsely certified control inputs”: commands the filter wrongly believes are safe. §3.3.2
A one-dimensional example
Here is the simplest case, used in the implementation below. A robot moves along a line toward a standing person. Its distance is , and the command is its approach speed. We take a linear with a constant gain .
In words: the distance shrinks at the approach speed, and the safety margin is the distance beyond the protective distance . The filter caps the speed at times the margin. The barrier condition simply says . The closest such command to is the smaller of the two. So the allowed speed shrinks in proportion to the remaining margin.
Stopping distance
A separate, simpler calculation asks how far a robot travels before it stops. This is plain kinematics, added by us; it is not the formula of any safety standard.
In words: at speed , the robot keeps moving for the reaction time , then needs more to brake at constant deceleration . The second term grows with the square of speed, which is why doubling speed much more than doubles the distance.
What crash tests showed about contact
Haddadin, Albu-Schäffer and Hirzinger reported crash tests in 2007. They describe the industrial standard of that time, ISO 10218, as requiring one of three conditions for collaborative operation. The tool centre point (TCP) speed is at most 0.25 m/s, the dynamic power is at most 80 W, or the static force is at most 150 N. They say these values were heuristics, not derived from human impact experiments. §I We did not read ISO 10218 itself, so these limits are given only as the authors reported them in 2007, not as current requirements. A later technical specification for collaborative robots, ISO/TS 15066, exists; we did not read it and say nothing about its contents.
The authors crash-tested the DLR lightweight robot III against standard automotive crash dummies at the ADAC crash-test centre. Speeds went up to 2 m/s, and the tests covered unexpected, rigid frontal impacts on the head, neck and chest. Injuries from sharp edges were excluded. Abstract, §I
Head injury was measured with the Head Injury Criterion, HIC36, computed from head acceleration over windows of up to 36 ms. Its limit of 650 corresponds to about a 5% chance of serious injury (level 3 or more on the Abbreviated Injury Scale, AIS). At 2 m/s the HIC stayed below 25, which the authors call “very low”, but it rose rapidly with speed. §II-C, eq. (1); §IV-A, Fig. 5
The impacts were fast. A rigid head impact at 2 m/s lasted about 6–10 ms, with peaks of about 2 kN and 35 g. The joint torques rose only after the peak. Detecting the collision after about 6 ms, or even with a 1 ms trigger, did not change the injury readings: the motors cannot reverse fast enough. §V-A
Detection and reaction did help with slow, pressing contact. Clamping, where the robot keeps following its path after contact and pins a body part, is a very dangerous source of injury. It is worse for heavier robots, which take longer to stop. §V-A, §V-C
In one-joint simulations fitted to their data, the HIC levelled off as robot mass grew. The authors conclude that, by these head criteria, no robot of any mass would be dangerous at 2 m/s. The condition is “as long as clamping and impacts with sharp surfaces can be excluded”. They also note that the robot’s own joint torque limits were exceeded at 1 m/s, so a rigid impact threatened the robot more than the human. §V-B, §V-C This is a narrow claim: blunt head, neck and chest impacts on one lightweight arm, judged by car-crash criteria.
Accident sources in learning systems
Amodei and colleagues define an accident as unintended and harmful behaviour that comes from poor design of a real-world AI system. They list five research problems. Abstract, §2
Two come from a wrong objective. Negative side effects are harm the objective did not mention. Reward hacking is when the system satisfies the letter of the objective in an unintended way; see reward-hacking. One comes from an objective too expensive to check often: the paper’s abstract calls it “scalable supervision”, and its Section 2 calls the same problem “scalable oversight”. Two arise during learning: safe exploration, and robustness to distributional shift, a change between training and use conditions (see out-of-distribution). §2
Their running example is a fictional office cleaning robot. It might knock over a vase to clean faster (side effect), or disable its camera so it sees no mess (reward hacking). It must treat candy wrappers and phones differently, though people can check its choices only rarely (oversight). It might push a wet mop into a power outlet while experimenting (exploration). And strategies learned in an office might be dangerous on a factory floor (distributional shift). §2
On safe exploration, they note that real projects often hard-code what to avoid, such as overriding a helicopter policy near the ground. That works only when designers can list every failure mode. Research directions include risk-sensitive objectives, learning from demonstrations, exploring in simulation, and bounded exploration inside a region known to be recoverable. With a model, one can check whether an action would leave that region. §6 That last idea is exactly what a safety filter does.
A synthetic 1-D safety filter
This section simulates the 1-D example in four parts: the filter’s output, an ideal robot, a robot with actuator lag, and stopping distances. It is a toy model with illustrative numbers. It is not a certified safety function and says nothing about any standard’s values.
A robot starts 3.0 m from a standing person and wants to approach at m/s. The safe set is m, with gain per second. The program integrates the motion with 1 ms steps over 5 s.
# Synthetic 1-D model: a control barrier function (CBF) filter slows a robot approaching a person.
import numpy as np
D_MIN = 0.5 # protective distance kept to the person (m)
ALPHA = 2.0 # CBF gain (1/s)
U_NOM = 1.0 # nominal approach speed (m/s)
DT = 0.001
STEPS = 5000 # 5 s
def cbf_filter(d, u_nom, alpha=ALPHA, d_min=D_MIN):
# h(d) = d - d_min, d_dot = -u; condition -u >= -alpha*h <=> u <= alpha*h.
# One affine constraint, so the QP min (u - u_nom)^2 has a closed form.
return min(u_nom, alpha * (d - d_min))
def simulate(use_filter, lag_tau=0.0, alpha=ALPHA, d0=3.0):
d, v = d0, 0.0 if lag_tau > 0 else None
min_d, active, log, t_zero = d, 0, {}, None
for k in range(STEPS):
u = cbf_filter(d, U_NOM, alpha) if use_filter else U_NOM
if u < U_NOM - 1e-12:
active += 1
if lag_tau > 0:
v += DT * (u - v) / lag_tau
speed = v
else:
speed = u
d -= DT * speed
min_d = min(min_d, d)
if t_zero is None and d <= 0.0:
t_zero = (k + 1) * DT
t = round((k + 1) * DT, 3)
if t in (0.5, 1.0, 1.5, 2.0, 3.0, 5.0):
log[t] = (d, speed)
return min_d, active * DT, log, t_zero
print("1) Filter output at a few distances (alpha = 2/s, d_min = 0.5 m, nominal 1.0 m/s)")
for d in [3.0, 1.5, 1.0, 0.75, 0.6, 0.5, 0.45]:
print(f" d = {d:4.2f} m -> commanded speed {cbf_filter(d, U_NOM):+.3f} m/s")
print("\n2) Ideal speed-controlled robot (the model the CBF assumes), start 3.0 m away")
for label, flt in [("no filter", False), ("CBF filter", True)]:
min_d, act, log, t_zero = simulate(flt)
reach = f"reaches the person (d = 0) at t = {t_zero:.2f} s" if t_zero else "never reaches the person"
print(f" {label}: {reach}; min distance over 5 s {min_d:.4f} m; filter active {act:.2f} s")
if flt:
for t, (d, s) in log.items():
print(f" t = {t:3.1f} s: d = {d:.4f} m, speed = {s:.4f} m/s")
print(" exact solution after the switch at d = 1.0 m: d(t) = 0.5 + 0.5*exp(-2(t - 2.0))")
print(f" check at t = 3.0 s: {0.5 + 0.5 * np.exp(-2.0):.4f} m")
print("\n3) Model mismatch: real speed follows the command with a lag (time constant tau)")
for tau in [0.1, 0.3, 0.6]:
for alpha in [2.0, 1.0]:
min_d, _, _, _ = simulate(True, lag_tau=tau, alpha=alpha)
print(f" tau = {tau:.1f} s, alpha = {alpha:.1f}/s, 4*alpha*tau = {4 * alpha * tau:.1f}: "
f"min distance {min_d:.4f} m ({'inside' if min_d < D_MIN else 'outside'} the 0.5 m boundary)")
print("\n4) Stopping distance s = v*t_r + v^2/(2a) with reaction 0.1 s, braking 2 m/s^2")
for v in [0.25, 0.5, 1.0, 1.5, 2.0]:
print(f" v = {v:4.2f} m/s -> {v * 0.1 + v * v / (2 * 2.0):.4f} m")
The program prints:
1) Filter output at a few distances (alpha = 2/s, d_min = 0.5 m, nominal 1.0 m/s)
d = 3.00 m -> commanded speed +1.000 m/s
d = 1.50 m -> commanded speed +1.000 m/s
d = 1.00 m -> commanded speed +1.000 m/s
d = 0.75 m -> commanded speed +0.500 m/s
d = 0.60 m -> commanded speed +0.200 m/s
d = 0.50 m -> commanded speed +0.000 m/s
d = 0.45 m -> commanded speed -0.100 m/s
2) Ideal speed-controlled robot (the model the CBF assumes), start 3.0 m away
no filter: reaches the person (d = 0) at t = 3.00 s; min distance over 5 s -2.0000 m; filter active 0.00 s
CBF filter: never reaches the person; min distance over 5 s 0.5012 m; filter active 3.00 s
t = 0.5 s: d = 2.5000 m, speed = 1.0000 m/s
t = 1.0 s: d = 2.0000 m, speed = 1.0000 m/s
t = 1.5 s: d = 1.5000 m, speed = 1.0000 m/s
t = 2.0 s: d = 1.0000 m, speed = 1.0000 m/s
t = 3.0 s: d = 0.5675 m, speed = 0.1353 m/s
t = 5.0 s: d = 0.5012 m, speed = 0.0025 m/s
exact solution after the switch at d = 1.0 m: d(t) = 0.5 + 0.5*exp(-2(t - 2.0))
check at t = 3.0 s: 0.5677 m
3) Model mismatch: real speed follows the command with a lag (time constant tau)
tau = 0.1 s, alpha = 2.0/s, 4*alpha*tau = 0.8: min distance 0.5002 m (outside the 0.5 m boundary)
tau = 0.1 s, alpha = 1.0/s, 4*alpha*tau = 0.4: min distance 0.5221 m (outside the 0.5 m boundary)
tau = 0.3 s, alpha = 2.0/s, 4*alpha*tau = 2.4: min distance 0.4435 m (inside the 0.5 m boundary)
tau = 0.3 s, alpha = 1.0/s, 4*alpha*tau = 1.2: min distance 0.4995 m (inside the 0.5 m boundary)
tau = 0.6 s, alpha = 2.0/s, 4*alpha*tau = 4.8: min distance 0.3109 m (inside the 0.5 m boundary)
tau = 0.6 s, alpha = 1.0/s, 4*alpha*tau = 2.4: min distance 0.3902 m (inside the 0.5 m boundary)
4) Stopping distance s = v*t_r + v^2/(2a) with reaction 0.1 s, braking 2 m/s^2
v = 0.25 m/s -> 0.0406 m
v = 0.50 m/s -> 0.1125 m
v = 1.00 m/s -> 0.3500 m
v = 1.50 m/s -> 0.7125 m
v = 2.00 m/s -> 1.2000 m
Part 1: the filter’s output. At 3.0, 1.5 and 1.0 m the filter passes the nominal 1.000 m/s unchanged. At 1.0 m the cap just equals the nominal speed. At 0.75 m it commands 0.500 m/s, at 0.6 m 0.200 m/s, and at 0.5 m it commands zero. At 0.45 m, already inside the protective distance, it commands −0.100 m/s: the robot backs away. This is the attractiveness of the safe set from Theorem 2.
Part 2: the ideal robot. Here the robot’s speed equals the command instantly, exactly the model the barrier assumes. Without the filter, the robot reaches the person at s. With it, the robot never does. It drives at full speed until s, when m and the filter switches on. Then it slows smoothly: m and speed 0.1353 m/s at s, and m at s. The filter is active for the last 3.00 s.
After the switch, , so the margin decays exponentially: . At s that gives m. The simulation’s 0.5675 m differs only through the 1 ms Euler steps.
Part 3: model mismatch. Real robots cannot change speed instantly. Here the actual speed follows the command with a first-order lag: it closes the gap to the command with time constant . The lag stands in for inertia and motor dynamics (see robot dynamics). The filter does not know about the lag.
With a short lag the boundary holds. With longer lags the robot crosses it, by up to m. Here is a reading of the pattern; it is our own derivation for this toy, not from the sources. While the filter is active, the command is . Combining with the lag gives . This is a damped oscillator, and it oscillates when . Then the margin swings below zero before settling. In the output, the boundary is crossed in exactly the four cases where . This is a sufficient condition for this toy, not a general rule: with other starting speeds, an overdamped system can also cross once.
The lesson is that the barrier guarantees safety for the model, not for the robot. A gentler gain helps a little but does not fix a large lag. The fix is to put the lag, or the braking limits, into the model and the barrier, and to keep independent protection. Falsely certified inputs
Part 4: stopping distance. The program uses an illustrative reaction time of 0.1 s and braking of 2 m/s². For example, at 1.0 m/s: m. Doubling speed from 1 to 2 m/s more than triples the distance, from 0.35 to 1.2 m. The square term is why speed limits tighten near people.
Where the boundaries leak
This section collects the assumptions behind the guarantees, and the limits of the sources and the example.
The guarantee is about the model. Theorem 2 needs the true dynamics and , a Lipschitz controller and a regular boundary. Part 3 shows a modest unmodelled lag breaking the guarantee. Brunke et al. warn that learning errors can produce falsely certified inputs. Theorem 2 §3.3.2
Time steps matter too. Real controllers run in discrete steps. With the filter active, the margin in the 1-D example evolves as . If reaches 1 or more, the guarantee fails even for the ideal model (Exercise 2).
The state must be known. Most methods assume the state is measured exactly. In practice the person’s position comes from a tracker with errors. Brunke et al. list imperfect state estimation as an open challenge. They also list contact and other hybrid dynamics, delays, scaling to large systems, and checking assumptions such as bounded disturbances before operation. They even list “How do we define safety in human-robot interaction?” as an open question. §5
Standards were not read. The ISO 10218 limits above come only from Haddadin et al.’s 2007 description. ISO/TS 15066 is named but not described. The stopping-distance formula is plain kinematics, not a standard’s formula.
Crash-test results are narrow. Haddadin et al. studied blunt, rigid impacts on the head, neck and chest, with one lightweight arm and car-crash criteria. They excluded clamping and sharp edges, and found clamping very dangerous. Tools, payloads and tasks change the picture. Their result supports “the head-injury reading is low in this case”, not a general licence to move at 2 m/s.
The accident taxonomy is a research agenda. Amodei et al.’s cleaning robot is fictional. The five problems are research problems, not counts of observed incidents.
Second-hand history. The account of Lamport and Nagumo is as Ames et al. give it; we did not read the originals.
The example is a toy. One dimension, a standing person, perfect sensing and chosen numbers. It shows how a filter works and how it fails, not how safe any real robot is.
Exercises
These exercises cover what a filter guarantees, a hand calculation, a counterexample about crash tests, method choice, and one derivation.
-
In one paragraph, explain what a safety filter does and what it does not guarantee.
Answer: It sits between a task controller, hand-written or learned, and the actuators. At every step it replaces the nominal command with the closest command that satisfies the barrier condition, so the modelled state cannot leave the safe set (Ames et al. §II-C; Brunke et al. §3.3.2). When the nominal command is already safe, it passes unchanged; in the example the filter is inactive for the first 2 s. It guarantees invariance only for the assumed dynamics and disturbance bounds. Learning or modelling errors can produce falsely certified inputs, as the lagged robot in Part 3 shows: minimum distance 0.3109 m with s and .
-
Same model: m, per second, m/s. (a) What speed does the filter command at m? (b) In discrete time with step and the filter active, . For which does stay positive, and what is after 2 steps of s from m?
Answer: (a) , which is below 1.0, so m/s. (b) stays positive if and only if , that is s for . With s the factor is 0.8: m. A slow control loop, with , would break the guarantee even for the ideal model.
-
“Haddadin et al. showed robots are harmless at 2 m/s, so any collaborative robot may move at 2 m/s near people.” What is wrong with this inference?
Answer: The result covers blunt, rigid, unexpected frontal impacts, measured by automotive head, neck and chest criteria, on one lightweight robot. The authors explicitly exclude clamping and sharp surfaces, and identify clamping as a very dangerous injury source, worse for heavy robots that stop slowly. Their own data show the HIC rising rapidly with speed. They found the robot’s joint torque limits exceeded at 1 m/s, and that reacting after contact does not soften a stiff impact. Tools, payloads and tasks also matter. So the result supports “the head-injury reading is low in this case”, not a general speed licence.
-
A learned reinforcement-learning policy drives a mobile manipulator in a shared workspace. Which safety level would you target for each requirement, and with which tool? (a) Never exceed motor current limits. (b) Keep at least 0.5 m from a tracked person. (c) Avoid spilling the carried cup.
Answer: (a) Level III, enforced as an input constraint, by saturation in hardware or in the QP; this needs no model of the surroundings. (b) Level III with respect to the model, via a barrier safety filter on distance as in the example. Add margins and a barrier that includes braking dynamics; with the illustrative values, is 0.35 m at 1 m/s. Add Level II reasoning about tracking error, since the person’s position is uncertain, plus independent hardware stops. Test against model mismatch. (c) Level I, a penalty in the reward or cost; an occasional spill is a quality issue, not a hazard. Watch for Amodei-style failures. A penalty on “spills detected” invites reward hacking, such as avoiding the sensor. New grasps should be explored in simulation or inside a bounded region.
-
Derive the exact distance in Part 2 after the filter switches on at s, and check the value at s.
Answer: After the switch the robot moves at , so . The margin obeys , whose solution is with . So . At s, m, and the speed is m/s. The simulation prints 0.5675 m and 0.1353 m/s; the small difference in distance comes from Euler steps. The margin never reaches zero in finite time, which is why the ideal robot never touches the boundary.
History and further reading
This section traces where the ideas came from and points to related articles.
The barrier idea has a long history, as Ames et al. tell it: Lamport’s split of safety and liveness in 1977, Nagumo’s invariance conditions in the 1940s, barrier certificates for verification in the 2000s, and viability theory for controlled systems. Modern control barrier functions turned these into a constraint that can be enforced at every step with a QP. §I-A Ames et al. report applications including dynamic two-legged walking on stepping stones with the DURUS robot, and collision avoidance for multi-robot teams on the Robotarium testbed. §V
Haddadin et al.’s crash tests (Robotics: Science and Systems, 2007) set out to ground collaborative-robot limits in measured impacts, because the authors regarded the existing limits as heuristics. Amodei et al.’s “Concrete Problems in AI Safety” (2016) named five concrete research problems behind accidents in machine-learning systems. Brunke et al.’s review (Annual Review of Control, Robotics, and Autonomous Systems, 2022) treats learning-based control, safe reinforcement learning and safety filters within one problem statement.
Related articles: safe reinforcement learning for constrained Markov decision processes, and model predictive control for constraints over a horizon (Brunke et al. also survey predictive safety filters built on it, which we did not read in detail). See also optimal control and LQR for the nominal controllers a filter wraps; sim-to-real and domain randomization for the gap between model and robot; and PID control for the low-level loops whose lag Part 3 models. Collaboration design is covered in human–robot interaction, safety testing statistics in embodied evaluation, and the general machine-learning problems in reward-hacking, alignment-problem and out-of-distribution.
Make a prediction, then check
A control-barrier-function safety filter, designed for an ideal speed-controlled model, guarantees at least 0.5 m between robot and person. On the real robot the speed follows the command with a lag, and the distance dips to 0.44 m. What is the most reasonable explanation?
Learning objectives
- State a robot safety requirement as a safe set that must stay forward invariant, distinguish hard, probabilistic and soft constraints, and write the control barrier function condition and the minimally invasive safety-filter QP.
- Compute the filtered speed in a 1-D approach by hand, explain why model mismatch, sampling period and clamping can break the safety guarantee, and map crash-test findings and machine-learning accident types onto concrete robot designs.
Prerequisites & connections
Explore related knowledge →References
- Control Barrier Functions: Theory and Applications — arXiv v1, scoped
Aaron D. Ames; Samuel Coogan; Magnus Egerstedt; Gennaro Notomista; Koushil Sreenath; Paulo Tabuada · 2019 - Safe Learning in Robotics: From Learning-Based Control to Safe Reinforcement Learning — arXiv v2, scoped
Lukas Brunke; Melissa Greeff; Adam W. Hall; Zhaocong Yuan; Siqi Zhou; Jacopo Panerati; Angela P. Schoellig · 2022 - Safety Evaluation of Physical Human-Robot Interaction via Crash-Testing — scoped
Sami Haddadin; Alin Albu-Schäffer; Gerd Hirzinger · 2007 - Concrete Problems in AI Safety — arXiv v2, scoped
Dario Amodei; Chris Olah; Jacob Steinhardt; Paul Christiano; John Schulman; Dan Mané · 2016
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Claude · 2026-12-03 · Independent AI check (Claude subagent, not the author; not a human or expert review). Research was done by a separate research subagent (facts.md) and the prose by a writer subagent; Gemini app style edits to the opening section (logged in gemini-edits-016a.json) were applied before this check, and I compared each against its old text in both languages. I ran example.py with the pinned interpreter (numpy 1.26.4); its output is byte-identical to example.stdout.txt, and the python and text blocks in en.mdx and zh.mdx are byte-identical to example.py and example.stdout.txt. I re-derived τḧ + ḣ + αh = 0 from ḣ = −v and τv̇ = αh − v with u = αh, confirmed that the characteristic roots are complex exactly when 4ατ > 1 (so the margin oscillates through zero), and that the four crossed cases in the output are those with 4ατ > 1; the article now says this is a sufficient condition for the toy, not a general rule. I re-derived d(t) = 0.5 + 0.5e^{−2(t−2)} (0.5677 m at 3 s), the discrete-time condition αΔt < 1 and the 0.3 → 0.24 → 0.192 sequence, and the stopping distances. I downloaded and text-extracted all four sources: Haddadin et al. RSS 2007 (ISO 10218 limits 0.25 m/s, 80 W, 150 N as the authors report them and their 'heuristics' remark; ADAC tests up to 2 m/s; sharp edges excluded; HIC limit 650 and 5% AIS ≥ 3; HIC36 below 25 at 2 m/s and 'rapidly increasing'; 6–10 ms, 2 kN, 35 g; detection does not help for rigid impacts; clamping; 'as long as clamping and impacts with sharp surfaces can be excluded'; joint torques exceeded at 1 m/s); Amodei et al. v2 (abstract 'scalable supervision', §2 'Scalable Oversight', cleaning-robot examples); Ames et al. v1 (Lamport 1977, Nagumo 1940s, Lipschitz controller in Theorem 2, 'minimally invasive'); Brunke et al. v2 by keyword. No ISO standard was read by the writer or by me; ISO 10218's limits appear only as Haddadin et al. reported them in 2007, ISO/TS 15066 is only named, and the stopping-distance formula is labelled as our plain kinematics. I compared zh and en section by section, checked links (unpublished topics stay inline code), equations, source IDs, catalogue IDs, alias uniqueness ignoring case and against src/data/aliases.json, the stock-phrase list, and the quiz answer.
- The example was rerun with the pinned interpreter; output matches byte for byte, both code blocks match example.py, and the prose numbers match the output.
- The 4ατ > 1 overshoot condition was re-derived from τḧ + ḣ + αh = 0 and is labelled as our derivation; the exact solution 0.5677 m and the discrete condition αΔt < 1 were checked.
- ISO 10218's 0.25 m/s, 80 W and 150 N appear only as Haddadin et al. reported them in 2007; ISO/TS 15066 is only named; Haddadin's 2 m/s result is scoped to blunt head, neck and chest impacts on one lightweight arm, with clamping and sharp edges excluded.
- The 'scalable supervision' (abstract) versus 'scalable oversight' (§2) wording in Amodei et al. was checked and is explained in both languages.
Source locations checked:
- Control Barrier Functions: Theory and Applications — arXiv v1, scoped · pdftotext of arXiv v1 (12 pages). p. 1: abstract; §I safety vs liveness (Lamport 1977); §I-A Nagumo (1940s), Bony/Brezis (~1970s), barrier certificates (2000s). p. 2: barrier Lyapunov functions (overly conservative), viability theory, first 'control barrier function', control Lyapunov barrier functions, modern CBFs. p. 3: §II-A CLFs (eqs. (3)–(4), Theorem 1); §II-B safe set eq. (5), closed loop eq. (6), Definition 1 forward invariance/safety, extended class-K∞. p. 4: Definition 2 eq. (7); Remarks 3 (reciprocal barriers, eqs. (8)–(9)), 4, 5, 6 (asymptotic stability of C, return after noise); K_cbf eq. (10); Theorem 2 (sufficiency); Theorem 3 (necessity, compact C); §II-C CBF-QP (min-norm closed form via KKT), CLF-CBF QP with relaxation δ, penalty p. p. 5: §III opening (allowable set A, performance function ρ). pp. 7–8: §V-A stepping stones, DURUS. p. 11: Robotarium collision avoidance. NOT read: §III Theorem 4 details, §IV, most of §V, §VI, references.
- Safe Learning in Robotics: From Learning-Based Control to Safe Reinforcement Learning — arXiv v2, scoped · pdftotext of arXiv v2 ('unofficial version compiled on December 8, 2021', 36 pages). p. 1 abstract. p. 2 contents; §1 (guarantees only from assumptions and structure of the formalisation; safety during learning). p. 4 Fig. 2 caption; §2.1 eq. (1) dynamics, eq. (2) cost. p. 5 §2.1.3 state/input constraints and stability; Safety Level III eq. (3), Level II eq. (4), Level I eq. (5) with slack; mixed levels. pp. 19–20 §3.3.2: RPCI safe set (margin M23), safety filter eq. (16) with disturbance set D, decoupled filter/learner sub-optimality, CBF eqs. (17)–(18), learned CBF/CLF derivatives, 'falsely certified control inputs', robust (Level III), adaptive and probabilistic (Level II) remedies. pp. 25–26 §5 open challenges 1–4 and open questions (incl. defining safety in HRI). NOT read: §2.2–§3.3.1, HJ reachability and predictive safety filters beyond first lines, §4 (only footnote and Fig. 8 caption seen), appendices.
- Concrete Problems in AI Safety — arXiv v2, scoped · pdftotext of arXiv v2 (29 pages). p. 1: authors, abstract (five problems; abstract says 'scalable supervision'), §1 accident definition. pp. 2–3: §2 three categories (wrong objective; expensive objective; learning process), five problems, cleaning-robot examples (vase, disabled vision, candy wrappers vs phones, wet mop in outlet, office vs factory floor), trends (RL, complex environments). pp. 14–15: §6 safe exploration (irrecoverable states, epsilon-greedy/R-max ignore danger, helicopter hard-coded override, risk-sensitive criteria, demonstrations, simulated exploration, bounded exploration with a model). NOT read: §3–5 and §7 bodies (only keyword hits on pp. 4, 7–8), §8–9, references. Author order taken from the arXiv listing; the PDF's two-column author block extracts in a different order.
- Safety Evaluation of Physical Human-Robot Interaction via Crash-Testing — scoped · pdftotext of rss03/p28.pdf (8 pages). p. 1: abstract (DLR LWRIII, ADAC crash tests, rigid frontal impacts, sharp edges excluded); §I fenced robots with doors/light barriers; ISO-10218 collaborative condition: TCP/flange ≤ 0.25 m/s, dynamic power ≤ 80 W or static force ≤ 150 N, called heuristic (continues on p. 2); tests at up to 2 m/s; head, neck, chest; EuroNCAP protocol. p. 2: AIS table; HIC36 eq. (1) with limit 650 and Δt ≤ 36 ms. p. 4: Fig. 5 caption; HIC36 < 25 at 2 m/s, 'very low', ≈0% injury probability, rapid increase with velocity; 3 ms criterion < 20% of 72 g. pp. 6–7: §V low values vs car crash speeds (10 m/s); impact 6–10 ms, 2 kN, 35 g; detection ≈ 6 ms, 1 ms switch to torque control; 1 ms accelerometer trigger gave the same indices; quasistatic loading and clamping; §V-B joint torques exceeded at 1 m/s, robot more threatened than human; §V-C HIC saturation with mass (1-DOF Hunt–Crossley simulations fitted to data), 'human running into a wall at 2 m/s', conclusion limited to no clamping/sharp surfaces; heavier robots dangerous if clamping possible. NOT read: §II-B/D, §III, §IV-B/C numbers, §VI, references. No ISO document was read.
Related topics