初学者(入门级)教程是分步说明ROS2使用的资料汇总,目标向初学者介绍ROS 2。建议按顺序学习这些教程,从“普通用户”课程过渡到“开发人员”课程,获取ROS 2的基本知识。

ardent bouncy crystal dashing eloquent

如果正在寻找特定的教程内容,欢迎从教程中挑选对应课程,需要了解这些教程是相互关联的或独立的,但是并不意味着这是全面的文档。这些教程正在逐步完善中,因此欢迎反馈。

注意:当前,初学者级教程针对DashingEloquent。某些功能可能不适用于较早的发行版。

学习此部分教程,并不需要ROS1基础,也不推荐学习ROS1相关内容,直接在ROS2环境下开发机器人功能包。


turtlesim示例

rviz2示例

ros2 topic pub --rate 1 /turtle1/cmd_vel geometry_msgs/msg/Twist "{linear: {x: 2.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 1.8}}"

ros2 service call /spawn turtlesim/srv/Spawn "{x: 6, y: 1, theta: 1.2, name: 't6'}"

ros2 param set /turtlesim background_r 255

ros2 action send_goal /turtle1/rotate_absolute turtlesim/action/RotateAbsolute {"theta: 1.57"}

---

ros2 launch dummy_robot_bringup dummy_robot_bringup.launch.py

rviz2


安装

  • Dashing
  • Eloquent

普通用户

  • 配置ROS 2环境
  • 介绍turtlesim和rqt
  • 了解ROS 2节点nodes
  • 了解ROS 2主题topics
  • 了解ROS 2服务services
  • 了解ROS 2参数parameters
  • 了解ROS 2行动actions
  • 使用rqt_console
  • 创建启动文件launch
  • 记录和播放数据ros2bag

开发人员

  • 创建工作区ws
  • 创建一个ROS 2包
  • 编写简单的发布者和订阅者(​​C ++)
  • 编写简单的发布者和订阅者(​​Python)
  • 编写简单的服务端和客户端(C ++)
  • 编写简单的服务端和客户端(Python)
  • ros2doctor入门

部分调试记录:

ros2 run turtlesim turtlesim_node

This application failed to start because it could not find or load the Qt platform plugin "windows"

使用windeployqt,配置一下该节点,通用格式如下:

windeployqt <ros2>/install/Lib/<package>/<target>.exe

C:\ros_ws\ros_tutorials\install\turtlesim\lib\turtlesim\turtlesim_node.exe 64 bit, release executable                   Adding Qt5Svg for qsvgicon.dll                                                                                          Direct dependencies: Qt5Core Qt5Gui Qt5Widgets                                                                          All dependencies   : Qt5Core Qt5Gui Qt5Widgets                                                                          To be deployed     : Qt5Core Qt5Gui Qt5Svg Qt5Widgets                                                                   Updating Qt5Core.dll.                                                                                                   Updating Qt5Gui.dll.                                                                                                    Updating Qt5Svg.dll.                                                                                                    Updating Qt5Widgets.dll.                                                                                                Updating libGLESV2.dll.                                                                                                 Updating libEGL.dll.                                                                                                    Updating d3dcompiler_47.dll.                                                                                            Updating opengl32sw.dll.                                                                                                Updating vc_redist.x64.exe.                                                                                             Patching Qt5Core.dll...                                                                                                 Creating directory C:/ros_ws/ros_tutorials/install/turtlesim/lib/turtlesim/iconengines.                                 Updating qsvgicon.dll.                                                                                                  Creating directory C:/ros_ws/ros_tutorials/install/turtlesim/lib/turtlesim/imageformats.                                Updating qgif.dll.                                                                                                      Updating qicns.dll.                                                                                                     Updating qico.dll.                                                                                                      Updating qjpeg.dll.                                                                                                     Updating qsvg.dll.                                                                                                      Updating qtga.dll.                                                                                                      Updating qtiff.dll.                                                                                                     Updating qwbmp.dll.                                                                                                     Updating qwebp.dll.                                                                                                     Creating directory C:/ros_ws/ros_tutorials/install/turtlesim/lib/turtlesim/platforms.                                   Updating qwindows.dll.                                                                                                  Creating directory C:/ros_ws/ros_tutorials/install/turtlesim/lib/turtlesim/styles.                                      Updating qwindowsvistastyle.dll.                                                                                        Creating C:\ros_ws\ros_tutorials\install\turtlesim\lib\turtlesim\translations...                                        Creating qt_ar.qm...                                                                                                    Creating qt_bg.qm...                                                                                                    Creating qt_ca.qm...                                                                                                    Creating qt_cs.qm...                                                                                                    Creating qt_da.qm...                                                                                                    Creating qt_de.qm...                                                                                                    Creating qt_en.qm...                                                                                                    Creating qt_es.qm...                                                                                                    Creating qt_fi.qm...                                                                                                    Creating qt_fr.qm...                                                                                                    Creating qt_gd.qm...                                                                                                    Creating qt_he.qm...                                                                                                    Creating qt_hu.qm...                                                                                                    Creating qt_it.qm...                                                                                                    Creating qt_ja.qm...                                                                                                    Creating qt_ko.qm...                                                                                                    Creating qt_lv.qm...                                                                                                    Creating qt_pl.qm...                                                                                                    Creating qt_ru.qm...                                                                                                    Creating qt_sk.qm...                                                                                                    Creating qt_uk.qm... 

