当前位置:网站首页>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
边栏推荐
猜你喜欢

LVS four layer load balancing cluster (4) main methods of load balancing

大五人格学习记录

Spark optimization - data skew solution

Fundamentals of robot obstacle avoidance system

Simulink code generation: simple state machine and its code
![[test development] automated test selenium (III) -- unittest framework analysis](/img/d2/e03746b20b2b50172e566023f6c224.png)
[test development] automated test selenium (III) -- unittest framework analysis
![[test development] use case](/img/33/cb505c9c73eabb9f7734751050e822.png)
[test development] use case

【测试开发】博客系统——Loadrunner性能测试(发布博客功能 基准测试)

Goframe day 4

Time complexity
随机推荐
Use of Oracle PL-SQL
Local simulation download file
Jumpserver: user - system privileged user - Asset - authorization
Goframe day 4
Lambda终结操作查找与匹配findFirst
What to bring to 2022
Simulink code generation: table lookup module and its code
Byte stream & buffer stream
单片机:A/D 差分输入信号
大五人格学习记录
Stream流的注意事项
Flex layout
[test development] use case
Serialization & deserialization
【测试开发】自动化测试selenium篇(一)
Binocular vision -- creating an "optimal solution" for outdoor obstacle avoidance
Talking about the wavelength of laser radar
[test development] automated test selenium (III) -- unittest framework analysis
Alibaba cloud keep on record
谈谈激光雷达的波长