ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Running simulation multiple times

asked 2021-04-25 10:42:49 -0500

hairy gravatar image

Hi, I want to run simulation about 100 times. I have got launch file that launches environment and the algorithms after work it saves results and print in console that it is done. I probably could sit and launch this file by a hand but I dont want to. How can I write script that launches the launch file, wait until comuputation is over and when it gets information that its done it kills all processes from the file and again launch it?

edit retag flag offensive close merge delete

Comments

1

Have you taken a look at the roslaunch Python API?

jayess gravatar image jayess  ( 2021-04-25 22:02:42 -0500 )edit

I used it. Thank you very much, it saved me a lot of time :)

hairy gravatar image hairy  ( 2021-04-26 09:35:45 -0500 )edit

@hairy If it worked, then please accept my answer as correct

jayess gravatar image jayess  ( 2021-04-26 15:32:36 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-04-26 15:32:11 -0500

jayess gravatar image

Try using the roslaunch Python API

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-04-25 10:42:49 -0500

Seen: 170 times

Last updated: Apr 26 '21