[Paper Review] Latency Overhead of ROS2 for Modular Time-Critical Systems.
This paper evaluates the end-to-end latency of ROS2 in modular, time-critical systems by profiling its stack and comparing performance across different DDS middlewares. It identifies that ROS2 introduces up to 50% latency overhead compared to direct DDS communication, highlighting middleware-dependent bottlenecks and providing design guidelines for low-latency ROS2 architectures.
Robot Operating System 2 (ROS2) targets distributed real-time systems. Especially in tight real-time control loops, latency in data processing and communication can lead to instabilities. As ROS2 encourages splitting of the data-processing pipelines into several modules, it is important to understand the latency implications of such modularization. In this paper, we investigate the end-to-end latency of ROS2 data-processing pipeline with different Data Distribution Service (DDS) middlewares. In addition, we profile the ROS2 stack and point out latency bottlenecks. Our findings indicate that end-to-end latency strongly depends on the used DDS middleware. Moreover, we show that ROS2 can lead to 50 % latency overhead compared to using low-level DDS communications. Our results imply guidelines for designing modular ROS2 architectures and indicate possibilities for reducing the ROS2 overhead.
Motivation & Objective
- To analyze the end-to-end latency of ROS2 in modular, time-critical control systems.
- To identify latency bottlenecks within the ROS2 software stack.
- To evaluate how different DDS middlewares impact system latency.
- To provide design guidelines for minimizing latency in ROS2-based real-time applications.
Proposed method
- Benchmarking end-to-end latency across multiple ROS2 data-processing pipelines using various DDS middlewares.
- Profiling the ROS2 stack to locate performance-critical components and communication layers.
- Comparing ROS2 latency with low-level DDS communication to quantify overhead.
- Analyzing message passing, middleware selection, and inter-process communication patterns in ROS2.
Experimental results
Research questions
- RQ1How does ROS2's end-to-end latency vary across different DDS middlewares in time-critical systems?
- RQ2What are the primary sources of latency within the ROS2 software stack?
- RQ3To what extent does modularization in ROS2 increase latency compared to direct DDS communication?
- RQ4How can ROS2 architectures be optimized to reduce latency overhead?
Key findings
- ROS2 introduces up to 50% additional latency compared to direct DDS communication due to architectural and middleware overhead.
- End-to-end latency is highly dependent on the choice of DDS middleware, with significant performance variation across implementations.
- The ROS2 middleware layer and inter-process communication mechanisms are major contributors to latency bottlenecks.
- Specific components in the ROS2 stack, such as the middleware interface and message serialization, significantly impact overall latency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.