Giter Club home page Giter Club logo

carsim_mpc_tracking-demo's Introduction

Language


Demo_Carsim_MPC_Tracking

A Carsim-Simulink demonstration of Model Predictive Control (MPC) for autonomous vehicle trajectory tracking showcases the integration of CarSim and Simulink to achieve MPC-based circular trajectory tracking for self-driving cars.

Prerequisites

Version: MATLAB R2020a, CarSim 2020.0 (install and link Simulink), Windows 11
Directory: root directory is D:\CarSim2020\Carsim_Files, include(MPCtest1.mdl, MY_MPCController3.m, my_quadprog.m),the root directory can be customized Please refer to the detailed configuration process.

Run

  1. Click 'Send to Simulink' in CarSim—Home, then automatically open Simulink. Click 'Run' in Simulink, wait for the completion of the simulation, and check the simulation results in Simulink
  2. If you need to modify parameters in CarSim, such as vehicle parameters or simulation conditions, you should first 'Run Now' and then 'Send to Simulink.' If you are modifying parameters in Simulink, you only need to 'Run' within Simulink
  3. Finally, in CarSim—Home—Analyze Results (Post Processing), click on 'Video+Plot' to view the CarSim simulation results.

Results

Trajectory of the autonomous vehicle in Simulink:

result


The trajectory of the autonomous vehicle in CarSim:
Result_CarSim.mp4

Where to modify

Modify the reference trajectory in MY_MPCController3.m for reference.

Acknowlegement

Thanks to the book 'Model Predictive Control for Autonomous Vehicles' by Jianwei Gong for guidance.

carsim_mpc_tracking-demo's People

Contributors

bithuanglq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.