I want to play my experiment 100 times and gather results. I guess that I cannot set that inside *.argos file so I determine three basic things:
- automatically start experiments
- closing application when my experiments is done (and it's not a time constraint)
- storing results somewhere
And I have problems with automatic start. I can turn on autostart by using
Code: Select all
<qt-opengl autoplay="true">
P.S.
I've managed to solve last two problems (closing application & storing results) - however not in a "pretty" way. Maybe there is easier way to to this?
Closing application when goal is achieved - I used following instruction in qt loop function:
Code: Select all
if (aggregation.isAggregationFinished())
dynamic_cast<QMainWindow*>(GetOpenGLWidget().window())->close();
Code: Select all
--log-file
Code: Select all
--logerr-file
but logs that appear in application window weren't stored in given files.[INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_footbot.so"
...
[INFO] Not using threads
[INFO] Using random seed = 896746
[INFO] Using simulation clock tick = 0.0166667
[INFO] Total experiment length in clock ticks = unlimited
So (since std::cout is redirected to argos global logger) I used printf before closing application and parse results with python script.