find_volleyball.py 文件源码

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

项目:master_robot_strage 作者: nwpu-basketball-robot 项目源码 文件源码
def find_volleyball(self):
        self.find_ball_client.wait_for_service()
        res = self.find_ball_client(False)
        x = res.z
        y = -res.x
        theta = -res.theta
        if_volleyball = res.if_volleyball
        r = rospy.Rate(50)
        while not if_volleyball == True:
            res = self.find_ball_client(False)
            x = res.z
            y = -res.x
            theta = -res.theta
            if_volleyball = res.if_volleyball
        if if_volleyball == True:
            return (x,y,theta)
    #??????????????????????
    #??????????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号