Hi
I am using C++ interfaces of acados. I used lat_gen_code.py from openpilot to generate C++ code. I already posted a question 3d ago titled “Different solutions between C++ and Python”. I found dangling pointer problem, I had to create a tmp object to copy input.data() then put tmp object into ocp_nlp_cost_model_set function. Now. I got outputs from solver in both C++ and Python are the same.
Any users here caught the same problem and any good solutions?