Embedded models of UAV swarm control algorithm
DOI:
https://doi.org/10.34121/1028-9763-2025-3-4-90-100Keywords:
unmanned aerial vehicle, multi-agent system, control algorithms, Model-View-Controller, Control E-Networks, Petri nets, event handling, PythonAbstract
This paper presents an approach to the embedded system software implementation based on a Model-View-Controller (MVC) architecture, specially modified for the multi-agent domain. It aims to solve the poor scalability and single-point-of-failure risks associated with centralized, cyclic-polling architectures in unmanned aerial vehicle (UAV) swarms. In this novel interpretation, the UAV swarm itself is re-envisioned as the User, a continuously updated state of the Control E-Network (CEN) (token markings and attributes) serves as the View, and the network’s transitions and listeners function as the Controller, manipulating the model. The model itself is expressed as a CEN that is an extension of Petri nets for control purposes. The places and data of CEN represent the agent’s state, but in general, CEN provides a control algorithm view as a set of transitions and their related places to implement event-driven logic. At the same time, listeners integrate external input signals and generate output commands in a fully reactive manner. The resulting chain-driven, event-oriented execution eliminates cyclic polling, reduces CPU overhead, simultaneously supporting synchronous, asynchronous, and parallel event processing in real time. The paper details the Python-based data structures — places, transitions, queues/stacks, thread pool, and reactive listeners, — together with a dynamic verification method that automatically collects statistics on transition activity and timing, enabling on-the-fly profiling and detection of performance bottlenecks. A comprehensive example demonstrates an agent program with a three-layered (reactive, planning, and cooperative) control model that reacts in parallel to sensor events, performs delayed actions, and synchronizes results through a joining transition, thereby confirming the effectiveness of the proposed approach for multi-agent applications.
References
1. Dashkevych A., Vorontsova D., Rosokha S. An Approach for the Determination of Drone Positions Set with Maximal Terrain Visibility. ICT in Education, Research and Industrial Applications (ICTERI 2021). 2021. Vol. 3013. P. 64–73.
2. Wang X., Zhao Z., Yi L., Ning Z., Guo L., Yu F.R., Guo S. A Survey on Security of UAV Swarm Networks: Attacks and Countermeasures. ACM Computing Surveys. 2024. Vol. 57 (3). P. 1–37. DOI: https://doi.org/10.1145/3703625.
3. Macal C.M., North M.J. Tutorial on Agent-Based Modelling and Simulation. Journal of Simulation. 2010. N 4. P. 151–162. DOI: https://doi.org/10.1057/jos.2010.3.
4. Kazymyr V., Prila O., Usik A., Sysa D. New Paradigm of Model-Oriented Control in IoT. Information and Software Technologies. 2019. Vol. 1078. P. 605–614. DOI: https://doi.org/10.1007/978-3-030-30275-7_46.
5. Alqudsi Y., Makaraci M. UAV Swarms: Research, Challenges, and Future Directions. Journal of Engineering and Applied Science. 2025. Vol. 72 (12). P. 1–20.
6. Bu Y., Yan Y., Yang Y. Advancement Challenges in UAV Swarm Formation Control: A Comprehensive Review. Drones. 2024. Vol. 8 (7). Р. 320.
7. Shmelova T., Sterenharz A., Burlaka O. Optimization of Flows and Flexible Redistribution of Autonomous UAV Routes in Multilevel Airspace / Ermolayev V. et al. (eds.) ICTERI 2019 Workshops, CEURWS. 2019. Vol. 2393. P. 704–715.
8. Phalapanyakoon K., Siripongwutikorn P. Route Planning of Unmanned Aerial Vehicles under Recharging and Mission-Time Constraints. International Journal of Mathematical Engineering and Management Sciences. 2021. Vol. 6 (5). P. 1439–1459. DOI: https://doi.org/10.33889/IJMEMS.2021.6.5.087.
9. Sheng Z., Cui L., Nasir A.A., Wang R., Fang Y. URLLC-Oriented Secure Communication for UAV Relay-Assisted Networks. Physical Communication. 2023. Vol. 59. DOI: https://doi.org/10.1016/j.phycom. 2023.102063.
10. Gamma E., Helm R., Johnson R., Vlissides J. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley Professional, 1994. 416 p.
11. Yadawad R., Kulkarni U.P. MVC Architecture and C2C File-Transfer Protocol for Smart-Home IoT Appliance Control. SN Computer Science. 2023. Vol. 4. P. 369. DOI: https://doi.org/10.1007/s41870-023-01349-w.
12. Khan S., Sharma N. Design and Development of an IoT-Based Web Application for an Intelligent Remote SCADA System. International Journal of Advanced Computer Science and Applications. 2018. Vol. 9 (3). P. 41–49.
13. Estivill-Castro V., Hexel R., Lusty S. Continuous Integration for Testing Full Robotic Behaviours in a GUI-Stripped Simulation. CEUR-WS. 2018. Vol. 2245. Paper 3. P. 1–12.
14. Gazebo Simulator. URL: https://gazebosim.org (last accessed on May 4, 2025).

