Files
pnkx_nav_core/config/runtime/maker_sources.yaml
duongtd ed1127be47 pnkx_nav_core 1.0 — every package with a remote is a submodule at its pinned commit
A single commit on an orphan branch, so this is the whole tree as it should
land on a robot, with no history from the branch it grew out of.

The rule applied: a package that has its own remote becomes a submodule; a
package that only ever lived inside this repository stays as ordinary files.
That comes to 27 submodules, 16 of them registered here for the first time.
They were sitting in the tree as plain clones, which looks right locally and is
empty on the robot - a clone of this repository would have carried the
directory names and none of the contents. That failure reports itself as "works
on my machine, not on the robot", and it is why this conversion happened.

Newly registered:

  src/Navigations/Packages/move_base2
  src/Algorithms/Packages/actions/dock_pattern_action
  src/Algorithms/Packages/recoveries/sbpl_recovery
  src/Algorithms/Packages/global_planners/sbpl_lattice_planner
  src/Algorithms/Packages/local_planners/{hybrid,mppi,priest}_local_planner
  src/Libraries/{action_core,angles,depth_image_proc,dock_pattern_detector}
  src/Libraries/{mission_adapters,recovery_core,robot_line_extraction}
  src/Libraries/{robot_sensor_ports,sbpl}

