Use the map_to_image_node for compressed map transport
noetic-develThe map_to_image_node converts occupancy grid maps (nav_msgs/OccupancyGrid) into images (sensor_msgs/Image) using image_transport. This allows for transmitting map data with significantly lower bandwidth by leveraging image compression plugins.
It provides two types of image outputs:
- Full Map: A single image representing the entire occupancy grid.
- Tile Map: A localized image centered around the robot's current position, useful for low-bandwidth remote monitoring.
Required Inputs:
map(topic): Subscribes tonav_msgs/OccupancyGrid.pose(topic): Subscribes togeometry_msgs/PoseStamped(required for the tile-based map).
Outputs:
map_image/full(topic): The full map as aMONO8encoded image.map_image/tile(topic): A localized tile around the robot as aMONO8encoded image.