Exercise: draw TF tree and node graph
Measure yourself on your computer, don't copy from the lesson: draw the TF tree in two modes and indicate the node transmitting each edge.
What to submit
- Two files
frames_….pdfofview_frames: bringup only, and bringup + navigation - Two hand-drawn or machine-drawn TF tree diagrams, each side records the transmitting node and frequency
- Answers to the questions below
Lesson 1 — Bringup only
ros2 launch atlas3d_bringup bringup.launch.py world:=ramp.sdf headless:=true rviz:=false
ros2 node list
ros2 run tf2_tools view_frames
Draw TF tree. For each dynamic edge, use ros2 topic info /tf -v and the table in lesson 2 to record the transmit node.
Lesson 2 — Bringup + navigation
ros2 launch atlas3d_bringup bringup.launch.py world:=ramp.sdf headless:=true rviz:=false wheel_odom_tf:=false
ros2 launch atlas3d_navigation navigation.launch.py \
map_dir:=$HOME/atlas_sim3D/src/atlas3d_mapPCDs/ramp/demo rviz:=false
Wait for Managed nodes are active, then do the same as lesson 1. Fill in:
| Bringup only | + navigation | |
|---|---|---|
Number of nodes (ros2 node list | wc -l) | ||
Number of topics (ros2 topic list | wc -l) | ||
base_footprint's parent | ||
Frequency map → odom | — |
For comparison, dev machines: 7 and 25 nodes; 19 and 54 topics (including /rosout, /parameter_events).
Answer
- Turn off
/fastlio2_body_to_base(find PID withpgrep -af body_to_base, thenkill). How does the TF tree change? Does Nav2 still know where the robot is? - In navigation mode,
localizer_nodeplaysmap → odombut does not playmap → base_footprintdirectly. If it plays straightmap → base_footprint, what's wrong with the TF tree? (Hint: count the number of parents ofbase_footprint.) /odom(wheel odometry) is still published in navigation mode. Which node receives it? Useros2 topic info /odom -v.- Real robot replaces Gazebo with LiDAR driver and motor driver. Which nodes in
ros2 node listof lesson 1 will no longer exist, and which nodes must have a replacement?
Questions with answers (click to see)
When navigating, what is the main TF sequence from top to bottom, which edge is broadcast by which node?
map → odom due to localizer_node; odom → body due to lio_node (10 Hz); then body → base_footprint down to the robot frames.
Why can a frame only have one parent?
TF is a tree: between two frames there is only one path. Two parents means there are two answers to the same question: the data is drawn and calculated in the wrong place, on the real robot the two sources gradually deviate and the robot "jumps" in RViz.
Where is the origin of frame map located, what direction is the z axis?
Origin is where the robot stands when SLAM is turned on, the x-axis follows the robot's nose. The z-axis points straight toward the sky, against gravity, even when the robot starts on a slope.
If frame map is not gravity-aligned, how does the traversability map fail?
Turn on SLAM when the robot stands in the middle of a 6° slope and then drives onto a flat platform: with gravity alignment, the map records the platform as flat. Turn it off and the platform is recorded as tilted, so the calculated height and slope are both wrong.
Want to know what command ros2 launch starts without running it, where can I read it?
Read Python files in folder launch/ of the package: see which nodes, which parameters, which configuration files.
Self-check before you submit
- Each frame in the diagram has exactly one parent
- Static edges and dynamic edges are distinguished
- Run lesson 2 with
wheel_odom_tf:=false - Between the two exercises,
stop_sim.shprintscòn 0 tiến trình
End of Part A. M03 opens the first block of the chain: the Atlas3D robot and the sensors in the Gazebo.