Skip to content

Commit

Permalink
fix(api): idle gripper should idle (#13558)
Browse files Browse the repository at this point in the history
* wrong logic
  • Loading branch information
ahiuchingau authored Sep 14, 2023
1 parent c19927d commit 7003e62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ def check_ready_for_jaw_move(self) -> None:
raise GripError("Gripper jaw must be homed before moving")

def is_ready_for_idle(self) -> bool:
"""Raise an exception if it is not currently valid to idle the jaw."""
"""Gripper can idle when the jaw is not currently gripping."""
gripper = self.get_gripper()
if gripper.state == GripperJawState.UNHOMED:
self._log.warning(
"Gripper jaw is not homed and cannot move to idle position."
)
return gripper.state == GripperJawState.GRIPPING
return gripper.state != GripperJawState.GRIPPING

def is_ready_for_jaw_home(self) -> bool:
"""Raise an exception if it is not currently valid to home the jaw."""
Expand Down

0 comments on commit 7003e62

Please sign in to comment.