Skip to content

ivanacollg/MPC_CollisionAvoidance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MPC_CollisionAvoidance

Dependencies

  sudo add-apt-repository ppa:deadsnakes/ppa
  sudo apt update
  sudo apt install python3.7

Python dependencies

python3.7 -m pip install pip
pip3.7 install numpy
pip3.7 install matplotlib
pip3.7 install scipy
pip3.7 install future-fstrings
pip3.7 install casadi>=3.5.1
pip3.7 install setuptools
sudo apt-get install python3.7-tk

To Use:

  git clone https://github.com/ivanacollg/MPC_CollisionAvoidance.git
  cd MPC_CollisionAvoidance
  git submodule update --recursive --init
  cd catkin_ws/src/nmpc_ca/acados/
  mkdir -p build
  cd build
  cmake -DACADOS_WITH_QPOASES=ON -DACADOS_WITH_OSQP=OFF/ON -DACADOS_INSTALL_DIR=<path_to_acados_installation_folder> ..
  make install 
  cd ../interfaces/acados_template/
  pip3.7 install -e .
  cd ../../../../..
  catkin_make

Add the path to the compiled shared libraries libacados.so, libblasfeo.so, libhpipm.so to LD_LIBRARY_PATH (default path is <acados_root/lib>) by running:

  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"<acados_root>/lib"

Tipp: you can add this line to your .bashrc/.zshrc.

Run acados example: <acados_root>/examples/acados_python/getting_started/minimal_example_ocp.py Answere yes when asked to set up Tera Render automatically