Closed DeFilMat closed 1 year ago
If you read about C++ mutex, you will get its purpose. But to simply put,
lockVisualizationServerMutex
means "Hey visualizer, I am going to modify the simulation variables so don't read them now" and
unlockVisualizationServerMutex
means "Hey visualizer, I finished modifying the simulation variables. You can read them now".
the visualizer is running in another thread and has to know when it is safe to read the simulation variables for visualization.
Hi, I am studying for my first time raisim, and I was wondering what's the purpose of this portion of code in the Environment.hpp function provided by raisim:
I tryed to read the documentation to understand better what is world.integrate() and these mutex, but probabily I have a lacunarty in this field.