# Robot Operating System 2: Design, Architecture, and Uses In The Wild

ROS 2 replaces ROS 1's TCP transport with DDS for reliable robots

Steve Macenski, Tully Foote, Brian Gerkey, Chris Lalancette, William Woodall · arXiv · 2022-11-14

- **Problem** ROS 1 was built for research, not production. It runs on TCP/IP and a central name server, so it struggles over lossy wireless links and has a single point of failure.
- **Method** ROS 2 builds on the DDS standard instead of ROS 1's own protocol. Its rmw layer hides the middleware, so users can swap it without code changes.
- **Results** Intra-process communication was the most efficient path, keeping 95th percentile latency below 1 millisecond for messages below 8 MB.

## Where ROS 1 hit its limits

ROS 1 spread into nearly every intelligent machine sector, yet its foundation was built for research rather than production. Security, network topology, and uptime received little priority, so commercial products exposed those gaps. Companies responded by building workarounds on top of or inside ROS 1 to reach reliable applications.

ROS 1 runs on TCP/IP, which struggles on wireless links because interruptions cause back-offs, retransmits, and delays. ROS 1 uses its own bespoke protocol, while ROS 2 adopts the existing DDS standard. The central name server, rosmaster, became a single point of failure. Fixing that meant patching every existing client library by hand with bespoke solutions.

The SROS project added security to ROS 1, but it was hard to maintain. It also needed further development to keep up with security trends. These patches extended ROS 1's useful lifetime but didn't solve its core limitations. Lossy links such as WiFi or satellite links remained a weak spot for ROS 1. Those limits made a ground-up redesign, ROS 2, the necessary next step.

## DDS as the transport, rmw as the seam

The authors picked DDS over alternatives such as ZeroMQ and RabbitMQ because it combines a UDP transport, distributed discovery, and a built-in security standard. ROS 1 struggled with lossy links because its transport was built on TCP/IP, which stalls when packets are lost. DDS uses UDP and doesn't retransmit by itself, so it decides when and how to retransmit in unreliable conditions.

Above DDS sits rmw, the middleware abstraction layer that exposes the essential communication interfaces. Vendors implement the rmw interface, so users can choose a different middleware without code changes. The client libraries sit on rcl, a C library that holds the functionality they share, although using it isn't required. All supported rmws are based on DDS today, but a few community-supported rmws use other communication methods.

Because the APIs stay fixed while the middleware changes, the system can evolve with minimal impact on applications built atop it.

Security comes from DDS-Security, which covers authentication, encryption, and access control. SROS2 adds command-line utilities that generate and store digital signatures and access control configurations. QoS settings then control how data flows, so reliability and history decide what happens when the network can't keep up. Best-effort delivery suits sensor data, because a new sample makes the old one obsolete.

Reliable delivery keeps sending data until the receiver acknowledges receipt, so it suits data that can't be lost.

## Topics, services and actions

Topics are the pattern users meet most often, because they carry asynchronous message passing. ROS 2 pairs topics with strongly typed interfaces, so both ends agree on the message structure. Topic endpoints sit in a computational graph under a node, which lets a developer reason about a complex system. Because the publish-subscribe architecture is anonymous, many-to-many communication is possible on one topic.

A developer can add a subscription to a topic to watch its messages without changing the system.

A service client sends a request and receives a response that is paired with that request. That pairing makes it easy to confirm that a task was completed or received. Unlike a topic, the client's process isn't blocked while the call is in progress. Services sit under a node too, so a subsystem's interfaces appear together in system diagnostics.

Actions are goal-oriented and asynchronous, which suits work that runs for a long time. An action client makes a request, gets a response, receives periodic feedback, and can cancel the goal. Autonomous navigation and manipulation are the typical long-running tasks that use actions. Like services, actions don't block the caller and stay organized under the node.

Figure 1 shows the topics, services, and actions side by side as node interfaces.

Topics put no reply on the subscriber, so the sender never waits for an answer. Services and actions both ask the receiver for a response, with actions adding feedback and cancellation on top.

## Latency and send rate across message sizes

The benchmark runs one publisher and one subscription, so each message size measures a single link. For every size, the system sends 1,000 messages per second and logs latency, effective publication rate and CPU use. Each run happens in three arrangements: separate processes, one shared process, and one process using intra-process communication.

