feat(costmap_2d): background reference graph, shared keys under root:

- ReferenceGraph / ReferenceGraphWorker: Voronoi ridges and one-way lanes are
  computed on a low-priority thread when the map changes (reference_graph_*
  keys, off with rolling_window), with unit tests.
- Shared costmap keys can live in a root: map or flat at the top of the YAML;
  costmap_common_root_test covers both layouts.
- Static and directional layers report map changes to the layered costmap.
This commit is contained in:
2026-11-10 16:37:55 +07:00
parent f5d190a3d0
commit 5034029c6e
25 changed files with 3445 additions and 21 deletions

View File

@@ -53,6 +53,11 @@ Tham số có ba tầng ưu tiên, tầng sau ghi đè tầng trước:
3. Tham số trong `robot::NodeHandle`, thường được launch nạp cho
`global_costmap` hoặc `local_costmap`.
Các khóa chung có thể nằm trong map `root:` hoặc trực tiếp ở đầu cây YAML (flat).
Khi có `root:`, costmap chỉ lấy khóa chung từ map đó; nếu không có thì dùng layout
flat. Khóa trong `<costmap>/<plugin>` được ưu tiên, còn block plugin chung chỉ
bổ sung những khóa chưa được costmap đặt.
Biến môi trường `PNKX_NAV_CORE_CONFIG_DIR` phải trỏ tới thư mục cha có thư mục
con `config/`. Hàm nạp sẽ tìm đệ quy các file sau: