ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
With a topic_tools mux you can feed both inputs into a node and select which gets published out with a service call:
http://wiki.ros.org/topic_tools/mux
So instead of
node1 -> topicA
node2 -> topicA
topicA -> node3
it would be
node1 -> topicB -> mux
node2 -> topicC -> mux
mux -> topicA (which is a copy of either B or C depending on mux selection)
topicA -> node3