feat(planner_runner): bind dock_straight_length per docking marker

A docking marker profile can now override DockPlanner's
terminal/straight_length with dock_straight_length (dock_planner c94c5b2).
It goes through the same path as dock_face_offset and
dock_pivot_safety_margin: copied into the planner namespace when the marker
declares it, written as YAML null when the next marker does not, so one
marker's value never leaks into another and the global default stays
untouched. Valid for every dock_anchor.

- Test: copied for the marker that declares it, null and rebuilt for the
  next marker, restored when the first marker comes back, and
  terminal/straight_length is never written.
- maker_sources.yaml / dock_global_params.yaml: document the key.
This commit is contained in:
2026-11-12 15:44:14 +07:00
parent 5882082172
commit 0d00c22fe8
4 changed files with 54 additions and 5 deletions

View File

@@ -153,6 +153,7 @@ DockPlanner:
# khi vào dock, ĐỔI LẠI ăn vào chỗ dành cho cung, nên đặt lớn quá sẽ đẩy plan
# sang kiểu có cusp hoặc kiểu xoay tại chỗ.
# Với mating_edge + dock_face_offset, terminal floor không còn là rear_extent nên straight_length (ví dụ 0.2 m) quyết định độ dài terminal.
# Marker có thể ghi đè bằng dock_straight_length trong maker_sources.yaml.
straight_length: 0.4
sampling: