Ask Your Question
0

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

Comments

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

camilla gravatar imagecamilla ( 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 imagedornhege ( 2013-01-16 03:56:44 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 1,362 times

Last updated: Jan 16 '13