config(runtime): lane route planner, zone layers, trolley detection, MPCC profiles

- Position profile uses LaneRoutePlanner with PriestMpccLocalPlanner; new
  lane_route_planner_params.yaml, mpcc_local_planner_params.yaml and
  priest_mpcc_local_planner_params.yaml.
- Global costmap: DirectionalLayer plus forbidden/preferred/unpreferred zone
  layers (directional_layer_params.yaml) and the reference graph keys; the
  local costmap keeps the reference graph off.
- TrolleyDetectionActionHandler and a DetectTrolley compound action.
- Dock global planner notes (mating_edge, dock_face_offset), priest planner
  tuning, sbpl primitive path moved to pnkx_nav_core.
- Sim launch defaults to robot_type hook_150.
This commit is contained in:
2026-11-10 16:38:10 +07:00
parent 051e18f989
commit 42b03e0d78
19 changed files with 1068 additions and 125 deletions

View File

@@ -4,6 +4,23 @@ global_costmap:
global_frame: map
update_frequency: 1.0
publish_frequency: 1.0
# [bool] Tính sẵn đồ thị tham chiếu (Voronoi và làn một chiều) khi đổi map, cho LaneRoutePlanner.
# Chạy trên luồng nền, ưu tiên thấp, không chặn update costmap. Tắt thì không có luồng và LaneRoutePlanner luôn báo fail.
# Không được bật cùng rolling_window: true (từ chối khởi tạo costmap). Bật tốn thêm vài chục MB RAM khi map lớn.
reference_graph_enabled: true
# [m] Ô ridge gần vật cản hơn mức này thì bỏ. Tăng: mất các lối hẹp khỏi đồ thị.
# Giảm: thêm cạnh sát tường, planner vẫn tự kiểm footprint nên không nguy hiểm.
# 0.335 là số đã đánh giá offline với footprint vuông 0.30 m, robot KIT dùng 0.36.
# Sim đang chạy hook_150 (nửa rộng 0.1955 m) nên có thể bỏ sót lối hẹp mà robot này đi lọt.
reference_graph_min_clearance_m: 0.335
# [m] Hai vật cản gần hơn mức này coi là một. Tăng: ít nhánh hơn, dễ mất lối hẹp.
reference_graph_ridge_min_separation_m: 0.7
# [m] Nhánh cụt ngắn hơn mức này thì bỏ. Giảm: nhiều nhánh nhỏ, tra đường chậm hơn.
reference_graph_spur_min_length_m: 1.0
# [m] Khoảng cách các làn song song trong một zone. Giảm: nhiều làn dự phòng hơn, đồ thị lớn hơn.
reference_graph_lane_offset_step_m: 0.5
# [bool] Log một dòng [debug] mỗi lần tính xong (số nút, cạnh, làn, thời gian). Log lỗi không tắt được.
reference_graph_debug_log: true
# [bool] Bật log thống kê thời gian update costmap (avg/p95/p99 mỗi cycle + per-layer).
# Chỉ dùng khi đo đạc/tối ưu; log in mỗi performance_metrics_period giây, tắt đi khi chạy thật.
# Lưu ý: key này phải nằm TRONG namespace local_costmap/global_costmap — đặt ở root file common là key chết.