Should I remap a topic or change as a paremeter [closed]
I am confused about which approach is better. When I want to either subscribe/publish to a topic, should I have the topic name as a parameter so I could change it in a config
file or should I remap it inside a launch
file?
I believe this was discussed in #q342777.
Could you see whether that Q&A clears things up sufficiently? If so: please close your question as a duplicate.
Summarising the accepted answer there: use remapping whenever possible, but for "dynamic topics" (ie:
Publisher
s created at runtime), using a parameter is probably acceptable.Thanks for the fast reply. It does answer my question and I will close this one