Development Software Setup

Install Ubuntu 22.04 as OS

Possible options: Dual Boot, Virtual Machine, Single Boot

 

Install git

sudo apt install git

 

Install curl

sudo apt update && sudo apt install curl

 

Install VSCode

sudo snap install --classic code

 

Install ROS2 humble

set locale:

sudo apt update && sudo apt install locales sudo locale-gen en_US en_US.UTF-8 sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 export LANG=en_US.UTF-8

 

enable Ubuntu Universe repository:

sudo apt install software-properties-common sudo add-apt-repository universe

 

add ROS2 GPG keyring:

sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

 

add repository to sources list:

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null

 

install ROS2 humble Desktop version:

sudo apt update sudo apt upgrade sudo apt install ros-humble-desktop

 

Install Colcon build tool

sudo apt install python3-colcon-common-extensions

 

source ROS2 workspace:

possibility 1

enter directly into console:

source /opt/ros/humble/setup.bash

Has to be done every time a new console is opened

possibility 2

open bashrc:

code ~/.bashrc

Paste the following at the end of bashrc and safe:

source /opt/ros/humble/setup.bash

Has to be done only once, but can lead to problems when different ROS2 distributions (p.e. humble, foxy) are installed

 

Install Gazebo Classic

sudo apt install ros-humble-gazebo-ros-pkgs

 

Â