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

Revision history [back]

Yes, there are better ways to clear the costmaps. From the command line you can:

rosservice call /move_base/clear_costmaps

And you can also call servcies from your code, as explained here.

I also suggest you create another question with more details about the "ghost objects", with images and your costmap configurations, so maybe you can address the origin of your problem.