Robotics StackExchange | Archived questions

Dynamically set ROS_MASTER_URI

Is there a way to dynamically set the ROS master when using multiple computers (on ROS melodic)? By this, I mean multiple computers are on the same network; if I launch roscore on one machine, I'd like the other machines to be able to detect this happened and set the ROSMASTERURI accordingly.

I'm new to ROS, so any direction is greatly appreciated!

Asked by shuttlebug on 2019-12-05 21:19:43 UTC

Comments

I'm not sure how "dynamic" it is (as in: how frequently you can change things with this), but perhaps this is what zeroconf_avahi is used for.

Asked by gvdhoorn on 2019-12-06 06:03:29 UTC

Answers