This repository contains all the source code for simulating an Ardupilot Controller in Gazebo
# Clone dependent repositories
wstool update -t src
# Add this to your .bashrc file
export GAZEBO_MODEL_PATH=<absolute_path_to_Ardupilot_Simualtion_repo>/src/mbzirc_gazebo/models
export GAZEBO_PLUGIN_PATH=${GAZEBO_PLUGIN_PATH}:<absolute_path_to_Ardupilot_Simualtion_repo>/src/sitl_gazebo/Build
export GAZEBO_MODEL_PATH=${GAZEBO_MODEL_PATH}:<absolute_path_to_Ardupilot_Simualtion_repo>/src/sitl_gazebo/models
export GAZEBO_MODEL_DATABASE_URI=""
export SITL_GAZEBO_PATH=<absolute_path_to_Ardupilot_Simualtion_repo>/src/sitl_gazebo
Make a build directory in the sitl_gazebo package and then run cmake (make sure to add the two dots in front of cmake)
cd <absolute_path_to_Ardupilot_Simualtion_repo>/src/sitl_gazebo mkdir Build cd Build cmake ..
make sdf
make
cd <absolute_path_to_Ardupilot_Simualtion_repo>/src/Firmware make posix_sitl_default gazebo