Insert permanent obstacles in static map
Hi,
I have a static map of the robots environment but there are obstacles distributed in this environment. These obstacles have ar-tags and it is known, that these obstacles are not moving. Up to now I already wrote a node, which subscribes to /map and publishes /modified_map. In the published occupancy map, the permanent obstacles are inserted.
The problem now is, that the global costmap is not updated when a new modified_map is published. Is it possible, that the global costmap is updated with the new map?
Thank you in advance. Jakob
Did you remap the
/map
topic in move_base to your new/modified_map
? To make sure move_base subscribe to the your/modified_map
, try to run the commandrostopic info /modified_map
and check if move_base is one the subscriber nodesThank you for your quick answer. Yes, I remapped the topic and move_base is a subscriber. It seems strange to me, that the topic global_costmap/costmap is not published permanently. Only global_costmap/costmap_updates is published constantly. Is this a normal behavior?
Or is it necessary to trigger a costmap update? If yes, how could I achieve this?