Exercise: Atlas's TF tree
Apply Frame/Transform, TF tree, REP-105 — do this lesson before reading Module 3, where the actual URDF of Atlas will "reveal" the answer.
Task
Atlas is a diff-drive robot including: a main frame (base_link), 2 left/right driven wheels, 2 front/rear caster wheels, 1 LiDAR, 1 IMU. Select the parent frame for each frame below and then click "Check" — an incorrect option is deliberately included, like a mistake newbies often encounter:
map and odom (REP-105) are NOT in this Exercise — they only appear when slam_toolbox/amcl is running (Module 8-9), not yet related to the static URDF of robot.
Two inference questions
1. Should the joint connecting the above frames with base_link be movable or fixed? driven wheel must be rotatable (joint continuous — unlimited rotation). LiDAR and IMU do not move relative to the robot chassis (joint fixed — recall static_transform_publisher in previous lesson). The caster in the real Atlas URDF also declares fixed — simulation does not model the free rotation of the ball/caster, only its MOUNTING position on the frame is concerned.
2. If the robot stands still in place but the two wheels still rotate (stuck on a smooth surface): transform base_link → wheel can change over time (the rotation angle of the joint changes continuously). Transform map → base_link then does not change (the robot does not move in real space) — distinguish between "transform change because the joint rotates in place" and "transform change because the whole assembly moves".
Self-check
Done when
- The above tool is correct 6/6
- Explain (not just guess) why all 6 frames have the same parent, not hierarchically passing through each other
- Answer the 2 reasoning questions above in your own words
- After reading Module 3, compare the selected tree with the real
atlas_description/urdf/atlas.urdf.xacro
Review questions (click to see the answer)
Why does the robot need TF2?
Each sensor measures according to its own coordinate system (LiDAR measures from the LiDAR center). TF2 saves the relationship between every frame over time to convert data to the needed frame (robot, map) at the correct time of measurement.
How many parent frames can a frame have? Can a TF tree have cycles?
Exactly one parent (except the root has no parent), no cycles — so it is a tree. Two nodes publishing the same parent for a frame is an error.
How is /tf different from /tf_static?
/tf: transform changes, publish continuously (wheel spins, odom → base_footprint). /tf_static: fixed transform (LiDAR mounting position), publish once, keep forever.
In series map → odom → base_link, which transform is smooth, which transform jumps, and who publishes?
odom → base_link smooth, published by odometry. map → odom jumps when corrected, published by localization node (AMCL/SLAM).
According to REP-103, is the robot turning left angular.z positive or negative? What is the unit of angle?
Positive (counterclockwise rotation viewed from top down, right hand rule around Z axis up). Unit radian.
What does the error "Lookup would require extrapolation into the future" mean?
Looking for a transform at a newer time than the latest transform TF2 has — usually due to clock skew (e.g. forgetting use_sim_time when running simulation/bag) or the node publishing TF delay/stop.
Check yourself before going to Module 3
- Explain how frame is different from transform
- Be able to draw (verbally) any TF tree with just words that describe another robot, no need to be accurate from Atlas
- Can use
view_frames+tf2_echoto debug any TF launch file, no need to remember the syntax - Explain (without memorizing the formula) why
map→odomjumps whileodom→base_linkis smooth, and the consequences if combined into one
Done → go to Module 3 — Robot modeling with URDF/XACRO (coming soon on this page), where the TF tree you just selected will be compared with the real Atlas URDF.