Restore observed recovery through native Nav2
This commit is contained in:
@@ -394,8 +394,12 @@ class ComposedInference:
|
||||
self.source = source_for_rig(self.inputs["sensors"])
|
||||
self.optics = None
|
||||
self.task_view_intent = TaskViewIntent()
|
||||
# Native Nav2 BackUp follows the current body axis. The legacy CMU
|
||||
# controller also supports rear arcs; keep their intent limits distinct.
|
||||
self.observed_goals = (
|
||||
ObservedGoals() if self.inputs["sensors"]["schema_version"] in
|
||||
ObservedGoals(reverse_heading_tolerance=(.12 if any(
|
||||
n.module.module_id == "simulation-nav2-navigation" for n in self.graph.nodes
|
||||
) else math.pi/4)) if self.inputs["sensors"]["schema_version"] in
|
||||
{MOUNTED_SENSOR_SCHEMA, CONTINUOUS_SENSOR_SCHEMA} else None
|
||||
)
|
||||
if "mounts" in self.inputs["sensors"]:
|
||||
@@ -523,7 +527,8 @@ class ComposedInference:
|
||||
self.body_goal_waypoint = self.body_goal_phase_key = None
|
||||
self.task_view_intent = TaskViewIntent()
|
||||
if self.observed_goals is not None:
|
||||
self.observed_goals = ObservedGoals()
|
||||
self.observed_goals = ObservedGoals(
|
||||
reverse_heading_tolerance=self.observed_goals.reverse_heading_tolerance)
|
||||
self.mission.resume()
|
||||
self.navigation.request("/reset", {})
|
||||
deadline = time.monotonic() + 8
|
||||
|
||||
Reference in New Issue
Block a user