RSLCPP -- Deterministic Simulations Using ROS 2

summary

The gist

Simulation is crucial in real-world robotics, offering safe, scalable, and efficient environments for developing a variety of robotic applications<ref:2601.07052#pg2>.

In short

The RSLCPP library solves ROS 2's reproducibility problem by aggregating nodes into a single process and using a custom event loop for deterministic execution. This method ensures identical simulation results across different CPUs and architectures, validating its use for scientific benchmarking and continuous integration.

Key concepts

ROS 2 Reproducibility Problem
ROS 2's design, with asynchronous nodes and multi-process communication, makes it hard to get the same results every time. Computation times and message delays vary unpredictably, which ruins scientific testing where consistent data is vital.
Node Composition
This technique combines multiple ROS 2 nodes into one single process. By isolating these nodes within this single process, external communication is minimized, helping to control the execution order and timing of callbacks deterministically.
Discrete-Event Simulation
Simulation time is advanced only after all currently ready events have finished executing. This method creates a step-by-step simulation where time jumps occur only when necessary, ensuring that the sequence of events is strictly controlled and repeatable.

Terminology used across episodes

This episode discusses

The paper

RSLCPP -- Deterministic Simulations Using ROS 2 · Read on arXiv

Simon Sagmeister, Marcel Weinmann, Phillip Pitschi, Markus Lienkamp

Technical University of Munich, Germany

DOI: 10.1109/RAP.2026.3704080

Transcript

Introduction to the show: ident: Robotics Radio. Generated commentary on the latest robotics and control papers.

Rosa: We're looking at the paper: "RSLCPP -- Deterministic Simulations Using ROS 2".

Dev: Here's the gist of the paper. Simulation is crucial in real-world robotics, offering safe, scalable, and efficient environments for developing a variety of robotic applications<ref:2601.07052#pg2>.

Rosa: Our ROS Simulation Library for C++ (RSLCPP) implements this approach, enabling existing nodes to be combined into a simulation routine that yields reproducible results usually without requiring any source code changes<ref:2601.07052#pg2>.

Dev: We demonstrate that our approach produces identical results across various CPUs and architectures when testing both a synthetic benchmark and a real-world robotics system<ref:2601.07052#pg5>.

Rosa: RSLCPP is open-sourced at https://github.com/TUMFTM/rslcpp<ref:2601.07052#pg2>.

Paper summary: Rosa: So to wrap up on this RSLCPP paper, their main thesis is that ROS two's design makes reproducibility a real challenge for robotics research and industry > <ref:2601.07052#pg1>

Dev: Right. They point out that because it's asynchronous and multi-process, you can't guarantee the execution order of callbacks when things happen on different machines or even across different times >

Rosa: And they claim that this lack of determinism complicates scientific benchmarking and continuous integration, which is where consistent results are absolutely essential >

Dev: To solve this, they propose RSLCPP, which is a library for C++. It lets you combine existing ROS two nodes into one simulation routine that runs deterministically > <ref:2601.07052#pg1>

Rosa: The key claim is that it enables this deterministic execution without needing to change the code of the individual nodes themselves >

Dev: They show this works by implementing a methodology that establishes deterministic execution order and timing for callbacks in a multi-node ROS two system > <ref:2601.07052#pg1>

Conclusion: Rosa: So looking at the authors, Simon Sagmeister, Marcel Weinmann, Phillip Pitschi, and Markus Lienkamp—they put together a framework that addresses a very practical problem for anyone building complex robotic systems >

Dev: It’s about moving simulation away from being just an approximation to something more reliable for testing and validating control software >

Rosa: They showed that even with real-world robotics systems, you can get the same results on different processors if you use this approach >

Dev: The implication is that researchers and engineers who need strict repeatability for scientific testing or continuous integration can use RSLCPP to build those environments reliably >

More episodes

← Home