Page 1 of 1

how to get the current experiment time step

Posted: Sat Sep 05, 2020 4:52 pm
by djkidoo
hey

I need to get the current experiment time step at each step. I wonder if there is a built-in function that can provide me such information.

PS:
My experiment length is not fix in .argos file since i don't know how much time the experiment will take.
I am using lua for implementing the controllers

thank you !

Re: how to get the current experiment time step

Posted: Sat Sep 05, 2020 6:07 pm
by pincy
The simplest option is to use a counter that you increase every step. If you want a formal sensor for Lua, there's none at the moment.

Re: how to get the current experiment time step

Posted: Tue Sep 08, 2020 2:12 am
by djkidoo
Thank you !

This is exacly what I have implemented.