Hi
I’m experiencing a very strange behaviour which might be due to a bug in the solver getter.
First let me say that I’m not using the lastest acados from github but I have compiled it in November, so if what I’m describing is a known bug that has been already fixed I’m sorry, but I would rather not recompile again since I had configuration problems in the past and I would like to avoid it (for now, if possible).
I have a simple double integrator problem with some constraints (you can find the code here), the problem with the uploaded parameters is feasible and runs to the end plotting the solution, but if I add the lines
for i in range(N+1):
projected_trajectory[i,:] = acados_ocp_solver.get(i, "x")
in the simulation loop (lines 174-175 in clodes_loop.py), acados exits with error code 4 at iteration 63.
Just commenting these lines “solves” the problem.
I would have guessed that this is just a getter for the state trajectory, so I don’t understand how it could affect the solution, let alone lead to infeasibility.
Do you have any pointers?
Cheers
Tommaso