The charger goal heading always pointed out of the station, so only robots that reverse onto the charger were supported. Front-charging robots now set `entry_direction: forward` (goal yaw + pi, position unchanged) together with a front `scan_topic`. The default stays `backward`, so existing configs keep their behaviour. Once per run the handler looks up base_link <- scan frame and: - fails the action if the scan plane is tilted more than 5 deg; - fails the action if the lidar faces the side opposite to entry_direction, instead of writing a reversed goal; - mirrors the bearings when the lidar is mounted upside down (roll pi), as the trolley handler does. No config key is needed for that. Tests: forward vs backward, direction mismatch, upside-down V / taped V / arc, tilted scan plane, invalid entry_direction.
34 KiB
34 KiB