Giter VIP home page Giter VIP logo

mpc_python's Introduction

mpc_python

I keep here my Jupyter notebooks on R&D on Model Predictive Control applyied to path-following problems in driverless vehicles. Includes also a Pybullet simulation to showcase the results. This mainly uses CVXPY as a framework. This repo contains code from other projecs, check them out in the special thanks section.

Contents

Usage

From within the mpc_pybullet_demo directory:

  • To run the pybullet demo:
python3 mpc_demo_pybullet.py
  • To run the simulation-less demo (simpler demo that does not use pybullet, useful for debugging):
python3 mpc_demo_pybullet.py

In both cases the script will promt the user for enter before starting the demo.

The settings for tuning the MPC controller are in the mpc_config class.

Jupyter Notebooks

  1. State space model derivation -> analytical and numerical derivaion of the model

  2. MPC -> implementation and testing of various tweaks/improvements

  3. Obstacle Avoidance -> Using halfplane constrains to avaoid track collisions -> Sill work in progress!

Results

Racing car model is from: https://github.com/erwincoumans/pybullet_robots.

Results:

Requirements

The environment can be repoduced via conda:

conda env create -f env.yml
conda activate simulation

The dependencies for just the python scripts can also be installed using pip:

pip3 install --user --requirement requirements.txt

References & Special Thanks โญ :

mpc_python's People

Contributors

dependabot[bot] avatar mcarfagno 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.