Crashing in simulation leads to divergence of MPC.
When resetting the simulation and restarting the MPC, the previous state corrupts the optimization, leading to repetitive crashes and requiring to restart the MPC node.
This change forces a clean solve from scratch, fixing above issue.
Thanks.
The change right now is on the wrapper level, which does not account for threading.
I will move the change to the controller and make it thread-safe... but has to wait for next week.
Cheers
Crashing in simulation leads to divergence of MPC. When resetting the simulation and restarting the MPC, the previous state corrupts the optimization, leading to repetitive crashes and requiring to restart the MPC node.
This change forces a clean solve from scratch, fixing above issue.