Noetic将是ROS1的最后一个长期支持版本
1、设置软件源
sudo sh -c ‘. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list‘
2、添加秘钥
sudo apt-key adv --keyserver ‘hkp://keyserver.ubuntu.com:80‘ --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
3、更新源列表并安装
sudo apt update
sudo apt install ros-noetic-desktop-full
4、设置环境变量
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
5、运行roscore