config: khoá metrics/debug/snapshot cho costmap (mặc định tắt) + bump costmap_2d

Đồng bộ schema từ cây move_base2/config/runtime: performance_metrics_enabled,
performance_metrics_period, debug_level, snapshot_for_readers — bản này là
default trung tính nên toàn bộ để tắt/0/false; cây đang chạy khi test là
move_base2/config/runtime (ở đó metrics+snapshot bật).

Bump submodule costmap_2d 3196a19 -> 84c8378: debug metrics updateMap +
snapshot API cho reader (chi tiết ở log submodule).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-20 20:19:59 +07:00
parent fccd377505
commit 3a991c2e2a
3 changed files with 29 additions and 1 deletions

View File

@@ -4,6 +4,19 @@ global_costmap:
global_frame: map
update_frequency: 1.0
publish_frequency: 1.0
# [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] Reader tính toán trên BẢN COPY (snapshot) của costmap thay vì lưới live — xem giải thích
# ở costmap_local_params.yaml. Global để false: global planner chưa chuyển sang snapshot.
snapshot_for_readers: false
raytrace_range: 3.0
resolution: 0.05
z_resolution: 0.2

View File

@@ -4,6 +4,21 @@ local_costmap:
robot_base_frame: base_link
update_frequency: 6.0
publish_frequency: 6.0
# [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 trong lúc solve. false: hành vi cũ (khoá dài suốt
# computeVelocityCommands). Bản mặc định để false — cây đang chạy là move_base2/config/runtime.
snapshot_for_readers: false
rolling_window: true
raytrace_range: 3.0
resolution: 0.05