文章目录
安装1.1 添加ros软件源
sudo sh -c ‘echo “deb /ros/ubuntu $(lsb_release -sc) main” > /etc/apt/sources.list.d/ros-latest.list’
1.2 添加 keys
sudo apt-key adv --keyserver ‘hkp://:80’ --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
1.3 检查确保Debian软件包索引是最新的
sudo apt update
1.4 安装桌面完整版(Desktop-Full)
sudo apt install ros-noetic-desktop-full
1.5 设置环境
source /opt/ros/noetic/setup.bash
echo “source /opt/ros/noetic/setup.bash” >> ~/.bashrc
source ~/.bashrc
1.6 安装依赖(用的python3-rosdep)
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
1.7 执行 sudo rosdep init
如果输入sudo rosdep init出现:
ERROR: cannot download default sources list from:
/ros/