Programmatically Disable Depth Info

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

Programmatically Disable Depth Info

Post by AndLydakis » 05 Dec 2018, 15:42


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.


Site Admin
Posts: 7150
Joined: 14 Dec 2012, 00:25

Re: Programmatically Disable Depth Info

Post by coppelia » 06 Dec 2018, 08:06


unfortunately that's not possible...


Post Reply