Unverified Commit fe6ee746 authored by Pascal Roth's avatar Pascal Roth Committed by GitHub

Fixes broken import in Live Visualizer image plot (#2486)

# Description

Fixes isaacsim import in the image plot function of the live
visualizers.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
parent e992592a
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
import numpy as np import numpy as np
from contextlib import suppress
from matplotlib import cm from matplotlib import cm
from typing import TYPE_CHECKING, Optional from typing import TYPE_CHECKING, Optional
...@@ -11,6 +12,10 @@ import carb ...@@ -11,6 +12,10 @@ import carb
import omni import omni
import omni.log import omni.log
with suppress(ImportError):
# isaacsim.gui is not available when running in headless mode.
import isaacsim.gui.components.ui_utils
from .ui_widget_wrapper import UIWidgetWrapper from .ui_widget_wrapper import UIWidgetWrapper
if TYPE_CHECKING: if TYPE_CHECKING:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment