Usage Guide

Installation

First, complete the installation tutorial in the System Setup.

Fleet Manager

To run the Fleet Manager, in the FleetManager directory, execute:

source ROS2/install/setup.bash
source StateVector/install/setup.bash
python3 init_fleet.py

If there is a problem with the ROS 2 packages, follow the Creating and building ROS2 in the Fleet Manager.

Drone

To run a drone, in the Drone directory, execute the following commands, indicating the ID of that drone:

source install/setup.bash
python3 init_drone.py --drone_id <drone_id>

If there is a problem with the ROS 2 packages, follow the Creating and building ROS2 in Drone.

Send a Mission

Via Web

In the Cloud directory, execute the following command:

python3 server_8081.py

Then, in your browser, go to: http://localhost:8081 From there, add a new mission and send it.

Via cURL

In the Cloud directory, execute the following command. Replace <json file> with the name of your mission JSON file:

curl -X POST -H "Content-Type: application/json" --data-binary @Missions/<json file>.json http://127.0.0.1:8082/mission

Visualize the Data

Thingsboard

Access the Thingsboard dashboard at: https://srv-iot.diatel.upm.es

MariaDB Database

To access the database, execute the following command. Password: fleet

sudo mariadb -u fleet -p fleet_database

To view the data, use the following SQL commands:

SHOW TABLES;
DESCRIBE state_vector;
SELECT * FROM state_vector;