ROS 2 Has a Nondeterminism Problem. Two New Papers Want to Fix It.
The middleware that powers most research robots can't guarantee the same input produces the same output. That's a problem when you're shipping AI-controlled machines into the real world.
By
Why does your robot do something different every time you run the same code?
If you've spent any time with ROS 2, you've probably asked yourself this question. Maybe you've blamed the network, or your sensor drivers, or that one callback that seems to fire whenever it feels like it. But the truth is simpler and more uncomfortable: the middleware itself is fundamentally nondeterministic. The order callbacks execute isn't guaranteed. Distributed deployments add more chaos from message interleaving and network latency. Run the same program twice, get different behavior twice.
For research prototypes, this is annoying. For safety-critical deployed systems, it's potentially catastrophic. And now that we're shoving large AI models into the control loop (vision-language-action models, learned policies, the whole Physical AI menagerie), the problem is getting worse, not better.
Two papers dropped on arXiv this week that tackle this head-on, and they're worth reading together because they represent two different philosophies for solving what is essentially the same problem.
The determinism problem
The first paper, from researchers working with Lingua Franca, a coordination language developed at UC Berkeley, presents a framework that can take an unmodified ROS 2 application and run it under their system to guarantee deterministic execution. Same input, same execution order, every time.
The key insight is that ROS 2's publish-subscribe pattern, for all its flexibility, is the source of the chaos. Callbacks get dispatched by executors in whatever order the scheduler decides, and when you distribute across nodes, you're adding network timing jitter on top of that. The Lingua Franca approach uses logical time (a concept that's been around in distributed systems for decades, by the way) to impose order on this mess.
À lire aussi
More in Autonomy
New research from NASA JPL and university labs shows reinforcement learning can teach rovers to handle loose soil without getting stuck, cutting energy use by 37% on sandy slopes.
James Chen · 5 hours ago · 6 min
A batch of new papers suggests the field is moving past toy problems, but I've seen this movie before.
Robert "Bob" Macintosh · 9 hours ago · 3 min
I've been burned by EV hype before, but Ford's Skunkworks project is doing something nobody else seems willing to try: making a small, cheap truck.
Mark Kowalski · 10 hours ago · 6 min
Two new papers tackle the geometry problem that's kept cheap, wide-angle cameras from reaching their potential in autonomous systems.
