# ros2_ros_tutorials **Repository Path**: src-openeuler/ros2_ros_tutorials ## Basic Information - **Project Name**: ros2_ros_tutorials - **Description**: 本项目已经迁移至 AtomGit || This project has been migrated to AtomGit || Linked: https://atomgit.com/src-openeuler/ros2_ros_tutorials - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2023-02-14 - **Last Updated**: 2025-12-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: sig-ROS ## README # Notice: This project has been migrated to [AtomGit](https://atomgit.com/src-openeuler/ros2_ros_tutorials) # 通知: 本项目已经正式迁移至 [AtomGit](https://atomgit.com/openeuler/ros2_ros_tutorials) 平台 # ros_tutorials #### 介绍 ros_tutorials节点 ros_tutorials包含演示 ROS 各种功能的软件包,以及有助于演示这些功能的支持包。 #### 软件架构 软件架构说明 https://github.com/ros2/ros_tutorials.git 文件内容: ``` ├── ros_tutorials │   ├── CHANGELOG.rst │   ├── CMakeLists.txt │   ├── COLCON_IGNORE │   └── package.xml ├── roscpp_tutorials │   ├── CHANGELOG.rst │   ├── CMakeLists.txt │   ├── COLCON_IGNORE │   ├── add_two_ints_client │   │   ├── CMakeLists.txt │   │   └── add_two_ints_client.cpp │   ├── add_two_ints_server │   │   ├── CMakeLists.txt │   │   └── add_two_ints_server.cpp │   ├── add_two_ints_server_class │   │   ├── CMakeLists.txt │   │   └── add_two_ints_server_class.cpp │   ├── anonymous_listener │   │   ├── CMakeLists.txt │   │   └── anonymous_listener.cpp │   ├── babbler │   │   ├── CMakeLists.txt │   │   └── babbler.cpp │   ├── cached_parameters │   │   ├── CMakeLists.txt │   │   └── cached_parameters.cpp │   ├── custom_callback_processing │   │   ├── CMakeLists.txt │   │   └── custom_callback_processing.cpp │   ├── launch │   │   └── talker_listener.launch │   ├── listener │   │   ├── CMakeLists.txt │   │   └── listener.cpp │   ├── listener_async_spin │   │   ├── CMakeLists.txt │   │   └── listener_async_spin.cpp │   ├── listener_class │   │   ├── CMakeLists.txt │   │   └── listener_class.cpp │   ├── listener_multiple │   │   ├── CMakeLists.txt │   │   └── listener_multiple.cpp │   ├── listener_single_message │   │   ├── CMakeLists.txt │   │   └── listener_single_message.cpp │   ├── listener_threaded_spin │   │   ├── CMakeLists.txt │   │   └── listener_threaded_spin.cpp │   ├── listener_unreliable │   │   ├── CMakeLists.txt │   │   └── listener_unreliable.cpp │   ├── listener_with_tracked_object │   │   ├── CMakeLists.txt │   │   └── listener_with_tracked_object.cpp │   ├── listener_with_userdata │   │   ├── CMakeLists.txt │   │   └── listener_with_userdata.cpp │   ├── node_handle_namespaces │   │   ├── CMakeLists.txt │   │   └── node_handle_namespaces.cpp │   ├── notify_connect │   │   ├── CMakeLists.txt │   │   └── notify_connect.cpp │   ├── package.xml │   ├── parameters │   │   ├── CMakeLists.txt │   │   └── parameters.cpp │   ├── srv │   │   └── TwoInts.srv │   ├── talker │   │   ├── CMakeLists.txt │   │   └── talker.cpp │   ├── time_api │   │   ├── CMakeLists.txt │   │   └── sleep │   └── timers │   ├── CMakeLists.txt │   └── timers.cpp ├── rospy_tutorials │   ├── 001_talker_listener │   │   ├── README │   │   ├── listener -> listener.py │   │   ├── listener.py │   │   ├── talker -> talker.py │   │   ├── talker.py │   │   ├── talker_listener.launch │   │   └── talker_timer.py │   ├── 002_headers │   │   ├── headers.launch │   │   ├── listener_header.py │   │   └── talker_header.py │   ├── 003_listener_with_user_data │   │   ├── listener_with_user_data.launch │   │   └── listener_with_user_data.py │   ├── 004_listener_subscribe_notify │   │   ├── listener_subscribe_notify.launch │   │   └── listener_subscribe_notify.py │   ├── 005_add_two_ints │   │   ├── add_two_ints_client │   │   └── add_two_ints_server │   ├── 006_parameters │   │   ├── param_talker.launch │   │   └── param_talker.py │   ├── 007_connection_header │   │   ├── README │   │   ├── client_connection_header.py │   │   ├── connection_header.launch │   │   ├── listener_connection_header.py │   │   ├── server_connection_header.py │   │   └── talker_connection_header.py │   ├── 008_on_shutdown │   │   ├── on_shutdown.launch │   │   └── publish_on_shutdown.py │   ├── 009_advanced_publish │   │   ├── advanced_publish.launch │   │   └── advanced_publish.py │   ├── CHANGELOG.rst │   ├── CMakeLists.txt │   ├── COLCON_IGNORE │   ├── msg │   │   ├── Floats.msg │   │   └── HeaderString.msg │   ├── package.xml │   ├── srv │   │   ├── AddTwoInts.srv │   │   └── BadTwoInts.srv │   └── test │   ├── publish_on_shutdown_test_node.py │   ├── talker_listener_test.py │   ├── test-add-two-ints-with-roscpp-server.launch │   ├── test-add-two-ints.launch │   ├── test-connection-header.launch │   ├── test-on-shutdown.launch │   ├── test-peer-subscribe-notify.launch │   ├── test-talker-listener-with-roscpp.launch │   ├── test-talker-listener-with-timer.launch │   ├── test-talker-listener.launch │   ├── test_add_two_ints.py │   ├── test_client_connection_header.py │   ├── test_listener_connection_header.py │   ├── test_on_shutdown.py │   ├── test_peer_subscribe_notify.py │   └── test_server_connection_header.py └── turtlesim ├── CHANGELOG.rst ├── CMakeLists.txt ├── action │   └── RotateAbsolute.action ├── images │   ├── ardent.png │   ├── bouncy.png │   ├── crystal.png │   ├── dashing.png │   ├── eloquent.png │   └── foxy.png ├── include │   └── turtlesim ├── launch │   └── multisim.launch.py ├── msg │   ├── Color.msg │   └── Pose.msg ├── package.xml ├── src │   ├── turtle.cpp │   ├── turtle_frame.cpp │   ├── turtlesim │   └── turtlesim.cpp ├── srv │   ├── Kill.srv │   ├── SetPen.srv │   ├── Spawn.srv │   ├── TeleportAbsolute.srv │   └── TeleportRelative.srv └── tutorials ├── draw_square.cpp ├── mimic.cpp └── teleop_turtle_key.cpp ``` #### 安装教程 1. 下载rpm包 aarch64: ``` wget https://117.78.1.88/build/home:Chenjy3_22.03/openEuler_22.03_LTS_standard_aarch64/aarch64/ros_tutorials/ros-foxy-ros-ros_tutorials-1.2.6-1.oe2203.aarch64.rpm ``` x86_64: ``` wget https://117.78.1.88/build/home:Chenjy3_22.03/openEuler_22.03_LTS_standard_x86_64/x86_64/ros_tutorials/ros-foxy-ros_tutorials-1.2.6-1.oe2203.x86_64.rpm ``` 2. 安装rpm包 aarch64: ``` sudo rpm -ivh --nodeps --force ros-foxy-ros_tutorials-1.2.6-1.oe2203.aarch64.rpm ``` x86_64: ``` sudo rpm -ivh --nodeps --force ros-foxy-ros-ros_tutorials-1.2.6-1.oe2203.x86_64.rpm ``` #### 使用说明 依赖环境安装: ``` sh /opt/ros/foxy/install_dependence.sh ``` 安装完成以后,在/opt/ros/foxy/目录下有如下输出,则表示安装成功。 输出: ``` ./ |-- COLCON_IGNORE |-- _local_setup_util_ps1.py |-- _local_setup_util_sh.py |-- bin |-- include |-- lib |-- lib64 |-- local_setup.bash |-- local_setup.ps1 |-- local_setup.sh |-- local_setup.zsh |-- setup.bash |-- setup.ps1 |-- setup.sh |-- setup.zsh |-- share | `-- rqt_plot | |-- hook | |-- package.bash | |-- package.dsv | |-- package.ps1 | |-- package.sh | |-- package.xml | |-- package.zsh | |-- plugin.xml | `-- resource `-- src ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)