Hello, is there a remote API version (particularly for C/C++) of sim.wait()?
Thanks!
Remote API Version of sim.wait?
Re: Remote API Version of sim.wait?
Hello,
this depends on what you want to do exactly. If you are not running in stepped mode (or synchronous mode), then you should simply use sleep (or equivalent) to have your remote API client wait for a while, or, if you want your remote API client to wait in terms of simulation time, use sleep in conjunction with sim.getSimulationTime.
If you run in stepped mode (or synchronous mode), then, as long as you don't call client.step, CoppeliaSim will wait for the next simulation step.
Cheers
this depends on what you want to do exactly. If you are not running in stepped mode (or synchronous mode), then you should simply use sleep (or equivalent) to have your remote API client wait for a while, or, if you want your remote API client to wait in terms of simulation time, use sleep in conjunction with sim.getSimulationTime.
If you run in stepped mode (or synchronous mode), then, as long as you don't call client.step, CoppeliaSim will wait for the next simulation step.
Cheers