Controlling simulation externally

Typically: "How do I... ", "How can I... " questions
Posts: 1
Joined: 13 Apr 2017, 21:46

Controlling simulation externally

Postby rcandell » 13 Apr 2017, 22:00

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.

Site Admin
Posts: 5811
Joined: 14 Dec 2012, 00:25

Re: Controlling simulation externally

Postby coppelia » 18 Apr 2017, 08:09


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


Return to “General questions”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], sjames and 32 guests