Commit b9b28231 authored by Mayank Mittal's avatar Mayank Mittal

Renames tests for manager-based envs for consistency

parent 59490f80
...@@ -32,8 +32,8 @@ from omni.isaac.lab.utils import configclass ...@@ -32,8 +32,8 @@ from omni.isaac.lab.utils import configclass
@configclass @configclass
class EmptyActionsCfg: class EmptyManagerCfg:
"""Action specifications for the environment.""" """Empty manager specifications for the environment."""
pass pass
...@@ -55,7 +55,8 @@ def get_empty_base_env_cfg(device: str = "cuda:0", num_envs: int = 1, env_spacin ...@@ -55,7 +55,8 @@ def get_empty_base_env_cfg(device: str = "cuda:0", num_envs: int = 1, env_spacin
# Scene settings # Scene settings
scene: EmptySceneCfg = EmptySceneCfg(num_envs=num_envs, env_spacing=env_spacing) scene: EmptySceneCfg = EmptySceneCfg(num_envs=num_envs, env_spacing=env_spacing)
# Basic settings # Basic settings
actions: EmptyActionsCfg = EmptyActionsCfg() actions: EmptyManagerCfg = EmptyManagerCfg()
observations: EmptyManagerCfg = EmptyManagerCfg()
def __post_init__(self): def __post_init__(self):
"""Post initialization.""" """Post initialization."""
...@@ -63,14 +64,15 @@ def get_empty_base_env_cfg(device: str = "cuda:0", num_envs: int = 1, env_spacin ...@@ -63,14 +64,15 @@ def get_empty_base_env_cfg(device: str = "cuda:0", num_envs: int = 1, env_spacin
self.decimation = 4 # env step every 4 sim steps: 200Hz / 4 = 50Hz self.decimation = 4 # env step every 4 sim steps: 200Hz / 4 = 50Hz
# simulation settings # simulation settings
self.sim.dt = 0.005 # sim step every 5ms: 200Hz self.sim.dt = 0.005 # sim step every 5ms: 200Hz
self.sim.render_interval = self.decimation # render every 4 sim steps
# pass device down from test # pass device down from test
self.sim.device = device self.sim.device = device
return EmptyEnvCfg() return EmptyEnvCfg()
class TestBaseEnv(unittest.TestCase): class TestManagerBasedEnv(unittest.TestCase):
"""Test for base env class""" """Test for manager-based env class"""
""" """
Tests Tests
......
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