Page 1 of 1

Vision sensor auxiliary channels

Posted: 24 Jul 2024, 20:12
by TatiAlvares
Hi,
I've been trying to simulate a multi-robot system that can map an unknown area and detect fire by following the heat, and I can't find a functionality that allows me to sense the temperature. I know older versions had vision sensors with a OpenGL auxiliary channels mode for rendering, but that seems to not be available anymore. If that's the case, can I have a link to download the last version of CoppeliaSim with said functionality? I'm open to any helpful suggestions on alternative ways to achieve my objective.

Re: Vision sensor auxiliary channels

Posted: 25 Jul 2024, 06:22
by coppelia
Hello,

you can still set the vision sensor into that rendering mode via:

Code: Select all

sim.setObjectInt32Param(sensorHandle, sim.visionintparam_render_mode, 1)
In order to still be able to adjust the auxiliary color components, you can set showOldDlgs to true in usrset.txt.

But better would be to have some heat objects (shapes) hidden in a specific layer, then switch back-and-forth to that layer before/after handling the vision sensor via sim.handleVisionSensor(sensorHandle) (make sure the sensor is flagged as explicit handling).

Cheers