User Manual Orange Pi Zero 3

  Features   |  Use   |    Linux     |  Linux SDK   |  Android   |  Android SRC   |

RU          EN  

Chapt 3. Instructions for use of Debian/Ubuntu Server and Xfce desktop system
Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122  


3.31.3. How to install ROS 2 Humble on Ubuntu 22.04

  • 1) Ros2 can be installed using the install_ros.sh script

    orangepi@orangepi:~$ install_ros.sh ros2

  • 2) 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
    
    usage: ros2 [-h] Call `ros2 <command> -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 <command> -h` for more detailed usage.

  • 3) 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

    orangepi@orangepi:~$ test_ros.sh
    [INFO] [1671174101.200091527] [talker]: Publishing: 'Hello World: 1'
    [INFO] [1671174101.235661048] [listener]: I heard: [Hello World: 1]
    [INFO] [1671174102.199572327] [talker]: Publishing: 'Hello World: 2'
    [INFO] [1671174102.204196299] [listener]: I heard: [Hello World: 2]
    [INFO] [1671174103.199580322] [talker]: Publishing: 'Hello World: 3'
    [INFO] [1671174103.204019965] [listener]: I heard: [Hello World: 3]

  • 4) Run the following command to open rviz2

    orangepi@orangepi:~$ source /opt/ros/humble/setup.bash
    orangepi@orangepi:~$ ros2 run rviz2 rviz2



    Img 3.262

  • 5) Reference documents

    http://docs.ros.org/en/humble/index.html http://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html


     <         > 


  • Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122