当前位置:网站首页>ROS topics and nodes
ROS topics and nodes
2022-06-13 03:51:00 【X uuuer.】
ROS Simple understanding
Node: node , A node is an executable file , It can go through ROS Communicate with other nodes .
Topics: topic of conversation , Nodes can publish messages to topics , You can also subscribe to topics to receive messages .
Master : Node manager ,ROS The name of the service ( For example, help nodes find each other ).
- ROS Topics (ROS topic of conversation )
Two node It is through Topic communication .1 node (node), Release functions to a Topic, If 2 node (node) Subscribed to this Topic, It can get the content of the function .
Can pass rqt_graph See what's running node and topic:rosrun rqt_graph rqt_graph
- introduce rostopic: It can be downloaded from ROS topic pick up information
Such as :rostopic echo: Show publish to topic The data on the , usage :rostopic echo [topic]
rostopic list: This command will list all the currently being published and subscribed topic.
rostopic info: Print information about the campaign topic, including the publisher 、 subscriber 、 And Message type .
- ROS Messages
node It's through topic Send... Above message Come to communicate .
Publishers and subscribers can communicate , Because they use the same Message type ,topic The type of depends on message The type of .message The type of can be determined by rostopic type To define .
rostopic type: It can return any topic Published message type .
usage :rostopic type [topic]
View the message The specific member variables in the type :
rosmsg show [type]
msg File is ROS File that defines the message type in
- Publisher Its main function is to publish messages of specific data types for specific topics .
- Create a Subscriber To subscribe to Publisher The message published by the node .
Inside the ellipse are nodes , The arrow represents the message flow
边栏推荐
- [test development] advanced part - Classification of various test technologies
- 单片机:RS485 通信与 Modbus 协议
- 单片机:A/D 和 D/A 的基本概念
- Lambda终结操作查找与匹配findFirst
- 5G China unicom AP:B SMS ASCII 转码要求
- Talking about the wavelength of laser radar
- ROS中的msg消息
- What to bring to 2022
- Install cnpm and use cnpm command in vscode terminal
- 单片机信号发生器程序
猜你喜欢

LVS四层负载均衡集群(4)负载均衡的主要方式

Time complexity

单片机:A/D 和 D/A 的基本概念

19 MySQL database optimization methods

Wechat payment configuration
![[test development] blog system - LoadRunner performance test (publish blog function benchmark test)](/img/d2/a37257fd7cca1d0a4e748c734a6ffc.png)
[test development] blog system - LoadRunner performance test (publish blog function benchmark test)

单片机:RS485 通信与 Modbus 协议

【ZeloEngine】本地化流程/ImGui中文化

【面试复习】自用不定时更新

Installing MySQL 8.0.20 under Linux and ubuntu20.04 LTS
随机推荐
19 MySQL database optimization methods
Getting started with Oracle
Meaning of different values of margin and padding
Field * doesn't have a default value problem
【多线程】多线程到底是个甚——多线程初阶(复习自用)
扫地机器人如何才能避障不“智障”?五种主流的避障技术解析
【ZeloEngine】本地化流程/ImGui中文化
【MySQL】索引与事务
任总与系统工程领域科学家、专家会谈纪要
Lambda终结操作查找与匹配findFirst
Spark optimization - data skew solution
EGO Planner代码解析----CMakeLists.txt和package.xml
2022春学期总结
Lambda终结操作max&min
Difference between OKR and KPI
Lambda终结操作查找与匹配findAny
Use of file class
UnionPay commerce - merchant statistics service platform
Oracle built-in functions
Spark kernel (execution principle) environment preparation /spark job submission process