FFD8 发表于 2024-7-7 14:48

【超小型 Linux 开发套件:Quantum Tiny Linux(带 SoM 和扩展板)】 - 2.ROS安装

<div class='showpostmsg'> 本帖最后由 FFD8 于 2024-7-7 14:43 编辑

# 【超小型 Linux 开发套件:Quantum Tiny Linux(带 SoM 和扩展板)】 - 2.ROS安装

本次项目计划在ROS-melodic上实现,所以系统更新到18.04即可。
虽然在该系统上安装ROS-melodic时遇到了一些问题,但最终还算顺利解决,安装详情可供参考。
## 1、笔者通常使用鱼香ROS一键安装:
```c
wget http://fishros.com/install -O fishros && . fishros
```
但是这次在安装ROS-melodic最后阶段,提示安装失败。
## 2、换第二种方式:
```c
sudo apt install ros-melodic-ros-base
```
安装时提示依赖关系异常:
```c
The following packages have unmet dependencies:
ros-melodic-desktop-full : Depends: ros-melodic-desktop but it is not going to be installedDepends: ros-melodic-perception but it is not going to be installedDepends: ros-melodic-simulators but it is not going to be installedDepends: ros-melodic-urdf-sim-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
```
> **最终在这里找到解决方案:https://answers.ros.org/question/299260/unmet-dependencies-when-installing-melodic-on-ubuntu-1804/**



## 3、最终安装方式:
```c
sudo aptitude install ros-melodic-ros-base
```
成功安装ROS-melodic

## 4、远程连接桌面,同时测试一下ROS
```c
//在两个窗口分别运行
roscore
rostopic list
```
9d0684d54f73556040587dce592bb4c2<br/>

</div><script>                                        var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;"   style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
                                       
                                        if(parseInt(discuz_uid)==0){
                                               
                                        }                </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script>
页: [1]
查看完整版本: 【超小型 Linux 开发套件:Quantum Tiny Linux(带 SoM 和扩展板)】 - 2.ROS安装