content
# 0) Prereq: make sure ROS 2 Jazzy is installed and sourced
source /opt/ros/jazzy/setup.bash
# 1) Install Nav2 core + bringup (Ubuntu 24.04 / ROS 2 Jazzy)
sudo apt update
sudo apt install -y ros-jazzy-navigation2 ros-jazzy-nav2-bringup
# 2) (Recommended) Install common tools used with Nav2
sudo apt install -y ros-jazzy-nav2-rviz-plugins ros-jazzy-tf2-tools
# 3) Persist ROS sourcing (optional)
echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc
# 4) Quick sanity check: packages exist
ros2 pkg list | grep -E "navigation2|nav2_bringup" | headQuick smoke test (Nav2 nodes are runnable)
# This just checks the launch files are discoverable (doesn't require a robot)
ros2 launch nav2_bringup --show-args navigation_launch.py 2>/dev/null || true
ros2 launch nav2_bringup --show-args localization_launch.py 2>/dev/null || trueIf you paste the output of:
echo $ROS_DISTRO
uname -mI can confirm you’re on the right distro/architecture and suggest the exact next launch command for your Stage + downloaded map setup.