ilpincy / argos3

A parallel, multi-engine simulator for heterogeneous swarm robotics
http://www.argos-sim.info/
262 stars 121 forks source link

How to make the code run repeatedly in the simulation platform? #87

Closed Hi-Ryan closed 5 years ago

Hi-Ryan commented 5 years ago

I want to run the same code file many times to get experimental data. How can I get the simulation platform to finish the experiment and start the next cycle immediately? And you don't need to update the 'random_seed' variable of the. argos file manually anymore.

Can you give me some good advice? I spent too much time in my lab setting 'random_seed' manually.

allsey87 commented 5 years ago

Setting random_seed to zero should give you a random seed every time you run your experiment. If you are at the stage of collecting data, the general workflow would be to turn off the visualization and to call ARGoS in a bash loop. Your data can be collected using a loop function.

Please note that the Github is for development issues only. Please post questions like this to the forum in the future: https://www.argos-sim.info/forum/