Monte Carlo simulations- repeated trials
I need to run the same simulation repeatedly (100 times) and I'd rather not do it manually. However, I have not found any resources describing how to do this in ROS. I have a launch file that runs the simulation once, so ideally I could write code that launches it, cuts it off after simulation time reaches a certain point, then saves and relaunches. How can I do this?
Other details: in ROS melodic, and all my code is in C++.