Separate Nav2 body collision from ground search costs

This commit is contained in:
DCCONSTRUCTIONS
2026-10-09 12:22:26 +03:00
parent 39dd3bb551
commit 51406fc90c
6 changed files with 192 additions and 7 deletions
@@ -83,6 +83,17 @@ class ObservedRecovery:
# mission arrival. No camera permission is needed to stop an action.
self.completion = completion
return
if (self.selected is not None and self.selected.get("kind") != "orient"
and result.get("status") == "blocked"
and result.get("speed_mps") == result.get("yaw_rate_rps") == 0.
and completion == dict(status="aborted",
kind="backup" if self.selected["reverse"] else "path",
goal_xy=list(self.selected["goal"][:2]))):
# The bound native action has ended, so waiting cannot produce a
# new command. Retire this option; an abort does not invent an
# obstacle or authorize a replacement manoeuvre.
self.blocked_option = True
return
if not self.view_current(pose, seconds):
return
failure = result.get("diagnostic", {}).get("failure")