当前位置:网站首页>[ROS] (05) ROS Communication - Node, Nodes & Master
[ROS] (05) ROS Communication - Node, Nodes & Master
2022-08-02 14:19:00 【CynalFly】
The article is just a study note in the personal learning process, the main reference is ROS tutorial1a>.
1. Concepts
Nodes: A node is an executable file that can communicate with other nodes through ROS.
Node Manager (Master): ROS's naming service, eg to help nodes discover each other.
2, Nodes
A node (Node) is actually just an executable file in the ROS package (executable file generated by C++ compilation, python script), and the executable file becomes a process after running,This process is called node in ROS..ROS nodes use the ROS client library to communicate with other nodes.Nodes can publish or subscribe to topics, and can also provide or consume services.A ROS control system includes many nodes, such as unmanned vehicles, one node (Node) controls the wheel motor of the unmanned vehicle, one node (Node) obtains positioning information through inertial navigation, one node (Node) obtains image information through the camera, and one node (Node) obtains image information through the camera.Node (Node) integrates various information to execute path planning and so on.
ROS client libraries allow nodes written in different languages to communicate with each other:
- roscpp=C++ client
- rospy=python client
3, Master
The robot is a systematic implementation with many components, huge functions and high complexity.In practical applications, the robot may integrate various sensors such as lidar, inertial navigation, millimeter-wave radar, camera, GPS, and motion control devices to be responsible for functions such as perception, control, decision-making, and calculation. Each function point is aIndividual Nodes.So how to manage, allocate and control these nodes?This uses the ROS Master, which provides naming and registration services for the rest of the nodes in the ROS system.The role of the Master is to enable each ROS node (Nodes) to locate each other, and then to carry out point-to-point communication.
4, rosnode
rosnode is a command line tool for displaying information about ROS nodes.The commands are:
| Command | Features |
|---|---|
| rosnode ping | Test the connection to the node |
| rosnode list | List active nodes |
| rosnode info | Print information about the node |
| rosnode machine | List nodes on the specified device |
| rosnode kill | kill a running node |
| rosnode cleanup | Clear unconnectable nodes |
When using ctrl+C to stop the node, the node is not completely cleared, you can use
rosnode cleanupto clear the node.
5. Example test
#Step 1: (ROS primary operation) Run the roscore command to start the master, which is responsible for ros node registration, parameter server, topic communication management, etc.
#Step 2: Runrosnode related commands.
/rosoutThis node is used to collect and log debug output from the node, which is always running.
ROS.otg. ROS Tutorial[EB/OL]. 2020-12-22[2022-7-5].
http://wiki.ros.org/en/ROS/Tutorials. ︎
边栏推荐
猜你喜欢
随机推荐
rpm包的卸载与安装[通俗易懂]
史上最全!47个“数字化转型”常见术语合集,看完秒懂~
Minio文件上传
You can't accept 60% slump, there is no eligible for gain of 6000% in 2021-05-27
MarkDown语法汇总
此次519暴跌的几点感触 2021-05-21
线代:已知一个特征向量快速求另外两个与之正交的特征向量
drf源码分析与全局捕获异常
MySQL数据库语法格式
世界上最大的开源基金会 Apache 是如何运作的?
配置zabbix自动发现和自动注册。
vim复制粘贴_vim如何复制粘贴
8580 合并链表
paddleocr window10初体验
Unit 15 Paging, Filtering
[ROS]ROS常用工具介绍(待续)
[ROS](06)ROS通信 —— 话题(Topic)通信
Go语言初始
[ROS] The software package of the industrial computer does not compile
About the development forecast of the market outlook?2021-05-23


![[ROS]ROS常用工具介绍(待续)](/img/ea/e390106f750bf697e62a3a296014d2.png)





