Separate Nav2 body collision from ground search costs
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user