Publishing to multiple topics with multiple node or single node?
Dear all,
I was wondering what is better if I want to publish to different topics in the same executable. Should I use the same node for all topics or is it better to use one node for each topic?
There is no right or wrong. If you provide more information maybe one solution is better. Just remember that it is good practise to let each node do one job, if that job is publishing to multiple topics then that's perfectly fine. But if each publish needs a complex calculation first, then it might be better to split it up into multiple nodes.