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

Revision history [back]

click to hide/show revision 1
initial version

answered 2011-10-07 02:41:43 -0500

joq gravatar image

I don't believe there is any more elegant way.

When clearing obstacles, costmap_2d only trusts laser scans returning a definite range. Indoors, that makes sense. Outdoors, most scans return max range, which does not clear intervening obstacles. A fake scan with slightly shorter ranges can be constructed that does clear them out.

That hack is messy, but not particularly difficult.