Robotics StackExchange | Archived questions

Loading Multiple World Files one after the other

Hi, Is there a way to load world files from a ros node or script one after the other. I want to create 100 worlds and load them one after the other in the simulation. The task is to move a robot in the world and collect data, then load another world and move the robot in it and collect data and so on for 100 worlds. If there is a way to do it please let me know.

Thanks,

Asked by imranz30 on 2017-04-04 04:41:51 UTC

Comments

Hi try to explain it more clear because what u r describing for me does not make any sense. Are you asking about an algorithm or implementation?

Asked by mohsen1989m on 2017-04-04 05:32:19 UTC

I need to run a simulation for 24000 steps in Gazebo and at the end of it I want a new world to load automatically and run the simulation for another 24000 steps. This I want to do for 100 worlds at least. During the simulations I will gather data for analysis.

Asked by imranz30 on 2017-04-04 05:50:00 UTC

If there is an implementation or such a script available or some tips as to how to do it will be great for my experiments

Asked by imranz30 on 2017-04-04 05:52:05 UTC

Hm, I do not think so, I also experienced some stuff in Gazebo like unloading of robots crashes it and so on... so I would recommend to create your own script to start and close gazebo every time when you change the world, just to reset it. Problem: Gazebo also crashes on startup sometimes :/

Asked by cyborg-x1 on 2017-04-04 06:21:40 UTC

Any suggestions? I have the same problem.

Asked by ArmanAsq on 2022-08-08 08:53:41 UTC

Answers