How to get accurate result from rq_is_object_detected()
/ Most recent by T800_412
I tried putting it in a Thread with:
wheel_gripped:=rq_is_object_detected() Wait: 0.01
And I get an error that says gripper 1 is not activated. But this error goes away when I don't use the Thread.
I've also tried using it in the code directly, but get inconsistent results, causing the program to go on with an empty gripper.
MoveL - (waypoints to pickup a wheel) wheel_gripped:=rq_is_object_detected() If wheel_gripped - Set a value
There's an IF that is examined which causes the program to go back and attempt to pick the wheel again, but when the object detected is giving bad results, I'm not sure what to do. Ideally, I want to do it in a thread, and cause the program to pause, just in case the wheel gets dropped somewhere along the way of being processed.
If I look at the gripper toolbar, it seems that it is correctly reporting object detected status, even if I pull the wheel out of the gripper after it is successfully picked.