首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
20 篇文章
1
ROS1&2机器人操作系统免安装在线自主学习平台简介和官方第三方教程列表
2
机器人操作系统二(ROS2)- 启程 Departure
3
机器人操作系统二(ROS2)- 修行 Taoism
4
机器人操作系统二(ROS2)- 仿真 Simulation
5
机器人操作系统二(ROS2)- 实践 Practice
6
ROS2与Arduino发布订阅
7
ROS2网络多机通信DDS和安全加密SROS(多机器人系统)
8
ROS2实时性案例分析之倒立摆系统使用(Inverted pendulum)
9
机器人实践课程镜像分享及使用说明(Arduino+ROS1+ROS2+Gazebo+SLAM+...)
10
使用机器人操作系统ROS 2和仿真软件Gazebo 9搭建机器人教程(一)
11
使用机器人操作系统ROS 2和仿真软件Gazebo 9命令遥控可视化教程(二)
12
使用机器人操作系统ROS 2和仿真软件Gazebo 9环境综合测试教程(三)
13
使用机器人操作系统ROS 2和仿真软件Gazebo 9目标跟踪实践(四)
14
使用机器人操作系统ROS 2和仿真软件Gazebo 9多机器人实践(五)
15
使用机器人操作系统ROS 2和仿真软件Gazebo 9激光传感器算法进阶(六)
16
使用机器人操作系统ROS 2和仿真软件Gazebo 9主题进阶实战(七)- mobot速度发布与里程计订阅
17
使用机器人操作系统ROS 2和仿真软件Gazebo 9服务进阶实战(八)- mobot行驶至目标位置
18
使用机器人操作系统ROS 2和仿真软件Gazebo 9行动进阶实战(九)- mobot区域巡逻
19
ROS 2 Foxy Fitzroy遇见Ubuntu 20.04
20
使用ROS2机器人操作系统进行多机器人编程技术实践(Multi-Robot Programming Via ROS2 )

机器人操作系统二(ROS2)- 启程 Departure

版权声明:署名,允许他人基于本文进行创作,且必须基于与原先许可协议相同的许可协议分发本文 (Creative Commons

是时候放下ROS1,开启ROS2的旅程了。It's time to put down ROS1 and start the journey of ROS2.

ROS2官方在线文档链接 ROS2 official online documentation:https://index.ros.org/doc/ros2/

ROS2教程文档使用说明与为什么选择ROS2?ROS2 tutorial documentation instructions and why choose ROS2?https://cloud.tencent.com/developer/article/1453644

ROS2常规学习路径 ROS2 regular learning path:

demos、navigation2 and moveit2

ROS2进阶学习路径 ROS2 advanced learning path:

others


学习分享从安装配置开始,首先详细介绍教程,然后是两个专题:Navigation2和MoveIt!2。This article starts with ROS2 installation and configuration, first introduces the tutorial in detail, then two topics: Navigation2 and MoveIt!2.

安装详细过程 Installation detailed tutorial:ROS 2 Dashing Diademata安装和使用文档(含Linux、Windows和OS X)ROS 2 Dashing Diademata installation and documentation (including Linux, Windows and OS X)

ROS教程 ROS 2 tutorials:https://github.com/zhangrelay/ros2_tutorials

配置教程包 Tutorial package configuration:

  1. 下载:git clone
  2. 编译:colcon build
  3. 使用:ros2 run

colcon build

导入编译的环境 Import the compiled environment:

source install/setup.bash

输入ros2 run turtlesim,可以看到如下节点 Enter ros2 run turtlesim, you can see the following nodes:

draw_square --prefix turtle_teleop_key

mimic turtlesim_node

常用命令如下 Common commands are as follows:

  1. ros2 run turtlesim turtlesim_node
  2. ros2 topic list
  3. ros2 run turtlesim draw_square
  4. ros2 topic echo /turtle1/pose
  5. ……

更多内容参考下图 For more details, please refer to the following figure:

欢迎大家下载案例调试玩耍, 更多内容后续介绍。You are welcome to download the case, debug and play, more will be introduced in subsequent articles.

思考题 Thinking:

回顾roslaunch, 写一个ros2 launch,同时启动turtlesim_node和draw_spuare。Looking back at roslaunch, write a ros2 launch and start both the turtlesim_node and draw_spuare node.

扩展题 Extended:

对比ROS1和ROS2的turtlesim包,分析和思考两代ROS编程和使用中的差异。Compare the turbulsim package of ROS1 and ROS2, analyze and think about the difference between the two generations of ROS in programming and use.


draw_square.launch.py

代码语言:javascript
复制
from launch import LaunchDescription
import launch_ros.actions

def generate_launch_description():
    return LaunchDescription([
        launch_ros.actions.Node(
            node_namespace= "ros2", package='turtlesim', node_executable='turtlesim_node', output='screen'),
        launch_ros.actions.Node(
            node_namespace= "ros2", package='turtlesim', node_executable='draw_square', output='screen'),
    ])

下一篇
举报
领券