Isaac Sim version: 2023.1.0
Hello.
While trying to execute the example “camera_opencv.py” I experienced the following error:
Traceback (most recent call last):
File "/home/user/.local/share/ov/pkg/isaac_sim-2023.1.0/standalone_examples/api/omni.isaac.sensor/camera_opencv.py", line 72, in <module>
camera.set_horizontal_aperture(horizontal_aperture / 10.0)
File "/home/user/.local/share/ov/pkg/isaac_sim-2023.1.0/exts/omni.isaac.sensor/omni/isaac/sensor/scripts/camera.py", line 1089, in set_horizontal_aperture
(width, height) = self.get_resolution()
File "/home/user/.local/share/ov/pkg/isaac_sim-2023.1.0/exts/omni.isaac.sensor/omni/isaac/sensor/scripts/camera.py", line 498, in get_resolution
return get_resolution(self._render_product_path)
File "/home/user/.local/share/ov/pkg/isaac_sim-2023.1.0/exts/omni.isaac.core/omni/isaac/core/utils/render_product.py", line 126, in get_resolution
render_prod_prim = UsdRender.Product(stage.GetPrimAtPath(render_product_path))
Boost.Python.ArgumentError: Python argument types in
Stage.GetPrimAtPath(Stage, NoneType)
did not match C++ signature:
GetPrimAtPath(pxrInternal_v0_22__pxrReserved__::UsdStage {lvalue}, pxrInternal_v0_22__pxrReserved__::SdfPath path)
The error indicates that there is a problem when trying to use the set_horizontal_aperture(...)
function.
Just to make sure I also tried to use this function in my own separate python script, where I got the same error. Specifically, the error only occurs when trying to set the horizontal or vertical aperture of a camera. The other parameters seem to work fine.
This issue appears to be related to a bug and I don’t know if there is any workaround.