Derived from http://gazebosim.org/tutorials?tut=topics_subscribed
Make sure you have installed gazebo dependencies
sudo apt-get install libgazebo9-dev
This project is built with g++, so AirLib needs to be built with g++ too. Change lines 56 and 57 of AirSim/build.sh with:
export CC="gcc-8"
export CXX="g++-8"
then run ./setup.sh and ./build.sh
The AirSim UE plugin needs to be built with clang, so you can't use the one compiled in the previous step. You can use our binaries or you can clone AirSim again in another folder without the above change, and with that one, run Blocks or your environment.
Inside your settings.json
file add this line:
"PhysicsEngineName":"ExternalPhysicsEngine"
mkdir build && cd build
cmake ..
make
Run AirSim and Gazebo
then run:
cd build
./GazeboDrone