Open main menu

Wiki-Orange Pi β

Changes

Orange Pi CM4

511 bytes added, 11:28, 19 September 2023
How to install ROS 1 Noetic on Ubuntu 20.04
# The current active version of ROS 1 is as follows, and the recommended version is '''Noetic Ninjemys'''
::[[File:cm4-img352.png]]
::[[File:cm4-img353.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>The official installation document link of ROS 1 '''Noetic Ninjemys''' is as follows:</li></ol>{| class="wikitable" style="width:800px;" |-|
[http://wiki.ros.org/noetic/Installation/Ubuntu '''http://wiki.ros.org/noetic/Installation/Ubuntu''']
|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li>In the official installation document of ROS '''Noetic Ninjemys''', Ubuntu recommends using Ubuntu20.04, so please make sure that the system used by the development board is '''Ubuntu20.04 desktop system'''</li></ol>{| class="wikitable" style="width:800px;" |-|
[http://wiki.ros.org/noetic/Installation '''http://wiki.ros.org/noetic/Installation''']
|}
[[File:cm4-img354.png]]
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then use the following script to install ros1</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepicm4:~$ '''install_ros.sh ros1'''
|}</ol>
<ol start="5" style="list-style-type: decimal;">
<li>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</li>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| </olbig> '''<span 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.</span>'''
'''The install_ros.sh script will try to modify /etc/hosts and automatically run the following commands. However, this method cannot guarantee normal access to github every time. If the following error is prompted after installing ros1 in install_ros.sh, please find other ways to allow the Linux system of the development board to access github normally, and then manually run the following Order.'''
'''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>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</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''test_ros.sh'''
|}</ol>
<ol start="7" style="list-style-type: decimal;">
<li>After running the '''test_ros.sh''' script, a little turtle as shown in the figure below will pop up</li></ol>
<div class="figure">
[[File:cm4-img355.png]]
</div></ol>
<ol start="8" style="list-style-type: decimal;">
<li>Then please keep the terminal window just opened at the top</li></ol>
<div class="figure">
[[File:cm4-img356.png]]
</div></ol>
<ol start="9" style="list-style-type: decimal;">
<li>At this time, press the direction keys on the keyboard to control the little turtle to move up, down, left, and right</li></ol>
[[File:cm4-img357.png]]
</ol>
<span id="how-to-install-ros-2-galactic-on-ubuntu-20.04"></span>
<span id="how-to-install-ros-2-galactic-on-ubuntu-20.04"></span>
=== How to install ROS 2 Galactic on Ubuntu 20.04 ===