Can I in ARGoS save automatically snapshots of the experiment (ex. on 1k, 2k and 3k simulation step)?
I am almost sure that I've read somewhere that it is possible, but I cannot find it now

Thank you for your help!
Code: Select all
void CMyLoopFunctions()::PreStep() {
CQTOpenGLRender& render = dynamic_cast<CQTOpenGLRender&>(GetSimulator().GetVisualization());
CQTOpenGLWidget& widget = render. GetMainWindow().GetOpenGLWidget();
if(/* must save frame */)
widget.SetGrabFrame(true);
else
widget.SetGrabFrame(false);
}