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.
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.