ros-perception / laser_filters

Assorted filters designed to operate on 2D planar laser scanners, which use the sensor_msgs/LaserScan type.
BSD 3-Clause "New" or "Revised" License
166 stars 204 forks source link

fix nan bug #28

Closed JRombouts closed 9 years ago

JRombouts commented 9 years ago

This fixes a bug in the shadow filter which can occur if there are nan values in the incoming scan.

vrabaud commented 9 years ago

shouldn't you do something with scan_in.ranges[j] then ?

JRombouts commented 9 years ago

Hmm - only adding the check on scan_in.ranges[i] solves my crashes. I will close this pull request for now while I figure this out :).