How to speed up simulation using Python and Legacy remote API?

Typically: "How do I... ", "How can I... " questions
Post Reply
Guilherme.aut
Posts: 2
Joined: 13 Sep 2022, 17:22

How to speed up simulation using Python and Legacy remote API?

Post by Guilherme.aut »

Hi, i am brazilian, so, sorry for my english.

I am trying to use CoppeliaSim for Reinforcement Learning which requires a lot of simulation (many hours!), so I need to do this as quickly as possible. I am working with "Legacy remote API (Python)".

How can i do it? Could somebody help me?

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

Re: How to speed up simulation using Python and Legacy remote API?

Post by coppelia »

Hello,

you can use the legacy remote API, but I highly recommend using the ZeroMQ remote API, which is much easier and straightforward to use. And probably also quite faster depending on the task.

Then, you should try to optimize your scene for speed. You can do this in various ways:
In order to do above, it is important that you identify the bottleneck(s).

Cheers

Guilherme.aut
Posts: 2
Joined: 13 Sep 2022, 17:22

Re: How to speed up simulation using Python and Legacy remote API?

Post by Guilherme.aut »

Hi,

First, thank you for the answer.

I will try use the ZeroMQ remote API. There is a page with ZeroMQ remote API functions (Python)? I know the page with Legacy remote API functions (Python). Link: https://www.coppeliarobotics.com/helpFi ... jectParent

I need this functions for to program in Python and comunicate with coppeliaSim. Is it the same with ZeroMQ remote API?

Thank you for help me.

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

Re: How to speed up simulation using Python and Legacy remote API?

Post by coppelia »

The Python functions are all listed together, with the Lua function. Check out for instance sim.getObject (see at the bottom)

Cheers

Post Reply