feat: cap the single_cusp cusp-to-goal straight (maximum_cusp_distance, per-marker override)

maneuver/maximum_cusp_distance [m] bounds the reverse/forward straight from the
cusp to the goal; 0 keeps the old unlimited behaviour. dock_maximum_cusp_distance
overrides it per docking marker for every dock_anchor. A cusp beyond the cap
rejects single_cusp so the planner tries the remaining shapes.
This commit is contained in:
2026-11-12 16:28:11 +07:00
parent c94c5b2b0c
commit 422a505c3d
7 changed files with 173 additions and 4 deletions

View File

@@ -101,6 +101,12 @@ DockPlanner:
# xuống để đẩy sớm sang kiểu 2.
maximum_forward_extension: 3.0
# [m] Trần đoạn thẳng từ cusp tới goal của single_cusp (khoảng xuất phát dọc trục + phần tiến thêm).
# 0 = không giới hạn; vượt trần thì bỏ hình cusp và thử hình xoay, hết hình khả dụng thì báo fail.
# Giảm giúp tránh lùi thẳng quá dài nhưng dễ fail khi robot xuất phát xa goal.
# Marker có thể ghi đè bằng dock_maximum_cusp_distance trong maker_sources.yaml.
maximum_cusp_distance: 0.0
# [m] Bật kiểu 1 (direct_entry — một cung hội tụ vào trục goal rồi đi thẳng
# vào, giữ nguyên một chiều chạy) khi khoảng chỗ còn lại cho cung — khoảng
# cách dọc trục từ robot tới goal trừ độ dài đoạn thẳng cuối — vượt số này.