Controlling simulation externally

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

Controlling simulation externally

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

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Controlling simulation externally

Post 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

Post Reply