In the world model, enable a service for checking for free space directly from laser scans instead of going through a costmap (or another world representation) with the region specified relative to the robot.
There are two cases where measuring the distance to an object would be beneficial:
- On a low-level safety layer, to avoid a collision as a reactive measure.
- To enable self-localization.
See #516 for more background info.