Flying in Formation - with Python Threading and ROS2 Parallelism
2026-07-16 , Chamber Hall B (S3B)

Coordinating a swarm of drones to autonomously allocate tasks,
bid on them in real time, and execute multi-robot formations
sounds like science fiction — but it is entirely possible
with Python, a handful of threading primitives, and ROS2's
MultiThreadedExecutor.

This talk walks through the concrete implementation challenges
of building a decentralised auction-based task allocation
system for a swarm of four Crazyflie UAVs. The focus is on
a problem that trips up almost every robotics engineer who
graduates from tutorials to real deployments: what happens
when your system has to wait for external, asynchronous
events — bids from four robots, assignment confirmations,
formation completion signals — without blocking the entire
node and without introducing race conditions or deadlocks?

We will explore how Python's threading.Event and Lock
primitives were used alongside ROS2's MultiThreadedExecutor
and ReentrantCallbackGroup to implement a synchronized
bid-collation protocol, a global assignment barrier, and
a concurrent multi-goal formation controller — all running
in parallel on a single laptop while communicating with
physical drones over radio.

You will leave with a clear, transferable mental model
for combining Python threading with ROS2 callback groups,
practical patterns for synchronizing distributed asynchronous
events in real-time systems, and an honest account of what
breaks in the real world (and why).


Expected audience expertise: Intermediate

Deborah Danjuma is a Robotics Engineering master’s student specializing in intelligent field robotic systems, with a strong focus on autonomous navigation, perception, and embedded systems. She holds a Bachelor’s degree in Mechanical Engineering, graduating as the best student of her class with a perfect 5.00/5.00 GPA. Her technical work spans ROS (Noetic and Humble), C++, Python, MATLAB, microcontroller programming (STM32, ESP32), and simulation-driven robotics development. Deborah has hands-on experience in motion planning, SLAM, control systems, and multi-robot coordination, and she actively builds and tests algorithms in both simulation and real robotic platforms.
Beyond robotics, Deborah is the co-author of 4.49 to 5.0, a book helping university students achieve academic excellence. She is currently based in Zagreb, Croatia.