running launch files on multiple master at the same time
Hi, In my project, i need to set up parallel testing jobs. so i have multiple launch files with different parameters, using the same default nodes, that should run in parallel. I tried to assign a different namespace to each launchfile, but still some nodes are shutting down. i guess it's all about the master, because they are all connecting to the same master even with different namespace. I want to ask if it is possible to run exactly multiple masters i parallel? thus each launch file should be connected to it's own master. i need to run 50 launchfiles with their respective masters at the same time (ci parallel jobs) is that possible ?
If everything is namespaced properly, I'm not sure why nodes are shutting down. Can you post the output/errors you're getting and the launch file(s)?
first.launch
second.launch
third.launch
this is my structure for every launch file. The launch files are launched by different scripts at the same time. let say first.sh, second.sh and third.sh. in Gitlab ci these scripts are executed in parallel jobs.i tried the namespace groups before and i noticed the following: when node a in first.launch quit, then node a in every launch quit. this is very unexpected behavior. so i tried the following: inside every script i export the roscore with different port then i start launch files with ...(more)
output first.launch
output second.launch
output third.launch
Do you run
roscore
separately before the launch files? If not, the master starts automatically with the first one, but it will also shutdown when the first finishes.Yes. Every launch file connect to seperate master, inside every script as follow:
It should be
ROS_MASTER_URI
(all caps). Is that a typo?