.gitignore had a rule - **/[Pp]ackages/* - that hid move_base2,
dock_pattern_action and sbpl_recovery from git status entirely, so they would
have been left out with nothing said about it. sbpl_recovery was found only by
walking the tree for .git directories and comparing against .gitmodules, not by
reading git status, which is the lesson worth keeping: an ignore rule makes a
missing package invisible to exactly the command you would use to look for one.
The exception is written for those three paths only rather than by loosening
the rule.

Every submodule points at the tip of the branch it was already pinned to, not
blindly at main. costmap_2d stays on dev_cam_intel; that branch exists for a
reason, and this tree carries field calibration that does not belong on main.
The other 26 are at the tip of main.

config/ is flattened into config/runtime/, matching the layout the nav core
reads. The .zip snapshots of old package states are gone - they were manual
backups, not build inputs.
2026-08-27 10:15:22 +07:00

94 lines
6.1 KiB
YAML

# =================================================================================================
# move_base2 — danh sách marker docking hợp lệ và cặp planner riêng của từng marker.
#
# Quy ước comment: dòng mô tả = LÀ GÌ / vì sao; `► Chỉnh:` = sửa thế nào cho đúng.
#
# Danh sách cho phép, dùng cho `BaseNavigation::dockTo(marker, ...)`.
#
# move_base2 docking quy `goal_frame` thành pose TUYỆT ĐỐI rồi chạy DockPlanner + local planner
# docking. Nó KHÔNG đọc bộ tham số per-marker của PNKXDockingLocalPlanner cũ (plugins,
# maker_goal_frame, delay, timeout, velocity, tolerance, lookahead) — những khoá đó nếu còn sót lại
# ở đâu đó cũng không có tác dụng.
# =================================================================================================
# Marker mà host được phép gửi xuống. Đây là ALLOW-LIST: tên không có trong dòng này bị từ chối
# ngay tại `dockTo`, không đi tới planner.
#
# ► Chỉnh: chỉ thêm/bớt TÊN, cách nhau bằng khoảng trắng. Giữ danh sách tối thiểu — mỗi tên thừa là
# một đường vào chưa được kiểm chứng. Sẽ bỏ hẳn khi `dockTo` được chuyển sang dock_sequences khai
# báo trong compound_actions_params.yaml.
maker_sources: trolley charger dock_station pallet
# Marker có entry ở đây dùng CẶP PLANNER RIÊNG. Marker rỗng, hoặc chỉ có trong `maker_sources` mà
# không nằm trong bảng này, sẽ dùng cặp `docking` mặc định của move_base_common_params.yaml.
#
# ► Chỉnh: chỉ khai marker nào THỰC SỰ cần planner khác mặc định. Tham số của planner nằm ở YAML
# riêng của plugin (dock_global_params.yaml, hybrid_local_planner_params.yaml), KHÔNG khai ở đây —
# trừ `footprint_dock` dưới đây.
#
# ── footprint_dock ────────────────────────────────────────────────────────────────────────────────
#
# Đa giác của ĐỐI TƯỢNG DOCK (kệ / trạm sạc), [m], trong frame của goal pose. KHÔNG phải footprint
# robot: footprint robot khai ở costmap và dùng cho collision check, còn khoá này vào khoảng dừng
# của DockCalc — điểm robot bắt đầu đoạn căn thẳng trước dock:
#
# alignment_distance = <extent mép robot dẫn đầu> + <extent tâm dock → mặt gần> + padding
#
# Chỉ dùng khi `dock_anchor: center`. Khai thiếu = dock bị coi là một điểm, robot tiến sát hơn dự
# tính đúng extent tới mặt gần.
#
# ── dock_anchor ───────────────────────────────────────────────────────────────────────────────────
#
# Goal pose của marker nằm ở đâu trên đối tượng dock:
# center — goal ở tâm footprint dock; DockPlanner cộng thêm extent từ tâm tới mặt tiếp cận
# (lấy từ footprint_dock). Mặc định khi không khai — giữ nguyên hành vi cũ.
# face — goal đã nằm ngay tâm MẶT tiếp cận; dock không đóng góp vào khoảng dừng,
# footprint_dock bị bỏ qua hoàn toàn (DockPlanner log info nếu vẫn khai).
#
# KHÔNG có khoá nào override chiều chạy của đoạn thẳng cuối. Chiều đó được SUY RA từ phía robot
# đứng so với goal, vì goal đã được offset sẵn từ tầng trên cho đúng manơ định làm — ép chiều bằng
# tham số sẽ mâu thuẫn với chính vị trí goal.
# Hai khoá này là các khoá DUY NHẤT trong bảng được rót xuống plugin:
# `PlannerRunner::bindDockingMarker()` chép chúng sang namespace của `global_planner` khai ngay bên
# trên, TRƯỚC khi instance được dựng, rồi dựng lại instance khi marker đổi.
#
# ⚠ Chỉ `DockPlanner` đọc hai khoá này. Marker nào khai `global_planner: TwoPointsPlanner` thì giá
# trị vẫn được chép sang namespace đó nhưng không ai đọc — không lỗi, không log, chỉ là không có
# tác dụng.
#
# ► Chỉnh: đo kích thước THẬT của từng loại kệ/trạm — chúng khác nhau, để trùng số là mất tác dụng
# của việc khai theo marker. Trục x là hướng robot tiến vào. Chọn `dock_anchor` theo cách teach
# goal của từng loại: goal teach ở mặt (pallet, charger) → face; goal teach ở tâm (trolley chui
# gầm) → center.
docking_marker_profiles:
# Mọi profile marker dùng HybridDockingLocalPlanner: CÙNG plugin hybrid nhưng là instance RIÊNG,
# đọc block `HybridDockingLocalPlanner` trong hybrid_local_planner_params.yaml (bản sao ĐẦY ĐỦ của
# block chạy tự do + override cho dock: bật plan_tf_freeze, tắt né vật cản, hạ vận tốc, siết dung
# sai goal). Khoá ở đây THẮNG `docking:` trong move_base_common_params.yaml.
trolley:
global_planner: DockPlanner
local_planner: HybridDockingLocalPlanner
# Goal ở trọng tâm xe trolley (robot chui gầm) → cộng extent tâm→mặt từ footprint_dock.
dock_anchor: center
footprint_dock: [[0.583,-0.48],[0.583,0.48],[-0.583,0.48],[-0.583,-0.48]]
charger:
global_planner: DockPlanner
local_planner: HybridDockingLocalPlanner
# Goal teach ngay tâm mặt trạm sạc. Chỉ có tác dụng nếu đổi sang DockPlanner.
dock_anchor: face
footprint_dock: [[0.583,-0.48],[0.583,0.48],[-0.583,0.48],[-0.583,-0.48]]
dock_station:
global_planner: TwoPointsPlanner
local_planner: HybridDockingLocalPlanner
dock_anchor: center
footprint_dock: [[0.583,-0.48],[0.583,0.48],[-0.583,0.48],[-0.583,-0.48]]
pallet:
global_planner: DockPlanner
local_planner: HybridDockingLocalPlanner
# Goal teach ở tâm mặt pallet → dock không đóng góp khoảng dừng, footprint_dock bị bỏ qua.
dock_anchor: center
footprint_dock: [[0.5,-0.5],[0.5,0.5],[-0.5,0.5],[-0.5,-0.5]]