Obstacles persist in costmap even after they move out
I am running hokuyo laser and move_base on a physical robot, and am running rviz to monitor the obstacles. If I introduce an obstacle in front of the robot, costmap_2d sees raw & inflated obstacles, and shows them as coloured cells in rviz. If I move the obstacle away & out of the laser range (say to the left) , the cells corresponding to the obstacle move to the left and stay there (at the left, within the laser range and within the costmap). I would have expected these cells to get cleared of obstacles.
Which parameter am I getting wrong? My costmap_common_params are the same as here . I can include more data or screenshots as needed.