feat(env_monitor): cổng giam vùng cho kStall — đi nhiều mà ở trong vòng nhỏ là loanh quanh
stall/confine_window_s 20 s, confine_radius 1,2 m, confine_cmd_factor 1,5: trong cửa sổ mọi vị trí nằm trong vòng bán kính < 1,2 m quanh tâm của chúng và lệnh tích luỹ >= 1,5 x max(2 x bán kính, disp_min) thì giơ stall (không cần geodesic — đi tới đi lui làm eff lật dấu). Cổng dịch chuyển đo đầu–cuối nên mù với vòng bán kính > 0,3 m; cổng đứng yên chỉ bắt gần như đứng. Replay 8 lượt JSONL 5–6/9: bắt 00:05 (101 s thay vì 206), 10:57 (27 s thay vì 75), 23:37; 0 lần ở 5 lượt sạch. Hệ số lệnh chặn ca bò thẳng chậm sau người. Verdict/JSONL/dòng 1 Hz thêm confined, region_radius. Sim 6/9 15:46: 2 mission tới goal, 0 cờ oan, cổng giam vùng không mở (không có ca loanh quanh trong lượt), kUnreachable 1 cờ đúng (cùng lúc PRIEST khai). Test: env_monitor 47/47 (+2), 10 bộ còn lại pass; YAML ↔ reader 69/69. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017xXjFjr2DQ6rhmhHSW4fk4
This commit is contained in:
@@ -284,6 +284,9 @@ void readEnvMonitor(robot::NodeHandle& nh, MoveBase2Config& config)
|
||||
readDouble(stall_nh, "disp_min", m.stall.disp_min);
|
||||
readDouble(stall_nh, "disp_min_commanded", m.stall.disp_min_commanded);
|
||||
readDouble(stall_nh, "idle_window_s", m.stall.idle_window_s);
|
||||
readDouble(stall_nh, "confine_window_s", m.stall.confine_window_s);
|
||||
readDouble(stall_nh, "confine_radius", m.stall.confine_radius);
|
||||
readDouble(stall_nh, "confine_cmd_factor", m.stall.confine_cmd_factor);
|
||||
|
||||
robot::NodeHandle unreach_nh(env_nh, "unreachable");
|
||||
readBool(unreach_nh, "enabled", m.unreachable.enabled);
|
||||
|
||||
Reference in New Issue
Block a user