ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Problem creating a map with gmapping

asked 2018-11-26 10:04:50 -0500

the3kr gravatar image

updated 2018-11-26 17:45:33 -0500

I added a laser scanner to a custom robot model, but when I ran the the gmap node. The robot was not mapping the environment.

The warnings I got when I ran my launch file are :

Timed out waiting for transform from base_footprint to map to become available before running costmap, tf error: Could not find a connection between 'map' and 'base_footprint' because they are not part of the same tree.Tf has two or more unconnected trees.. canTransform returned after 98.215 timeout was 0.1.

The origin for the sensor at (71.50, -50.00) is out of map bounds. So, the costmap cannot raytrace for it.

Scan Matching Failed, using odometry. Likelihood=0 lp:71.5 -50 1.49224e-17 op:70.6211 -50.1456 0.000266226

The image of my TF tree is https://imgur.com/a/shzkIOB

edit retag flag offensive close merge delete

Comments

Did you managed to solve your issue? It seems like I'm having similar issues with "Scan Matching Failed" error messages and when that happens, my map in rViz is messed up.

ZeroSan gravatar image ZeroSan  ( 2019-02-06 04:41:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-11-26 13:11:11 -0500

Please include an image of your TF tree. My guess is that you have a malformed TF tree of your robot making it impossible for the laser scan to be transformed into the appropriate frame set in your configuration file. There needs to be a direct chain between laser -> base {link, footprint depending} -> odom, and gmapping is broadcast its odom -> map.

You can visualize using rosrun rqt_tf_tree rqt_tf_tree.

edit flag offensive delete link more

Comments

The TF tree can be found here : https://imgur.com/a/shzkIOB

the3kr gravatar image the3kr  ( 2018-11-26 17:46:57 -0500 )edit

Try upping your robot state publisher to 100 hz

stevemacenski gravatar image stevemacenski  ( 2018-11-29 12:43:16 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-11-26 10:04:50 -0500

Seen: 763 times

Last updated: Nov 26 '18