Usage Guide =========== Installation ------------ First, complete the installation tutorial in the :doc:`installation`. Fleet Manager ------------- To run the Fleet Manager, in the ``FleetManager`` directory, execute: .. code-block:: bash 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 :doc:`ros2_fleet`. Drone ----- To run a drone, in the ``Drone`` directory, execute the following commands, indicating the ID of that drone: .. code-block:: bash source install/setup.bash python3 init_drone.py --drone_id If there is a problem with the ROS 2 packages, follow the :doc:`ros2_drone`. Send a Mission -------------- Via Web ~~~~~~~ In the ``Cloud`` directory, execute the following command: .. code-block:: bash 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 ```` with the name of your mission JSON file: .. code-block:: bash curl -X POST -H "Content-Type: application/json" --data-binary @Missions/.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`` .. code-block:: bash sudo mariadb -u fleet -p fleet_database To view the data, use the following SQL commands: .. code-block:: sql SHOW TABLES; DESCRIBE state_vector; SELECT * FROM state_vector;