Intro
Jazzy Jalisco
ROS2 Jazzy Installation
Installation Script
- The
install_ros2_jazzy.shscript automates the installation of ROS2 Jazzy on Ubuntu 24.04
install_ros2_jazzy.sh
#!/bin/bash # install_ros2_jazzy.sh # Installs ROS 2 Jazzy on Ubuntu 24.04 set -e echo "Step 1: Set locale" sudo apt update sudo apt install -y 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 echo "Step 2: Enable required repositories" sudo apt install -y software-properties-common sudo add-apt-repository universe echo "Step 3: Add ROS 2 APT repository" sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key \ -o /usr/share/keyrings/ros-archive-keyring.gpg echo "deb [arch=amd64 signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] \ http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | \ sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null echo "Step 4: Install ROS 2 Jazzy" sudo apt update sudo apt install -y ros-jazzy-desktop sudo apt update && sudo apt install ros-dev-tools echo "Step 5: Set up environment" echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc source ~/.bashrc echo "ROS 2 Jazzy installation complete!"
- Run the script
chmod +x install_ros2_jazzy.sh && ./install_ros2_jazzy.sh



