Finite State Machine-Based Multi-Landing Autonomous UAV Navigation Using the Waypoint Follower Algorithm on ROS2
DOI:
https://doi.org/10.52958/iftk.v22i1.12680Keywords:
Autonomous UAV Navigation, Medical Delivery System, ROS2–PX4 Integration, Finite State Machine (FSM), Software-in-the-Loop (SITL) SimulationAbstract
Challenges in medical logistics, such as geographical limitations, urban congestion, and ground transport risks, necessitate efficient and safe delivery solutions. Unmanned Aerial Vehicles (UAVs) offer a promising alternative. This research aims to develop and implement an autonomous UAV navigation system capable of complex multi-landing missions, validated for medical delivery scenarios. The system employs a hierarchical control architecture, integrating the Robot Operating System 2 (ROS2) as the high-level mission supervisor with the PX4 flight controller for low-level control. Mission logic, including navigation using the Waypoint Follower algorithm and landing sequences, is formally governed by a Finite State Machine (FSM) implemented in ROS2. Communication between ROS2 and PX4 is facilitated by Micro XRCE-DDS. System validation was performed via Software-in-the-Loop (SITL) simulation using Gazebo, featuring a mission scenario with four waypoints and one intermediate landing. Simulation results demonstrated that the system successfully completed the entire mission autonomously (100% success rate). Quantitative analysis of position accuracy revealed total position errors () between 1.35 m and 1.57 m during navigation phases, and an error of 0.84 m at the intermediate landing. Errors were found to be consistently dominant on the Y-axis. In conclusion, the proposed architecture, which separates mission logic (FSM in ROS2) from flight control (PX4), provides a robust and functional approach for autonomous UAV applications requiring complex mission interactions.
References
A. E. Ambarwati, “PENGARUH SISTEM TRANSPORTASI TERHADAP KESEHATAN MASYARAKAT DI JAWA TIMUR DENGAN PRINCIPAL COMPONENT ANALYSIS,” 2023. [Online]. Available: https://jatim.bps.go.id/.
L. Judijanto, S. Barus, and A. Yuli Vandika, “USE OF DRONES FOR DELIVERY OF MEDICINE AND BLOOD IN REMOTE AREAS,” ZAHRA: JOURNAL OF HEALTH AND MEDICAL RESEARCH, vol. 4, no. 2, pp. 172–182, 2024.
Pius Weraman, “PENGARUH AKSES TERHADAP PELAYANAN KESEHATAN PRIMER TERHADAP TINGKAT KESEHATAN DAN KESEJAHTERAAN MASYARAKAT PEDESAAN,” vol. 7, no. 3, pp. 2655–710X, 2024.
N. Stierlin, M. Risch, and L. Risch, “Current Advancements in Drone Technology for Medical Sample Transportation,” Logistics, vol. 8, no. 4, p. 104, Oct. 2024, doi: 10.3390/logistics8040104.
Gita Ramadhanti and Agus Triyono, “Pengaruh Pengetahuan Safety Driving dan Kelelahan Kerja terhadap Kejadian Kecelakaan Lalu Lintas pada Pengemudi Ambulans,” 2024, Accessed: Nov. 20, 2025. [Online]. Available: https://doi.org/10.70304/jmsi.v3i03.59
M. Delavary, Z. Ghayeninezhad, and M. Lavallière, “Prevalence and Characteristics of Ambulance Collisions, a Systematic Literature Review,” Jun. 01, 2023, MDPI. doi: 10.3390/safety9020024.
J. W. Lyng et al., “Appropriate Air Medical Services Utilization and Recommendations for Integration of Air Medical Services Resources into the EMS System of Care: A Joint Position Statement and Resource Document of NAEMSP, ACEP, and AMPA,” Prehospital Emergency Care, vol. 25, no. 6, pp. 854–873, 2021, doi: 10.1080/10903127.2021.1967534.
D. Kumar et al., “Lecture Notes in Networks and Systems 106.” [Online]. Available: http://www.springer.com/series/15179
S. De Silvestri, P. J. Capasso, A. Gargiulo, S. Molinari, and A. Sanna, “Challenges for the Routine Application of Drones in Healthcare: A Scoping Review,” Dec. 01, 2023, Multidisciplinary Digital Publishing Institute (MDPI). doi: 10.3390/drones7120685.
M. Robakowska et al., “Possibilities of Using UAVs in Pre-Hospital Security for Medical Emergencies,” Int J Environ Res Public Health, vol. 19, no. 17, Sep. 2022, doi: 10.3390/ijerph191710754.
H. Supriyono and A. Akhara, “Design, building and performance testing of GPS and computer vision combination for increasing landing precision of quad-copter drone,” in Journal of Physics: Conference Series, IOP Publishing Ltd, Apr. 2021. doi: 10.1088/1742-6596/1858/1/012074.
S. B. Rosende, J. Sánchez-Soriano, C. Q. G. Muñoz, and J. F. Andrés, “Remote management architecture of uav fleets for maintenance, surveillance, and security tasks in solar power plants,” Energies (Basel), vol. 13, no. 21, Nov. 2020, doi: 10.3390/en13215712.
R. R. Lawongan, R. S. Solis, A. Claudia, S. R. Pungus, D. E. Sondakh, and Y. Putra, “IntelliMart: Teknologi Drone dan Robotic dalam Sistem Pasar Modern IntelliMart: Drone Technology and Robotic Technology in a Modern Market System,” Cogito Smart Journal |, vol. 9, no. 2.
Iradaf Mandaya and Harintaka, “PEMANFAATAN TEKNOLOGI UAV (UNMANNED AERIAL VEHICLE) UNTUK IDENTIFIKASI DAN KLASIFIKASI JENIS - JENIS KERUSAKAN JALAN,” vol. 14, no. 3, 2020.
E. Rashidzadeh, S. Mohammad, H. Molana, R. Soltani, and A. Hafezalkotob, “Investigating Greenhouse Gas (CO2) Emission and Performance of Drone in Emergency Medical Services (EMS) Systems”, doi: 10.22097/EEER.2021.301978.1217.
T. Elmokadem and A. V. Savkin, “Towards fully autonomous UAVs: A survey,” Sensors, vol. 21, no. 18, Sep. 2021, doi: 10.3390/s21186223.
“nav2_waypoint_follower — nav2_waypoint_follower 1.2.10 documentation.” Accessed: Oct. 23, 2025. [Online]. Available: https://docs.ros.org/en/iron/p/nav2_waypoint_follower/
M. Ghorab and M. Lorenzen, “Multi-Waypoint Path Planning and Motion Control for Non-holonomic Mobile Robots in Agricultural Applications,” Jul. 2025, doi: 10.34749/3061-0710.2025.17.
S. Marcello CHIABERGE Eng Antonio MARANGI, “POLITECNICO DI TORINO Development of an automated benchmark for the analysis of Nav2 controllers Candidate Federica SCHENA,” OLITECNICO DI TORINO, 2024.
S. Kadam1 and S. Ruikar2, “Designing Flight Controller of Quadcopter Using Stm32 Microcontroller,” IJIRT 167412 INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH, vol. 11, no .3, Aug. 2024.
Ajdin Buljubasic, “Implementation and evaluation of a secure communication solution for drones in a ROS2 network application,” Karlstad, 2023.
N. Stierlin, F. Loertscher, H. Renz, L. Risch, and M. Risch, “Preanalytic Integrity of Blood Samples in Uncrewed Aerial Vehicle (UAV) Medical Transport: A Comparative Study,” Drones, vol. 8, no. 9, Sep. 2024, doi: 10.3390/drones8090517.
S. Primatesta, R. Enrico, and A. Munafo’, “Politecnico di Torino Spiral-Based Reactive Obstacle Avoidance for UAVs with PX4 SITL Integration Relatore: Correlatore: Candidato,” Politecnico di Torino, 2024.
P. Gauba et al., “Adopting drone technology for blood delivery: a feasibility study to evaluate its efficiency and sustainability,” Archives of Public Health, vol. 83, no. 1, Dec. 2025, doi: 10.1186/s13690-025-01650-z.
S. A. Sukarno, H. Rudiansyah, and A. Basyar, “Implementation of Waypoint Navigation and Computer Vision for Monitoring Markers on a Quadcopter Based on ROS (Robot Operating System),” International Journal of Marine Engineering Innovation and Research, vol. 10, no. 1, pp. 2548–1479, Mar. 2025.
S. Patankar, T. Jain, O. Pardeshi, and D. Rajput, “AeroMedic Pro:An Autonomous UAV Platform for Emergency Medical Delivery Using Machine Learning-Based Navigation and Obstacle Avoidance,” 2024. [Online]. Available: https://www.jisem-journal.com/https://www.jisem-journal.com/
I. Graessler and J. Hentze, “The new V-Model of VDI 2206 and its validation das Neue V-Modell der VDI 2206 und seine Validierung,” At-Automatisierungstechnik, vol. 68, no. 5, pp. 312–324, May 2020, doi: 10.1515/auto-2020-0015.
M. Ryalat, G. Al-Refai, N. Almtireen, and H. Elmoaqet, “Design of a ROS2-Based Hybrid Aerial-Ground Robot for Autonomous Inspection Applications,” IEEE Access, vol. 13, pp. 109274–109293, 2025, doi: 10.1109/ACCESS.2025.3582653.
H. G. Lee, D. Kim, and S. T. Moon, “Optimizing Data Distribution Service Discovery for Swarm Unmanned Aerial Vehicles Through Preloading and Network Awareness,” Drones, vol. 9, no. 8, Aug. 2025, doi: 10.3390/drones9080564.
“uXRCE-DDS (PX4-ROS 2/DDS Bridge) | PX4 Guide (main).” Accessed: Sep. 04, 2025. [Online]. Available: https://docs.px4.io/main/en/middleware/uxrce_dds
M. Rossander and H. Lideskog, “Design and Implementation of a Control System for an Autonomous Reforestation Machine Using Finite State Machines,” Forests, vol. 14, no. 7, Jul. 2023, doi: 10.3390/f14071340.
O. A. Dhewa, T. K. Priyambodo, A. Nasuha, and Y. M. Mustafah, “ENHANCEMENT OF STABILITY ON AUTONOMOUS WAYPOINT MISSION OF QUADROTOR USING LQR INTEGRATOR CONTROL,” IIUM Engineering Journal, vol. 23, no. 1, pp. 129–158, 2022, doi: 10.31436/IIUMEJ.V23I1.1803.
Z. Ahmed and X. Xiong, “Adaptive Impedance Control of Multirotor UAV for Accurate and Robust Path Following,” Machines, vol. 12, no. 12, Dec. 2024, doi: 10.3390/machines12120868.
Y. Xiao, “Optimization of Landing Attitude Stability for Quadrotor Drones,” Academic Journal of Science and Technology, vol. 6, no. 3, p. 2023, 2023, doi: 10.54097/ajst.v6i3.10166.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Pipit Anggraeni, Hilda Khoirunnisa, Alif Prima Utama

This work is licensed under a Creative Commons Attribution 4.0 International License.
KEBIJAKAN YANG DIAJUKAN UNTUK JURNAL YANG MENAWARKAN AKSES TERBUKA
Syarat yang harus dipenuhi oleh Penulis sebagai berikut:
- Penulis menyimpan hak cipta dan memberikan jurnal hak penerbitan pertama naskah secara simultan dengan lisensi di bawah Creative Commons Attribution License yang mengizinkan orang lain untuk berbagi pekerjaan dengan sebuah pernyataan kepenulisan pekerjaan dan penerbitan awal di jurnal ini.
- Penulis bisa memasukkan ke dalam penyusunan kontraktual tambahan terpisah untuk distribusi non ekslusif versi kaya terbitan jurnal (contoh: mempostingnya ke repositori institusional atau menerbitkannya dalam sebuah buku), dengan pengakuan penerbitan awalnya di jurnal ini.
- Penulis diizinkan dan didorong untuk mem-posting karya mereka online (contoh: di repositori institusional atau di website mereka) sebelum dan selama proses penyerahan, karena dapat mengarahkan ke pertukaran produktif, seperti halnya sitiran yang lebih awal dan lebih hebat dari karya yang diterbitkan. (Lihat Efek Akses Terbuka).




