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

@@ -180,6 +180,7 @@ void EnvLogger::record(const robot::Time& now, const EnvSample& s, const EnvVerd
appendField(o, "replan_budget_left", v.replan_budget_left);
appendField(o, "net_disp", v.net_disp);
appendField(o, "wandering", v.wandering);
appendField(o, "idle", v.idle);
appendField(o, "event", v.event);
o.pop_back(); // dấu phẩy cuối
o += "}\n";