How to install ros2 on 24.04 ubuntu axon emmc file
As ROS has an official release Jazzy Jalisco to support in 24.04.
We will provide steps to install.
Installation Guide for ROS2 Jazzy Jalisco in Ubuntu 24.04 LTS Noble
-
Install ros-jazzy-desktop
sudo apt install software-properties-common sudo add-apt-repository universe sudo apt update && sudo apt install curl -y sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg 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 sudo apt update sudo apt -y install ros-jazzy-desktop -
Activate ROS2 using Below Command
source /opt/ros/jazzy/setup.bash
-
You can also add a shortcut for activating ROS using
echo "alias startros='source /opt/ros/jazzy/setup.bash'" >> ~/.bashrc
-
source ~/.bashrc file.
source ~/.bashrc -
Once you have either restarted your shell, or logged back and logged back in, you can activate ROS2 by typing
startrosstartros