14. ROS2 DDS

1. Introduction to DDS

DDS stands for Data Distribution Service. Published and maintained by the Object Management Group (OMG) in 2004, it is a data distribution/subscription standard designed specifically for real-time systems. It was first adopted by the US Navy to address compatibility issues with large-scale software upgrades within the complex network environments of ships. It has now become a mandatory standard.

DDS emphasizes data-centricity and provides a rich set of quality-of-service policies to ensure real-time, efficient, and flexible data distribution, meeting the needs of various distributed real-time communication applications.

References

2. Communication Model

The topics, services, and actions we learned about in the previous course all rely on DDS for their underlying communication implementation. DDS is equivalent to the neural network in the ROS robot system.

The core of DDS is communication. Numerous models and software frameworks exist to implement this communication. Here we list four commonly used models.

image-20220528020740057

Of these communication models, DDS has a clear advantage.

3. Application of DDS in ROS2

DDS plays a crucial role in the ROS2 system. All upper-layer infrastructure is built on DDS. In this ROS2 architecture diagram, the blue and red components represent DDS.

image-20220528020937717

Among the four major components of ROS, the addition of DDS greatly enhances the comprehensive capabilities of the distributed communication system. This allows us to avoid worrying about communication issues during robot development and focus more time on other application development components.

4. Quality of Service (QoS)

The basic structure in DDS is the domain. A domain binds applications together for communication. Recall that when we configured communication between the Raspberry Pi and the computer, the domain ID we configured earlier defines the grouping of the global data space. Only nodes within the same domain group can communicate with each other. This prevents useless data from occupying resources.

Another important feature of DDS is the quality of service (QoS).

QoS is a network transmission policy. Applications specify the desired network transmission quality behavior, and the QoS service implements this behavior to meet the client's communication quality requirements as much as possible. It can be thought of as a contract between data providers and receivers.

The policies are as follows:

5. Test Cases

5.1 Case 1—Configuring DDS via the Command Line

image-20250827115245194

image-20250827115358309

image-20250827120250112

5.2 Example 2—Configuring QoS Service Policies for Topic Nodes

 

image-20250905153513257

 

image-20250905153611086

 

image-20250905153734043

 

Advanced Robot Development:

image-20250905155146210