Intra-process communication gives the lowest cost, keeping 95th percentile latency below 1 millisecond for all sizes below 8 MB. It also meets the sending rate for every size below 8 MB. The path skips the middleware and passes pointers from publisher to subscription, so its advantage grows near 1 MB and larger. Those sizes match images and point clouds, the high-resolution data that often moves through robots.

Node composition shows a similar result, with 95th percentile latency below 1 millisecond and no dropped messages below 8 MB.

Inter-process communication lets publisher and subscriber sit on separate machines, and it shows the highest latency. Its latency stays below 1 millisecond until 1 MB, then climbs to 7.85 milliseconds at 8 MB. The 95th percentile send rate holds at 1000 Hz up to 2 MB, then drops to 213 Hz at 8 MB. Inter-process is the most flexible option, but it also carries the highest CPU use.

Node composition and intra-process communication both cut latency, CPU use and sending rate costs significantly. The authors call composition the recommended design pattern in ROS 2. Default DDS settings handle data above 1 MB poorly, due to small default UDP buffers, UDP fragmentation limits and retransmission under reliability. Tuning the networking parameters can remove many of these issues, but it spends more compute resources.

For small messages, every mechanism published above 1kHz without loss.

## Delivery under packet loss

The authors emulated the network with mininet, which can set arbitrary topologies and link properties. They capped bandwidth at 54Mbps, a rate comparable to a slow wireless network, and varied packet loss from 0 to 20 percent. The test ran the CycloneDDS rmw on an Ubuntu 20.04 virtual machine with 6 Intel Xeon E5-2666 v3 CPUs at 2.9GHz. One publisher and one subscription node ran in separate processes, and each message held an array of 1000 bytes.

The test tallied how many messages reached the subscription at each loss level.

TCP struggles on wireless links because interruptions trigger back-offs, retransmits, and delays. DDS sends its data over UDP and doesn't retransmit on its own. Instead, DDS itself chooses when and how to resend packets when conditions are unreliable. The reliability QoS setting controls whether delivery is guaranteed, with best-effort and reliable as the two options.

At moderate loss, ROS 2 still delivers data over the network effectively. The authors call 20 percent loss a particularly bad environment, and they expect performance to drop more significantly there. The authors note that tuning networking parameters can remove many issues with large messages, but it costs compute resources.

## Ghost Robotics and Mission Robotics

The case studies are qualitative and draw on interviews, customer experiences and codebases, so they describe use rather than measure performance. Ghost Robotics runs ROS 2 on an Nvidia Jetson Xavier for mission execution, gait planning, terrain mapping and localization. About 90% of its software uses ROS 2 for communication and architecture.

Its mission software uses lifecycle nodes that switch features on and off per mission, such as moving between GPS and VIO localization. Component nodes are built by separate teams and combined at run time, which the company found useful on a limited-compute platform. Ghost reports 23 employees as of August 2021 and about 30 engineer-years to release Vision-60 to customers.

Mission Robotics keeps its core on-robot software off ROS 2 and uses ROS 2 as the common data bus for its sensors. A new sensor gets a device driver that publishes over ROS 2 inside a Docker container. Working with Aqualink, Mission added a Zed stereo camera to a Jetson Nano, which had out-of-the-box ROS 2 drivers.

## Auterion simulation and VIPER code reuse

Auterion uses simulation because a failed drone flight risks the airframe and people on the ground. Every physical flight carries a risk of crashing, while a failure in simulation can be fixed and rerun quickly. Auterion uses Gazebo to run end-to-end tests of its software before hardware testing validates safe functionality. Gazebo runs in Auterion's continuous integration pipeline to prevent regressions across an array of vehicle types and scenarios.

Tests run in parallel, so developers can focus on one specific problem and still trust that the software is safe.

In 2021, Auterion flew approximately 22,000 hours within Gazebo, including high-risk scenarios that are impractical to test with hardware. Its airframes cost $1,000 to $100,000, so any test in dangerous flight conditions carries considerable risk. ROS 2 simulations in development and validation combine to lower costs and speed up development.

