This collection of MATLAB scripts intends to study the performance of state-constrained controllers utilizing control barrier functions in the context of obstacle avoidance.
We consider a linear plant with parametric uncertainties of the form:
where
The objective is to determine a
A superlevel set
with
The CBF can ensure for the presented control affine system that for any initial condition
Where
with
A linear controller of the following form is defined:
with
After each simulation run, a plot with results is given out. An example of such a plot is given here:
The scripts use external libraries, which need to be installed.
Further, the following MATLAB toolboxes are needed:
The software was tested with MATLAB 2020b under Windows 11 Home.
The contents of this repository are covered under the MIT License.
The contents of this repository are covered under the MIT License.
We kindly acknowledge the following papers, which have been the foundation of the here presented scripts:
- [1] J. Zeng, B. Zhang, and K. Sreenath, “Safety-Critical Model Predictive Control with Discrete-Time Control Barrier Function,” in 2021 American Control Conference (ACC), May 2021, pp. 3882–3889.
- [2] A. D. Ames, X. Xu, J. W. Grizzle and P. Tabuada, "Control Barrier Function Based Quadratic Programs for Safety Critical Systems," in IEEE Transactions on Automatic Control, vol. 62, no. 8, pp. 3861-3876.