Trying multiple rosbots AMCL in Gazebo and facing the following error
[ WARN] [1580917865.353203528, 2923.880000000]: Timed out waiting for transform from base_link to map to become available before running costmap, tf error: canTransform: source_frame base_link does not exist… canTransform returned after 0.1 timeout was 0.1.
[ WARN] [1580917870.456538075, 2928.980000000]: Timed out waiting for transform from base_link to map to become available before running costmap, tf error: canTransform: source_frame base_link does not exist… canTransform returned after 0.1 timeout was 0.1.
[ WARN] [1580917875.560713079, 2934.080000000]: Timed out waiting for transform from base_link to map to become available before running costmap, tf error: canTransform: source_frame base_link does not exist… canTransform returned after 0.1 timeout was 0.1.
[ WARN] [1580917880.666722497, 2939.180000000]: Timed out waiting for transform from base_link to map to become available before running costmap, tf error: canTransform: source_frame base_link does not exist… canTransform returned after 0.1 timeout was 0.1.multi_amcl.c (4.8 KB)
Uploaded the launch file as c file since I wasn’t able to upload my launch file.
The warning is thrown by move_base when searching for transform from frame base_link to map. On the other hand, both ROSbots are configured to publish tf’s with prefixes.
Please post here screen from rqt_tf_tree to verify which tf frames are published.
Your ROSbots are publishing tf frames with prefixes. We are considering base_link frames, these are:
first/base_link - for one of the ROSbots
second/base_link - for the second ROSbot
Move base is configured to search for frames map → base_link, it is without prefixes.
The map frame is published without any prefix, this one will not cause any problem.
Issue is caused with base_link due to fact that, ROSbots are publishing with prefixes, while move_base wants it without prefix.
Warning is thrown by costmap component, the frame definition will be in one of the files: