I want to do some trajectory tracking on a real robot, and I want to use MPC, so I found this gekko. I can make to simulations of my robot and stuff, but is it possible to use it real-time, as I see it take some time to calculate the optimal solution, and I am not quite sure coding wise how to do it, if you just take the first imput and give it to the real system and then update the state values with the sensor reading, and then use the m.solve() function again, and so on.
Thanks in advance