Can costmap_2d's static_map be updated?
Dear all,
I am working on implementing the navigation stack on a robot, and was wondering about the update behaviour of costmap_2d.
My global costmap is receiving a 2D SLAM map from Cartographer over the /map topic. Does this map update, and if yes how frequently?
So far this was the only documentation I managed to find, which was written way back in Hydro, so was wondering if the interface has remained the same. I have gone through the official wiki tutorials as well as the tuning guide by Kaiyu Zheng, would much appreciate more of such guides :)
Thanks!
To me it seems (never checked) that the map parameter "static" uses a service instead of a constantly published topic to get the map only once. When using regular published topics the same behaviour seems to be possible with map_topic and first_map_only parameters set. I seem to remember that the parameter subscribe_to_updates means that changes in the map (slam) are transported in the sub-topic updates and added to the map (not a full new map is received). What works for you is dependent on your setup. The usual navigation stack (gmapping, amcl) uses the map_server thus service, thus static map.