Skip to content

installing_ros2

Dan Zimmerman edited this page Oct 11, 2024 · 16 revisions

ROS 2 Jazzy Source Install

mkdir -p ~/.local/opt/ros/jazzy_ws/src
cd ~/.local/opt/ros/jazzy_ws

Then follow source instructions in that workspace:

https://docs.ros.org/en/jazzy/Installation/Alternatives/Ubuntu-Development-Setup.html#

🐛Debugging

ROS APT Sources

Adding the ROS APT sources doesn't work because $UBUNTU_CODENAME does not exist on Debian Bookworm/Raspbian.

For now just making bookworm explicit:

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 bookworm) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null

Locale

Only generating en_GB:

dan@computer:~ $ sudo locale-gen en_US en_US.UTF-8
Generating locales (this might take a while)...
  en_GB.UTF-8... done

So I'm going with

sudo locale-gen en_GB en_GB.UTF-8
sudo update-locale LC_ALL=en_GB.UTF-8 LANG=en_GB.UTF-8
export LANG=en_GB.UTF-8

Says in the instructions:

We test with the following settings. However, it should be fine if you’re using a different UTF-8 supported locale.

Missing Tools

For whatever reason, maybe the locale settings I was missing:

sudo apt update
sudo apt install python3-rosdep \
python3-vcstool \
ros-dev-tools \
-y

💡 I went back and ran this step just in case.

Clone this wiki locally