Home› Applications
Discussion
Back to discussions page
mertzga
Posts: 16 Apprentice
How to program the touch off trick? |
763 views
|
Answered | |
/ Most recent by matthewd92
in Applications
|
12 comments |

I have seen videos typically of stacking type applications where the UR goes down until it contacts something then it moves upward then returns to pick an object a certain height above the point it contacted initially. My assumption is this is accomplished using torque sensing and a relative or variable way point. Where can I find some training literature that explains how to establish these types of waypoints? Can someone share some insight how this is programmed? Another question, I am using the pallet wizard to stack parts in a box, using the box feature. I need to insert a sheet of cardboard between each layer. Is there a way to insert a pause and pop-up between layers in a box sequence or do I need to do like 4 or 5 squares? Counting of some type? This is where I was thinking the touch off trick would help me I could have the robot touch off before it begins the pallet sequence then it would places the layer. Pop-up once layer is complete insert sheet. Robot again checks height and begins second layer. I hope this is a clear enough explanation.
Best Answer
-
matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,267 Handy
@mertzga you need to change the 19 to 19/1000, you have to feed it meters, not millimeters. That should solve the issue. Also, you can use the is_within_safety_limits() function to verify that the pose that is calculated can actually be reached within the safety constraints of the robot.
DoF Community Manager
[email protected]
I was using a template that comes with the FT300 sensor to stream the data coming from the force/torque sensor. As soon as the torque in the X axis is larger than 0.5Nm, the robot will go to the next step in the program.
Yes you can increment a variable in your program everytime you place a box, so you could increment the variable "Box" everytime you place a box. Then you could use an IF statement to accomplish a certain task when "Box" is equal to . You could then use the force feedback from the sensor to place the cardboard inserts between the boxes.
Robotiq Integration Coach
[email protected]
1-418-380-2788, option 3
If you use an if statement in your program you can actually check the box that says "Check Expression Continuously" and it basically turns the if into a while loop, so while the force is less than your threshold the node will continue to execute but as soon as you exceed the threshold you will exit that loop. So for searching we will do something like this:
if force()<50. #Check Expression Continuously box is checked
waypoint # this is where I want to get to
end if
If I want to know if something is there I will place a variable flag at the end of the task under the if statement, I will set the flag to True before the If and then False if the waypoint is complete. I use this for instance to probe a tray of parts to determine if there are parts in each of the pockets of the tray
If the motion is able to execute completely then there must NOT be an item in that spot so lower the flag, if there is that portion of code will not be reached as the If statement will exit when the force exceeds the threshold.
Something like this:
Of course this all still works the same with an FT sensor, it just gives you much finer control over the actions.
@matthewd92 Thanks for pointing out the UR Force feature!
Robotiq Integration Coach
[email protected]
1-418-380-2788, option 3
global force_I_See = get_tcp_force()
global y_force = norm(force_I_See[1])
Hope that helps
Robotiq Integration Coach
[email protected]
1-418-380-2788, option 3