turtlesim_joy.py 文件源码

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

项目:ROS-Robotics-By-Example 作者: PacktPublishing 项目源码 文件源码
def joy_listener():

    # start node
    rospy.init_node("turtlesim_joy", anonymous=True)

    # subscribe to joystick messages on topic "joy"
    rospy.Subscriber("joy", Joy, tj_callback, queue_size=1)

    # keep node alive until stopped
    rospy.spin()

# called when joy message is received
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号