Changes

Jump to: navigation, search

Orange Pi Zero 2W

556 bytes added, 15:43, 26 September 2023
How to install ROS 1 Noetic on Ubuntu20.04
# The currently active version of ROS 1 is as follows, the recommended version is '''Noetic Ninjemys'''
::[[File:zero2w-img245.png]]
::[[File:zero2w-img246.png]]
::{| 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>The link to the official installation documentation of ROS 1 '''Noetic Ninjemys''' 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 official installation documentation of ROS '''Noetic Ninjemys''', Ubuntu recommends using Ubuntu20.04, so please ensure that the system used by the development board is '''<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:zero2w-img247.png]]</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. Then when compiling the source code, you can quickly install some system dependencies and some core components in ROS.</p></li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''<span style="color:#FF0000">Note that when running the following command, you need to ensure that the development board can access github normally, otherwise an error will be reported due to network problems.</olspan>'''
'''Note that when running the following command, you need 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 automatically run the following commands. 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 Order.'''
 
'''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:''' '''The read operation timed out</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>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then open a command line terminal window on the '''desktop''', and then use the '''test_ros.sh''' 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 small turtle as shown in the picture below will pop up.</p>
<p>[[File:zero2w-img248.png]]</p></li>
<span id="how-to-install-ros-2-galactic-on-ubuntu20.04"></span>
 
=== How to install ROS 2 Galactic on Ubuntu20.04 ===

Navigation menu