Hi Elendurwen,
If you type
you'll see that there are two options to redirect [INFO] (stdout) and [WARNING] / [ERROR] (stderr) to file. The syntax is:
Code: Select all
$ argos3 -l INFOFILE -e ERRORFILE -c myexperiment.argos
By default, the output contains extra control characters to color the output green and red. You can prevent ARGoS from outputting these characters by passing the additional option -n:
Code: Select all
$ argos3 -n -l INFOFILE -e ERRORFILE -c myexperiment.argos
Once you have your INFOFILE, you can find the random seed with this one-liner:
Code: Select all
$ grep 'random seed' INFOFILE | cut -d' ' -f6
Alternatively, you can get the value of the current random seed directly from C++, e.g., within the loop functions. To achieve this, you can write:
Code: Select all
CSimulator::GetInstance().GetRandomSeed()
Cheers,
Carlo
I made ARGoS.