If you did not do it already, please install the following packages.
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
build-essential \
cmake \
libzmqpp-dev \
libopencv-dev
It is a good idea to use virtual environments (virtualenvs) or Anaconda to make sure packages from different projects do not interfere with each other. Check here for Anaconda installation.
To create an environment with python3.7
conda create --name v python=3.7.16
Activate a named Conda environment
conda activate v
Clone the project to your desktop (or any other directory)
cd ~/Desktop
git clone https://github.com/AvidEslami/flightmare.git
Add FLIGHTMARE_PATH environment variable to your .bashrc file:
echo "export FLIGHTMARE_PATH=~/Desktop/flightmare" >> ~/.bashrc
source ~/.bashrc
Here, we need to install specific versions of packages, with the full list here.
conda activate v
cd flightmare/
pip install scikit-build ruamel.yaml==0.17.33 protobuf==3.20.0
Install tensorflow GPU (for non-gpu user, use pip install tensorflow==1.14)
pip install tensorflow-gpu==1.14
cd flightmare/flightlib
# it first compile the flightlib and then install it as a python package.
pip install .
After installing flightlib, you can following the Basic Usage with Python for some Reinforcement learning examples.