Remote API Version of sim.wait?

Typically: "How do I... ", "How can I... " questions
Post Reply
cleu892
Posts: 14
Joined: 16 May 2022, 13:09

Remote API Version of sim.wait?

Post by cleu892 »

Hello, is there a remote API version (particularly for C/C++) of sim.wait()?

Thanks!
coppelia
Site Admin
Posts: 10738
Joined: 14 Dec 2012, 00:25

Re: Remote API Version of sim.wait?

Post by coppelia »

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
Post Reply