To me it seems that the time is managed in a very poor and in an 
inadequate way in chrono. I basically need to change it at its source in 
order to achieve what I want. I would need a way to make the simulation run 
at the same frequency on all machines. This is normally achieved with 
deltaTime 'normalization'. I tried to do that but it doesn't work. I'm 
using ChFunction which, from looking at the source code, appears to use a 
hardcoded step. This might be the issue why my delta time calculations do 
not work. At the moment my simulation runs at different speeds on different 
machines 

Le dimanche 12 mars 2023 à 16:03:08 UTC+1, [email protected] a écrit :

> Hi Alexandre,
>
> There are a couple of ways you can get the time:
>
>    - system->GetChTime(); 
>    - if your simulation runs with a fixed timestep, you can easily count 
>    steps in your physics loop; 
>
> I hope that answers your question.
>
> Greetings, Marcel
>
>
> On 12-Mar-23 15:42, Alexandre Vinovrski wrote:
>
> Hello to all,
> We are a team of students working on a project for our university. We have 
> to implement a genetic algorithm that allows an individual to walk in a 
> physical engine.
> One of the conditions necessary for our algorithm to stop is the 
> evaluation of the distance travelled based on the delta time. We have the 
> impression that this essential functionality for our project is missing in 
> Chrono. 
> Do you know if this is available, or if there is a replacement for this 
> method?
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "ProjectChrono" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/projectchrono/09555871-ff73-4848-b37a-2072500e85aan%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/projectchrono/09555871-ff73-4848-b37a-2072500e85aan%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/8201f3e0-3686-4e18-8b6b-bc41b44c06c8n%40googlegroups.com.

Reply via email to