Git Product home page Git Product logo

vehicle-mpc-controller's Introduction

vehicle-mpc-controller

  • Library for simulating, testing and tuning a Model Predictive Controller (MPC) for autonomous vehicles.
  • Currently the code uses either a unicycle or bicycle model (with ackermann steering) to model the dyanmics of the vehicle.
  • The objective of the controller is to track a given reference trajectory in the presence of added process noise.
  • The non-linear dynamics of the system are linearized about the reference trajectory.
  • The MPC problem for the linearized system is then cast as a constrained Quadratic Programming (QP) problem.
  • The constrained QP problem is solved using the OSQP optimization library and its C++/Eigen wrapper

Dependencies

Third-party software used:

Building

Linux

git clone https://github.com/vTechSavyy/vehicle-mpc-controller.git
cd vehicle-mpc-controller
mkdir build && cd build
cmake ../
make

Running an example:

./mpc-bicycle-double-lane-change

The params of the simualtion and mpc-controller are set through a json file in the params folder

Results

Bicycle model - Lane change maneuver

bicycle model lane change

Bicycle model - Double lane change maneuver

bicycle model double lane change

References:

Todo list:

  • Interface this library with a high-level planner that provides the reference
  • Interface with an open source simualtor (eg: Gazbeo or Webots) for better testing
  • Parmeterize the linearized error dynamics in terms of lateral and longitudinal errors w.r.t the reference trajectory.
  • Compare mpc with other control methods (eg: Pure pursuit, PID)
  • Any further suggestions/feedback is always welcome.

vehicle-mpc-controller's People

Contributors

vtechsavyy avatar savyy925 avatar

Forkers

xuchunniuniu

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.