﻿# tf2 latest lookup uses a common chain time, not each edge’s newest pose

A slow dynamic transform can limit the time of a composed tf2 result. Inspect the connecting path and returned stamp before replacing composition with independent latest edges.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/robotics-tf2-latest-common-time-transform-chain/
Language: en

## The composed result is older than a nearby edge

A perception component looks up the latest relation from a tool frame to a moving base through several dynamic links. One link publishes newer data than another, yet the returned chain timestamp does not match that newest sample. The integration replaces the lookup with a product of independently newest edge poses. This changes the geometric question. Before interpreting the original result as stale-cache malfunction, inspect which links connect the requested frames and what common time their available histories permit.

## The traversal selects latest common time first

In the reviewed [tf2 core](https://raw.githubusercontent.com/ros2/geometry2/rolling/tf2/src/buffer_core.cpp), a latest-time request resolves through getLatestCommonTime before the transform traversal gathers values. The common-time calculation follows the connecting path and considers relevant dynamic edge times. It does not choose the newest timestamp anywhere in the whole tree. Keep this scope precise: an unrelated slow branch need not constrain the requested relation. The resulting timestamp belongs to the composed lookup, not a claim that every publisher has updated simultaneously.

## An edge can be evaluated between stored samples

The reviewed [time-cache implementation](https://raw.githubusercontent.com/ros2/geometry2/rolling/tf2/src/cache.cpp) distinguishes newest-sample requests from evaluation at a specified time and supports interpolation under its conditions. A faster edge can therefore contribute a value at the selected chain time rather than its newest stored pose. A manual product using independently newest samples can mix physical times even when every individual lookup succeeds. Retain the selected time and the relevant history bounds when comparing results instead of checking only matrix shape or per-edge lookup success.

## Common time is not an application freshness promise

If a required dynamic publisher stops advancing while older data remains usable, a latest lookup may still describe an older common state. Application freshness policy needs the returned timestamp and the intended clock context. Do not overwrite it with callback arrival time. Conversely, do not fabricate a current pose by treating a static calibration edge as a dynamic motion source. A latest-common-time result establishes the library’s chosen relation under available data, not the robot’s unobserved present geometry or acceptable control latency.

## Use a connected dynamic-chain fixture

Propose a passive frame chain with distinguishable motion and overlapping histories whose latest dynamic samples differ. Compare the supported latest lookup with explicit evaluation at its returned common time, then with the independently newest-edge product. Add an unrelated branch as a scope control. Acceptance explains the selected timestamp and geometric difference without commanding hardware. No tf2 or robot experiment was run here. The fixture does not certify interpolation accuracy for arbitrary motion or guarantee success when the needed history ranges do not overlap.

## Retain composition evidence rather than a latest slogan

[Quest camera pose and timing](/journal/quest-passthrough-camera-local-detection-world-rays/) already explain acquisition context for delayed perception. [MVSEC reference histories](/journal/fg2-mvsec-pose-odometry-different-optimization-reference/) explain another temporal-reference choice. This article adds the chain algorithm boundary: connecting edges, common selected time and interpolation conditions belong together. A newer individual transform is not automatically a newer coherent chain result. Report that distinction so a diagnostic optimization does not silently replace a same-time spatial relation with an unsupported cross-time composition.
