Bound corridor ranking work and retire aborted local actions

This commit is contained in:
DCCONSTRUCTIONS
2026-10-09 14:36:52 +03:00
parent 25e8fb7e43
commit c43b097a3a
4 changed files with 138 additions and 13 deletions
@@ -140,7 +140,7 @@ class WaypointMission:
self.goal = None
def reject_local_plan(self, result, pose, seconds, execution_inputs_sha256):
"""Retire an intermediate intent after its bound native planner abort.
"""Retire an intermediate intent after its bound native planner/action abort.
This is not an obstacle label or motion permission. The next observed
candidate must obtain its own native path and current command admission.
@@ -154,8 +154,13 @@ class WaypointMission:
if (result.get("route_observation", {}).get("observation") == expected
and result.get("status") == "blocked"
and result.get("speed_mps") == result.get("yaw_rate_rps") == 0.
and result.get("planning_result") == dict(
status="aborted", goal_xy=list(self.goal[:2]))):
and (result.get("planning_result") == dict(
status="aborted", goal_xy=list(self.goal[:2]))
or result.get("action_result") == dict(
status="aborted", kind="path", goal_xy=list(self.goal[:2])))):
# A terminated FollowPath cannot recover by waiting on the same
# handle. Try another currently observed goal, under the existing
# retry/progress budgets, before entering a full survey/retreat.
rejected = list(self.goal)
self.retire_local_goal(self.arrival_target(), failed=True)
if self.goal is None: