This week I got two robots running in the same Gazebo simulation so I could test how their maps line up. Each robot builds its own map with SLAM Toolbox, and I used the cooperative mapping node to share and merge the maps. I drove the robots around a room with nine pillars so they could see the same walls and pillars from different angles. Both robots run in the same Docker container, so I could test the peer-to-peer communication over TCP on my computer.

Once the maps merged, I compared the result with the room in Gazebo. All nine pillars showed up within about 3 cm of where they were supposed to be. I also checked that spots only one robot had seen showed up on the other robot’s map after the merge. I tried the same setup in a warehouse layout, but the robots only found two matching features, so they kept their maps separate.

Now that we have a proof-of-concept of cooperative mapping working in simulation, I want to work with Zhuoyi next week to get the physical robot maps to merge too. We’ll start by having both robots map the same part of the room and check whether their maps line up. Then we’ll send them into different areas and see whether the merged map shows what each robot explored.
