From e415d8a653638c5c5d4f0e4c4f3245433237e417 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Fri, 14 Aug 2026 00:45:04 -0400 Subject: [PATCH] Suppress OVRTX legacy stage API deprecation warnings --- .../mataylor-ovrtx-suppress-deprecation-logs.rst | 7 +++++++ .../isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 source/isaaclab_ov/changelog.d/mataylor-ovrtx-suppress-deprecation-logs.rst diff --git a/source/isaaclab_ov/changelog.d/mataylor-ovrtx-suppress-deprecation-logs.rst b/source/isaaclab_ov/changelog.d/mataylor-ovrtx-suppress-deprecation-logs.rst new file mode 100644 index 000000000000..32c32413d893 --- /dev/null +++ b/source/isaaclab_ov/changelog.d/mataylor-ovrtx-suppress-deprecation-logs.rst @@ -0,0 +1,7 @@ +Changed +^^^^^^^ + +* Changed :class:`~isaaclab_ov.renderers.OVRTXRenderer` to suppress the OVRTX deprecation warnings + emitted for the legacy stage API. Isaac Lab still drives that API until the ovstage path becomes + the default, so the warnings were noise no user of this renderer could act on. The option is set + only when the installed OVRTX build exposes it, so older wheels are unaffected. diff --git a/source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py b/source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py index 46f6a1e90f35..4dcb51933a61 100644 --- a/source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py +++ b/source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer.py @@ -395,6 +395,14 @@ def __init__(self, cfg: OVRTXRendererCfg): read_gpu_transforms=_read_gpu_transforms_enabled(), keep_system_alive=True, ) + # Isaac Lab still drives ovrtx's legacy stage API until the ovstage path is the default, so + # its deprecation warnings are noise no user of this renderer can act on. Set after + # construction because ``RendererConfig`` is a plain dataclass and wheels predating the + # option would reject it as an unexpected keyword argument. + # TODO: Remove this once the ovstage path is the default and the legacy stage API is removed. + if hasattr(OVRTX_CONFIG, "suppress_deprecation_warnings"): + OVRTX_CONFIG.suppress_deprecation_warnings = True + self._renderer = Renderer(OVRTX_CONFIG) if not self._renderer: raise RuntimeError(