How to set vision sensor render mode to OpenGL3 via client or remote API

Typically: "How do I... ", "How can I... " questions
Post Reply
hedo
Posts: 5
Joined: 28 May 2024, 14:53

How to set vision sensor render mode to OpenGL3 via client or remote API

Post by hedo »

Hi,

I came across missing information about the vision sensor properties in the documentation.
I compiled and activated the OpenGL3 plugin and was able to create vision sensors via the simulators GUI to render the image in OpenGL3. However, when I wanted to programmatically create a sensor in this render mode I found in [the docu][https://manual.coppeliarobotics.com/en/ ... ionSensors] for the parameter sim.visionintparam_render_mode no mode for OpenGL3. Is that a missing implementation, or do I look at the wrong functionality to set the render mode.
Here is my current example code

Code: Select all

        self.sensorHandle = sim.createVisionSensor(0b00000010, [1024, 800,0,0], [0.01,10.0,np.deg2rad(60.00),0.01,0.0,0.0,0.,0.,0.,0.,0.])
        sim.setObjectInt32Param(self.sensorHandle, sim.visionintparam_render_mode, 0)
Thank you in advance and cheers,
Heiko
coppelia
Site Admin
Posts: 10747
Joined: 14 Dec 2012, 00:25

Re: How to set vision sensor render mode to OpenGL3 via client or remote API

Post by coppelia »

Hello,

indeed, this in not documented. You'd use a value of 7 for the openGL3 render mode.
What platform are you running on? Why did you have to recompile the simOpenGL3 plugin?

Cheers
Post Reply