Skip to content
AI News HubLIVE
Original source2 min read

One Behavior, Out of Order: Deterministic Execution and Parallel Simulation of ROS 2 Applications

Summary

This paper introduces a lightweight coordination scheme that makes ROS 2 applications deterministic for given inputs, and an out-of-order parallel simulation algorithm that speeds up testing up to 2.6x over synchronous parallel simulation with an order of magnitude less message memory than asynchronous parallel simulation.

SourcearXiv RoboticsAuthor: Chengzi Huang, Behnam Khodabandeloo, Duc Anh Nguyen, Chuanchao Gao, Wang Yi
One Behavior, Out of Order: Deterministic Execution and Parallel Simulation of ROS 2 Applications
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

[Submitted on 19 Nov 2026]

Title:One Behavior, Out of Order: Deterministic Execution and Parallel Simulation of ROS 2 Applications

View a PDF of the paper titled One Behavior, Out of Order: Deterministic Execution and Parallel Simulation of ROS 2 Applications, by Chengzi Huang and 3 other authors

View PDF HTML (experimental)

Abstract:System-level simulation is widely used to validate robotic applications before hardware deployment. However, Robot Operating System 2 (ROS 2), a popular middleware for such applications, uses asynchronous publish-subscribe communication, which can make application behavior depend on scheduling and the platform. The behavior can then vary across runs and machines even with the same inputs. This nondeterminism makes faults hard to reproduce and tests unreliable. In this paper, we first give ROS 2 applications a lightweight coordination scheme in which every component, including event-driven ones, reads its inputs and writes its outputs at predefined time instants. By decoupling computation and communication, the scheme makes an application deterministic, that is, it always has one behavior for given inputs. Tests are thus repeatable, but for large applications they still take a long time. To speed up these tests, we then present an out-of-order parallel simulation algorithm. From the predefined read and write instants, it knows before the run which activations of components depend on which. It starts each activation as soon as those it depends on have finished. Finally, we implement the algorithm in a simulator that runs existing ROS 2 applications without any change to them or to ROS 2. We evaluate the simulator on industrial use cases and synthetic graphs. On the industrial use cases, it is up to 2.6 times faster than synchronous parallel simulation and needs an order of magnitude less memory for messages than asynchronous parallel simulation.

Comments: 7 pages, 5 figures

Subjects:

Robotics (cs.RO); Distributed, Parallel, and Cluster Computing (cs.DC)

Cite as: arXiv:2611.26676 [cs.RO]

(or arXiv:2611.26676v1 [cs.RO] for this version)

https://doi.org/10.48550/arXiv.2611.26676

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Chengzi Huang [view email] [v1] Thu, 19 Nov 2026 18:45:08 UTC (265 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled One Behavior, Out of Order: Deterministic Execution and Parallel Simulation of ROS 2 Applications, by Chengzi Huang and 3 other authors

View PDF

HTML (experimental)

TeX Source

view license

Additional Features

Audio Summary

Current browse context:

cs.RO

new | recent | 2026-11

Change to browse by:

cs cs.DC

References & Citations

SciX

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

Key points and analysis

Article intelligence

ResearchersAdvanced

Key points

  • ROS 2's asynchronous publish-subscribe communication causes nondeterministic behavior, complicating fault reproduction and testing.
  • Predefined read and write instants for each component decouple computation and communication, ensuring deterministic execution.
  • An out-of-order parallel simulation algorithm leverages dependency information to start activations as soon as dependencies finish.
  • The simulator runs existing ROS 2 applications unchanged and achieves significant speed and memory improvements on industrial use cases.

Highlights and analysis are generated automatically and may contain errors. Check the original source.