How to run multiple roscore/master in multiple machine?

asked 2022-04-25 12:11:08 -0600

YAAM gravatar image

Hello I am working on a project and I use ROS Melodic. I am trying to make communication between two ROS Master in two different machines and both of them should runs a rocscore. Any idea on how to implement this, Thank you!

edit retag flag offensive close merge delete


It is possible to connect to the rosmaster from remote machine but they can not share the topics or communicate among each-other as far as my knowledge.

So you run the roscore on individual machines. You export ROS_MASTER_URI according to the machine IP in the different terminals and you can access the topics of the the remote rosmaster but you can not interchangeably use it.

To do that, use only one rosmaster and connect other machine as rosslave.

aarsh_t gravatar image aarsh_t  ( 2022-04-26 04:47:01 -0600 )edit