Skip to main content
QUICK REVIEW

[Paper Review] Towards a distributed and real-time framework for robots: Evaluation of ROS 2.0 communications for real-time robotic applications

Carlos San Vicente Gutiérrez, Lander Usategui San Juan|arXiv (Cornell University)|Sep 7, 2018
Real-Time Systems SchedulingComputer Science1 references39 citations
TL;DR

This paper evaluates ROS 2.0's real-time performance for robotic systems using a Linux PREEMPT-RT kernel and DDS-based communication under varying network and computational loads. It demonstrates that with proper configuration—especially prioritizing ksoftirqd and using RT settings—ROS 2.0 can achieve bounded end-to-end latencies with zero missed deadlines under moderate loads, though high payload or sustained traffic causes significant latency spikes and message loss.

ABSTRACT

In this work we present an experimental setup to show the suitability of ROS 2.0 for real-time robotic applications. We disclose an evaluation of ROS 2.0 communications in a robotic inter-component (hardware) communication case on top of Linux. We benchmark and study the worst case latencies and missed deadlines to characterize ROS 2.0 communications for real-time applications. We demonstrate experimentally how computation and network congestion impacts the communication latencies and ultimately, propose a setup that, under certain conditions, mitigates these delays and obtains bounded traffic.

Motivation & Objective

  • To assess the suitability of ROS 2.0 for real-time robotic applications in a distributed embedded system.
  • To evaluate worst-case end-to-end communication latencies and missed deadlines under varying network and computational loads.
  • To analyze the impact of network congestion, payload size, and system load on ROS 2.0 communication determinism.
  • To identify configuration parameters that improve real-time performance and reduce latency jitter.
  • To establish practical limits for deterministic ROS 2.0 communication in embedded robotic platforms.

Proposed method

  • Deployed ROS 2.0 nodes on two embedded Linux systems using the PREEMPT-RT kernel for real-time scheduling.
  • Used Data Distribution Service (DDS) with RTPS over UDP for inter-node communication, with configurable Quality of Service (QoS) settings.
  • Measured round-trip latency across multiple test scenarios with varying network traffic (1 Mbps to 80 Mbps) and payload sizes (32 KB, 128 KB).
  • Stressed the system with concurrent traffic using iperf3 and monitored latency, missed deadlines, and message loss.
  • Applied real-time priority to ksoftirqd thread to reduce softirq processing delays and improve interrupt handling determinism.
  • Conducted long-duration tests (up to 12 hours) to assess stability and long-term latency behavior under sustained load.

Experimental results

Research questions

  • RQ1What is the worst-case end-to-end latency of ROS 2.0 communication under normal and stressed network conditions?
  • RQ2How do different QoS configurations (e.g., RT settings) affect latency and deadline misses in ROS 2.0?
  • RQ3To what extent does increasing payload size or network traffic impact communication determinism in ROS 2.0?
  • RQ4Can prioritizing the ksoftirqd thread significantly reduce latency spikes and improve real-time performance?
  • RQ5What are the practical limits of bounded latency in ROS 2.0 for embedded robotic systems under sustained load?

Key findings

  • With RT QoS settings and ksoftirqd prioritization, ROS 2.0 achieved a maximum end-to-end latency of 3,509 µs under 80 Mbps concurrent traffic, with no missed deadlines.
  • Without ksoftirqd prioritization, maximum latency reached 59,762 µs under 80 Mbps load, with 240 missed deadlines out of 36,315 messages.
  • Under 12-hour continuous operation with 40 Mbps traffic, the best configuration (DDS 1) showed a maximum latency of 4,942 µs and only 3 message losses.
  • For 128 KB payloads under load, maximum latency reached 176,074 µs with 1,991 missed deadlines, indicating a strong performance degradation under large data transfers.
  • Prioritizing ksoftirqd reduced worst-case latency by over 50% compared to default settings, especially under high load, and eliminated missed deadlines in the best-case scenario.
  • The system maintained zero missed deadlines and minimal message loss when using 32 KB payloads and RT settings with ksoftirqd prioritization, even under sustained 80 Mbps traffic.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.