From 4c6f9d9fff1d610ae727b223640117971d538b18 Mon Sep 17 00:00:00 2001 From: Chris Gilmer Date: Tue, 11 Jul 2017 10:53:33 -0700 Subject: [PATCH] Sleep the gripper on activation to avoid usb conflicts --- urx/robotiq_two_finger_gripper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/urx/robotiq_two_finger_gripper.py b/urx/robotiq_two_finger_gripper.py index d1f4db1..9b52c79 100644 --- a/urx/robotiq_two_finger_gripper.py +++ b/urx/robotiq_two_finger_gripper.py @@ -183,6 +183,9 @@ class Robotiq_Two_Finger_Gripper(object): urscript._set_robot_activate() urscript._set_gripper_activate() + # Wait on activation to avoid USB conflicts + urscript._sleep(0.1) + return urscript def gripper_action(self, value):