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 ROS_MASTER_URI accordingly.
I'm new to ROS, so any direction is greatly appreciated!
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.