当前位置:网站首页>Ros2 topic (03): the difference between ros1 and ros2 [02]
Ros2 topic (03): the difference between ros1 and ros2 [02]
2022-07-07 23:19:00 【Mr anhydrous】
7 summary
Continued above :ROS2 project (03):ROS1 and ROS2 The difference between 【01】_
8 ros1 and ros2 Communication mode of
ros2 The abolition of the ros Of Ros-master Server mode , use DDS Distributed communication of Protocol ; The following figure illustrates the differences between their communication modes .
9 Parameter service and management
9.1 ros1 Parameter server
ros1 All parameters of are submitted to ROS-master Inside , Store globally , All nodes are accessible ; Here's the picture :
9.2 ros2 Parameter service of
ros2 The parameters of are stored in a special node , Nodes requiring parameters , Can pass Topic Receive parameter information ; This means that the parameter information can be changed in real time , For example, camera hot plug ; contrary , stay Ros1 Replace camera in , Parameters need to be changed ; Therefore, it has to be stipulated “ The camera hardware of this system must be a certain model ”
10 Service mode
ros1 Our service is synchronous ,ros2 Services are asynchronous ; This prevents communication congestion . More flexible is , If ROS2 Also want to achieve synchronous mode , Just choose a parameter .
11action signal communication
Action Communication is not about where to send information , It's about controlling certain actions , Like a switch 、 Opening and closing of buttons .ROS1 It is a double grip mobile phone system , and ros2 Change to 3 handshake mechanisms . As follows :
11.1 ros1 Of action
stay ros1 in ,action Service pass Topic Realization .
11.2 ROS2 Of action service
12 Custom message
ros2 The custom message of needs to add a namespace .
For example, compare ROS1 and ROS2 The customized message of is as follows :
It can be seen that , After compiling , The name of the custom message is slightly different .
13 workspace Compile path
13.1 The compilation places are workspace Underside (src On top of ); But the compilation tools are different :
13.2 ros-tools Different
13.3 ros2 New functions 
边栏推荐
- 网格(Grid)
- Solution: prompt "unsupported video format" when inserting avi format video into the message
- Technology at home and abroad people "see" the future of audio and video technology
- 力扣解法汇总648-单词替换
- About idea cannot find or load the main class
- How to generate unique file names
- Why does the market need low code?
- What are the similarities and differences between smart communities and smart cities
- USB (十七)2022-04-15
- Circumvention Technology: Registry
猜你喜欢
PMP项目管理考试过关口诀-1
Unity3D学习笔记5——创建子Mesh
Wechat forum exchange applet system graduation design completion (6) opening defense ppt
U盘拷贝东西时,报错卷错误,请运行chkdsk
十三、系统优化
14、 Two methods of database export and import
When copying something from the USB flash disk, an error volume error is reported. Please run CHKDSK
微信论坛交流小程序系统毕业设计毕设(3)后台功能
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
Binary tree
随机推荐
2021-01-12
kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
Install Fedora under RedHat
【编译原理】词法分析设计实现
1. Sum of two numbers
网络安全-永恒之蓝
About idea cannot find or load the main class
PMP项目管理考试过关口诀-1
Network security - phishing
oc 可变參数传递
Wechat forum exchange applet system graduation design completion (1) development outline
ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
Oracle-数据库的备份与恢复
Talk about the design and implementation logic of payment process
Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
Quelles sont les similitudes et les différences entre les communautés intelligentes et les villes intelligentes?
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
js 获取对象的key和value
微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板
13、 System optimization