PythonLinearNonlinearControl/mpc/extend/README.md

4.4 KiB

Model Predictive Control for Vehicle model

This program is for controlling the vehicle model. I implemented the steering control for vehicle by using Model Predictive Control.

Model

Usually, the vehicle model is expressed by extremely complicated nonlinear equation. Acoording to reference 1, I used the simple model as shown in following equation.

However, it is still a nonlinear equation. Therefore, I assume that the car is tracking the reference trajectory. If we get the assumption, the model can turn to linear model by using the path's curvatures.

and \delta_r denoted

R is the curvatures of the reference trajectory.

Now we can get the linear state equation and can apply the MPC theory.

However, you should care that this state euation could be changed during the predict horizon. I implemented this, so if you know about the detail please go to "IteraticeMPC_func.py"

Expected Results

Usage

$ python main_track.py 

Reference