interface.py 文件源码

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

项目:Story_CoWriting 作者: alexis-jacq 项目源码 文件源码
def ros_loop(test):
    while True:

        rospy.Subscriber('human_turn_topic', String, human_turn)
        rospy.Subscriber('human_chosen_topic', String, have_chosen)
        rospy.Subscriber('human_predict_turn_topic', String, human_predict)
        rospy.Subscriber('robot_turn_topic', String, robot_turn)
        rospy.Subscriber('robot_chosen_topic', String, have_chosen)
        rospy.Subscriber('story_telling', String, new_phrase)
        rospy.Subscriber('new_element', String, new_element)

        rospy.sleep(0.1)

    rospy.spin()


################################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号