|
@@ -7,10 +7,10 @@
|
|
|
**小鱼最新一行代码安装ROS2:**
|
|
|
|
|
|
```
|
|
|
-wget http://fishros.com/install -O fishros && sudo bash fishros
|
|
|
+wget http://fishros.com/install -O fishros && bash fishros
|
|
|
```
|
|
|
|
|
|
-由于脚本bug,需要重新开一个终端环境变量才会生效,所以这里需要使用`Ctrl+Alt+T`打开一个新的终端,输入ros2如果看到下面的界面则安装成功
|
|
|
+安装完成后输入ros2如果看到下面的界面则安装成功
|
|
|
|
|
|

|
|
|
|
|
@@ -22,25 +22,26 @@ wget http://fishros.com/install -O fishros && sudo bash fishros
|
|
|
### 2.2 下载秘钥
|
|
|
|
|
|
```
|
|
|
-sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
|
|
|
+sudo apt install curl gnupg2 -y
|
|
|
+curl -s https://gitee.com/ohhuo/rosdistro/raw/master/ros.asc | sudo apt-key add -
|
|
|
```
|
|
|
|
|
|
### 2.3 导出到系统
|
|
|
|
|
|
```
|
|
|
-echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] https://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
|
|
|
+echo "deb [arch=$(dpkg --print-architecture)] https://repo.huaweicloud.com/ros2/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
|
|
|
```
|
|
|
|
|
|
### 2.4 更新
|
|
|
|
|
|
```
|
|
|
-sudo apt update
|
|
|
+sudo apt update
|
|
|
```
|
|
|
|
|
|
> 如果遇到了其他问题,欢迎加入qq交流群进行交流:139707339,或者尝试一键安装指令
|
|
|
>
|
|
|
> ```
|
|
|
-> sudo apt-get install curl && curl http://fishros.com/tools/install/ros-foxy | bash
|
|
|
+> wget http://fishros.com/install -O fishros && bash fishros
|
|
|
> ```
|
|
|
|
|
|
### 2.5 安装ROS2
|