Programmatically Disable Depth Info

Typically: "How do I... ", "How can I... " questions
Post Reply
AndLydakis
Posts: 3
Joined: 30 Nov 2018, 16:09

Programmatically Disable Depth Info

Post 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

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Programmatically Disable Depth Info

Post by coppelia »

Hello,

unfortunately that's not possible...

Cheers

Post Reply