Increase wait time for velocity switching

This commit is contained in:
Michel Breyer 2021-12-06 11:05:28 +01:00
parent a3e528a9d7
commit 484483aa4c

View File

@ -105,9 +105,9 @@ class GraspController:
img, pose, q = self.get_state()
self.policy.update(img, pose, q)
r.sleep()
rospy.sleep(0.1) # Wait for a zero command to be sent to the robot.
timer.shutdown()
rospy.sleep(0.2) # Wait for a zero command to be sent to the robot.
self.policy.deactivate()
timer.shutdown()
return self.policy.best_grasp
def get_state(self):