ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Best practice for mpc controller tunning

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

asobhy gravatar image

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

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 -0500

asobhy gravatar image

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

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

Question Tools

2 followers

Stats

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

Seen: 277 times

Last updated: Oct 07 '21