feat(planner_runner): bind dock_maximum_cusp_distance per docking marker

Copies the per-marker cusp-to-goal cap to the DockPlanner namespace and clears it
with YAML null when the next marker does not declare it. dock_global_params.yaml
gets the default maneuver/maximum_cusp_distance: 0.0 (no cap).
This commit is contained in:
2026-11-12 16:28:15 +07:00
parent dd0a657947
commit 154fb7d091
4 changed files with 62 additions and 5 deletions

View File

@@ -91,6 +91,7 @@ bool isFinitePose(const robot_geometry_msgs::PoseStamped& pose)
/// Nếu marker sau không khai, giá trị cũ được đặt YAML null để plugin trở về mặc định.
/// `dock_straight_length` overrides the terminal straight length for any dock anchor; it is
/// likewise cleared with YAML null when the next marker does not declare it.
/// `dock_maximum_cusp_distance` also applies to any anchor and is cleared the same way.
///
/// KHÔNG có `terminal_direction` ở đây, và cố ý như vậy: chiều chạy của đoạn thẳng cuối được SUY RA
/// từ phía robot đứng so với goal (`dock_calc.cpp`), vì tầng trên đã offset goal sao cho base_link
@@ -98,11 +99,12 @@ bool isFinitePose(const robot_geometry_msgs::PoseStamped& pose)
/// chính vị trí goal, nên khoá đó đã được gỡ thay vì hiện thực.
constexpr const char* kMarkerPlannerParams[] = {
"footprint_dock", "dock_anchor", "dock_face_offset", "dock_pivot_safety_margin",
"dock_straight_length"
"dock_straight_length", "dock_maximum_cusp_distance"
};
constexpr const char* kOptionalMarkerPlannerParams[] = {
"dock_face_offset", "dock_pivot_safety_margin", "dock_straight_length"
"dock_face_offset", "dock_pivot_safety_margin", "dock_straight_length",
"dock_maximum_cusp_distance"
};
/**