DockPatternActionHandler detects the dock from raw LiDAR instead of taking a pose perception already computed over TF, so it can reject a wrong candidate inside a single scan - supporting rays per wing, fit error, vertex angle, wing length - rather than relying on agreement across many samples. DetectCharger moves from detect to detect_lidar; detect keeps DetectPallet. Both handlers cannot claim the same actionType, and in simulation detect runs use_simulated_goal, which fabricates the pose rather than detecting anything. Three profiles. v_std matches the Gazebo dock_plate_v model, v_wide is a second shape to show how an order picks one by name, and v_tape is v_std with the reflective-tape check turned on. The tape group is off in v_std and v_wide. Turned on, a candidate that already passed every geometric gate must also carry two runs of bright rays the right distance apart. Geometry alone cannot answer the question that matters in a warehouse - every wall corner and every pair of pallets at a right angle is a V of some size - and none of them carry reflective tape at the expected spacing. v_tape exists as a separate profile rather than as a switch inside v_std because v_std works today and a new feature should not change the behaviour of something that works. Once it has run on the robot, move the tape_* group into v_std and drop this profile. Measured in the sim on the parked robot, 8 and 13 bright rays: spacing 0.196 m against 0.195 configured, widths 0.120 and 0.119 m against 0.120. It settled in 0.65 s over 5 detections, against 1.90 s over 31 for v_std on the same scene. tape_min_intensity carries each sensor's own units - Gazebo passes laser_retro through untouched, a real nanoscan3 does not - so it has to be measured on the sensor in use, not copied from here. The tuning in the detect block is deliberately left out of this commit; it is someone else's in-flight work on the same file.
26 KiB
26 KiB