Unit 06 · overview
Unit 6 — Workspaces and `colcon`
Unit 6 — Workspaces and colcon
Up to this point you have mostly used ROS packages installed under /opt/ros/jazzy.
Now you need a place for your packages.
/opt/ros/jazzy
UNDERLAY
↓ sourced first
~/ros2_ws
OVERLAY
├─ src/
├─ build/
├─ install/
└─ log/
Lessons
- Underlays, Overlays, and Why Workspaces Exist
- Create the Workspace Structure
- Put Source Packages in
src - Resolve Dependencies With
rosdep - Build With
colcon - Read
build,install, andlog - Source the Overlay and Prove It
- Diagnose Workspace and Build Failures
Artifact
A working ~/ros2_ws plus an underlay/overlay evidence trace showing what was installed, what was built locally, and what changed after sourcing.
Source attribution: adapted from the ROS 2 Jazzy workspace tutorial in Gh0stlyKn1ght/ros2_documentation, CC BY 4.0.