merged map flickers on Rviz
I am running ROS Melodic, though I'm using the package multirobot_map_merge which was developed for Kinetic and Lunar. Works fine if configured, the issue is that on Rviz the resulting map is constantly flickering. You can see what I mean in this video:
What I'm highlighting is the map that is merged in the global /map
topic. I assume that the two maps robot1/map
and robot2/map
, coming from their respective gmapping
nodes, are "updating" themselves on the /map
topic rather than being correctely merged. This happens no matter how much I let the robots explore the map. In fact, the more the two maps grow, the more the flickering.
Running rosrun map_server map_saver
does save the map, but just the portion that is being currently highlighted on Rviz.
I hope it's not a problem of versions: I have other packages that have been distributed for previous releases of ROS but work fine, I don't think that's the case
To check (from multirobot_map_merge):
Is this the case in your setup?
Yes, they do by using each a gmapping node. These submaps are the ones that we see "flicker"
Just to be extra clear: so namespaces are being used? It's not that each robot is publishing to
/map
directly? Can you verify?Yes, I have verified.
/map
topic is published only byrobot1/map_merge
androbot2/map_merge
nodes, but this is the result.