What is ROS 2 Quality of Service?
ROS 2 QoS policies govern reliability, retained history, durability, and timing. Publisher and subscriber policies must be compatible, and timely fresh data can matter more than retrying every old sample.
The key idea
ROS 2 quality of service configures how a particular data stream is exchanged between nodes. Reliability, history depth, durability, and timing policies shape that behavior. Offered publisher policies must be compatible with the subscriber’s requirements. For example, a best effort publisher cannot satisfy a subscriber requesting reliable delivery, so both nodes and the topic can be visible while no messages arrive. For camera streams, recent images may be more useful than delayed retries of old ones. Choose an appropriate profile, verify compatibility, and measure data age instead of assuming reliability means timeliness.
What to remember
- QoS policies apply to each data stream.
- Incompatible publisher and subscriber requests can block delivery.
- Measure freshness as well as successful receipt.
Check your understanding
Can a best effort publisher satisfy a subscriber requesting reliable delivery?
Show the explanation
No. That reliability mismatch can prevent message delivery.