Ask Your Question
0

rosrun map_server map_saver keeps on waiting does not generate map.

asked 2014-10-16 15:29:26 -0500

updated 2014-10-16 15:48:20 -0500

hello, i am Build a Map Using Logged Data. I am following the procedure as explained in the ROS Tutorial click to go.

Here are the steps i am following:-

1. $ roscore
2. $ rosparam set use_sim_time true
3. $ rosrun gmapping slam_gmapping scan:=base_scan
4. $ rosbag play --clock mylaserdata.bag

everything goes fine till here, but at the 5th step while executing following command...

5. $ rosrun map_server map_saver

This displays following message:-

[INFO] [1413492118,722337006]: Waiting for the map

and then map_server keeps on waiting but neither it stops nor save the map, i am wondering why this is happening i can't figure out the problem since there are not any error, the size of my bag file is 5MB.

please help, thanks in advance.

edit retag flag offensive close merge delete

Comments

2

If you watch the map building progress in rviz, do you see a map being built?

ahendrix gravatar image ahendrix  ( 2014-10-16 17:29:22 -0500 )edit

i am new to ros, & unable to open my robot model in rviz (it gives no transformation issue within status). I am using P3AT (spawned in USARSim). do i need to have urdf file.

sumant gravatar image sumant  ( 2014-10-18 14:42:46 -0500 )edit

please help how to open map in rviz. (step by step procedure if possible)

sumant gravatar image sumant  ( 2014-10-18 14:44:00 -0500 )edit

finally working by using this,

$ roscore  
$ roslaunch usarsim_inf usarsim.launch  
$ rosrun gmapping slam_gmapping scan:=lms200 
$ rosrun teleop_twist_keyboard teleop_twist_keyboard.py
$ rosrun map_server map_saver
$ eog ./map.pgm
sumant gravatar image sumant  ( 2014-10-22 17:21:57 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-10-22 17:22:33 -0500

finally working by using this,

$ roscore
$ roslaunch usarsim_inf usarsim.launch
$ rosrun gmapping slam_gmapping scan:=lms200 $ rosrun teleop_twist_keyboard teleop_twist_keyboard.py $ rosrun map_server map_saver $ eog ./map.pgm

edit flag offensive delete link more

Comments

@Aarif, Thank you.

sumant gravatar image sumant  ( 2014-11-17 11:59:40 -0500 )edit

hello, can u please tell what are those launch files because i have the same problem

maha gravatar image maha  ( 2015-03-24 13:51:08 -0500 )edit

we are updating most of the imformation on https://tucrlab.wordpress.com/ . /by the way what do you want to know about above launch files.

sumant gravatar image sumant  ( 2015-04-28 14:17:36 -0500 )edit
1

answered 2014-10-17 05:01:04 -0500

bvbdort gravatar image

Looks like map is not published. Start rviz to view the map generated.

rosrun rviz rviz 
Add a display with a map, set to the topic /map

ps: in case you are using your own bag file, first try with test bag file mentioned in link you are following.

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

1 follower

Stats

Asked: 2014-10-16 15:29:26 -0500

Seen: 4,739 times

Last updated: Oct 17 '14