Parallel execution of same ROS nodes
Hi all,
What I am trying to achieve is:
I have one ROS node which is publishing one info on a topic and another subscriber node subscribed on that topic to process the info. I am launching both of them from a launch file. Now I want to run several instances of this launch file, for example 5 in parallel, where each instance will be independent i.e., the publisher or subscriber of one instance will not interfere the other. What do I mean is, in case of parallel execution, same topic will be used along these instances, so I am worried that this may create problems. So, If these instances are independent then there should not be any problem regarding publishing and subscribing on a same topic.
So, my question is: Does ROS permits this parallel execution of several instances of same launch file which describes several publisher and subscriber nodes? I have tried to google to find some information regarding this but I wasn't lucky. Any suggestion regarding this will be really helpful.
Thanks
I'm not sure that I understand your question. Are you asking if you can run the same node multiple times at the same time?
Yes, but its like a group of nodes. i.e. Launch file has multiple nodes. I want to launch several instances of this launch file where each instance is independent i.e., the nodes described in one instance of launch file should not interfere with the nodes of other instances.