Ubuntu22.04安装ROS2
Excerpt
ROS2官方文档 ROS2清华镜像站sudo apt update sudo apt upgrade locale # check for UTF-8 sudo apt update && sudo apt install locales sudo locale-gen en_US en_US.UTF-8 sudo update-locale LC_ALL=e…
sudo apt update
sudo apt upgrade
locale # check for UTF-8
sudo apt update && sudo apt install 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
locale # verify settings
apt-cache policy | grep universe
sudo apt update && sudo apt install curl gnupg lsb-release
// 更改ros.key地址
sudo curl -sSL http://packages.ros.org/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] https://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update
sudo apt upgrade
sudo apt install ros-humble-desktop-full
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc

本文详细介绍了在Ubuntu22.04系统中安装ROS2的步骤,包括更新包列表、安装必要的locale支持、设置ROS2源和添加环境变量,以确保UTF-8编码和正确运行ROS2桌面环境。
9301

被折叠的 条评论
为什么被折叠?



