ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I will present an idea assuming that the package you are using is "map_server".

The image format is not pgm, and the resolution is different, both of which I think can be solved by setting the yaml file.

image : Path to the image file containing the occupancy data; can be absolute, or relative to the location of the YAML file

resolution : Resolution of the map, meters / pixel

Example

image: xxx.jpg
resolution: 0.00001763888 # 0.024m/inch / 144dpi
origin: [0.0, 0.0, 0.0].
occupied_thresh: 0.65
free_thresh: 0.196
negate: 0