Unit 06 · lesson
Read `build`, `install`, and `log`
Read build, install, and log
After a successful colcon build, inspect:
cd ~/ros2_ws
ls
The official tutorial shows:
build install log src
Each directory has a different responsibility.
src
Editable package source.
build
Intermediate build files created while packages are compiled/configured.
install
Installed workspace output and setup files used to expose built packages to a shell.
log
Build event/output records that can help diagnose failures.
Source versus generated evidence
This separation matters:
EDIT
src/
GENERATE
build/ install/ log/
If a generated file is wrong, ask which source/build step produced it instead of editing the generated artifact as the primary fix.
Checkpoint
Create a four-row table explaining what belongs in each directory and which one you would inspect first for:
- Python source code;
- a build failure log;
- workspace setup scripts.