WhiffleFish / MPC-Collision-Avoidance

Aggressive Vehicular Collision Avoidance Maneuvering using Model Predictive Control
14 stars 4 forks source link

hi,Can you tell me how can I get the following two pictures? I run the code and these pictures are not displayed #1

Open lz321cc321 opened 2 years ago

lz321cc321 commented 2 years ago

frictionPlots SpeedPlotsReduced

WhiffleFish commented 2 years ago

Hi @haohaoxuexi258, I don't have a copy of matlab on my current machine, nor do I still have the script that created these plots, but I'll try my best to help.

The first plot modifies the friction coefficient in the car dynamics model (mu) here:

https://github.com/WhiffleFish/MPC-Collision-Avoidance/blob/e9db00a5f5790d7f3d68525839c97f5a559e87d7/Models/car.m#L14

The second plot varies the initial speed of the vehicle by modifying the 20 in the initial state given here: https://github.com/WhiffleFish/MPC-Collision-Avoidance/blob/e9db00a5f5790d7f3d68525839c97f5a559e87d7/Models/MPC.m#L36

lz321cc321 commented 2 years ago

Thank you very much for your help, I will try again.