uarm_core.py 文件源码

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

项目:UArmForROS 作者: uArm-Developer 项目源码 文件源码
def listener():
    print ' '
    print 'Begin monitor mode - listening to all fucntional topics'
    print '======================================================='
    print '         Use rqt_graph to check the connection         '
    print '======================================================='

    rospy.init_node('uarm_core',anonymous=True)

    rospy.Subscriber("uarm_status",String, attchCallback)
    rospy.Subscriber("pump_control",UInt8, pumpCallack)
    rospy.Subscriber("pump_str_control",String, pumpStrCallack)

    rospy.Subscriber("read_coords",Int32, currentCoordsCallback)
    rospy.Subscriber("read_angles",Int32, readAnglesCallback)
    rospy.Subscriber("stopper_status",Int32, stopperStatusCallback)

    rospy.Subscriber("write_angles",Angles, writeAnglesCallback)
    rospy.Subscriber("move_to",Coords, moveToCallback)
    rospy.Subscriber("move_to_time",CoordsWithTime, moveToTimeCallback)
    rospy.Subscriber("move_to_time_s4",CoordsWithTS4, moveToTimeAndS4Callback)

    rospy.spin()
    pass


# show eroors
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号