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

automate ros map_server from a python node subscriber/publisher

asked 2014-01-14 06:59:59 -0500

david.c.liebman gravatar image

updated 2014-01-28 17:19:01 -0500

ngrennan gravatar image

what is the recommended way to load maps for navigation (of a turtlebot2) from a python node?

I'm writing an app that uses python and some instructions from an online source to direct the robot. I'd like to make it so that the user can see a list of files and choose one as the map, then start the robot along to a given destination. Is there a way to call 'rosrun map_server map_server filename.yaml' from inside another node (in this case written in python)? I realize that python has tools for executing other programs from within, using 'subprocess' for example, but is there a ros way to do this? The filename may not always be the same.

I think an android app does something like this, though not in python, but sadly I cannot get my "map" android app to work with the turtlebot.

edit retag flag offensive close merge delete

Comments

1

The map_store package can do this, but it's mostly undocumented: http://wiki.ros.org/map_store (hence not a real answer)

ahendrix gravatar image ahendrix  ( 2014-01-14 07:05:07 -0500 )edit

What I do know is that it replaces map_server, stores maps in some sort of database, and has service calls for publishing and saving maps.

ahendrix gravatar image ahendrix  ( 2014-01-16 05:09:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-01-16 03:02:31 -0500

david.c.liebman gravatar image

probably exactly what I want. It will take time for me to figure out. Thank you.

edit flag offensive delete link more

Comments

Having lots of trouble now. I can get a map to load, then while I'm right there looking at it another map loads that's some sort of default map. I can save my maps, and then load a map. I actually get the map that I want, as I said, for a minute, then another map seems to load itself. Any help...

david.c.liebman gravatar image david.c.liebman  ( 2014-02-20 06:25:05 -0500 )edit

i had map_server running at the same time. That's where the default map was coming from. If I didn't start map_server, no default map. Then I would have to rely on map_store for any service I expected regarding maps after that.

david.c.liebman gravatar image david.c.liebman  ( 2014-03-17 06:57:06 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-01-14 06:59:59 -0500

Seen: 1,741 times

Last updated: Jan 14 '14