终端中的topic操作
ros2 topic info /robot_news
ros2 topic echo /robot_news
ros2 interface show <Type>
ros2 interface show example_interfaces/msg/String
ros2 topic hz /robot_news
ros2 topic bw /robot_news
ros2 topic pub -r 5 /robot_news example_interfaces/msg/String "{data: 'hello from the terminal'}"
重命名(remap) topic 和 node
ros2 run my_py_pkg robot_news_station --ros-args -r __node:=my_station
ros2 run <pkg_name> <node_name> --ros-args -r <topic_name>:=<new_topic_name>
ros2 run my_py_pkg robot_news_station --ros-args -r __node:=my_station -r robot_news:=abc
用RQT检测topic
rqt-graph