Home Programming

Discussion

Left ArrowBack to discussions page
scasey19scasey19 Posts: 4 Apprentice
edited March 2017 in Programming

what is the exact programming code to determine if the robotiq gripper has a part or not.

I want the robot to stop if it does not detect a part.

Tagged:

Comments

  • Annick_MottardAnnick_Mottard Posts: 147 Handy
    edited March 2017
    @scasey19 you can use the script command "rq_is_object_detected()". It returns True if an object has been picked or False otherwise. 

    All the script functions you can use are found in your instruction manual section 4.8.2. Note that you have some other interesting features described there. For example, you can also get a feedback on the size of the object you have picked.

    Post below if you have more questions!
    Annick Mottard
    Product Expert
    Robotiq
    [email protected] 
  • scasey19scasey19 Posts: 4 Apprentice
    Thanks for the suggestion, but I tried this and it didn't work, I am picking up a very small part so the gripper is very close to closed even with a part.
  • matthewd92matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,267 Handy
    @scasey19 There is a minimum size that is required to be detected, how thin is the part you are trying to detect?  Do you need the full opening width of the jaws on your application?
  • scasey19scasey19 Posts: 4 Apprentice
    the distance between closed without part and closed with part is about .020" (.50mm)
  • matthewd92matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,267 Handy
    The minimum thickness that can be reliably detected is 1.2 mm according to this thread.  If you are opening and closing your gripper all the way each bit in the register results in moving the gripper approximately .39 mm for the 2F85 and 0.65mm for a 2F140. If you could limit the amount the gripper is opening and closing you still get the same number of steps but they would now be a thinner slice, for instance if you limited the gripper to 20mm each bit in the register becomes approximately 0.17mm and may help you to register if you have a part or not, hard to say though without trying it.
  • David_GariepyDavid_Gariepy Beta Tester Beetle, Wrist Camera URCap 1.3.0, Vacuum Beta tester Posts: 190 Handy
    @scasey19
    I don't know if you still need this but we just released a program template that contain a CAD of custom fingertips that will allow you to detect a part of any size. Check the post here 

    Best regards
    David Gariépy
    Integration Coach
  • RodWongRodWong Posts: 1 Recruit
    Is there a way to change the threshold of the "object detect" function?  The gripper is having trouble detecting a soft plastic part consistently. Sometimes it errors out thinking it doesn't have the part, but in fact it does. I do understand some of the problem has to do with consistency of the plastic. I can only increase the force or position to a certain point before breaking the part.
  • David_GariepyDavid_Gariepy Beta Tester Beetle, Wrist Camera URCap 1.3.0, Vacuum Beta tester Posts: 190 Handy
    No, it is not possible to change the threshold.  But you could check using the current position of the finger to see if it is fully closed. 
    When using full force and speed, the position of the finger is 230.
    If you are using low force and speed, you might need to change to lower the count a bit. may be 227, 226. 

    it would work somewhat like this:
    if rq_current_pos()<230
      part_detected = True
     

    David Gariépy
    Integration Coach
Sign In or Register to comment.
Left ArrowBack to discussions page