Skip to content

CBF Controller for Double-Integrator dynamics #33

@luigiberducci

Description

@luigiberducci

Hi all :-)
I have been implementing a simple training script for neural cbf controllers on double-integrator dynamics.
Since this is a quite standard example in most safety-critical control paper, I think it is of general interest.

I struggle in obtaining a good CBF candidate.
As this is the first use of this repository, any feedback on the implementation is welcome.

Changes

  • Implemented a new system with double-integrator dynamics.
  • Created script for training a neural cbf controller.
  • To avoid using gurobi, the disable_gurobi argument is added to the CBFController and then forwarded to the parent class CLFController.

Experiments

I run the script as it is and collected snapshot of the tensorboard after 50 epochs.

Despite the overall trend seems to go in the right direction and the positive and negative regions in the barrier function roughly correspond to safe/unsafe set, I cannot see sign of life in the rollouts.
Do you have any insights on this?

Accuracy
image

QP-relaxation
image

Loss
image

Rollouts
image

V-contour:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions