I am building a simple warehouse model with a single forklift using the A* module. I also want to create a sort of heat map in which I have the total time spent by the forklift in an area and in which state it is.
My first approach is to use the A* heatmap, but then I see that it records only the traversals and not the time spent in each cell. After that, I tried using a global table and gathering this data directly from the model using the following code:
Now, It's happen something strange. If I click on the forklift and run the model very slowly, the table accurately updates, as you can see in the left table. But if I run the simulation faster, the table messes all the data (right table) and update the position and the total travel distance only when the forklift state change.
Could you suggest how to solve this issue, if necessary, also by changing the approach?
Thanks a lot for your time.
Here you can also find my model.