def main():
rospy.init_node("talker")
pub = rospy.Publisher("/chatter_topic", String, queue_size=1)
rate = rospy.Rate(10) # 10 Hertz ile çal???yor
while not rospy.is_shutdown():
message = "Naber Dünya? %s" % (rospy.get_time())
rospy.loginfo("Mesaj haz?rland?: %s" % message)
pub.publish(message)
rate.sleep()
评论列表
文章目录