Download simulation/modules/IsaacLab/source/isaaclab_tasks/test/test_environments.py from hk239/v2d: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/datasets/hk239/v2d/resolve/main/simulation/modules/IsaacLab/source/isaaclab_tasks/test/test_environments.py
- Command line
-
hf download hf://datasets/hk239/v2d/simulation/modules/IsaacLab/source/isaaclab_tasks/test/test_environments.py
-
curl -L -o test_environments.py https://huggingface.co/datasets/hk239/v2d/resolve/main/simulation/modules/IsaacLab/source/isaaclab_tasks/test/test_environments.py
1.14 kB
| # Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). | |
| # All rights reserved. | |
| # | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| """Launch Isaac Sim Simulator first.""" | |
| from isaaclab.app import AppLauncher | |
| # launch the simulator | |
| app_launcher = AppLauncher(headless=True, enable_cameras=True) | |
| simulation_app = app_launcher.app | |
| """Rest everything follows.""" | |
| import pytest | |
| import isaaclab_tasks # noqa: F401 | |
| # Local imports should be imported last | |
| from env_test_utils import _run_environments, setup_environment # isort: skip | |
| def test_environments(task_name, num_envs, device): | |
| # run environments without stage in memory | |
| _run_environments(task_name, device, num_envs, create_stage_in_memory=False) | |