Robotics and Middleware · DDS implementation
Fast DDS
Also known as eProsima Fast DDS, Fast RTPS, rmw_fastrtps_cpp, Fast DDS Pro
eProsima's open-source C++ implementation of the OMG Data Distribution Service and its RTPS wire protocol, licensed under Apache 2.0. It is the default middleware implementation in ROS 2.
Explanation
Fast DDS provides two API layers: a high-level, DDS-compliant Data-Centric Publish-Subscribe (DCPS) API, and a lower-level RTPS layer that gives finer control of the protocol. It supports pluggable transports (UDPv4, UDPv6, TCPv4, TCPv6 and shared memory), synchronous and asynchronous publication, best-effort and reliable delivery, and security plug-ins for participant authentication, access control and data encryption.
As well as standard simple discovery, Fast DDS offers static discovery, which skips endpoint discovery when all endpoints are known in advance, and a Discovery Server mode in which a server participant acts as a hub. This is useful where multicast is unavailable or discovery traffic must be reduced. In ROS 2 it is used through rmw_fastrtps_cpp, which the ROS documentation lists as the default RMW implementation, packaged with binary releases.
The open-source edition is accompanied by a commercial Fast DDS Pro edition with extra features such as low-bandwidth transports and TSN support. Fast DDS can be configured for real-time behaviour, but end-to-end timing still depends on the operating system, network and configuration.
How it works
An application creates a DomainParticipant in a DDS domain, registers data types (often generated from IDL with Fast DDS-Gen), and creates publishers, subscribers, topics, DataWriters and DataReaders with QoS settings. Discovery announces the participants and their endpoints. Matched writers then send RTPS data messages over the selected transport, with acknowledgements and retransmission when reliability is enabled. The shared-memory transport avoids network copies between processes on the same host.
Automotive applications
- Default middleware for ROS 2 applications
- Inter-process data exchange on vehicle compute platforms
- Discovery-server deployments on large or multicast-restricted networks
- Industrial and defence systems (Fast DDS Pro)
Example
A ROS 2 perception stack on a vehicle computer uses Fast DDS's shared-memory transport, so camera images pass between the driver process and the detector process on the same SoC without going through the network stack. Results sent to another ECU travel over UDP.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- Fast DDS documentation: What is Fast DDS?; Main Features (opens in a new tab)
“eProsima Fast DDS is a C++ implementation of the DDS (Data Distribution Service) Specification”
- Fast DDS documentation: 5. Discovery (opens in a new tab)
- Different ROS 2 middleware vendors (ROS 2 documentation source) (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.