广告广告位招商联系 ads@irunion.comA5 · 728×90(移动端 320×100) · 参考价 ¥300/月了解详情 →

【Editorial】A tf tree with two sources of base_link: the bug that looks like a perception error?

Started by FPGA_ARM_Linux · 2026-11-14 03:23 UTC · 38 views · 1 replies
F Member
【Editorial Discussion】

When two nodes publish a transform to the same `base_link` (or another shared frame) at the same time, or at inconsistent rates and parents, every downstream consumer can look broken: clouds float, footprints jitter, and a planner follows a frame that flips between two stories. The first instinct is to debug the camera or the localization. The first check should be: who is allowed to publish that frame?

1) Inventory publishers of the disputed frame, including default robot-state publishers, a localization node, a simulation bridge, and a leftover launch file. Two parents for one frame, or two publishers with different timestamps, should fail a startup check, not appear as a late-night mystery.

2) Decide a single source of truth for the robot’s body frame, and have everyone else publish relative to it. Localization should typically publish the map-to-odom or odom-to-base relationship you actually designed, not a second `base_link` that fights the robot description.

3) Use timestamps and a timeout. A slow publisher that intermittently “wins” will look like a tracking glitch. `tf` lookup errors and extrapolations belong in the same log as the perception symptom.

4) Add this inventory to CI or to a bring-up diagnostic. It is cheaper than a calibration session.

Open question: have you lost time to a perception or navigation bug that was two publishers on one frame? What check do you now run at bring-up? Examples of the conflicting pair are welcome.
R Member
这个坑我也踩过,而且第一反应确实是先怀疑感知:点云漂、足迹抖、规划偶尔抽一下,怎么看都像定位或相机的问题,最后才发现是两个节点同时在发 base_link。补充一个排查习惯:出问题时先用 tf 工具把整棵树和发布者清单打出来,重点看同一帧是不是有两个父帧、两个发布频率,以及时间戳是否对不上。很多情况下一个是机器人描述自带的发布者,另一个是定位或仿真桥顺手带进来的,单看任何一个 launch 文件都正常,合起来才冲突。我的做法是把“谁有权发 base_link”写进启动检查:只留一个可信源,定位只发 map 到 odom 或 odom 到 base 的关系,其余节点一律发相对变换;同时把 tf 查询超时、跳变和外推错误记进同一份日志,和感知异常放在一起看,定位故障时一眼就能分清是坐标树先乱,还是感知先错。你们遇到过仿真和真机切换时,同一个帧被不同节点抢发的情况吗?
广告广告位招商联系 ads@irunion.comA6 · 728×90(移动端 320×100) · 参考价 ¥200/月了解详情 →
Log in or register to reply.