当前位置:网站首页>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
边栏推荐
- 单片机:EEPROM介绍与操作
- 单片机:I2C通信协议讲解
- [test development] automated test selenium (III) -- unittest framework analysis
- What to bring to 2022
- 【MySQL】索引与事务
- Difference between OKR and KPI
- Jumpserver: user - system privileged user - Asset - authorization
- 单片机:红外遥控通信原理
- UnionPay commerce - merchant statistics service platform
- Review the first three IO streams
猜你喜欢
Spark optimization - data skew solution
Field * doesn't have a default value problem
5G China unicom AP:B SMS ASCII 转码要求
[interview review] update from time to time for personal use
UnionPay commerce - merchant statistics service platform
【测试开发】自动化测试selenium(三)——unittest框架解析
GoFrame第五天
LVS four layer load balancing cluster (4) main methods of load balancing
Alibaba cloud keep on record
GoFrame第四天
随机推荐
LVS四層負載均衡集群(3)集群功能分類 - HPC
Lambda end operation count
Understand the difference between reducebykey and groupbykey in spark
V-bind and v-on
四旋翼飞行器避障系统基础
[interview review] update from time to time for personal use
[multithreading] what is multithreading in the end -- the elementary level of multithreading (review for self use)
Time complexity
单片机:NEC 协议红外遥控器
LVS four layer load balancing cluster (6) LVS working mode
How can a sweeping robot avoid obstacles without "mental retardation"? Analysis of five mainstream obstacle avoidance techniques
[test development] automatic test selenium (I)
[test development] automated test selenium (III) -- unittest framework analysis
Database object, sequence, view, index
【测试开发】自动化测试selenium(二)——webdriver常用的API
OKR和KPI的区别
Review the first three IO streams
Lambda end operation find and match findfirst
Difference between OKR and KPI
单片机:A/D(模数转换)的主要指标