ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
ROS does not allow you to change the master URI at runtime. The internal hooks to change the master URI, subscribe and publish topics to the new master don't exist.
If you want your node to communicate with different topics or a different ROS master at runtime, I suggest you take a look at some of the topic and multimaster tools that can be used to forward topics between different ROS masters: