Tell: check gripper state (only want to check for failure but needs more testing first)

This commit is contained in:
2025-10-27 17:03:38 +01:00
parent f7f5a7aa1f
commit 0a59b41644
+3 -1
View File
@@ -331,12 +331,14 @@ class TellClient:
wait_timeout = timeout + self.estimate_mounting_time(segment)
logger.info("waiting for mount to complete")
if wait and segment in "ABCDEF":
event, value = self.pshell.wait_events({"state": None, "motion_task": "dry"}, timeout=wait_timeout)
event, value = self.pshell.wait_events({"state": None, "motion_task": "dry", "gripper_detection" : None}, timeout=wait_timeout)
if event is None or event == "state":
logger.info(f"event: {event} occurred with value: {value}, checking command completed okay")
self.check_command_ok(
timeout=wait_timeout, msg=f"Mount failed for {segment}{puck}-{sample}: "
)
elif event == "gripper_detection":
logger.info(f"gripper detection: {event} occurred with value: {value}")
elif event == "motion_task" and value == "dry":
logger.info(f"event: {event} occurred with value: {value}")
logger.info(" Drying occurring, releasing interface to user")