No, not without writing a custom node/script.
Edit:
Hi! Do you mean I have to write a custom node/script that kills all the nodes I launched using a single launch file? Or do you mean I have to kill all the nodes individually in their scripts after x seconds? How do I do this?
I'm saying roslaunch
does not have built-in support to "kill all nodes after 10 seconds (or x seconds)".
One way to achieve what you're after would be to write a script which uses rosnode kill
on all the nodes you'd like it to kill. Could be a Bash script fi. Or something more complex.
Then start that script as part of your .launch
file.