Jaeyoung-Lim / px4-mpc

MPC implementation using acados integrated with with PX4 on ROS2
BSD 3-Clause "New" or "Revised" License
41 stars 8 forks source link

Using Acados #16

Closed orimana2020 closed 1 month ago

orimana2020 commented 1 month ago

Hi, where does acados installation should be placed? I got: File "/home/ori/ws_sensor_combined/install/px4_mpc/lib/python3.10/site-packages/px4_mpc/mpc_quadrotor.py", line 35, in from px4_mpc.models.multirotor_rate_model import MultirotorRateModel File "/home/ori/ws_sensor_combined/install/px4_mpc/lib/python3.10/site-packages/px4_mpc/models/multirotor_rate_model.py", line 34, in from acados_template import AcadosModel ModuleNotFoundError: No module named 'acados_template' [ros2run]: Process exited with failure 1

limshoonkit commented 1 month ago

it can be placed anywhere, just have to specify the environment path

try the following pip install -e /interfaces/acados_template

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/lib" export ACADOS_SOURCE_DIR=""

reference https://docs.acados.org/python_interface/index.html