Commit Graph

3 Commits

Author SHA1 Message Date
a4e6bb2970 feat: chế độ snapshot costmap cho controller + bật metrics, nâng local 10 Hz
controller_runner: 3 điểm khoá (setPlan/computeVelocityCommands/isGoalReached)
— snapshot bật thì refreshSnapshot() (lock ngắn bằng memcpy) thay cho giữ mutex
suốt lượt plugin chạy; snapshot tắt giữ nguyên lock dài cũ. Rollback bằng
config, không cần build.

config runtime: performance_metrics_enabled + debug_level 1 (key phải nằm TRONG
namespace local_costmap/global_costmap — bản root ở costmap_common là key chết);
snapshot_for_readers local=true, global=false (global planner chưa migrate);
update_frequency local 6 -> 10 Hz sau khi hết tranh chấp.

Số đo sim trước/sau: lock_wait local median 7.5 ms (max 53 ms) -> ~0 (max 13 us),
p99 cycle 21.4 -> 3.4 ms; 10 Hz chạy 0 lần rớt nhịp, thread costmap 1.2% một core.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 20:19:46 +07:00
20ae52ea84 update 2026-08-09 19:17:02 +07:00
d8babff20b optimal 2026-07-30 09:24:47 +07:00