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.
Typically: "How do I... ", "How can I... " questions
2 posts • Page 1 of 1