当前位置:网站首页>Comparison of communication mechanisms
Comparison of communication mechanisms
2022-07-27 06:19:00 【Three assassins】
Of the three communication mechanisms , Parameter server is a data sharing mechanism , Data can be shared between different nodes , Topic communication and service communication transfer data between different nodes , The three are ROS The most basic and widely used communication mechanism in .
Among them , There are some similarities and essential differences between topic communication and service communication , Here we will make a simple comparison between the two :
The implementation process of the two is relatively similar , All involve four elements :
- elements 1: The publisher of the message / client (Publisher/Client)
- elements 2: Subscriber of the message / Server side (Subscriber/Server)
- elements 3: Topic name (Topic/Service)
- elements 4: Data carriers (msg/srv)
Can be summed up as : The two nodes are connected by topic , And use some type of data carrier to realize data transmission .
The realization of the two is also fundamentally different , The specific comparison is as follows :
| Topic( topic of conversation ) | Service( service ) | |
|---|---|---|
| Communication mode | Release / subscribe | request / Respond to |
| Synchronicity | asynchronous | Sync |
| The underlying protocol | ROSTCP/ROSUDP | ROSTCP/ROSUDP |
| buffer | Yes | nothing |
| All the time | weak | strong |
| Node relationship | Many to many | One to many ( One Server) |
| Communication data | msg | srv |
| Use scenarios | Continuous high-frequency data release and reception : radar 、 Odometer | Occasionally call or perform a specific function : Taking pictures 、 speech recognition |
边栏推荐
- ROS节点名称重名
- IP核小结
- Allow or prohibit connecting to a non domain and a domain network at the same time
- PZK学C语言之初识指针
- How to distinguish an independent server from a VPS host?
- 5g's past and present life -- a brief introduction to the development of mobile communication
- 5G网络身份识别---详解5G-GUTI
- Dynamic planning for solving problems (6)
- shell script if嵌套for循环脚本
- Progress in remote sensing image recognition 2022/5/5
猜你喜欢

Unity Shader 概述

5g network identity - detailed explanation of 5g Guti
![[first song] machine learning of rebirth - linear regression](/img/70/3efd9eacf88f55022eb52d096926f7.png)
[first song] machine learning of rebirth - linear regression

多线程的知识补充

力扣每日一题 剑指 Offer II 091. 粉刷房子

Leetcode one question per day 30. Concatenate substrings of all words

ROS运行管理之launch文件

多线程的相关知识

ROM of IP core

Introduction to Wireshark graphical interface
随机推荐
Dynamic programming for solving problems (1)
所有常用排序的代码实现和介绍
力扣每日一题leetcode 513. 找树左下角的值
ROS节点名称重名
力扣题解 二叉树(7)
Unity 实用小技巧(更新ing)
人月神话阅读笔记
IP核之PLL
通信机制案例
Automated Deployment Project
Remote sensing image recognition - making data sets
无法启动程序,拒绝访问?
遥感影像识别-多类识别下的错分问题
Man moon myth reading notes
wireshark功能介绍
Acwing the number of square arrays of one question per day
遥感影像识别进展2022/5/5
C#文件的读写
Unity 窗口界面的简单介绍
Pycharm installation and import project considerations