VIPER relied on Gazebo to test and validate almost all of its rover software before launch, because the lunar environment can't be reproduced on Earth. VIPER reused 284,500 significant lines of code (SLOC) from Gazebo without modification, modifying under 1% to pass validation. NASA's estimated development rate for the simulator was 116 SLOC per work-month, so reuse let the team produce its simulation in 266 work-months.

VIPER also reuses heritage code, because NASA prefers components vetted in previous missions to cut development time and cost. The VIPER team chose DDS for its ability to traverse satellite links with high latency, low bandwidth, and low reliability.

## Scaling OTTO Motors past 25 robots

OTTO Motors started on ROS 1, and its custom multi-master system couldn't test more than 25 robots on one shared network. That limit was fine for small fleets, but it became a bottleneck as OTTO moved into larger facilities. OTTO surveyed the available technologies and reached the same conclusion on its own: DDS was the best fit for fleet communications.

The wider network effect kept OTTO in the ROS ecosystem, so it became one of the early adopters of ROS 2. Adopting ROS 2 meant OTTO didn't have to maintain a proprietary DDS framework of its own.

After migrating, OTTO scaled up to 100+ robots in customer facilities. The authors credit ROS 2's fine-grained and scalable network topology management for this larger scale. Better QoS support for managing bandwidth on shared network links also played a part. These deployments, in 2017, were among the first commercial deployments of ROS 2 anywhere in the world.

OTTO estimates it has saved between $1M to $5M over 5 years by using ROS 2. It also avoided rewriting these tools into a proprietary framework, saving hundreds of engineering hours.

The distributed architecture and process isolation let a large, physically distributed team collaborate on OTTO's internal features. OTTO and Clearpath also sell platforms that customers build on, and ROS 2 support has proven valuable to them.

## What the case studies share

Across the five case studies, the authors see three recurring themes: software reuse, collaboration, and selling trusted platforms. Mission Robotics draws on the ROS community's device drivers, so its customers can adapt quickly to marine use cases. Auterion takes both lower-level drivers and higher-level algorithms from the community. The VIPER team found it hard to get other NASA groups to reuse code, though the ROS ecosystem's name recognition helps.

Ghost Robotics and OTTO Motors use interfaces and composition nodes so that teams can work without knowing the details of other subsystems. Mission Robotics and Auterion build custom solutions collaboratively with their customers on top of ROS 2. Freely available licensing and a wide pool of ROS expertise let these companies sell platforms into bespoke applications quickly.

The authors tie these themes to the Distribution, Abstraction, and Modularity principles from Section III-B.1. They argue that following those principles produced the themes they observed in the studies. The authors consider these themes among the largest acceleration factors for robotics today. The analysis is principally qualitative, drawn from interviews, customer experiences, and codebases.

That link is the authors' reading of the interviews, not a controlled test. The case for ROS 2 as an accelerator therefore rests on the deployment narratives rather than a measured comparison.

## Limits of the evidence

The authors ran one publisher and one subscription at each message size, sending 1,000 messages per second on a single machine. Their charts cover only the message sizes they list, so performance between those points is unmeasured. Intra-process communication keeps 95th percentile latency below 1 millisecond for sizes below 8 MB, while multi-process latency reaches 7.85 milliseconds at 8 MB.

Default DDS settings perform poorly above 1 MB, and the authors name small default UDP buffers, UDP fragmentation limits, and retransmission as causes. The authors say that fixing this means tuning networking parameters, which costs compute resources.

The packet-loss test used a different setup, an Ubuntu 20.04 virtual machine with mininet emulating the network. That test capped bandwidth at 54Mbps and varied loss only from 0 to 20 percent, using 1000-byte messages. The authors don't test other networks, message types or loss patterns, so those cases remain outside the evidence.

The five case studies rest on a qualitative analysis of ROS 2's influence, drawn from interviews, customer experiences and codebases. OTTO Motors' own estimate puts its savings between $1M to $5M over 5 years. Auterion's estimate that simulation replaced 12 full-time engineers is likewise the company's own figure. ROS 2 had not been used in prior NASA missions.

The VIPER team accepted the extra administrative overhead of flight qualification to adopt it anyway. Ghost's estimate that a similar autonomy system would take many years from scratch is also the company's own figure.

## Paper info

