diff --git a/simulation/ai-polygon/nav2/check_http_integration.py b/simulation/ai-polygon/nav2/check_http_integration.py index 1091a934..a7d25046 100644 --- a/simulation/ai-polygon/nav2/check_http_integration.py +++ b/simulation/ai-polygon/nav2/check_http_integration.py @@ -213,6 +213,41 @@ def main(): # Warm the costmaps through normal planning before invoking a behavior; # lifecycle activation alone does not publish their first observation. assert result['controller_goal'][0]=='path',result + # Synthetic measured odometry enters Nav2's unchanged 40 cm region, + # while remaining outside the legacy mission recovery's 30 cm region. + # A capture refresh must return completion, not restart FollowPath. + reached=[.65,0.,.37,0.,0.,0.,1.] + with condition: + state.update(pose=reached,enabled=True) + retreat.update(pose=reached,observation_id='local-action-complete') + time.sleep(.15) + deadline=time.monotonic()+3 + completion_plans=[] + while True: + result=request('/plan',retreat) + completion_plans.append(result) + if result.get('action_result') is not None: + break + assert time.monotonic()