Home▸Articles▸Robotics & Kinematics

The ROS2 Ecosystem: Nodes, Topics & DDS Middleware

Understanding how nodes communicate and discover peers in a decentralized robotics network.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What Nodes Are

Nodes are software entities within the ROS2 framework that perform specific tasks such as sensor processing or actuator control. Each node can be thought of as a computational unit with its own set of functions and data.

In the context of robotics, nodes can represent various hardware components like cameras, lidars, inertial measurement units (IMUs), and battery monitors, each publishing data to named topics.

Topics: Data Channels

Topics serve as channels for communication between nodes in ROS2. They are essentially named pipes through which publishers send messages and subscribers receive them.

Messages on a topic can include sensor readings, control commands, or any other data relevant to the robot's operation.

live demo · related simulation● LIVE

DDS Middleware: Decentralized Communication

Data Distribution Service (DDS) is a middleware that enables nodes to discover and communicate with each other without relying on a central broker. This decentralized approach ensures robustness and scalability in complex robotic systems.

DDS allows for peer-to-peer communication, where nodes can dynamically join or leave the network while still exchanging messages efficiently.

Node Interaction Through Topics

Nodes interact by publishing to topics that other nodes subscribe to. For example, a camera node might publish images to a topic named 'camera/image', and a localization node can subscribe to this topic to process the images.

This interaction allows for modular design where different parts of the robot can be developed independently and integrated through shared topics.

Frequently asked questions

What is DDS in ROS2?

DDS (Data Distribution Service) is a middleware that enables nodes to communicate with each other without relying on a central broker, providing robust and scalable communication for robotic systems.

Why are topics important in ROS2?

Topics are crucial because they define the channels through which data flows between nodes. They enable decoupled design where different parts of the system can be developed independently and communicate via shared data streams.

How does node discovery work in ROS2?

Node discovery in ROS2 is facilitated by DDS, allowing nodes to dynamically discover each other and form a network without needing a central broker. This enables the system to be highly resilient and scalable.

What happens when a node fails in the simulation?

When a node fails in the simulation, its edges are frozen, but the remaining nodes continue to discover and communicate with each other over DDS, demonstrating how the network can still function even if some nodes are offline.

Try it live

Everything above runs in your browser — open ROS2 Ecosystem: Nodes, Topics & DDS Simulator and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open ROS2 Ecosystem: Nodes, Topics & DDS Simulator simulation

What did you find?

Add reproduction steps (optional)