Hi,
I was following the navigation tutorials. I have a map already, now I'm starting map_server and amcl as described in the tutorials but I'm getting following message:
Waiting on transform from /base_link to /map to become available before
running costmap, tf error: Could not find a connection between '/map' and
'/base_link' because they are not part of the same tree.Tf has two or more
unconnected trees.
The robot is being displayed in the corner of the map and setting pose estimation does not work (I get a message e.g. "Setting pose: 4.996 2.068 -2.645 [frame=/map]" but nothing happens).
tftree looks like this (I have a kinect mounted on a car-like robot):

so obviously map -> odom are not connected. Is that the reason pose-estimation does not work? How/where should I connect them? For testing I've tried static_transform_publisher (map to odom) but it did not change anything.
I'll be grateful for any help.
fixed it. my mistakes were:
after fixing that I can set pose estimation in rviz.
The usual convention for these mobile robot frames is described in REP-0105.
Localization would normally provide the /map->/odom transform.
Why did static_transform_publisher not work? What parameter did you pass it?
Asked: Feb 22
Seen: 287 times
Last updated: Feb 23
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.