avoidin circular topic remapping
Hello. I've got a problem with topic remapping. I have a node that publishes informations relative to a robot, and listens to the topics of the informations relative to other 3 robot of the same type. Something like:
publish on : /robot1/info listens to: /robot2/info , /robot3/info, /robot4/info.
Now I want all the 4 robots to share the same code.
So, I want, for example, robot2 to publish on /robot2/info and to listen to /robot1/info (and to the other 2 robots of course)
In the launch file a used a classic remap in this way: from="/robot1/info" to="/robot2/info" and from="/robot2/info" to="/robot1/info"
but the result is that nothing changes and I think is due to some kind of circular remapping.
Any idea of how to address the problem? Thank you in advance.