Obstacle clearing problem [closed]
Hallo!
I use kinect on my real robot and encountered with problem that costmap does not clear dynamic obstacles, if there's a lot of free space behind a obstacle (close to laser max_range). Phantom obstacles are smaller then the real one. In the picture there are my phantom steps as I crossed the long corridor four times in front of robot.
What I tried is to reset all obstacles in every mapUpdateLoop() step as recommended in this post
I added two strings
costmap_->resetMapOutsideWindow(wx, wy, 0, 0);
costmap_->updateWorld(wx, wy, observations, clearing_observations);
in the end of updateMap() function.
But that did not help much. I use ROS Electric.
Not sure if you have seen this http://answers.ros.org/question/30014/costmap-clearing-of-obstacles/ Likelihood is the laser beam is not clearing that particular space, either because of the resolution (eg if beams are 1deg apart) or the readings are out of range (look for 0.0 data in your /scan)
Yes, I've seen this post and checked the topic /scan. There is no 0.0 / It returns 11.0 but max_range is 10.0/ And stil does not clear obstacles.