how to run simulations circularly and automatically

Typically: "How do I... ", "How can I... " questions
Post Reply
Matthew Qi
Posts: 14
Joined: 31 Aug 2017, 02:11

how to run simulations circularly and automatically

Post by Matthew Qi » 31 Jan 2018, 03:40

Hi,

I am using V-REP with Python API to simulate the walking process of my robot, to make the robot perform perfectly, I have to adjust some parameters which could be a heavy work. So I want to run the simulation circularly and adjust these parameters automatically to find the optimums.

But I have no idea to make it in V-REP, could you give me some examples or any tutorials?

Thanks in advance!

Yours,
Matt

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

Re: how to run simulations circularly and automatically

Post by coppelia » 04 Feb 2018, 16:16

Hello Matt,

the best for that is to use a customization script, that will adjust various parameters when simulation is not running, and that will listen to some signal or other trigger to start and stop a simulation. That customization script could also interact with a remote API client, a ROS node, or a BlueZero node (will be available in V-REP 3.5.0, to be released within 1-3 days).

Cheers

Matthew Qi
Posts: 14
Joined: 31 Aug 2017, 02:11

Re: how to run simulations circularly and automatically

Post by Matthew Qi » 08 Feb 2018, 10:04

Hi,
Thank you for your quick reply!

Do we have any examples about customization scripts that I can refer to?

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

Re: how to run simulations circularly and automatically

Post by coppelia » 08 Feb 2018, 18:28

Have a look at the following models for instance:
  • Models/tools/rosInterface helper tool.ttm
  • Models/tools/simulation stepper tool.ttm
Cheers

Post Reply