Ask Your Question

Map gazebo world SLAM

asked 2017-07-25 05:28:13 -0600

tonio gravatar image

Hi guys! I'm in trouble with creating the map of the willowgarage (i'm using it just for practice). I think that the problem is related to record the laser scan in the bag. I'm following this procedure for the creation of the bag and of the map: 1. roslaunch gazebo_ros willowgarage_world.launch
2. insert the robot in the environment
3. rosbag record -O example /laser_scan

For the creation of the map:
1. roscore
2. rosparam set use_sim_time true
3. rosrun gmapping slam_gmapping scan:=laser_scan
4. rosbag play --clock example
5. rosrun map_server map_saver -f map_example

From executing these commands, at the end, the server is waiting for the map without reaching any result. In the gmapping process, I have warning like:
[ WARN] [1500976433.556165904, 15.058000000]: MessageFilter [target=odom ]: Dropped 100.00% of messages so far. Please turn the [ros.gmapping.message_notifier] rosconsole logger to DEBUG for more information.

[ WARN] [1500976494.043539452, 0.045000000]: Detected jump back in time. Clearing TF buffer.

What is the error in the procedure that I'm following? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-07-25 12:55:45 -0600

allenh1 gravatar image

You need to record the tf and odom topics (and tf_static, if applicable) when you record your bag file.

edit flag offensive delete link more


Hi, allen, where does the tf topic comes from? What I think is that the tf topic is an output, not an input, there is a sensor can produce tf directly? Thanks a lot.

l_a_den gravatar imagel_a_den ( 2017-07-26 02:28:58 -0600 )edit

I tried to build the map in real time without the bag through rviz but when I add the LaserScan topic, it says me that the status is error: For frame [base_laser]: Frame [base_laser] does not exist in the Transform voice. Are you suggesting me to use a node tf broadcaster?

tonio gravatar imagetonio ( 2017-07-26 03:11:17 -0600 )edit

Yes -- you need tf to give the transforms needed to understand laser positions. Tf broadcaster will create the tf topic. But, if you're starting out with a new package, look into tf2 (since tf has been deprecated for some time now).

allenh1 gravatar imageallenh1 ( 2017-07-30 17:28:44 -0600 )edit

Your Answer


Add Answer

Question Tools

1 follower


Asked: 2017-07-25 05:28:13 -0600

Seen: 578 times

Last updated: Jul 25 '17