findbutton.py 文件源码

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

项目:srcsim2017 作者: ZarjRobotics 项目源码 文件源码
def handle_mouse(event, x, y, flags, param):
    global details
    global cloud
    global ME
    if event == cv2.EVENT_LBUTTONUP:
        point = PointStamped()
        point.header = cloud.header
        point.point.x = details[y, x][0]
        point.point.y = details[y, x][1]
        point.point.z = details[y, x][2]

        print x, y, details[y,x]
        result = ME.transform.tf_buffer.transform(point, 'rightIndexFingerPitch1Link')
        print result

#leftimg,_ = ME.eyes.get_images()
#img = zarj.navigation.PERSPECTIVE_AHEAD.build_rangefinding_image(leftimg)
#cv2.imshow("leftimg", img)

#img = zarj.navigation.PERSPECTIVE_AHEAD.build_rangefinding_image(raw_img)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号