Page 1 of 1

Controlling simulation externally

Posted: 13 Apr 2017, 22:00
by rcandell
I am new to V-Rep. I have have a simple question regarding the API's. Can an external program control the simulation time? I see that the Regular API has a function called "simAdvanceSimulationByOneStep()" but I am still unsure if this will give me the ability to control advancing the simulation by an external actor. Can anyone comment on if or how this is possible? Thanks in advance.

Re: Controlling simulation externally

Posted: 18 Apr 2017, 08:09
by coppelia
Hello,

yes, you can do this, but in that case V-REP will need to run in synchronous mode, and each simulation step can be triggered by an external application (i.e. via ROS, or via the remote API).

In case of ROS, have a look at this simulation model: models/tools/rosInterface helper tool.ttm

In case of the remote API, have a look at this page

Cheers