Flying in Formation - with Python Threading and ROS2 Parallelism - DEBORAH E DANJUMA @EuroPythonConference
Flying in Formation - with Python Threading and ROS2 Parallelism - DEBORAH E DANJUMA  @EuroPythonConference
Uploaded August 2026 | Updated September 2026, 2 weeks ago
[EuroPython 2026 - S3B on 2026-07-16]
🎤 *Flying in Formation - with Python Threading and ROS2 Parallelism by DEBORAH E DANJUMA*
🔗 https://ep2026.europython.eu/session/flying-in-formation-with-python-threading-and-ros2-parallelism

📝 Abstract:
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).

---
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License: creativecommons.org/licenses/by-nc-sa/4.0
Flying in Formation - with Python Threading and ROS2 Parallelism - DEBORAH E DANJUMAWill you be joining us at our tutorials on Monday and Tuesday in Kraków? Stefanie Molin will be teacWhat Ive Learned Maintaining the MCP Python SDK - Marcelo TrylesinskiWhy should YOU come to #EuroPython2026Why doing difficult things is good for you and good for your team - Katie BickfordEuroPython 2026 - Conference Closing 🐍Keynote: Securing Python for the next decade - William WoodruffHow we write unit test in my team in Openchip - Jan KoprowskiA new safe external debugger interface for CPython — Pablo Galindo SalgadoMIDI, those cheesy sounds from the 90s? Wrong! Symbolic music vs Python — Mateusz ModrzejewskiKeynote: The Boom of Generative AI: realities, promises and awkward situations — Nerea LuisNavigating waters of background jobs and queues in Python as of 2026 - Sebastian Buczyński
EuroPython Conference |

Flying in Formation - with Python Threading and ROS2 Parallelism - DEBORAH E DANJUMA

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER