打开主菜单

Wiki-Orange Pi β

更改

Orange Pi 5 Plus

添加355字节, 2023年5月31日 (三) 09:16
Ubuntu20.04安装ROS 1 Noetic的方法
</li>
<li><p>ROS '''Noetic Ninjemys'''官方安装文档中Ubuntu推荐使用Ubuntu20.04,所以请确保开发板使用的系统为'''Ubuntu20.04桌面版系统'''</p>
<p>[http{| class="wikitable" style="width://wiki.ros.org/noetic/Installation 800px;" |-|'''http://wiki.ros.org/noetic/Installation''']</p>|}
<p>[[File:media/image398.png|312x176px]]</p></li>
<li><p>然后使用下面的脚本安装ros1</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi5plus:~$ '''install_ros.sh ros1'''</p>|}</li>
<li><p>使用ROS工具前,首先需要初始化下rosdep,然后编译源码时就能快速的安装一些系统依赖和一些ROS中的核心组件</p></li></ol>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''<span style="color:#FF0000">注意,运行下面的命令需要确保开发板能正常访问github,否则会由于网络问题而报错。</span>'''
'''install_ros.sh脚本会尝试修改/etc/hosts并自动运行下面的命令。但是这种方法无法保证每次都能正常访问github,如果install_ros.sh安装完ros1后有提示下面的错误,请自己想其它办法让开发板的linux系统能正常访问github,然后再手动运行下面的命令。'''
'''Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml'''
'''<span style="color:#FF0000">ERROR: error loading sources list:</span>'''
::'''<span style="color:#FF0000">The read operation timed out</span>'''</big>|}
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''source /opt/ros/noetic/setup.bash'''
Recommended: please run
 ::rosdep update
orangepi@orangepi:~$ '''rosdep update'''
updated cache in /home/orangepi/.ros/rosdep/sources.cache
|}
<ol start="6" style="list-style-type: decimal;">
<li><p>然后在'''桌面'''中打开一个命令行终端窗口,再使用'''test_ros.sh'''脚本可以启动一个小海龟的例程来测试下ROS是否能正常使用</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~$ '''test_ros.sh'''</p>|}</li>
<li><p>运行完'''test_ros.sh'''脚本后,会弹出下图所示的一个小海龟</p>
<p>[[File:media/image399.png|576x276px]]</p></li>
8,460
个编辑