Page 1 of 1

Programmatically Disable Depth Info

Posted: 05 Dec 2018, 15:42
by AndLydakis
Hello,

For my simulations, I read different camera configurations from a URDF, with some being RGBD and some being RGB. At the moment I am creating all the cameras as vision sensors with both RGB and depth data which might unnecessarily slow down simulation.

Is there a way to programmatically enable or disable the depth info for a vision sensor like the button in the vision sensor dialog does? I can see that the source code for CVisionSensor sensors includes a setIgnoreRGB/Depth() public method, but I am not sure how to access the CVisionSensor object from the C++ API.

Thanks

Re: Programmatically Disable Depth Info

Posted: 06 Dec 2018, 08:06
by coppelia
Hello,

unfortunately that's not possible...

Cheers