Svashasan Logo
Simulated data

Robotics and Middleware · Middleware

Robotics Middleware

Also known as robot middleware, RMW, ROS middleware interface, communication middleware

IntermediateSource-checked · awaiting technical reviewLast reviewed 6 December 2026

The software layer between robot applications and the operating system or network that handles discovery, serialisation and transport of data between components, so application code does not depend on a particular communication technology.

Explanation

Robots and automated vehicles are built from many processes running on one or more computers. Middleware gives these processes a common way to find each other and exchange data, through publish-subscribe topics, request-response services and longer-running actions, while hiding sockets, encodings and network details.

ROS 2 makes its middleware pluggable through the ROS middleware interface (rmw). Implementations such as rmw_fastrtps_cpp (eProsima Fast DDS, the default), rmw_cyclonedds_cpp (Eclipse Cyclone DDS), RTI Connext DDS and rmw_zenoh_cpp (Zenoh) provide discovery, serialisation and transport. DDS brings standardised QoS and distributed discovery. Zenoh offers a lighter-weight alternative with low wire overhead and flexible routing for challenging networks.

The choice of middleware affects latency, CPU load, discovery behaviour, security options and integration with non-ROS components, such as AUTOSAR systems using SOME/IP. Interoperability between different implementations should be tested rather than assumed.

How it works

Application code calls the client library, for example to publish a message. The client library calls the rmw API, and the selected implementation maps the request onto its own protocol: creating DDS DataWriters or Zenoh publishers, serialising data with generated type support, and sending it over UDP, TCP or shared memory. Discovery and QoS matching happen inside the middleware.

Automotive applications

  • Decoupling perception, planning and control software
  • Switching transports between simulation and vehicle
  • Bridging robotics software to vehicle networks
  • Distributing processing across several ECUs

Example

A team whose ROS 2 vehicle reports to a remote monitor over an unreliable wireless link switches the whole system from Fast DDS to the Zenoh RMW by changing RMW_IMPLEMENTATION. No application source code changes are needed.

An illustrative example: any figures in it are worked numbers, not measurements.

References

  1. Different ROS 2 middleware vendors (ROS 2 documentation source) (opens in a new tab)

    Open Robotics / ROS 2 documentation project · Project documentation · DDS middleware; Zenoh middleware; Supported RMW implementations; source of the docs.ros.org rolling page; docs.ros.org blocked automated access · retrieved 6 December 2026

    “ROS 2 supports multiple middleware implementations which provide discovery, serialisation, and transportation communications.”
  2. ROS 2 middleware implementations (ROS 2 documentation source) (opens in a new tab)

    Open Robotics / ROS 2 documentation project · Project documentation · source of the docs.ros.org rolling page; docs.ros.org blocked automated access · retrieved 6 December 2026

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.