Skip to content

Matlab Interface for Control Barrier Function (CBF) and Control Lyapunov Function (CLF) based control methods.

Notifications You must be signed in to change notification settings

yhppark902/CBF-CLF-Helper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CBF-CLF-Helper

Matlab Interface for Control Barrier Function (CBF) and Control Lyapunov Function (CLF) based control methods. The library is designed to let users easily implement safety controller based on CBFs and CLFs with Matlab. We provide:

  • An easy interface for construction and simulation of nonlinear control-affine systems.
  • Safety controllers including CLF-QP, CBF-QP, and CBF-CLF-QP as built-in functions.
  • Demonstrations on toy examples.

Requirements

Usage

  1. Create a class that inherit CtrlAffineSys.
  2. Create a class function defineSystem and define your dynamics using the symbolic toolbox.
  3. Create class functions defineClf and defineCbf and define your CLF and CBF in each function respectively using the same symbolic expressions.
  4. To run the simulation or run the controller, create a class instance with parameters specified as a Matlab structure array, and use the built-in functions—dynamics and other controllers such as ctrlCbfClfQp, ctrlClfQp, etc.

Please checkout the Manual for more details.

Demos

Run files in the directory demos in Matlab.

About

Matlab Interface for Control Barrier Function (CBF) and Control Lyapunov Function (CLF) based control methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 98.3%
  • M 1.7%