Ask Your Question
0

map_saver doesn't return from "Waiting for the map"

asked 2011-11-15 20:41:08 -0500

IsaacSaito gravatar image IsaacSaito flag of United States
1674 59 79 109
http://www.linkedin.com/p...

updated 2011-11-16 17:39:45 -0500

I'm doing turtlebot's tutorial "Build a map with SLAM" and can't generate a map file. Actually I succeeded only first 2 times. Since then map_saver always says:

turtlebot@turtlebot-1:~$ rosrun map_server map_saver -f /tmp/my_map
[ INFO] [1321409343.272498323]: Waiting for the map
^C         <---- I manually killed 
^CTerminated
turtlebot@turtlebot-1:~$

and the process map_server keeps consuming around 95%.

When I succeeded:

turtlebot@turtlebot-1:/tmp$ rosrun map_server map_saver -f /tmp/my_map
[ INFO] [1321405355.532849715]: Waiting for the map
[ INFO] [1321405355.807251282]: Received a 480 X 544 map @ 0.050 m/pix
[ INFO] [1321405355.812693593]: Writing map occupancy data to /tmp/my_map.pgm
[ INFO] [1321405355.851996657]: Writing map occupancy data to /tmp/my_map.yaml
[ INFO] [1321405355.853300442]: Done

I used teleop to move turtlebot.

Env) Ubuntu 10.04, ROS/turtlebot electric

edit retag flag offensive close delete

Comments

Next time it happens, can you try doing `rostopic echo --noarr -n 1 map`. That would indicate whether the map is being published. bhaskara ( 2011-11-17 14:50:13 -0500 )edit
@bhaskara sure will do. Good to know that. Thx! IsaacSaito ( 2011-11-18 14:31:21 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2011-11-18 07:08:42 -0500

raphael favier gravatar image raphael favier
1142 20 30 43
http://www.turtlebot.eu/

it seems to me that your nodes are not able to communicate with each other. you could try running rxgraph next to the two nodes and see if the actually share the same map topic.

if not, make sure that

  • a roscore is still running
  • both nodes can see the same master

quick question: are both nodes running on the same machine?

Raph

edit flag offensive delete publish link more

Comments

@raphael favier thx. Next time the issue occurs then I'll check if nodes are connected on rxgraph. Yes gmapping_demo and map_saver are running on the same machine, so that they should be using the same master. In my understanding roscore is already run by the service 'turtlebot' right? IsaacSaito ( 2011-11-18 14:36:28 -0500 )edit
hi, I was doing this on a custom bot start off with basics, timesync! Ensure all your nodes/topics/tf's are named properly esp laser scan . follow the diagnostics for tf. i was dropping odom stationary/wireless range/usb b/w. The tf diags/trouble guides very good, check logs...good luck davo ( 2011-11-21 02:34:28 -0500 )edit
@davo thx for the interest but is your comment about my question? You mentioned several things (timesync, laser scan, tf etc.) but intuitively I don't figure out how they are associated with my issue and what can I do for the problem. IsaacSaito ( 2011-11-21 06:32:08 -0500 )edit
I've closed this session since I haven't seen the phenomenon these days. IsaacSaito ( 2011-12-01 22:03:33 -0500 )edit
1

answered 2011-11-17 14:09:03 -0500

IsaacSaito gravatar image IsaacSaito flag of United States
1674 59 79 109
http://www.linkedin.com/p...

updated 2011-11-17 15:11:57 -0500

Though this can't be the permanent solution, I found after rebooting OS saving map works fine. But still the issue occasionally occurs. At least at this moment there could be some tips and do I just understand that the issue happens? Hope this won't happen when I try very large room...

And I just realized myself that some of my question I asked here were solved by just rebooting OS. I know rebooting is often an ultimate solution for software development and from next time I'll try that before asking question.

edit flag offensive delete publish link more

Comments

Though I'm not sure if this is taking effect or not, I try not to let gmapping-demo run alone for longer time after I killed teleop (or any other measure to move Turtlebot). IsaacSaito ( 2011-11-17 14:10:27 -0500 )edit
Are you killing gmapping before saving the map? Then this is the problem. Regarding rebooting: If that solves a problem once it's OK. If the problem comes back and can only be solved by rebooting it's a problem to report here. dornhege ( 2011-11-18 07:34:50 -0500 )edit
@dornhege thanks, and no, I keep gmapping_demo running until I see map_saver ends. I'll spend more time and see how it goes. Maybe only rebooting the service 'turtlebot' might be enough in my case, but anyway I'll still see. IsaacSaito ( 2011-11-18 14:33:15 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2011-11-15 20:41:08 -0500

Seen: 458 times

Last updated: Nov 18 '11