Asyncronous functions

Hi everyone,

I was wondering if there was a way of creating asyncronous functions in the python version that VC runs in order to improve the simulation performance. As far as I know, the asyncio library isn’t supported in VC although I did see that the multithreaded programming is supported theoretically.

Has anyone tried this before? Does it work?

Thanks in advance,

1 Like

I’m also looking for a way to create asynconous movement of joints.
In the current implementation it seems like only blocking movements are possible.

1 Like

The VC Python engine is actually Stackless Python, so I guess you could try creating and running your own tasklets. I have no idea if they will work.
https://stackless.readthedocs.io/en/2.7-slp/library/stackless/stackless.html