Ubuntu22.04安装ROS2

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…


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=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

你可能感兴趣的:(Linux,操作系统,物联网,嵌入式硬件)