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:
@@ -244,6 +244,7 @@ bool CostmapEnvironment::sampleGeometry(const EnvGeometryRequest& r, EnvGeometry
|
||||
cost_params.target_backoff = r.sampling->target_backoff;
|
||||
cost_params.robot_snap = r.sampling->robot_snap;
|
||||
cost_params.exit_ahead = r.sampling->exit_ahead;
|
||||
cost_params.target_snap = r.sampling->target_snap;
|
||||
out.cost = costToGo(*r.plan, r.from_index, gx, gy, cost_params, plan_to_grid, scratch_);
|
||||
CorridorParams corridor_params;
|
||||
corridor_params.horizon = r.sampling->horizon;
|
||||
|
||||
Reference in New Issue
Block a user