feat(env_monitor): cổng đứng yên cho kStall — không dịch chuyển suốt idle_window_s là kẹt

stall/idle_window_s 25 s: dịch chuyển thực < disp_min suốt cửa sổ thì giơ stall kể cả khi lệnh
tích luỹ không đủ để đo eff (PRIEST bò 0,03–0,15 m/s tại chỗ 30 s với blocked_ahead cost 253 mà
không khai bất khả thi — run 6/9 10:57, cổng dịch chuyển câm vì lệnh 12 s < 1,5 m, kUnreachable
mới gỡ ở 75 s). Thử offline trên 7 lượt JSONL: mở đúng hai ca quần tại chỗ, 0 lần ở ba lượt sạch.
Ring vị trí 192 mẫu; verdict/JSONL/dòng 1 Hz thêm `idle`.

Sim 6/9 15:18 (map tĩnh + fake_pedestrians): 2 mission tới goal, 2 detour đều của PRIEST,
EnvMonitor 0 cờ, 0 idle, 0 unreachable.

Test: env_monitor 45/45 (+2), 10 bộ còn lại pass; YAML ↔ reader 66/66.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xXjFjr2DQ6rhmhHSW4fk4
This commit is contained in:
2026-09-06 15:21:57 +07:00
parent c0a04b29ad
commit a9785b99ee
7 changed files with 78 additions and 10 deletions

View File

@@ -797,7 +797,7 @@ void ControlLoop::updateEnvMonitor(const robot::Time& now, double dt,
env_verdict_.unreachable_detected ? 1 : 0, env_verdict_.unreachable_muted ? "(muted)" : "",
env_verdict_.brake ? 1 : 0, env_verdict_.contact_standdown ? 1 : 0,
env_verdict_.replan_budget_left, env_verdict_.net_disp,
env_verdict_.wandering ? " WANDERING" : "");
env_verdict_.wandering ? " WANDERING" : (env_verdict_.idle ? " IDLE" : ""));
}
if (env_logger_ && (s.geometry_valid || env_verdict_.event[0] != '\0'))
{