how to get the current experiment time step

Requests regarding how to set up experiments in ARGoS.
djkidoo
Posts: 3
Joined: Sun Feb 09, 2020 8:17 pm

how to get the current experiment time step

Postby djkidoo » Sat Sep 05, 2020 4:52 pm

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 !

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: how to get the current experiment time step

Postby pincy » Sat Sep 05, 2020 6:07 pm

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.
I made ARGoS.

djkidoo
Posts: 3
Joined: Sun Feb 09, 2020 8:17 pm

Re: how to get the current experiment time step

Postby djkidoo » Tue Sep 08, 2020 2:12 am

Thank you !

This is exacly what I have implemented.


Return to “How to... ?”