cartographer建图时报Could not compute submap fading: 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
Could not compute submap fading: 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."
:这个错误表明在TF (Transform)树中,'map' 和 'base_link' 之间缺少连接。这可能是由于 TF 树的配置问题导致的,或者可能是由于传感器配置问题导致的。
正确的tf:
错误的tf:
可以看到map与base_link直接缺少tf链接。这里需要在配置文件中把这个 “provide_odom_frame = true,--是否提供里程坐标系 “ 参数设置为true;
具体配置文件:a_ros1_backpack_2d_imu_odom.lua
-- Copyright 2016 The Cartographer Authors
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific l