Commit 25965b74 authored by Kelly Guo's avatar Kelly Guo Committed by Kelly Guo

Fixes error in hdf5 loading and hides simulation settings window (#246)

# Description

This change enforces the Isaac Lab extensions to be loaded last to avoid
conflicts in hdf5 with omniverse extensions. Additionally, we hide the
Simulation Settings window by default in `SimulationContext` as
specifying it in the app file does not seem to work. Also adds the
IsaacLab folder to python path for benchmarking scripts.


## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- 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
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->
parent 11474763
...@@ -183,11 +183,12 @@ enabled=true # Enable this for DLSS ...@@ -183,11 +183,12 @@ enabled=true # Enable this for DLSS
# Isaac Lab Extensions # # Isaac Lab Extensions #
######################## ########################
"isaaclab" = {} # Load Isaac Lab extensions last
"isaaclab_assets" = {} "isaaclab" = {order = 1000}
"isaaclab_tasks" = {} "isaaclab_assets" = {order = 1000}
"isaaclab_mimic" = {} "isaaclab_tasks" = {order = 1000}
"isaaclab_rl" = {} "isaaclab_mimic" = {order = 1000}
"isaaclab_rl" = {order = 1000}
# Asset path # Asset path
# set the S3 directory manually to the latest published S3 # set the S3 directory manually to the latest published S3
......
...@@ -103,11 +103,12 @@ keywords = ["experience", "app", "usd"] ...@@ -103,11 +103,12 @@ keywords = ["experience", "app", "usd"]
# Isaac Lab Extensions # # Isaac Lab Extensions #
######################## ########################
"isaaclab" = {} # Load Isaac Lab extensions last
"isaaclab_assets" = {} "isaaclab" = {order = 1000}
"isaaclab_tasks" = {} "isaaclab_assets" = {order = 1000}
"isaaclab_mimic" = {} "isaaclab_tasks" = {order = 1000}
"isaaclab_rl" = {} "isaaclab_mimic" = {order = 1000}
"isaaclab_rl" = {order = 1000}
[settings] [settings]
exts."omni.kit.material.library".ui_show_list = [ exts."omni.kit.material.library".ui_show_list = [
...@@ -235,7 +236,6 @@ resourcemonitor.timeBetweenQueries = 100 # improves performance ...@@ -235,7 +236,6 @@ resourcemonitor.timeBetweenQueries = 100 # improves performance
simulation.defaultMetersPerUnit = 1.0 # Meters default simulation.defaultMetersPerUnit = 1.0 # Meters default
omni.replicator.captureOnPlay = true omni.replicator.captureOnPlay = true
[settings] [settings]
### async rendering settings ### async rendering settings
omni.replicator.asyncRendering = false omni.replicator.asyncRendering = false
...@@ -279,7 +279,7 @@ folders = [ ...@@ -279,7 +279,7 @@ folders = [
] ]
[settings.physics] [settings.physics]
autoPopupSimulationOutputWindow=false autoPopupSimulationOutputWindow = false
updateToUsd = false updateToUsd = false
updateVelocitiesToUsd = false updateVelocitiesToUsd = false
updateParticlesToUsd = false updateParticlesToUsd = false
...@@ -288,7 +288,6 @@ updateForceSensorsToUsd = false ...@@ -288,7 +288,6 @@ updateForceSensorsToUsd = false
outputVelocitiesLocalSpace = false outputVelocitiesLocalSpace = false
useFastCache = false useFastCache = false
visualizationDisplayJoints = false visualizationDisplayJoints = false
visualizationSimulationOutput = false
fabricUpdateTransformations = false fabricUpdateTransformations = false
fabricUpdateVelocities = false fabricUpdateVelocities = false
fabricUpdateForceSensors = false fabricUpdateForceSensors = false
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
"""Launch Isaac Sim Simulator first.""" """Launch Isaac Sim Simulator first."""
import argparse import argparse
import os
import sys import sys
import time import time
...@@ -60,6 +61,8 @@ from isaacsim.core.utils.extensions import enable_extension ...@@ -60,6 +61,8 @@ from isaacsim.core.utils.extensions import enable_extension
enable_extension("isaacsim.benchmark.services") enable_extension("isaacsim.benchmark.services")
from isaacsim.benchmark.services import BaseIsaacBenchmark from isaacsim.benchmark.services import BaseIsaacBenchmark
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../.."))
from isaaclab.utils.timer import Timer from isaaclab.utils.timer import Timer
from scripts.benchmarks.utils import ( from scripts.benchmarks.utils import (
log_app_start_time, log_app_start_time,
......
...@@ -83,6 +83,8 @@ from isaaclab_tasks.utils.hydra import hydra_task_config ...@@ -83,6 +83,8 @@ from isaaclab_tasks.utils.hydra import hydra_task_config
imports_time_end = time.perf_counter_ns() imports_time_end = time.perf_counter_ns()
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../.."))
from isaaclab.utils.timer import Timer from isaaclab.utils.timer import Timer
from scripts.benchmarks.utils import ( from scripts.benchmarks.utils import (
log_app_start_time, log_app_start_time,
......
...@@ -85,6 +85,8 @@ from isaacsim.core.utils.extensions import enable_extension ...@@ -85,6 +85,8 @@ from isaacsim.core.utils.extensions import enable_extension
enable_extension("isaacsim.benchmark.services") enable_extension("isaacsim.benchmark.services")
from isaacsim.benchmark.services import BaseIsaacBenchmark from isaacsim.benchmark.services import BaseIsaacBenchmark
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../.."))
from isaaclab.utils.timer import Timer from isaaclab.utils.timer import Timer
from scripts.benchmarks.utils import ( from scripts.benchmarks.utils import (
log_app_start_time, log_app_start_time,
......
...@@ -9,6 +9,7 @@ import math ...@@ -9,6 +9,7 @@ import math
import re import re
import isaacsim import isaacsim
import omni.kit.app
import omni.kit.commands import omni.kit.commands
import omni.usd import omni.usd
from isaacsim.core.utils.extensions import enable_extension from isaacsim.core.utils.extensions import enable_extension
...@@ -45,6 +46,8 @@ class UrdfConverter(AssetConverterBase): ...@@ -45,6 +46,8 @@ class UrdfConverter(AssetConverterBase):
Args: Args:
cfg: The configuration instance for URDF to USD conversion. cfg: The configuration instance for URDF to USD conversion.
""" """
manager = omni.kit.app.get_app().get_extension_manager()
if not manager.is_extension_enabled("isaacsim.asset.importer.urdf"):
enable_extension("isaacsim.asset.importer.urdf") enable_extension("isaacsim.asset.importer.urdf")
from isaacsim.asset.importer.urdf._urdf import acquire_urdf_interface from isaacsim.asset.importer.urdf._urdf import acquire_urdf_interface
......
...@@ -139,6 +139,8 @@ class SimulationContext(_SimulationContext): ...@@ -139,6 +139,8 @@ class SimulationContext(_SimulationContext):
# reference: https://nvidia-omniverse.github.io/PhysX/physx/5.4.1/docs/Geometry.html?highlight=capsule#geometry # reference: https://nvidia-omniverse.github.io/PhysX/physx/5.4.1/docs/Geometry.html?highlight=capsule#geometry
carb_settings_iface.set_bool("/physics/collisionConeCustomGeometry", False) carb_settings_iface.set_bool("/physics/collisionConeCustomGeometry", False)
carb_settings_iface.set_bool("/physics/collisionCylinderCustomGeometry", False) carb_settings_iface.set_bool("/physics/collisionCylinderCustomGeometry", False)
# hide the Simulation Settings window
carb_settings_iface.set_bool("/physis/autoPopupSimulationOutputWindow", False)
# note: we read this once since it is not expected to change during runtime # note: we read this once since it is not expected to change during runtime
# read flag for whether a local GUI is enabled # read flag for whether a local GUI is enabled
self._local_gui = carb_settings_iface.get("/app/window/enabled") self._local_gui = carb_settings_iface.get("/app/window/enabled")
......
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