ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Best practice for mpc controller tunning

asked 2021-09-27 10:40:33 -0600

asobhy gravatar image

updated 2021-09-27 10:43:55 -0600

I am working on getting the mpc controller in AutowareAuto 1.0.0 to work on a lincoln mkz. I am getting steering wheel oscillation as soon as the vehicle starts moving forward. The steering wheel keeps oscillating between the max and min wheel angles.

I would like to know if there is a guideline or recommendations on how to tune the mpc controller to eliminate the oscillations.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-07 07:51:06 -0600

asobhy gravatar image

updated 2021-10-07 07:59:01 -0600

After further investigation, it turns out that the mpc controller time step needs to be reduced to eliminate oscillation.

The time step variable represents the time of each horizon step in the mpc. The solution of the mpc controller then gets interpolated between the current and the next horizion steps. It turns out that the interpolated result is not as accurate as it should with a 100ms value and thus causes the system to become unstable and oscillate.

Reducing the time step resulted in the elimination of oscillations since the result of the interpolation becomes more accurate. I have been able to get acceptable controller performance with a timestep of 20ms at low speed maneuvers which were not possible before with a time step of 100ms

The performance of the mpc controller is also vehicle speed dependent as the system becomes again unstable as the vehicle speed increases above a certain threshold. There is a need to further improve the performance of the mpc controller by code optimization and more mpc tunning by reducing the size of the horizon as an example

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2021-09-27 10:40:33 -0600

Seen: 104 times

Last updated: Oct 07 '21