Choose local passage centres before route guidance
This commit is contained in:
@@ -707,6 +707,9 @@ class ComposedInference:
|
||||
and self.mission.can_query_arrival(pose)
|
||||
and np.linalg.norm(np.asarray(pose[:2]) - arrival_target) <= 3.5
|
||||
)
|
||||
route_transition_nearby = bool(not recovering and arrival_target is not None
|
||||
and isinstance(self.mission, RoutedMission)
|
||||
and math.dist(pose[:2], arrival_target) <= 3.5)
|
||||
terminal_region = bool(
|
||||
nearby
|
||||
and math.dist(pose[:2], arrival_target)
|
||||
@@ -840,7 +843,7 @@ class ComposedInference:
|
||||
if arrival_candidate or body_goal_query
|
||||
else None,
|
||||
"route_transition_target": arrival_target
|
||||
if nearby and isinstance(self.mission, RoutedMission) else None,
|
||||
if route_transition_nearby else None,
|
||||
"max_speed_mps": min(self.max_speed, 0.1)
|
||||
if intent["state"] == "reversing" or intent.get("corner_approach")
|
||||
else min(self.max_speed, inputs.get("source.crossing-admission", {}).get("speed_limit_mps") or self.max_speed),
|
||||
|
||||
Reference in New Issue
Block a user