1 | initial version |
I think that once the GUI plugin has been loaded, it is too late to change the master URI because the transport system has already been setup.
One alternative I can think of, but adds complexity, would be to have custom GUI program (doesn't even need to link against Gazebo) where you can choose a port and that program launches gzclient
with the appropriate port.