check_driver_io.py 文件源码

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

项目:raspimouse_ros 作者: ryuichiueda 项目源码 文件源码
def pos_control(left_hz,right_hz,time_ms):
    rospy.wait_for_service('/put_motor_freqs')
    try:
        p = rospy.ServiceProxy('/put_motor_freqs', PutMotorFreqs)
        res = p(left_hz,right_hz,time_ms)
        return res.accepted
    except rospy.ServiceException, e:
        print "Service call failed: %s"%e
    else:
        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号