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:
@@ -89,17 +89,20 @@ bool isFinitePose(const robot_geometry_msgs::PoseStamped& pose)
|
||||
/// `dock_face_offset` và `dock_pivot_safety_margin` là override DockPlanner chỉ có tác dụng với
|
||||
/// `dock_anchor: mating_edge`; khai với `center` hoặc `face` khiến DockPlanner từ chối khởi tạo.
|
||||
/// 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.
|
||||
///
|
||||
/// 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
|
||||
/// dừng đúng tại đó khi manơ hoàn tất. Một khoá cho phép marker ép chiều khác sẽ mâu thuẫn với
|
||||
/// 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"
|
||||
"footprint_dock", "dock_anchor", "dock_face_offset", "dock_pivot_safety_margin",
|
||||
"dock_straight_length"
|
||||
};
|
||||
|
||||
constexpr const char* kOptionalMarkerPlannerParams[] = {
|
||||
"dock_face_offset", "dock_pivot_safety_margin"
|
||||
"dock_face_offset", "dock_pivot_safety_margin", "dock_straight_length"
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user