Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero 3

557 bytes added, 17:45, 11 July 2023
How to install ROS 1 Noetic on Ubuntu 20.04
# The currently active version of ROS 1 is shown below, and the recommended version is '''Noetic Ninjemys'''
::[[File:media/image269.png|345x235px]]
::[[File:media/image270.png|576x210px]]
::{| class="wikitable" style="width:800px;"
|-
|
[http://docs.ros.org/ '''http://docs.ros.org''']
'''https://wiki.ros.org/Distributions'''
|}
<ol start="2" style="list-style-type: decimal;">
<li><p>ROS 1 '''Noetic Ninjemys''' official installation documentation link is as follows:</p>
{| class="wikitable" style="width:800px;" |-| <p>[http://wiki.ros.org/noetic/Installation/Ubuntu '''http://wiki.ros.org/noetic/Installation/Ubuntu''']</p>|}</li><li><p>In the ROS '''Noetic Ninjemys''' official installation document, Ubuntu recommends using Ubuntu20.04, so please make sure that the system used by the development board is the '''<span style="color:#FF0000">Ubuntu20.04 desktop system</span>'''</p>{| class="wikitable" style="width:800px;" |-|
<p>[http://wiki.ros.org/noetic/Installation '''http://wiki.ros.org/noetic/Installation''']</p>
|}
<p>[[File:media/image271.png|312x176px]]</p></li>
<li><p>Then use the script below to install ros1</p>
{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''install_ros.sh ros1'''</p>|}</li><li><p>Before using the ROS tool, you first need to initialize rosdep, and then you can quickly install some system dependencies and some core components in ROS when compiling the source code</p> {| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''</lispan style="color:#FF0000">Note that running the following command needs to ensure that the development board can access github normally, otherwise an error will be reported due to network problems</olspan>'''
'''Note that running the following command needs to ensure that the development board can access github normally, otherwise an error will be reported due to network problems'''
'''The install_ros.sh script will try to modify /etc/hosts and run the following commands automatically. However, this method cannot guarantee that github can be accessed normally every time. If install_ros.sh prompts the following error after installing ros1, please find other ways to allow the linux system of the development board to access github normally, and then manually run the following command.'''
 
'''https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml'''
'''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
|}</li></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then open a command line terminal window on the '''desktop''', and use the '''<span class="mark">test_ros.sh</span>''' script to start a small turtle routine to test whether ROS can be used normally</p>
{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''test_ros.sh'''</p>|}</li>
<li><p>After running the '''test_ros.sh''' script, a little turtle as shown in the figure below will pop up</p>
<p>[[File:media/image272.png|575x291px]]</p></li>
<span id="how-to-install-ros-2-galactic-on-ubuntu-20.04"></span>
 
=== How to install ROS 2 Galactic on Ubuntu 20.04 ===