RQt依赖:

python -m pip install -U pydot PyQt5  

ROS2初学者教程(Dashing和Eloquent)Windows相关推荐

  1. 【Nav2中文网】十一、迁移指南 (一)Dashing到Eloquent

    本教程来自:Nav2中文网 Nav2交流社区:https://fishros.org.cn/forum ROS2/Nav2千人交流群:(QQ)139707339 更多精彩教程请关注微信公众号:鱼香RO ...

  2. freemap初学者教程_Jupyter初学者笔记本:教程

    freemap初学者教程 The Jupyter Notebook is an incredibly powerful tool for interactively developing and pr ...

  3. ROS2入门教程—创建一个简单的订阅者和发布者(C++版)

    ROS2入门教程-创建一个简单的订阅者和发布者(C++版) 1 创建功能包 2 创建发布者节点 3 设置发布者节点依赖项 4 设置发布者节点编译规则 5 创建订阅者 6 编译并运行   节点是通过RO ...

  4. Cocos2d-x初学者教程

    Cocos2d-x初学者教程 Cocos2d-x初学者教程 入门 分辨率设置 添加精灵 移动怪物 射击弹丸 碰撞检测与物理 画龙点睛 关于本项目在其他系统如Windows上的移植 参考资料 本文翻译自 ...

  5. SharpDX初学者教程第2部分:创建窗口

    SharpDX初学者教程第2部分:创建窗口 原文 http://www.johanfalk.eu/blog/sharpdx-tutorial-part-2-creating-a-window 在第二篇 ...

  6. Directx11 教程(2) 基本的windows应用程序框架(2)

    Directx11 教程(2) 基本的windows应用程序框架(2) 原文:Directx11 教程(2) 基本的windows应用程序框架(2) 在本教程中,我们把前面一个教程的代码,进行封装.把 ...

  7. SAP UI5 初学者教程之十九 - SAP UI5 数据类型和复杂的数据绑定

    一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 初学者教程之一:Hello World SAP UI5 初学者教程之二:SAP UI5 ...

  8. SAP UI5 初学者教程之二十八 - SAP UI5 应用的集成测试工具 OPA 介绍试读版

    一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 初学者教程之一:Hello World SAP UI5 初学者教程之二:SAP UI5 ...

  9. SAP UI5 初学者教程之二十七 - SAP UI5 应用的单元测试工具 QUnit 介绍试读版

    一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 初学者教程之一:Hello World SAP UI5 初学者教程之二:SAP UI5 ...

  10. SAP UI5 初学者教程之二十六 - OData 服务配合 Mock 服务器的使用步骤详解试读版

    一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 初学者教程之一:Hello World SAP UI5 初学者教程之二:SAP UI5 ...

最新文章

  1. Visual Studio2005无法启动web调试的真正原因
  2. LeetCode——Same Tree(判断两棵树是否相同)
  3. java虚拟机 山寨机_十年前的山寨机居然有系统?没错,还是纯国产的
  4. 云服务器怎么设置域名,云服务器域名设置在哪里
  5. GitHub 6600星,面向中国人:微软AI教育与学习共建社区2.0登场!
  6. Linux中ls -l(ll)返回结果中的文件访问权限-rw-r--rw-
  7. 计算机技能鉴定操作试题,计算机操作员中级操作技能考核试卷职业技能鉴定国家题库...
  8. Apache Solrj EmbeddedSolrServer使用
  9. java 定时程序扫描表_Java扫描程序类
  10. Ubuntu: No space left on device,无法创建新文件夹,无法创建新文件,无法存储文件
  11. 计算机软件专业代码表,2019-04-09 计算机软件适用的国民经济行业代码表
  12. 灵格斯与word2007或2010冲突,复制时word关闭问题的解决
  13. SLIC超像素算法学习笔记
  14. CSS 文字样式 第二节
  15. aws ssh 证书配置_在AWS Lambda中运行netflix bless ssh证书颁发机构
  16. Qt对象间的父子关系
  17. nginx做域名映射到指定端口(阿里云服务器、阿里域名服务)
  18. 互联网日报 | 5月31日 星期一 | 天猫618取消PK玩法;有赞独立新零售业务品牌;钉钉发布国内首个低代码应用广场“钉钉搭”...
  19. 微信直播聊天室架构演进
  20. Android整机性能监控:多核CPU相关数据的获取(使用率、主频)

热门文章

  1. jsp打印去掉页眉页脚
  2. 关于grldr is missing
  3. KOL投放指南(六) :品牌五一借势营销大盘点!
  4. 机械制图及计算机绘图试题库,机械制图及计算机绘图--试题库2016版.pdf
  5. Python多进程反而变慢
  6. STM32L010C6Tx的睡眠 按键唤醒和RTC Alarm闹钟唤醒
  7. window.onload=function()是什么意思
  8. 用计算机探索规律反思,规律的背后——用计算器探索规律教学反思
  9. Python---excel筛选
  10. New Age音乐启蒙与经典选介