Installing QgroundControl and Running it with Gazebo & PX4 Firmware and creating a plan
Through QgroundControl, you can plan the desired path for your drone visually and run your simulation with Gazebo and PX4 Firmware.
go to http://qgroundcontrol.com/ and click on download icon.
Write the following commands mentioned on the above website for Linux Ubuntu in Terminal, one-by-one and press Enter.
sudo usermod -a -G dialout $USER sudo apt-get remove modemmanager -y sudo apt install gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-gl -y
Click on the hyperlink of “1. Download QgroundControl.AppImage.” on the website to download the file.
Now, open Downloads file of your computer and check file “QgroundControl.AppImage” to be there. Right click on the environment of Downloads and select “Open in Terminal”.
Write the following commands mentioned on the above website in Terminal and press Enter.
chmod +x ./QGroundControl.AppImage
Now, you have QGroundControl installed on your computer. You can open it by double clicking on file QgroundControl.AppImage in Downloads.
(This section is inferred from 2:40 to 4:15 of the clip on: https://www.youtube.com/watch?v=-zEddRFbMvQ)
Running QGroundControl with Gazebo and PX4 Firmware to create a plan based on waypoints
Open QGoruondControl by double clicking on file QgroundControl.AppImage in Downloads.
Write cd Firmware in the terminal. Write the following codes in terminal to make the quadrotor at its home location and open Gazebo with PX4. (The following location is in Manchester city)
export PX4_HOME_LAT=53.4800000000000000 export PX4_HOME_LON=-2.2400000000000000 export PX4_HOME_ALT=0 make px4_sitl gazebo
Now you should be able to see your quadrotor as a red arrow in QGroundControl and also in Gazebo. If you click on the quadrotor in Gazebo, you can see the quadrotor in a white cube to be more obvious.