Runtime topics remapping ?!
is it possible to remap topic during runtime?..using strings passed by other topics for example.. If it is..how?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
is it possible to remap topic during runtime?..using strings passed by other topics for example.. If it is..how?
Not directly as remapping usually means connecting to another topic. But you can just use normal ROS functionality for publishing/subscribing.
Basically: Bring down the old publisher/subscriber and create a new one that you pass another topic string to.
Well, you will have 100 total. For each robot, however, you would only have one declaration. If the ONE to connect to changes, you will just change what this single declaration points to in each robot/node. In the simplest form, you'd move the subscribe/advertise call from the init code.
No, that should not be necessary. Can you maybe update your original post and give some more explicit use cases what you'd like to happen, e.g. something like: robots/nodes and topic connections before - something changes - robots/nodes + topics after. This can probably be done without code changes.
Asked: 2013-06-10 02:32:13 -0500
Seen: 544 times
Last updated: Jun 10 '13