If the laserrescan-driver is used to generate an interpolated scan with an angle that doesn't completely overlap the angle of the original laser-range-finder it generates values for single beams (the first one) which are over 600 meters.
original scan( min_angle -1,57 max_angle 1,57, scan_count 511)
interpolated scan( min_angle: -1,5708 max_angle: 1,5708 scan_count 181)
This large value produced crashes of other drivers for mapping (usually bad_allocs)
- fixed the bug that produced the really high value (caused by casting from small negative value to unsigned int)
- print a warning of the angles of original and interpolated scan don't overlap completely.
I don't know what format to use for patches so I attached my complete version of laserrescan.cc