# UR5 vision pick and place

**URL:** <https://forum.universal-robots.com/t/ur5-vision-pick-and-place/15055>\
**Category:** ROS\
**Created:** [June 22, 2021, 11:13am UTC](https://forum.universal-robots.com/t/ur5-vision-pick-and-place/15055 "2021-06-22T11:13:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon81261137](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@anon81261137](https://forum.universal-robots.com/u/anon81261137)\
**Post date:** [June 22, 2021, 11:13am UTC](https://forum.universal-robots.com/t/ur5-vision-pick-and-place/15055/1 "2021-06-22T11:13:50Z")

</div>

We want to implement the vision based pick and place application. The camera we are using is an Intel Realsense D435i depth camera.

We have done hand eye calibration for the camera, we were facing technical difficulty in transferring camera coordinates to the base\_link of the robot.  
We are using Hand eye calibrated value and using inverse of that sending to robot. the values we are getting is not proper

```auto
def Quat2Mat(point1):

    qx= 0.497791828975
qy= -0.502527906573
qz= 0.49788582261
qw= 0.501775553177
result = R.from_quat([qx, qy, qz, qw])
result=result.as_dcm()
#print(result)
result = np.concatenate((result,np.reshape([0,0,0],(1,-1))),axis=0)
result = np.concatenate((result,np.reshape([-0.0142438828014,-0.0916812589659,-0.0320534281395,1],(-1,1))),axis=1)
result = np.linalg.pinv(np.array(result))
result_1 = np.matmul(np.array(result),point1)
    print("trans",result_1)
return result_1

```

point1 are the object coordinate values from the camera and qx,qy,qz,qw are values got from hand eye calibration.

the coordinates to be sent to robot (result\_1) are not proper, These result\_1 values are given to the UR5  
Please help us, where we are going wrong

---

<div class="post-metadata">

**Author:** ![mauch](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mauch](https://forum.universal-robots.com/u/mauch)\
**Post date:** [June 23, 2021, 10:41am UTC](https://forum.universal-robots.com/t/ur5-vision-pick-and-place/15055/2 "2021-06-23T10:41:07Z")

</div>

This seems to be a duplicate of [UR5 vision base pick and place](https://forum.universal-robots.com/t/ur5-vision-base-pick-and-place/15017).
