I want to utilize acados for solving OCP in c language, on Ubuntu 22.04.
I have read the acados documentation but could not figure out how to generate c code.
Here is my understanding.
Create a python file for c code generation.
Describe problem formulation like examples/acados_python/getting_started/minimal_example_ocp.py
Call ocp.generate() to generate acados_ocp_nlp.json.
Generate c code from acados_ocp_nlp.json. (I don't know)
Please tell me how to generate c code correctly.
Best regards.
Hi,
the workflow is to prototype a solver in Python.
Then you automatically have a c_generated_code folder, with a minimal main file that shows how to use it in a C environment.
Good luck!
Dear FreyJo
I want to utilize
acados
for solving OCP in c language, on Ubuntu 22.04. I have read the acados documentation but could not figure out how to generate c code. Here is my understanding.examples/acados_python/getting_started/minimal_example_ocp.py
ocp.generate()
to generateacados_ocp_nlp.json
.acados_ocp_nlp.json
. (I don't know)Please tell me how to generate c code correctly. Best regards.