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
+3 -3
View File
@@ -715,9 +715,9 @@ def go_point(body: PointBody):
send_to_assistant("go_point", point=[body.x, body.y, body.theta])
return {"ok": True, "by": "assistant"}
part(fetch_head_ahead)
r = agv.request(f"/api/move?location={body.x:.3f},{body.y:.3f},{body.theta:.3f}")
if r.get("status") != "OK":
raise HTTPException(502, f"AGV refused: {r.get('error_message') or r}")
ok, msg = agv.go_point(body.x, body.y, body.theta)
if not ok:
raise HTTPException(502, f"AGV refused: {msg}")
return {"ok": True}