ROS2 Topics
189 words · 1 min read · 1 source
ROS2 topics are typed, asynchronous message buses that let robot nodes publish and subscribe data — like sensor readings or control commands — anywhere in the network.
A ROS2 topic is a named, typed channel for asynchronous many-to-many communication. Nodes publish messages to a topic; other nodes subscribe to the topic to receive them. Topics are the most common pattern in ROS2 — sensor data, control commands, and odometry all flow over topics.
What is it?
A ROS2 topic is a named, typed channel for asynchronous many-to-many communication. Nodes publish messages to a topic; other nodes subscribe to the topic to receive them. Topics are the most common pattern in ROS2 — sensor data, control commands, and odometry all flow over topics.
How it works
Under the hood, ROS2 topics ride on DDS (Data Distribution Service). When a publisher and subscriber match on a topic name and message type, DDS sets up a low-level pub/sub channel. Publishers and subscribers can come and go independently — no central broker is required. Topic communication can be configured for Quality-of-Service (reliability, history, durability).
Real-world example
A robot's LIDAR node publishes /scan messages. A SLAM node subscribes to /scan and publishes /map. A teleop joystick publishes /cmd_vel, and a motor controller subscribes to it. Run ros2 topic list and you see every channel live.
Why it matters for robotics
Topics decouple components — a fundamental ROS2 design pattern. Mastery of topics, message types, and QoS settings is non-negotiable for any robotics engineer working with ROS2.
See also
Next: the course path
Five free courses, from zero to your own robot design
Short videos with a quiz after each one, a final activity and a certificate per course.
See the course path →Plain English. Free. Unsubscribe in one click.
Keep going
ROS2
Robot Operating System 2 — the DDS-based middleware that runs nearly every modern research and commercial robo…
ConceptROS2 Nodes
A ROS2 node is a single-process unit of computation that publishes and subscribes to topics, services, and act…
ConceptROS2 Services
A ROS 2 service is a short question one piece of a robot's software asks another and waits for a single answer…
Last updated · 2026-05-21
Spotted something off? Report an error →