Robotics StackExchange | Archived questions

map using gmapping Kinect waiting for the map

I am trying to complete the 2D-Navigation with Kinect and a two-wheel robot, when I following this tutorial to build the map http://www.ros.org/wiki/slam_gmapping/Tutorials/MappingFromLoggedData#record.

What I do is the following: 1) I run the pointcloudtolaserscan: roslaunch pointcloudtolaserscan kinectlaser.launch which it works, because I ` have proved it before. 2)rosrun rviz rviz 3) rosrun gmapping slamgmapping scan:=scan (scan is the basescan topic) 4) rosbag play --clock example.bag, I wait for this to finish and finally rosrun mapserver map_saver.

But it says waiting for the map every time.

I use rosrun gmapping slamgmapping scan:=scan, (being scan my basescan topic), and

Asked by salime on 2013-07-30 09:29:02 UTC

Comments

before running map_server node can you confirm that /map topic is getting published by using rostopic list?

Asked by Zee-Q on 2013-08-01 18:01:05 UTC

Yes, in the rostopic, is this list

/cloud_throttled /goal /initialpose /kinect_laser/parameter_descriptions /kinect_laser/parameter_updates /map /map_metadata /openni_manager/bond /rosout /rosout_agg /scan /slam_gmapping/entropy /tf .... so the /map topic is there, but in rviz I can not see that topic

Asked by salime on 2013-08-02 06:03:19 UTC

Check out by rosrun tf view_frames that all of the frames are connected and also check that your map has data by rostopic echo /map and it is publishing any data?

Asked by Zee-Q on 2013-08-02 12:21:48 UTC

When I run rosrun tf view_frames... I get this:

Listening to /tf for 5.000000 seconds Done Listening dot - graphviz version 2.26.3 (20100126.1600)

Detected dot version 2.26.3 frames.pdf generated

and when I run rostopic echo /map.... I get nothing.... the terminal is empty

Asked by salime on 2013-08-06 09:57:09 UTC

Answers