Sarah Dean1 Andrew J. Taylor2 Ryan K. Cosner2
Benjamin Recht1 Aaron D. Ames2
1UC Berkeley 2Caltech
Robotic systems use increasingly complex sensors
Complex calibration problems—opportunities for measurement model error
Complex calibration procedures—opportunities for measurement model error
How do we ensure that complex and data-driven sensing can be safe and effective for controlling robotic systems?
Nonlinear control affine dynamics: x˙=f(x)+g(x)u
System observed by p(x)=y, state estimated by q(y)=x
Subset of state space:
C={x∣h(x)≥0}
Safety defined as invariance of C
System observed by p(x)=y, state estimated by q(y)=x
q
The function h is a control barrier function if for some α∈K∞e
This condition ensures the existence of u such that
∂x∂h(x) x˙ ≥−α(h(x))
u∈Rmsup∂x∂h(x)(f(x)+g(x)u) ≥−α(h(x))
If u chosen such that h˙(x,u)≥−α(h(x)) then h(x) remains nonnegative, so the safe set C is invariant
h˙(x,u) ≥−α(h(x))
(Ames et al. 2014, 2017)
If u chosen such that h˙(x,u)≥−α(h(x)) then h(x) remains nonnegative, so the safe set C is invariant
The set of inputs which ensure safety:
Kcbf(x)={u∣∂x∂h(x) f(x)+∂x∂h(x)g(x)u ≥−α(h(x))}
To filter a given controller kd(x) via convex optimization:
u∈Rmargmin∥u−kd(x)∥
s.t. Lfh(x)+Lgh(x)u ≥−α(h(x))
Estimated state reconstructed by approximate inverse
x=q(y)=x+(q(y)−q(y))=x+e(y)
Our setting has imperfect state observation
Considering all x in uncertainty set:
x∈X(y)minLfh(x)+Lgh(x)u+α(h(x))≥0
∥e∥≤ϵ(y)minLfh(x−e)+Lgh(x−e)u+α(h(x−e))≥0
(Clark 2020, Nilsson 2020)
We define the set of inputs which ensure robust safety:
Kmr(y)={u∣Lfh(x)+Lgh(x)u−(a(y)+b(y)∥u∥) ≥−α(h(x))}
for given a,b : Rk→R+.
Main Result: As long as
then by setting a(y)=(LLfh+Lα∘h)ϵ(y) and b(y)=LLghϵ(y),
any controller contained in Kmr(y) renders the system safe.
The MR-CBF optimization problem (SOCP)
is feasible as long as
ϵ(y)≤max(LLgh∥Lgh(x)∥,LLfh+Lα∘hLfh(x)+α(h(x)))
which can be achieved from data
u∈Rmargmin∥u−kd(x)∥
s.t. Lfh(x)+Lgh(x)u
−((LLfh+Lα∘h)ϵ(y)+LLghϵ(y)∥u∥) ≥−α(h(x))
Segway robot constrained to planar motion
Safety defined by pitch angle and rate
∣θ˙y+10(θy−θyeq)∣≤4
Pitch angle θy and position r measured only by camera
Training data collected from grid of θy and r (N=800)
Model mapping image to θy,r trained using sklearn kernel ridge regression with radial basis functions
Filtered PD control from 15 kHz camera feed
CBF filter does not ensure safety, MR-OP filter does
For details, see our paper at https://arxiv.org/abs/2010.16001
Guaranteeing Safety of Learned Perception Modules via Measurement-Robust Control Barrier Functions
Sarah Dean Andrew J. Taylor Ryan K. Cosner Benjamin Recht Aaron D. Ames
References
Ames, Aaron D., Jessy W. Grizzle, and Paulo Tabuada. "Control barrier function based quadratic programs with application to adaptive cruise control." IEEE CDC, 2014.
Ames, Aaron D., et al. "Control barrier function based quadratic programs for safety critical systems." IEEE TAC, 2016.
Nilsson, Petter, and Aaron D. Ames. "Lyapunov-like conditions for tight exit probability bounds through comparison theorems for sdes." IEEE ACC, 2020.
Clark, Andrew. "Control barrier functions for complete and incomplete information stochastic systems." IEEE ACC, 2019.