These instructions will cover the installation of ROS, Gazebo, and several other basic packages required for this software to run. This first section installs ROS, and a few additional dependencies and compiled packages required for the Ardupilot simulation.
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
$ sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116
$ sudo apt-get update
In case there was a missing dependency, you may try the following line. However, be careful not to attempt to desinstall-reinstall libgl1-mesa,for it sometimes messes up the ubuntu installation.
$ sudo apt-get -y install libgl1-mesa-dev-lts-utopic
Install ROS Kinetic
$ sudo apt-get -y install ros-kinetic-desktop-full
$ sudo rosdep init
$ rosdep update
Setup environment variables
$ sudo sh -c 'echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc'
$ source ~/.bashrc
Get rosinstall and some additional dependencies
$ sudo apt-get -y install python-rosinstall \
ros-kinetic-octomap-msgs \
ros-kinetic-joy \
ros-kinetic-geodesy \
ros-kinetic-octomap-ros \
unzip
Install catkin tool kit
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list'
$ wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install python-catkin-tools
$ git clone https://github.com/MuhammadDanyialKhan/MultiHectorSwarm.git
$ cd MultiHectorSwarm/src
$ chmod +x installhectorquadrotor.bash
$ ./installhectorquadrotor.bash