Skip to content

Code base for disturbance-robust backup control barrier functions (DR-bCBFs).

License

Notifications You must be signed in to change notification settings

davidvwijk/DR-bCBF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disturbance-Robust Backup Control Barrier Functions (DR-bCBF)

Abstract - Obtaining a controlled invariant set is crucial for safety-critical control with control barrier functions (CBFs) but is non-trivial for complex nonlinear systems and constraints. Backup control barrier functions allow such sets to be constructed online in a computationally tractable manner by examining the evolution (or flow) of the system under a known backup control law. However, for systems with unmodeled disturbances, this flow cannot be directly computed, making the current methods inadequate for assuring safety in these scenarios. To address this gap, we leverage bounds on the nominal and disturbed flow to compute a forward invariant set online by ensuring safety of an expanding norm ball tube centered around the nominal system evolution. We prove that this set results in robust control constraints which guarantee safety of the disturbed system via our Disturbance-Robust Backup Control Barrier Function (DR-bCBF) solution. Additionally, the efficacy of the proposed framework is demonstrated in simulation, applied to a double integrator problem and a rigid body spacecraft rotation problem with rate constraints.

D. van Wijk, S. Coogan, T. G. Molnar, M. Majji, and K. L. Hobbs, "Disturbance-Robust Backup Control Barrier Functions: Safety Under Uncertain Dynamics", IEEE Control Systems Letters (L-CSS) with ACC option. 2024. IEEE Xplore: [link] Preprint: [link]

Code release case number: AFRL-2024-6238

Supplemental Video: Spacecraft Rotation Example

The objective is to keep the angular velocity trajectory within the red sphere (safe region). Our approach obeys the norm constraint on the angular velocity in the presence of unknown time-varying disturbances, while the standard bCBF approach does not, violating safety multiple times. Click the thumbnail below to watch!

Spacecraft Rotation Supplemental Video

Running the code

  1. Install the necessary packages using pip install -r requirements.txt
  2. Call main_sim.py for either the spacecraft rotation example or the double integrator example. This will run a single simulation with the default parameters using our DR-bCBF method.

Recreate figures:

  • To recreate Figure 2 in the paper call sampleCI.py (in double_integrator folder).
  • To recreate Figure 3 in the paper call comparison.py (in spacecraft folder).

BibTeX Citation

@ARTICLE{vanWijk_DRbCBF24,
  author={van Wijk, David E.J. and Coogan, Samuel and Molnar, Tamas G. and Majji, Manoranjan and Hobbs, Kerianne L.},
  journal={IEEE Control Systems Letters}, 
  title={Disturbance-Robust Backup Control Barrier Functions: Safety Under Uncertain Dynamics}, 
  year={2024},
  volume={},
  number={},
  pages={1-1},
  keywords={Constrained control;Lyapunov methods;Optimization algorithms},
  doi={10.1109/LCSYS.2024.3514998}
}

Releases

No releases published

Packages

No packages published

Languages