Skip to content

UAV Setup Guides (QUTAS Flight Stack)

pryre edited this page Aug 24, 2020 · 24 revisions

QUTAS Flight Stack

The QUTAS Flight Stack (QFS) is comprised of the following software:

Base Packages (qfs_base)

*These packages are included as part of the contrail meta-package.

Visualization Packages (qfs_viz)
Flight Control Packages (qfs_fc)
Simulator Packages (qfs_sim)
Extension Packages (qfs_extra)
Example Packages (qfs_example)
All Packages (qfs_all)

Combines all of the previous packages into one.

Prerequisites

Before continuing, make sure you have done the following steps:

  • Installed ROS correctly and are able to run roscore successfully (refer here).
  • Correctly set up and initialized your catkin workspace.
  • Installed wstool:
sudo apt-get install python-wstool
  • Installed the QFS supporting packages:

ROS Melodic
sudo apt install ros-melodic-robot ros-melodic-geometry2 ros-melodic-video-stream-opencv ros-melodic-image-transport-plugins ros-melodic-mavros-msgs ros-melodic-joy python-matplotlib
ROS Kinetic
sudo apt install ros-kinetic-robot ros-kinetic-geometry2 ros-kinetic-video-stream-opencv ros-kinetic-image-transport-plugins ros-kinetic-mavros-msgs ros-kinetic-joy python-matplotlib

Setup

First we need to prepare the workspace:

mkdir -p ~/catkin_ws
cd ~/catkin_ws

wstool init src

Next, we download the QFS definitions as listed in the headings above. If you are returning to add more packages, you would start at this step). To add the Base Packages (qfs_base) to the workspace (repeat for all desired package groups):

cd ~/catkin_ws/
QFS_PACKAGE=qfs_base
curl https://raw.githubusercontent.com/qutas/info/master/Stack/$QFS_PACKAGE.rosinstall > /tmp/$QFS_PACKAGE.rosinstall
wstool merge -t src /tmp/$QFS_PACKAGE.rosinstall

Downloading & Updating the Workspace

Once you are happy with the added packages, we update and rebuild the workspace:

cd ~/catkin_ws/
wstool update -t src
catkin_make

Finally, if you have added any rqt packages that do not show up in the plugin list, you may need start rqt once with this command instead:

rqt --force-discover

With the flight stack set up, you should check out some of the links in the package listing for more information. If you are here for the first time, or just want to try out a demonstration, it is recommended that you take a look at one of the simulator packages.


Note: The steps that you have completed will have downloaded and updated the packages to their latest versions, and also compiled the packages. You will not have to repeat these steps when looking at the individual packages, and can simply jump straight to the "how to run" examples.


Clone this wiki locally