Home› Applications
Discussion
Back to discussions page
Tyler_Berryman
Posts: 122 Handy
Using one Snapshot Position to sort Multiple Parts |
752 views
|
Answered | |
/ Most recent by alanjones
in Applications
|
7 comments |

Hi DoF community,
In this post, I am looking to show you how to sort parts using the Robotiq Wrist Camera. The idea here is to use a single Snapshot position (one single calibration) to teach 3 different parts to the vision system. Here are the three parts of the 2F85 gripper assembly that I used for this demonstration:

In this program, I am using 3 variables to control the place positions for each of the 3 parts. The variable associated with the first part on the left is Flange, the variable associated with the part in the middle is Phalanx and the variable associated with the part on the right is Finger. These variables are incremented every time the camera locate node for that given part is executed. This incrementation allows me to tell the robot to place the part in a certain position using IF statements. Since I am using 3 different Camera Locate nodes (1 for each part), the searching phase of the program can be a little long. For this reason, I am using an IF statement to ignore a Camera Locate node if the number of parts in the workspace has already been sorted. In this demonstration, I am using two examples of each part so I know that there are only two parts corresponding to each Camera Locate node. For example : IF Finger <=2 then go through the Camera Locate node.
Here is the video of the demonstration :
https://youtu.be/9aJBRiyzgLs
In this post, I am looking to show you how to sort parts using the Robotiq Wrist Camera. The idea here is to use a single Snapshot position (one single calibration) to teach 3 different parts to the vision system. Here are the three parts of the 2F85 gripper assembly that I used for this demonstration:

In this program, I am using 3 variables to control the place positions for each of the 3 parts. The variable associated with the first part on the left is Flange, the variable associated with the part in the middle is Phalanx and the variable associated with the part on the right is Finger. These variables are incremented every time the camera locate node for that given part is executed. This incrementation allows me to tell the robot to place the part in a certain position using IF statements. Since I am using 3 different Camera Locate nodes (1 for each part), the searching phase of the program can be a little long. For this reason, I am using an IF statement to ignore a Camera Locate node if the number of parts in the workspace has already been sorted. In this demonstration, I am using two examples of each part so I know that there are only two parts corresponding to each Camera Locate node. For example : IF Finger <=2 then go through the Camera Locate node.
Here is the video of the demonstration :

Robotiq Integration Coach
[email protected]
1-418-380-2788, option 3
Product Expert
Robotiq
[email protected]
Thanking you in advance.
Warm Regards,
Lakshmi Prasanna.
Robotiq Integration Coach
[email protected]
1-418-380-2788, option 3
You can use the "Increment Installation variable by one" option that is shown in the second image that you included. Be certain to use an installation variable!
Robotiq Integration Coach
[email protected]
1-418-380-2788, option 3
Is it possible to use while or for loop for your program to run continuous instead of using if statement ?
Do you have any tips or examples of a loop program for this program that you've created ?