Robotics StackExchange | Archived questions

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)

Is that possible to connect to two ROS masters from one PC?

Thanks.

Asked by noobiesback on 2022-11-27 05:13:28 UTC

Comments

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