Finds a 4-leg trolley in a raw LaserScan without line extraction: shadow filter, leg clusters in ray order with free/occluded/attached edges, pair hypotheses from cart_opening/cart_depth/diagonal, then a Gauss-Newton pose fit over every leg point with an along-ray residual, Huber weights and backtracking. Gates: pair spacing after the fit, see-through leg positions, optional empty interior, entry side (entry tape / prior yaw / facing the sensor), optional prior, confidence, and ambiguity between two carts. LegProfile validates every key at load. Two gtests (7 + 23) run on a synthetic ray-cast scan (test/leg_scan_sim.h). Used by trolley_detection_action.
6.2 KiB
6.2 KiB