- **Authors**: Steve Macenski, Tully Foote, Brian Gerkey, Chris Lalancette, William Woodall
- **Venue**: arXiv · Preprint
- **First published**: 2022-11-14
- **Added**: 2026-11-12
- **Updated**: 2022-11-14
- **Version**: v1
- **arXiv**: 2211.07752
- **DOI**: 10.1126/scirobotics.abm6074
- **Category**: cs.RO
- **Original paper terms**: [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2211.07752v1) · [PDF ↗](https://arxiv.org/pdf/2211.07752v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Steve Macenski, Tully Foote, Brian Gerkey, Chris Lalancette, William Woodall (2022). Robot Operating System 2: Design, Architecture, and Uses In The Wild. arXiv:2211.07752v1. https://doi.org/10.1126/scirobotics.abm6074

**BibTeX**

```
@article{macenski2022robot,
  title = {{Robot Operating System 2: Design, Architecture, and Uses In The Wild}},
  author = {Steve Macenski and Tully Foote and Brian Gerkey and Chris Lalancette and William Woodall},
  year = {2022},
  eprint = {2211.07752},
  archivePrefix = {arXiv},
  doi = {10.1126/scirobotics.abm6074},
  url = {https://arxiv.org/abs/2211.07752v1}
}
```

## Other paper commentary

- [Learning Hand-Eye Coordination for Robotic Grasping with Deep Learning and Large-Scale Data Collection](https://refivu.com/en/papers/7027eeb7-fc1d-48f5-a7af-9efbaa9ad813-learning-hand-eye-coordination-for-robotic-grasping-with.md)
- [Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware](https://refivu.com/en/papers/8d8af879-da03-4506-b5c4-b0f829b285cf-learning-fine-grained-bimanual-manipulation-with-low-cost.md)
- [LIO-SAM: Tightly-coupled Lidar Inertial Odometry via Smoothing and Mapping](https://refivu.com/en/papers/8fa3265c-e57e-4469-8761-2a9bfc47279e-lio-sam-tightly-coupled-lidar-inertial-odometry-via.md)
- [A Survey of Motion Planning and Control Techniques for Self-driving Urban Vehicles](https://refivu.com/en/papers/24bd6bbc-d317-4d2c-a94f-ea5736e3e9a2-a-survey-of-motion-planning-and-control-techniques.md)
- [RT-1: Robotics Transformer for Real-World Control at Scale](https://refivu.com/en/papers/d447dd76-427e-4b3d-bfd8-faa140c2da78-rt-1-robotics-transformer-for-real-world-control.md)
- [$π\_0$: A Vision-Language-Action Flow Model for General Robot Control](https://refivu.com/en/papers/ad843b5e-218a-430e-9583-5911212661b1-0-a-vision-language-action-flow-model-for.md)
- [Prompt-to-Prompt Image Editing with Cross Attention Control](https://refivu.com/en/papers/a18cb3bd-2a1b-4adf-9a2a-f866c7f83edf-prompt-to-prompt-image-editing-with-cross-attention.md)
- [Named Entity Recognition with Bidirectional LSTM-CNNs](https://refivu.com/en/papers/454922d0-d836-4e69-a3cd-d40cf940d456-named-entity-recognition-with-bidirectional-lstm-cnns.md)
- [Transferability in Machine Learning: from Phenomena to Black-Box Attacks using Adversarial Samples](https://refivu.com/en/papers/0070f617-bee7-4459-b94e-a20f7c1d2de5-transferability-in-machine-learning-from-phenomena-to-black.md)
- [Conditional Adversarial Domain Adaptation](https://refivu.com/en/papers/a233380e-bb76-4fca-bc73-df4e86a220e3-conditional-adversarial-domain-adaptation.md)
- [A Survey of the Usages of Deep Learning in Natural Language Processing](https://refivu.com/en/papers/a454eb5a-711e-4988-9b26-508ba323b569-a-survey-of-the-usages-of-deep-learning.md)
- [TotalSegmentator: robust segmentation of 104 anatomical structures in CT images](https://refivu.com/en/papers/38d65e87-91c3-4285-bca2-9755328de70d-totalsegmentator-robust-segmentation-of-104-anatomical.md)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/c4489fa1-6bea-4732-9446-0d5c673168ba-robot-operating-system-2-design-architecture-and-uses)
