Problem with gmapping and tf topic
Hi all, i have this problem using the gmapping node. I'm trying to use gmapping to read data from a laser scanner and build a map . I know that gmapping needs two transformations, the first from map to odom, and the last from odom to baselink (which represents the movements of the robot, it's odometry, right?). I also know, reading its wiki page, that the gmapping node subscribes the /laserscan topic (data from laser scanner) and the /tf topic (transformations). My problem is that the gmapping node itself publishes the /tf topic with the transformation from map to odom. So, how can I give the odom to base_link transformation to gmapping, if the /tf topic is already published??
Thanks a lot for your help, Flavio
Asked by Flavio90 on 2015-07-08 03:12:52 UTC
Answers
gmapping does NOT need the map -> odom transform. It produces that.
Giving the odom -> base_link transform to gmapping, when it is already providing another transform is no problem at all.
Asked by dornhege on 2015-07-08 03:24:09 UTC
Comments
So you mean that i should publish the transformation from odom to base_link in the same /tf topic which is published by gmapping?
Asked by Flavio90 on 2015-07-08 09:22:39 UTC
The TransformBroadcaster will do this automatically for you and that is completely fine.
Asked by dornhege on 2015-07-08 10:02:52 UTC
Comments