ros-perception/laser_filters — pull request #10 by mateiciocarlie (2013-06-04 18:25:19+00:00)
Title: checking if histogram entry is below 0

If laser scan came in with bogus intensity values (which it does in simulation) this would cause the histogram creation to segfault if trying to increment with an index below 0.

This fixes the segfault, but one could argue it could be fixed differently. Like this, bogus values show up as zeros in the histogram - maybe they should be ignored instead? The histogram seems to be used just for debug purposes anyway.

Ideally, we'd also fix sim so that it does not return bogus intensities.