Page 1 of 1

Can I export vision sensor output in real time?

Posted: 16 May 2022, 13:20
by cleu892
I am working on creating a virtual simulation of a robotics lab. Within the lab, there is a standalone program that grabs video feed from a camera filming the robot.

I was wondering, is there a way to mimic this video feed in CoppeliaSim? I have set up a vision sensor in the desired position already, and I know that CoppeliaSim can record a video when a simulation is run. However, I am looking for a way to transmit the live vision sensor output to the standalone program for processing in real time, not post-processing.

Thanks!

Re: Can I export vision sensor output in real time?

Posted: 16 May 2022, 14:20
by fferri
Have you tried calling sim.getVisionSensorImg (or sim.getVisionSensorCharImage) from an external (e.g. Python) program?

Re: Can I export vision sensor output in real time?

Posted: 17 May 2022, 13:48
by cleu892
fferri wrote: 16 May 2022, 14:20 Have you tried calling sim.getVisionSensorImg (or sim.getVisionSensorCharImage) from an external (e.g. Python) program?
Hi, no I haven't yet - I'll give that a try. Thank you!