rospy笔记 - 知乎 - 知乎专栏
https://zhuanlan.zhihu.com/p/141174238#!/usr/bin/env python import rospy from std_msgs.msg import String def callback (data): rospy. loginfo (rospy. get_caller_id + "I heard %s ", data. data) def listener (): # In ROS, nodes are uniquely named. If two nodes with the same # name are launched, the previous one is kicked off.