Should I remap a topic or change as a paremeter [closed]

asked 2021-05-19 03:29:13 -0500

ignacio gravatar image

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?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by ignacio
close date 2021-05-19 04:10:53.978462

Comments

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: Publishers created at runtime), using a parameter is probably acceptable.

gvdhoorn gravatar image gvdhoorn  ( 2021-05-19 03:32:48 -0500 )edit

Thanks for the fast reply. It does answer my question and I will close this one

ignacio gravatar image ignacio  ( 2021-05-19 04:10:44 -0500 )edit