Connect to two ROS masters from one PC
Hello world,
(This is my first question so that i cannot upload image. ) I'm having a serious networking problem. I am using Ubuntu 20.04 with ROS noetic.
I have three PCs (Server PC, Client PC, and Additional PC)
- Server PC is running ROS master1, it has public IP-based internet (connect to Client PC via LTE)
- Additional PC is also running ROS master2, it has no internet (connect to Client PC via Ethernet)
- Client PC (has private LTE-based internet) wants to connect those masters simultaneously
Is that possible to connect to two ROS masters from one PC?
Thanks.
Asked by noobiesback on 2022-11-27 05:13:28 UTC
Answers
Yes, one PC can run ros nodes that connect to different ros masters. However, keep in mind that a specific ros node (linux process) is a member of exactly one ros network.
Asked by Mike Scheutzow on 2022-12-02 16:45:51 UTC
Comments
Yes, It is possible.
Just ensure that your client and server are connected using some local network and then EXPORT ROS_MASTER_URI
in your client system you will see all the topics for your server.
Asked by apurv_ on 2022-12-03 02:57:56 UTC
Comments
Yes, you can use ROS_MASTER_URI
to run ROS nodes connected to different roscore
on other PC.
Please check this source for nice intro:
Asked by ljaniec on 2022-12-03 10:56:46 UTC
Comments