Native Installation

Install Swarm in Blocks on your Ubuntu 20.04

Option A: Automated bash script installation

We made for you one automated way to get into Swarm In Blocks full software on your machine.

If you have already one configuration for Apache that is serving another application, go with manual installation and be careful.

The installation script is presented in this link: install_swarm_in_blocks.sh. The script will install ROS, clone Swarm in Blocks, Clover and PX4 repositories, install dependencies, compile the workspace, install and configure Apache webserver.

Step 1: Download the script

Swarm In Blocks installation script

Step 2: Run the script

./install_swarm_in_blocks.sh

Step 3: Run the simulation

roslaunch swarm_in_blocks simulation.launch num:=4 new_blocks_page:=true

Option B: Manual installation

If you encounter any problems with the above script, you can resort to manual installation (mostly for debugging).

Prerequisites: Ubuntu 20.04.

Step 1: Updating apt (installation package)

sudo apt-get update
sudo apt-get upgrade 

Step 2: Installing required tools

Step 3: Installing ROS

We recommend installing ROS Noetic for best compatibility:

If you prefer, you can install ROS Noetic using the official installation manual (Desktop or Full install).

Step 4: Creating Catkin workspace

Create a workspace for the simulation (we recommend the name "Catkin" for default):

Step 5: Getting Swarm in Blocks sources and dependencies

Cloning from our GIthub repository:

Installing the necessary dependencies:

Step 6: Getting Clover sources

Cloning Clover and PX4 dependencies from Github repositorys:

It's important to note that the Clover repository that you must install is from our fork (Semear Group)

Also, you should make a symbolic link in order to allow the swarm_station package to find the clovers meshes:

Step 7: Installing dependencies with npm and rosdep

Rosdep:

Npm:

Step 8: Installing Clover's Python dependencies

Step 9: Downloading PX4

Step 10: Installing PX4 dependencies

Step 11: Addding Clover airframe

Step 12: Installing geographiclib datasets

Mavros package requires geographiclib datasets to be present:

Step 13: Building the workspace

Build your workspace (it takes 10~20min):

Step 14: Installing QGroundControl

Step 15: Installing Firefox web browser

Installing the recommended Browser:

Step 16: Installing apache webserver

Apache will be used for the front-end interface:

Step 17: Configure apache webserver to serve swarm_in_blocks directory:

This way, to access our homepage you only need to access your localhost through a web browser, by just typing localhost on the address place.

Step 18: Cleaning up

Step 19: Run the simulator

In order to be sure that everything was built correctly, try running the simulator for the first time:

Last updated