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

By default the map_server node does not allow that to publish the map continuously, it only publishes the loaded map once on a latched topic. This is due to the assumption that the loaded map by this node is not going to be modified and, usually, if the map is static there is not any good reason to publish it more than once.

To summarize and to provide a bit more information on the topic, unless you have an occupancy grid that is ever changing, for example if you are mapping an unknown region, in which case you would typically not use the map_server anyway, but probably a SLAM approach based node instead (that would handle the update and publishing of the map), it is most likely not an optimal solution to keep publishing the same static map at a given frequency.

However, I do not know your use-case and some assumptions went into this answer... Why would you like to publish the same map with a given frequency? Do you have any specific use-case that you can share?