Commit 691b9e81 authored by Mayank Mittal's avatar Mayank Mittal

Fixes Nucleus directory in check scripts for Isaac Sim

parent 019fc55a
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
import argparse import argparse
import contextlib
with contextlib.suppress(ModuleNotFoundError):
import isaacsim # noqa: F401
from omni.isaac.kit import SimulationApp from omni.isaac.kit import SimulationApp
...@@ -53,8 +57,8 @@ if nucleus_utils.get_assets_root_path() is None: ...@@ -53,8 +57,8 @@ if nucleus_utils.get_assets_root_path() is None:
ISAAC_NUCLEUS_DIR = f"{nucleus_utils.get_assets_root_path()}/Isaac" ISAAC_NUCLEUS_DIR = f"{nucleus_utils.get_assets_root_path()}/Isaac"
"""Path to the `Isaac` directory on the NVIDIA Nucleus Server.""" """Path to the `Isaac` directory on the NVIDIA Nucleus Server."""
ISAACLAB_NUCLEUS_DIR = f"{nucleus_utils.get_assets_root_path()}/Isaac/Samples/Orbit" ISAACLAB_NUCLEUS_DIR = f"{ISAAC_NUCLEUS_DIR}/IsaacLab"
"""Path to the `Isaac/Samples/Orbit` directory on the NVIDIA Nucleus Server.""" """Path to the `Isaac/IsaacLab` directory on the NVIDIA Nucleus Server."""
""" """
......
...@@ -13,8 +13,12 @@ Reference: https://docs.omniverse.nvidia.com/app_isaacsim/app_isaacsim/tutorial_ ...@@ -13,8 +13,12 @@ Reference: https://docs.omniverse.nvidia.com/app_isaacsim/app_isaacsim/tutorial_
import argparse import argparse
import contextlib
from omni.isaac.lab.app import AppLauncher with contextlib.suppress(ModuleNotFoundError):
import isaacsim # noqa: F401
from omni.isaac.kit import SimulationApp
# add argparse arguments # add argparse arguments
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
...@@ -27,14 +31,12 @@ parser.add_argument( ...@@ -27,14 +31,12 @@ parser.add_argument(
default="isaaclab", default="isaaclab",
help="The asset source location for the robot. Can be: isaaclab, oige, custom asset path.", help="The asset source location for the robot. Can be: isaaclab, oige, custom asset path.",
) )
# append AppLauncher cli args parser.add_argument("--headless", action="store_true", help="Run in headless mode.")
AppLauncher.add_app_launcher_args(parser)
# parse the arguments # parse the arguments
args_cli = parser.parse_args() args_cli = parser.parse_args()
# launch omniverse app # launch omniverse app
app_launcher = AppLauncher(args_cli) simulation_app = SimulationApp({"headless": args_cli.headless})
simulation_app = app_launcher.app
"""Rest everything follows.""" """Rest everything follows."""
...@@ -67,8 +69,8 @@ if nucleus_utils.get_assets_root_path() is None: ...@@ -67,8 +69,8 @@ if nucleus_utils.get_assets_root_path() is None:
ISAAC_NUCLEUS_DIR = f"{nucleus_utils.get_assets_root_path()}/Isaac" ISAAC_NUCLEUS_DIR = f"{nucleus_utils.get_assets_root_path()}/Isaac"
"""Path to the `Isaac` directory on the NVIDIA Nucleus Server.""" """Path to the `Isaac` directory on the NVIDIA Nucleus Server."""
ISAACLAB_NUCLEUS_DIR = f"{nucleus_utils.get_assets_root_path()}/Isaac/Samples/Orbit" ISAACLAB_NUCLEUS_DIR = f"{ISAAC_NUCLEUS_DIR}/IsaacLab"
"""Path to the `Isaac/Samples/Orbit` directory on the NVIDIA Nucleus Server.""" """Path to the `Isaac/IsaacLab` directory on the NVIDIA Nucleus Server."""
""" """
......
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