Open main menu

Wiki-Orange Pi β

Changes

Orange Pi CM4

288 bytes added, 11:37, 19 September 2023
How to install ROS 2 Humble on Ubuntu 22.04
# Use the '''install_ros.sh''' script to install ros2
::{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''install_ros.sh ros2'''
|}
<ol start="2" style="list-style-type: decimal;">
<li>The '''install_ros.sh''' script will automatically run the '''ros2 -h''' command after installing ros2. If you can see the following print, it means that the ros2 installation is complete</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
usage: ros2 [-h] Call `ros2 &lt;command&gt; -h` for more detailed usage. ...
 
ros2 is an extensible command-line tool for ROS 2.
 
optional arguments:
:-h, --help show this help message and exit 
Commands:
:action Various action related sub-commands
:bag Various rosbag related sub-commands
:component Various component related sub-commands
:daemon Various daemon related sub-commands
:doctor Check ROS setup and other potential issues
:interface Show information about ROS interfaces
:launch Run a launch file
:lifecycle Various lifecycle related sub-commands
:multicast Various multicast related sub-commands
:node Various node related sub-commands
:param Various param related sub-commands
:pkg Various package related sub-commands
:run Run a package specific executable
:security Various security related sub-commands
:service Various service related sub-commands
:topic Various topic related sub-commands
:wtf Use `wtf` as alias to `doctor`
Call `ros2 &lt;command&gt; -h` for more detailed usage.
:Call `ros2 &lt;command&gt; -h` for more detailed usage.
|}
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then you can use the '''test_ros.sh''' script to test whether ROS 2 is installed successfully. If you can see the following print, it means that ROS 2 can run normally</li></ol>{| class="wikitable" style="width:800px;" |-|
orangepi@orangepicm4:~$ '''test_ros.sh'''
[INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]
|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Run the following command to open rviz2</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''source /opt/ros/humble/setup.bash'''
orangepi@orangepi:~$ '''ros2 run rviz2 rviz2'''
|}
<div class="figure">
[[File:cm4-img361.png]]
</div></ol>
<ol start="5" style="list-style-type: decimal;">
<li>Reference documents</li></ol>{| class="wikitable" style="width:800px;" |-|
'''http://docs.ros.org/en/humble/index.html'''
[http://docs.ros.org/en/galactic/Tutorials.html '''http://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html''']
|}
</ol>
<span id="how-to-install-kernel-header-files"></span>
<span id="how-to-install-kernel-header-files"></span>
== How to install kernel header files ==