ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

If the sensor does not see new objects, it will not clear the object out of the map and retains the previous valid information it received. The costmap will retain the previous data (retain the presence of the previous obstacle) until it gets fresh data from it's sensor indicating that there is no obstacle.

One way to get around this is to create a node that would fill the rest of the laser scan with max range (~20m) so that the maps would be cleared. This is code for the node -https://github.com/clubcapra/Ibex/blob/master/src/capra_lidar/scripts/max_range.py

However you must keep in mind that it isn't completely safe - if something blocks the laser or it fails your robot will drive straight into things, which is why it's not the default.

If the sensor does not see new objects, it will not clear the object out of the map and retains the previous valid information it received. The costmap will retain the previous data (retain the presence of the previous obstacle) until it gets fresh data from it's sensor indicating that there is no obstacle.

One way to get around this is to create a node that would fill the rest of the laser scan with max range (~20m) so that the maps would be cleared. This is code for the node -https://github.com/clubcapra/Ibex/blob/master/src/capra_lidar/scripts/max_range.py-

https://github.com/clubcapra/Ibex/blob/master/src/capra_lidar/scripts/max_range.py

However you must keep in mind that it isn't completely safe - if something blocks the laser or it fails your robot will drive straight into things, which is why it's not the default.