TF tree
TF tree is the collection of all transforms in the system, assembled into a tree — not an arbitrary graph. Each frame has exactly one parent frame (except the root frame), but can have many child frames.
The "exactly one parent" constraint is not an arbitrary technical restriction — it's what makes TF always solvable. If you want to know the transform between any two frames, even if not directly connected, just go back to the common ancestor and combine the transforms. Declaring 2 parent frames for the same child frame will break this property — TF reports an error or gives unknown results.
See how tf2 "finds" transforms
The example tree below is a generic robot arm — not the real Atlas tree, save for the Exercise at the end of the module. Each edge of the tree has a specific transform (x, y, yaw) available. "Combining transforms" above is not addition — mathematically, each 2D transform can be written as a homogeneous transformation matrix 3×3:
Concatenate two consecutive transforms = multiply two matrices; going in the opposite direction (child → parent instead of parent → child) = multiplied by the inverse matrix. tf2 doesn't do anything more than that — it just does it with a 4×4 matrix and quaternions for the full 3 dimensions, instead of 3×3 and yaw angles like here. Select 2 frames that are not directly connected, click "Find transform", then follow each multiplication:
Turn off the "Show matrix multiplication" box if you just want to see the path visually, without looking at the numbers.
Underneath, it is just topics
TF does not have any special transmission mechanism — it is just 2 topics /tf (dynamic, type TFMessage) and /tf_static (static, published once with QoS TRANSIENT_LOCAL — late subscribers still receive it). Library tf2_ros automatically merges messages from multiple nodes into a complete tree in memory (Buffer), with interpolation over time — nothing you haven't learned in Module 1, just a utility class built on pub/sub.
Try it
Need 2 terminals (already source install/setup.bash, see Module 0):
# Terminal 1 — keep running; do not close
ros2 launch ros2_basics demo_tf.launch.py
# Terminal 2 — listen to /tf + /tf_static for 5 seconds then exit, export to PDF
ros2 run tf2_tools view_frames
Open file frames_<timestamp>.pdf just exported — correct tree of 3 frames: world → static_frame (static) + world → moving_frame (dynamic), illustrating "one parent, many children".
Example in the Atlas project
The complete Atlas (from Module 3 onwards) has a TF tree with the root map, branches through odom → base_link, then from base_link radiating out many child frames (wheel, caster, sensor — see Exercise, intentionally not drawn here). When Nav2 runs (Module 10), there is also an additional branch base_link → local_costmap… — the real TF tree of a complete robot easily has 10+ frames.
Two commands will be reused throughout the following modules to debug Atlas TF:
ros2 run tf2_tools view_frames
ros2 run tf2_ros tf2_echo <frame_cha> <frame_con>