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: 588 times
Last updated: Jun 10 '13
ImportError: No module named genpy
Differences between ROS and Player.
Ros ultrasonic sensor Rviz Error
Turning lights On and Off on Gazebo with ROS
roscd: No such package/stack 'turtlebot_navigation/'
Implementation of two subscribers
Nodelet performance vs number of instances
Unable to download model manifests
use custom ompl instead of ros own ompl
How to add image texture to gazebo as material through blender settings