I'm writing a python script using the python remote API. When running my script i noticed it got slower and slower with time so I tried timing a remote API function call and could see the call taking longer and longer time the longer my script was running. Is it possible that I'm doing something wrong and causing this behavior, or this is a known problem perhaps?
For example, I timed my synchronoustrigger call like this:
Code: Select all
dt = time.time() vrep.simxSynchronousTrigger(clientID) #Do one step in simulation dt = time.time() - dt print(1000*dt) #Convert to milliseconds
Any suggestion or explanation is appreciated.
Edit: I commented out my simxSetJointTargetPosition calls and the problem disappeared. But I need to use this call. Any ideas why this call is causing problems?