publisher.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:ab2016-ros-gazebo 作者: akademikbilisim 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号