Files
move_base2/config/runtime/costmap_local_params.yaml
duongtd 42b03e0d78 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.
2026-11-10 16:38:10 +07:00

40 lines
2.6 KiB
YAML
Executable File

local_costmap:
library_path: libplugins
global_frame: odom
robot_base_frame: base_link
# [Hz] Tần số update local costmap. Nâng 6 -> 10 sau khi bật snapshot_for_readers (hết tranh chấp
# mutex với planner): latency vật cản vào costmap 167 ms -> 100 ms. Trần hữu ích ~15 Hz (bằng tần số
# sensor); nâng cao hơn nữa chỉ tốn CPU, không thêm thông tin.
update_frequency: 10.0
publish_frequency: 6.0
# [bool] Local costmap không tính đồ thị tham chiếu. Giữ false: local là rolling_window, bật sẽ bị từ chối khởi tạo.
reference_graph_enabled: false
# [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.
performance_metrics_enabled: false
# [s] Chu kỳ in báo cáo thống kê. Tăng lên thì log thưa hơn, số trung bình mượt hơn.
performance_metrics_period: 5.0
# [0..2] Mức chi tiết debug trong báo cáo thống kê, chỉ có tác dụng khi performance_metrics_enabled: true.
# 0 = giữ nguyên output cũ; 1 = thêm dòng lock_wait/lock_hold (tranh chấp mutex với planner),
# kích thước window update [cells] và số cycle rỗng; 2 = thêm per-layer: layer nào nở bounds bao nhiêu [m^2].
debug_level: 0
# [bool] Local planner tính toán trên BẢN COPY (snapshot) của costmap thay vì lưới live.
# true: mỗi control cycle copy lưới dưới lock ~vài us rồi planner solve trên bản copy — thread
# update costmap không còn bị planner chặn 20-50 ms mỗi lần solve (lock_wait trong Costmap debug
# phải tụt về ~0). Planner vẫn thấy lưới "đông cứng" suốt lượt tính, y như khoá dài trước đây.
# false: hành vi cũ — giữ mutex suốt computeVelocityCommands. Đây là công tắc rollback: có vấn đề
# thì đặt false, không cần build lại.
snapshot_for_readers: true
rolling_window: true
raytrace_range: 3.0
resolution: 0.05
z_resolution: 0.15
z_voxels: 8
inflation:
cost_scaling_factor: 10.0 # Exponential rate at which the obstacle cost drops off (default: 10). Must be chosen so that the cost value is > 0 at robot's circumscribed radius.
inflation_radius: 0.3 # Max. distance from an obstacle at which costs are incurred for planning paths. Must be > robot's circumscribed radius.
width: 8.0
height: 8.0
origin_x: 0.0
origin_y: 0.0