Navigation drives watch the arm: the base is stopped before the arm would touch something and goes on when clear

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 16:42:37 +09:00
co-authored by Claude Opus 5.5
parent c4d9b07558
commit fc73a90208
8 changed files with 362 additions and 13 deletions
+2
View File
@@ -470,6 +470,8 @@ def _drive_wait(watch_holding, again, goal):
raise FetchError("I dropped it.")
there = st == "succeeded" and goal is not None and pose is not None and _at(pose, goal)
if st != "running" and (seen_running or there or time.time() - t0 > DRIVE_START_S):
if isinstance(full.get("guard"), (list, tuple)):
raise FetchError(*full["guard"]) # robot/nav_guard.py ended it: the arm would hit something
if st != "succeeded":
raise FetchError(f"I couldn't get there (base: {st}).")
return