From 1a961b8c62353872a1f8e88a76f4d5bf848c8c49 Mon Sep 17 00:00:00 2001 From: duongtd Date: Wed, 26 Aug 2026 21:09:48 +0700 Subject: [PATCH] config: load arc_span_tolerance, and set the test arc span to the true value arc_span is now checked on both sides with its own tolerance, so the profile has to name the arc's REAL span rather than a padded upper bound. Padding it loosens the gate in the dangerous direction - it accepts runs where an edge is hidden and the axis is therefore wrong. --- plugins/dock_pattern_action_handler.cpp | 1 + test/config/action_handlers_params.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/dock_pattern_action_handler.cpp b/plugins/dock_pattern_action_handler.cpp index 692fffa..8a2f102 100644 --- a/plugins/dock_pattern_action_handler.cpp +++ b/plugins/dock_pattern_action_handler.cpp @@ -365,6 +365,7 @@ private: nh_param(p_nh, "arc_radius", profile.arc_radius); nh_param(p_nh, "arc_radius_tolerance", profile.arc_radius_tolerance); nh_param(p_nh, "arc_span", profile.arc_span); + nh_param(p_nh, "arc_span_tolerance", profile.arc_span_tolerance); nh_param(p_nh, "arc_min_span", profile.arc_min_span); nh_param(p_nh, "arc_max_rms", profile.arc_max_rms); nh_param(p_nh, "arc_max_point_gap", profile.arc_max_point_gap); diff --git a/test/config/action_handlers_params.yaml b/test/config/action_handlers_params.yaml index c961d4e..f0a3276 100644 --- a/test/config/action_handlers_params.yaml +++ b/test/config/action_handlers_params.yaml @@ -73,7 +73,8 @@ actions_dock: pattern: arc arc_radius: 0.40 # [m] arc_radius_tolerance: 0.06 # [m] - arc_span: 2.2 # [rad] góc mở toàn phần của máng + arc_span: 2.0 # [rad] góc mở THẬT của máng + arc_span_tolerance: 0.20 # [rad] hai phía arc_min_span: 0.52 # [rad] sàn để tin phép khớp arc_max_rms: 0.010 # [m] cổng chính chống nhầm góc tường thành cung min_arc_points: 8