I am using the python interface to call c generated code on a raspberry pi (Ubuntu 22.04) for an autonomous steering controller. I was able to get the MPC working on my laptop, but when I attempt to call the code from the pi it does not locate the share library.
For the RPi, I compiled casadi from binaries (though it is not used) and call the c code with the following line:
acados_solver = AcadosOcpSolver(None,generate=False,build=False,json_file="acados_ocp.json")
which produces this error on the Pi:
error while loading shared libraries:libacados_ocp_solver_Dynamic_Bicycle.so: cannot open shared object file: No such file or directory
(This is from memory as the unit is still at the lab so wording may be slightly different)
A few details:
- I used CMake to build Acados
- Build Targets for both computers were set to “GENERIC” prior to building
- Code still runs fine in the same script from the original build laptop
- Paths in the acados_ocp.json were updated for the Pi
Can anyone shed some light onto why the shared library is not being detected?