ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Connect to two ROS masters from one PC

asked 2022-11-27 04:16:32 -0500

noobiesback gravatar image

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.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2022-12-03 01:57:56 -0500

apurv_ gravatar image

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.

edit flag offensive delete link more
0

answered 2022-12-03 09:56:46 -0500

ljaniec gravatar image

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:

edit flag offensive delete link more
0

answered 2022-12-02 15:45:51 -0500

Mike Scheutzow gravatar image

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.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-11-27 04:13:28 -0500

Seen: 173 times

Last updated: Dec 03 '22