feat(env_monitor): snap điểm thoát sang ô free trước khi kết luận mất liên thông; bật lại kUnreachable
- CostToGoParams::target_snap / geometry/target_snap 0,5 m: T (2 m dọc plan) không free và lùi dọc plan không thoát thì dịch ngang sang ô free gần nhất (Target::kSnapped), arc_rest vẫn theo index; chỉ khi snap thất bại mới kBlockedExit. Run 6/9 10:15: mọi "unreachable" đều là T nằm trong vành 0,48 m vì SBPL vẽ plan ôm mép vật cản giữa hành lang rộng 1,55 m — không phải mất liên thông. - unreachable/action: recover, static_on 1,5 s. - Test: grid_analysis +2 (plan ôm tường snap ra và có đường; cụm chắn ngang vẫn bịt với snap 0,5). Sim 6/9 10:38: 0 cờ unreachable, 0 cờ oan, 2 mission tới goal, 2 detour đều của PRIEST. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017xXjFjr2DQ6rhmhHSW4fk4
This commit is contained in:
@@ -352,6 +352,7 @@ void readEnvMonitor(robot::NodeHandle& nh, MoveBase2Config& config)
|
||||
readDouble(geo_nh, "track_back", s.track_back);
|
||||
readDouble(geo_nh, "track_ahead", s.track_ahead);
|
||||
readDouble(geo_nh, "exit_ahead", s.exit_ahead);
|
||||
readDouble(geo_nh, "target_snap", s.target_snap);
|
||||
|
||||
robot::NodeHandle stall_nh(env_nh, "stall");
|
||||
readBool(stall_nh, "enabled", m.stall.enabled);
|
||||
|
||||
Reference in New Issue
Block a user