laser_geometry icon indicating copy to clipboard operation
laser_geometry copied to clipboard

Laser scan points with max_range will be discarded

Open Solitry opened this issue 5 years ago • 0 comments

Hi,

When I use function projectLaser and given the range_cutoff as default value -1, the range_cutoff will be set to scan_in.range_max, and it will let the points with the max_range be discarded.

However, in the doc of sensor_msgs/LaserScan, it says:


float32[] ranges  # range data [m] (Note: values < range_min or > range_max should be discarded)

I think the point that the range equals to max_range exactly should not be discarded.

Solitry avatar Apr 23 '20 03:04 Solitry