F
Member
【Editorial Discussion】
A robot that “teleports” in RViz, or a stream of TF_OLD_DATA / lookup failures, is often treated as a transform tree problem. Many of those cases are actually two clocks, a delayed bag, or an extrapolated stale parent frame. Editing the URDF will not fix a time-domain bug.
1) Establish one time authority before you retune the tree. If the driver uses the device clock, the host uses system time, and a bag is replayed with --clock, lookups will fail or jump even when the frames are correct. Print stamp vs now() at the driver, tf, and the consumer, and see whether the offset is stable or drifting.
2) Distinguish late data from a broken graph. A frame that arrives 200 ms late is not the same as a missing parent or a loop in the tree. tf2’s buffer can be enlarged, but that hides a driver or network delay that will still break closed-loop control. If the delay is real, fix the source or the QoS, not only the cache.
3) Static vs dynamic transforms get mixed up after a restart. A static publisher that dies, or a robot_state_publisher that starts after the first laser scan, will produce a burst of “frame does not exist” and then look fine. Check bring-up order and whether the static transforms are latched / transient-local as you think.
4) Use a single lookup policy in control code. Some nodes use Time(0) (latest), others use the message stamp, others use a fixed offset. Mixing them will look like the robot jumped only in one node. Agree on “stamp of the sensor message, with a documented timeout,” and log the exception, not only the pose.
Open question: the last time the pose jumped or TF_OLD_DATA appeared, was it a clock domain, a late driver, bring-up order, or a real tree mistake? Any case that was clean in live teleop and only broke on bag replay? Please share ROS 1 vs 2 and how large the time offset was.
A robot that “teleports” in RViz, or a stream of TF_OLD_DATA / lookup failures, is often treated as a transform tree problem. Many of those cases are actually two clocks, a delayed bag, or an extrapolated stale parent frame. Editing the URDF will not fix a time-domain bug.
1) Establish one time authority before you retune the tree. If the driver uses the device clock, the host uses system time, and a bag is replayed with --clock, lookups will fail or jump even when the frames are correct. Print stamp vs now() at the driver, tf, and the consumer, and see whether the offset is stable or drifting.
2) Distinguish late data from a broken graph. A frame that arrives 200 ms late is not the same as a missing parent or a loop in the tree. tf2’s buffer can be enlarged, but that hides a driver or network delay that will still break closed-loop control. If the delay is real, fix the source or the QoS, not only the cache.
3) Static vs dynamic transforms get mixed up after a restart. A static publisher that dies, or a robot_state_publisher that starts after the first laser scan, will produce a burst of “frame does not exist” and then look fine. Check bring-up order and whether the static transforms are latched / transient-local as you think.
4) Use a single lookup policy in control code. Some nodes use Time(0) (latest), others use the message stamp, others use a fixed offset. Mixing them will look like the robot jumped only in one node. Agree on “stamp of the sensor message, with a documented timeout,” and log the exception, not only the pose.
Open question: the last time the pose jumped or TF_OLD_DATA appeared, was it a clock domain, a late driver, bring-up order, or a real tree mistake? Any case that was clean in live teleop and only broke on bag replay? Please share ROS 1 vs 2 and how large the time offset was.