ubuntu16.04安装ros清华源
时间: 2023-04-26 15:05:34 浏览: 127
1. 首先打开终端,输入以下命令以备份原有的软件源:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 接着,打开软件源列表文件:
```
sudo gedit /etc/apt/sources.list
```
3. 在文件末尾添加以下内容:
```
deb https://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ xenial main
deb-src https://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ xenial main
```
4. 保存并关闭文件,然后更新软件源:
```
sudo apt-get update
```
5. 安装ROS:
```
sudo apt-get install ros-kinetic-desktop-full
```
6. 初始化ROS:
```
sudo rosdep init
rosdep update
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
```
7. 安装ROS工具:
```
sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
```
至此,ubuntu16.04安装ROS清华源的步骤就完成了。
阅读全文