Record a simulation video using python

Typically: "How do I... ", "How can I... " questions
Post Reply
projectgoo
Posts: 10
Joined: 23 Oct 2017, 20:19

Record a simulation video using python

Post by projectgoo »

Hello,

I am trying to make a video record of the simulation using a python script but I cannot find how to do it using the new API (RemoteAPIClient), Using the old API (sim.simxStart) it was possible. My question is, is it possible to do it using the new API ?

Doing it manually (https://manual.coppeliarobotics.com/en/aviRecorder.htm) is not a possibility for me.

Thanks in advance!
coppelia
Site Admin
Posts: 10747
Joined: 14 Dec 2012, 00:25

Re: Record a simulation video using python

Post by coppelia »

Hello,

Can you show us the code that used to work with the legacy remote API?
With the ZeroMQ remote API, you have several possibilities. Easiest would be to stream all individual images captured by a vision sensor via sim.getVisionSensorImg. See also the demo scripts in programming/zmqRemoteApi/clients/python/:
  • synchronousImageTransmission.py
  • imageStreaming.py
Cheers
projectgoo
Posts: 10
Joined: 23 Oct 2017, 20:19

Re: Record a simulation video using python

Post by projectgoo »

Thanks a lot for the fast reply.

I have searched for the scripts using the legacy code, but unfortunately I cannot find it, but I think it was the same as you have suggested and probably I made the mistake.
Post Reply