Unit 06 · lesson
Resolve Dependencies With `rosdep`
Resolve Dependencies With rosdep
A package can declare dependencies on other packages.
Before building cloned source, the official tutorial recommends checking those dependencies with rosdep.
From the workspace root:
cd ~/ros2_ws
rosdep install -i --from-path src --rosdistro jazzy -y
Read the command
--from-path srctellsrosdepwhere to inspect package declarations;--rosdistro jazzyfixes dependency resolution to the target distro;-iignores packages already available from the source path when appropriate;-yaccepts package-manager prompts.
Success evidence
The source tutorial shows a result such as:
#All required rosdeps installed successfully
Exact output may differ, but you need evidence that dependency resolution completed rather than silently skipping the step.
If rosdep is unavailable
Return to Unit 2 development-tool setup. Do not invent an alternate dependency manager.
Checkpoint
Explain why dependency resolution comes before a long build rather than after it fails.