Code Monkey home page Code Monkey logo

mppi_cbf's Introduction

mppi_cbf_playground

Colab notebooks of personal experiments with MPPI and CBF. Each notebook is stand-alone and can be executed immediately in Colab without extra setup.

Content

Nominal Controller Safety Filter Model Colab Link
MPPI CBF cost Bicycle car Open In Colab
CBF-QP Bicycle car Same as above
Nonlinear predictive filter Bicycle car Same as above
MPPI CBF cost Planar quadrotor Open In Colab
MPPI CBF cost Planar quadrotor with suspended payload Open In Colab

Demonstrations

Demo 1: bicycle car

The following animations are simulation result of MPPI controller for obstacle avoidance.

  • Left: w/ CBF as a cost term in MPPI.
  • Middle: w/ a CBFQP safety filter.
  • Right: w/ a nonlinear predictive safety filter.

Demo 2: planar quadrotor

The following animations are simulation result of MPPI controller with CBF cost for obstacle avoidance.

  • Left: w/ CBF as a cost term in MPPI.
  • Right: w/ CBF as a cost term in MPPI. A suspended payload is attached to the quadrotor.

Note for implementations

  • The terminal cost in MPPI is significant. It enhances the quality of the control sequence's prior, thereby preventing the controller from inadvertently deviating the system from its target position.
  • The discrete CBF cost aligns well with sampling-based predictive controllers, introducing only minimal additional computation.
  • The guarantees provided by CBF-QP diminish with discretization.

References

  1. Yin, Ji, et al. "Shield Model Predictive Path Integral: A Computationally Efficient Robust MPC Approach Using Control Barrier Functions." arXiv preprint arXiv:2302.11719 (2023). https://arxiv.org/abs/2302.11719
  2. Ames, Aaron D., et al. "Control barrier functions: Theory and applications." 2019 18th European control conference (ECC). IEEE, 2019. https://arxiv.org/abs/1903.11199

mppi_cbf's People

Contributors

shaoanlu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.