You can check this discussion about how to make a stacking/unstacking program with UR robot:
https://dof.robotiq.com/discussion/comment/4584#Comment_4584
Please ask your questions if something is not clear for you.
I hope it helps.
bcastets
The programming is same whatever the type of gripper you are using 2F85, 2F140, Hand-e, ePick or airPick. With a vacuum gripper, just go down until the robot sense that a force is applied on the suction cup.
In the link I previously shared with you there was a camera but it was not used for this program. The stack high was detected using the force sensing capability of the robot.
You also have to possibility to find the high of a part using the vacuum detection of ePick or airPick.
https://dof.robotiq.com/discussion/1711/find-vacuum-instead-of-find-surface-with-epick#latest
How it work force to detect parts and pick using palletizing or destacking. can any one gives me an example please?
I highly appreciated for the help