PX4 Firmware (https://github.com/PX4/Firmware) provides one of the most accurate quadrotor simulation platforms.
For the installation of PX4 firmware follow instructions provided by GAAS.
Getting started guides are available on: https://gaas.gitbook.io/guide/
cd catkin_ws/src
git clone https://github.com/PX4/Firmware.git
cd Firmware
git checkout v1.9.0
cd ..
git clone --recursive https://github.com/PX4/sitl_gazebo.git
cd ..
catkin buildInstall the python dependencied mentioned on:
To use this repo:
cd catkin_ws/src
git clone https://github.com/hardesh/mavros_control.git
cd ..
catkin build
source devel/setup.bashAfter this you should be able to use the package.
dronecontroller.py is a generalised class for quadrotors. You can use this class to control your drone using MAVROS.
Example:
# Using the takeoff script
roslaunch px4 mavros_posix_sitl.launch
rosrun mavros_control takeoff.py