Why "rosdep install" when compiling ros2 from source?
Hi I'm trying to build ros2 from source, following this guide.
There is this step in the installation procedure, where you install rosdep dependencies:
$ sudo rosdep init
$ rosdep update
$ rosdep install --from-paths src --ignore-src --rosdistro foxy -y --skip-keys "console_bridge fastcdr fastrtps rti-connext-dds-5.3.1 urdfdom_headers"
If I'm correct, the above commands install additional binary packages in /opt/ros/foxy/...
.
Then this results in two different directories ~/ros2_foxy/
, which is the directory containing all the source code, and /opt/ros/foxy/...
.
Why do I need to execute the above commands?