Skip to content
古月居 · 微信公众号·· 19 days agoAI score60

ROS2 Communication Programming in Practice: Topics, Services, Actions, and QoS Usage

Summary

The article systematically explains how to write and choose between the three ROS2 inter-node communication methods—topics, services, and actions—and provides example code in C++ and Python for publishers, subscribers, service servers, and action servers. It focuses on three QoS parameters: depth, reliability, and history policy, and points out that when publisher and subscriber reliability settings are incompatible, QoS silently degrades, dropping data without reporting an error. Finally, it lists common problems such as topic type mismatches, request queuing caused by time-consuming service callbacks, and unfilled message timestamps, along with troubleshooting commands.

This page provides a summary and source link only. Read the full article at the source.

Source: 古月居 · 微信公众号 · mp.weixin.qq.com