ROS 2 Humble安装和第一个节点
开发环境 主机系统:Windows 11 25H2 WSL2 发行版:Ubuntu 22.04 LTS ROS 2 版本:Humble 本文记录了一次在 WSL2 环境下为 Ubuntu 22.04 安装 ROS 2 Humble 的完整流程,并附带最简运行测试,确保安装成功。 1. 安装 ROS 2 Humble 官方文档给出了二进制包的安装方式,步骤如下1: 启用 universe 仓库并更新软件列表 sudo apt install software-properties-common sudo add-apt-repository universe sudo apt update && sudo apt install curl -y 获取并安装 ROS 2 的 apt 源 export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}') curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/ ${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo ${UBUNTU_CODENAME:-${VERSION_CODENAME}})_all.deb" sudo dpkg -i /tmp/ros2-apt-source.deb sudo apt update 安装桌面版与开发工具 ...