Good question. I didn't play personally with such problem. You may look at this paper (which is based on
ros_bridge):
Toris, R., Kammerl, J., Lu, D.V., Lee, J., Jenkins, O.C., Osentoski, S., Wills, M. and Chernova, S., 2015, September. Robot Web Tools: Efficient messaging for cloud robotics. In IROS (pp. 4530-4537).I also saw this MegaTree package:
http://wiki.ros.org/megatree/Tutorials/GettingStartedFrom RTAB-Map viewpoint, you have the choice to publish /rtabmap/cloud_map, which is a
sensor_msgs/PointCloud2 topic containing the whole map. This may be heavy to transfer when the map is getting bigger and bigger. Another way is to use
/rtabmap/mapData topic instead, which contains only compressed Depth/RGB images of the latest node added to graph and the optimized graph's poses. This topic is already used by rviz's
rtabmap_ros::MapCloud display and by
rtabmapviz to reconstruct/update the point cloud on client side, limiting the bandwidth used.