|
| 1 | +# Copyright (c) 2022-2025, The Isaac Lab Project Developers. |
| 2 | +# All rights reserved. |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: BSD-3-Clause |
| 5 | + |
| 6 | +""" |
| 7 | +This file contains the settings for the tests. |
| 8 | +""" |
| 9 | + |
| 10 | +import os |
| 11 | + |
| 12 | +ISAACLAB_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| 13 | +"""Path to the root directory of the Isaac Lab repository.""" |
| 14 | + |
| 15 | +DEFAULT_TIMEOUT = 120 |
| 16 | +"""The default timeout for each test in seconds.""" |
| 17 | + |
| 18 | +PER_TEST_TIMEOUTS = { |
| 19 | + "test_articulation.py": 200, |
| 20 | + "test_deformable_object.py": 200, |
| 21 | + "test_environments.py": 1650, # This test runs through all the environments for 100 steps each |
| 22 | + "test_environment_determinism.py": 200, # This test runs through many the environments for 100 steps each |
| 23 | + "test_factory_environments.py": 300, # This test runs through Factory environments for 100 steps each |
| 24 | + "test_env_rendering_logic.py": 300, |
| 25 | + "test_camera.py": 500, |
| 26 | + "test_tiled_camera.py": 300, |
| 27 | + "test_generate_dataset.py": 300, # This test runs annotation for 10 demos and generation until one succeeds |
| 28 | + "test_rsl_rl_wrapper.py": 200, |
| 29 | + "test_sb3_wrapper.py": 200, |
| 30 | + "test_skrl_wrapper.py": 200, |
| 31 | + "test_operational_space.py": 300, |
| 32 | + "test_terrain_importer.py": 200, |
| 33 | +} |
| 34 | +"""A dictionary of tests and their timeouts in seconds. |
| 35 | +
|
| 36 | +Note: Any tests not listed here will use the default timeout. |
| 37 | +""" |
| 38 | + |
| 39 | +TESTS_TO_SKIP = [ |
| 40 | + # lab |
| 41 | + "test_argparser_launch.py", # app.close issue |
| 42 | + "test_build_simulation_context_nonheadless.py", # headless |
| 43 | + "test_env_var_launch.py", # app.close issue |
| 44 | + "test_kwarg_launch.py", # app.close issue |
| 45 | + "test_differential_ik.py", # Failing |
| 46 | + # lab_tasks |
| 47 | + "test_record_video.py", # Failing |
| 48 | + "test_tiled_camera_env.py", # Need to improve the logic |
| 49 | +] |
| 50 | +"""A list of tests to skip by run_tests.py""" |
| 51 | + |
| 52 | +TEST_RL_ENVS = [ |
| 53 | + # classic control |
| 54 | + "Isaac-Ant-v0", |
| 55 | + "Isaac-Cartpole-v0", |
| 56 | + # manipulation |
| 57 | + "Isaac-Lift-Cube-Franka-v0", |
| 58 | + "Isaac-Open-Drawer-Franka-v0", |
| 59 | + # dexterous manipulation |
| 60 | + "Isaac-Repose-Cube-Allegro-v0", |
| 61 | + # locomotion |
| 62 | + "Isaac-Velocity-Flat-Unitree-Go2-v0", |
| 63 | + "Isaac-Velocity-Rough-Anymal-D-v0", |
| 64 | + "Isaac-Velocity-Rough-G1-v0", |
| 65 | +] |
| 66 | +"""A list of RL environments to test training on by run_train_envs.py""" |
0 commit comments