Files
dock_pattern_detector/include
duongtd 791c838da8 fix: two segments adjacent by ray number can still be metres apart
Grouping segments into an arc candidate keyed only on ray index, and that is
not the same question as whether they lie on one surface: the next ray along
can land on something several metres away.

Found in Gazebo, not in a synthesized scene. The four segments of a cradle sat
two rays away from a 6.6 m wall behind it, so the wall was absorbed into the
group; the circle fitted over all of it came out at radius 3.2 m with a 0.11 m
residual, and the real cradle was rejected because of something that was not
part of it. The regression test reproduces the same signature - radius 1.38 m,
residual 0.20 m - and passes once the gap is checked.

arc_max_point_gap is the euclidean distance between the two facing endpoints,
and it belongs at or below the extractor's max_line_gap. Set it higher and the
matcher rejoins exactly what the extractor just separated, which it separated
for a reason.
2026-08-26 20:39:37 +07:00
..