map using gmapping Kinect waiting for the map [closed]
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 pointcloud_to_laserscan: roslaunch pointcloud_to_laserscan kinect_laser.launch which it works, because I ` have proved it before. 2)rosrun rviz rviz 3) rosrun gmapping slam_gmapping scan:=scan (scan is the base_scan topic) 4) rosbag play --clock example.bag, I wait for this to finish and finally rosrun map_server map_saver.
But it says waiting for the map every time.
I use rosrun gmapping slam_gmapping scan:=scan, (being scan my base_scan topic), and
before running map_server node can you confirm that /map topic is getting published by using rostopic list?
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
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?
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