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

Load a map in map_server

asked 2013-01-15 22:59:55 -0600

camilla gravatar image

updated 2013-01-16 02:52:16 -0600

And how can I load a map into the map server?
I'm calling:

<node name="map_server" pkg="map_server" type="map_server" args="$(find p2os_nav)/simple_office_map.svg 0.1f"/>

in the launch file but I get this error:

[map_server-1] process has died [pid 12465, exit code 255].
log files: /home/camilla/.ros/log/8b409eb6-5feb-11e2-b202-000fb0a0b12e/map_server-1*.log

and nothing is published on the /map topic. Any ideas? Cheers!

edit retag flag offensive close merge delete


I tried with png and now it works!Thank you! So which are the format supported?only png and pgm?

camilla gravatar image camilla  ( 2013-01-16 03:45:57 -0600 )edit

From the docs: Image data is read in via SDL_Image; supported formats vary, depending on what SDL_Image provides on a specific platform.

dornhege gravatar image dornhege  ( 2013-01-16 03:56:44 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-01-16 03:04:40 -0600

dornhege gravatar image

updated 2013-01-16 03:05:14 -0600

I don't know if svg is supported. Can you try to convert the image to something like png/pgm? In principle this procedure works for me.

edit flag offensive delete link more

Question Tools


Asked: 2013-01-15 22:59:55 -0600

Seen: 1,853 times

Last updated: Jan 16 '13