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.
This commit is contained in:
2026-08-26 21:09:48 +07:00
parent 715e2ef8e3
commit 1a961b8c62
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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