Hello Guys:
I used ACADOS for a while and it worked great. But rencently , beacuse of some reason, I installed ACADOS again.
The running environment is : Windows 11; MATLAB R2021b
First , I compiled it with the default installation Settings,
cmakeConfigString=‘-DBUILD_SHARED_LIBS=OFF -DACADOS_WITH_OSQP=OFF’;
minimal_example_closed_loop.m
can work well. But When I changed the solver to osqp
and qpoases
, MATLAB will crash.
Then, I delte the D:\ToolBox\acados\lib
and D:\ToolBox\acados\build
folders, and and change the compilation options to recompile.
cmakeConfigString=‘-DBUILD_SHARED_LIBS=OFF -DACADOS_WITH_OSQP=ON -DACADOS_WITH_QPOASES=ON’;
When run minimal_example_closed_loop.m
again, MATLAB will give us an error
Invalid MEX-file
‘D:\ToolBox\acados\examples\acados_matlab_octave\getting_started\c_generated_code\acados_mex_create_pendulum.mexw64’:
找不到指定的模块(that means ‘Can’t find the specified module’)
Error in pendulum_mex_solver (line 50)
obj.C_ocp = acados_mex_create_pendulum();
Error in acados_ocp (line 209)
obj.t_ocp = mex_solver();
Error in minimal_example_closed_loop (line 125)
ocp = acados_ocp(ocp_model, ocp_opts);
Hope to get your help.
Best wishes