当前位置:网站首页>20、 ROS distributed communication
20、 ROS distributed communication
2022-07-28 14:54:00 【Rock magnon】
List of articles
1. brief introduction
ROS It is a distributed control environment , This requires different nodes on different computers to communicate , Set up through the network , Different nodes on different computers can communicate
2. Realization
- Make sure the computer is on the same network , It's best to set a fixed IP Address
- modify /etc/hosts file , Let the host , Slave Complete IP Mutual mapping of address and computer name
- Host side :
Slave IP Slave computer name 172.17.0.2 d102-W65KJ1-KK2 - From the machine side :
The host IP The computer name of the host 172.17.0.1 d102-W65KJ1-KK1 - notes :
- IP Address check :ifconfig
- Computer name view :hostname
- Configure the host IP
stay .bashrc Middle append
Remember to add it source onceexport ROS_MASTER_URI=http://172.17.0.1( host IP):11311 export ROS_HOSTNAME=172.17.0.1( host IP) - Configure slave IP
stay .bashrc Middle append
Remember to add it source onceexport ROS_MASTER_URI=http://172.17.0.1( host IP):11311 export ROS_HOSTNAME=172.17.0.2( Slave IP)
3. test
3.1 ping Methods :
- ping IP Address
- ping Computer name
3.2 Node test
- The host starts roscore
- Host start subscription node
- Start the publishing node from the server
- host , Slave node exchange , Reverse test
边栏推荐
- Installing redis in Linux
- Swiftui layout - size (bottom)
- Tdengine helps Siemens' lightweight digital solutions
- Realization of chat room function
- Afnetworking crash course
- SSH service
- 如何只降3D相机不降UI相机的分辨率
- Hcip day 11
- Several methods of opening URL in swiftui view
- RPC (remote procedure call protocol) telecommunication framework
猜你喜欢

Getting started with scottplot tutorial: getting and displaying values at the mouse

Floating point data type in C language (did you learn to waste it)

Installing redis in Linux

爆肝整理JVM十大模块知识点总结,不信你还不懂

58 sub station Anju, broker marketing management platform login interface encryption reverse

linux安装mysql

Brief introduction and use of mqtt entry level

Read the introduction tutorial of rainbow

看了就会的 Rainbond 入门教程

Hcip day 11
随机推荐
Ability to add class @published for custom attribute wrapper types
Hcip day 10
Swiftui layout - size (top)
VTK vtkcontourwidget extracts regions of interest
Namespace conflict problem
C language related programming exercises
如何让照片中的人物笑起来?HMS Core视频编辑服务一键微笑功能,让人物笑容更自然
使用Weka与Excel进行简单的数据分析
Hcip day 12
C # read INI file and key value pair operation
RPC (remote procedure call protocol) telecommunication framework
Penguin side: why not recommend using select *?
2022 high altitude installation, maintenance, removal of examination question bank and online simulated examination
SSL socket cross platform solution libevent OpenSSL
Four basic data types
MITK create module
Factory mode and constructor mode
Create a table under swiftui with table
How to perform batch operations in core data
Hcip day 11