System Setup

Prerequisite

  • Compiler: GCC 11+, Clang 14+

  • OS: Ubuntu 22.04+

  • Supported ROS2 distros

    • Humble

    • Jazzy

Install ROS2

Follow the official documentation to install the latest binary release of ROS2.

Install all necessary additional dependencies:

sudo apt install -y python3-colcon-common-extensions \
                    python3-vcstool \
                    python3-rosdep

Remember to initialize and update rosdep if it is your first time installing rosdep.

sudo rosdep init
rosdep update

Note

Append ROS2 environment in .bashrc (Optional)

To ensure that the ROS2 environment is sourced automatically when the terminal is started, append the following line to the end of the bash configuration (in ~/.bashrc):

source /opt/ros/humble/setup.bash