Getting the ROS-2 source code

We need to create a workspace and clone the ROS-2 repository into it. You can do this using the following commands:

$ mkdir -p ~/ros2_ws/src$ cd ~/ros2_ws$ wget

The output would be ros2.repos being saved, as shown here:

Getting the latest repositories

If you're an advanced user and would like to use the developmental release, simply replace release-latest with master in the preceding command. If you would like to continue experimenting, the best suggestion is to use the preceding command as is because the preceding tree would have gone through ...

Get ROS Robotics Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.