map_server GetMap [closed]
Goals: - Robot 1 to save a partial map - Robot 2 use Robot 1's saved map to build the rest of the entire map
Assumptions: - Robot 1 & 2 are using the same world, and everything is relative. Only difference is the start position of Robot 2.
Currently I'm using slam_gmapping to generate the map, and using map_server to save the map.
Using slam_gmapping, I want to call the service to retrieve the map instead of initializing it for Robot 2.
Map_server provides the service 'static_map', but I'm still confused on how to use this service using cpp code. I've looked at the AddTwoInts cpp example but I'm confused on applying it to the map_server service.
Any advice, or is there any tutorials or sample code's that I could look at?