-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add omni installations * Add initial implementation of isaac * gitignore * incorporate isaaclab --------- Co-authored-by: Chenhao <[email protected]>
- Loading branch information
1 parent
f20b331
commit 88c1ecf
Showing
9 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,4 +161,7 @@ cython_debug/ | |
|
||
|
||
# VSCode | ||
.vscode/ | ||
.vscode/ | ||
|
||
# Outputs | ||
outputs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
3. `source venv/bin/activate` | ||
4. `pip install -e .` | ||
|
||
|
||
## Usage | ||
|
||
`python train_actsafe.py --help` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
from omegaconf import DictConfig | ||
|
||
|
||
from actsafe.benchmark_suites.utils import get_domain_and_task | ||
from actsafe.rl.types import EnvironmentFactory | ||
|
||
|
||
def make(cfg: DictConfig) -> EnvironmentFactory: | ||
import argparse | ||
from omni.isaac.lab.app import AppLauncher | ||
|
||
# add argparse arguments | ||
parser = argparse.ArgumentParser() | ||
# append AppLauncher cli args | ||
AppLauncher.add_app_launcher_args(parser) | ||
args_cli, _ = parser.parse_known_args() | ||
|
||
_, task_cfg = get_domain_and_task(cfg) | ||
|
||
args_cli.task = task_cfg.task | ||
args_cli.headless = task_cfg.headless | ||
|
||
# launch omniverse app | ||
app_launcher = AppLauncher(args_cli) | ||
simulation_app = app_launcher.app | ||
|
||
import torch | ||
from omni.isaac.lab_tasks.manager_based.locomotion.velocity.config.anymal_d.flat_env_cfg import AnymalDFlatEnvCfg | ||
|
||
torch.backends.cuda.matmul.allow_tf32 = True | ||
torch.backends.cudnn.allow_tf32 = True | ||
torch.backends.cudnn.deterministic = False | ||
torch.backends.cudnn.benchmark = False | ||
|
||
def make_env(): | ||
import gymnasium as gym | ||
|
||
env_cfg = AnymalDFlatEnvCfg() | ||
env = gym.make(args_cli.task, cfg=env_cfg, render_mode=None) | ||
return env | ||
|
||
return make_env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
isaaclab: | ||
task: Isaac-Velocity-Flat-Anymal-D-v0 | ||
headless: true | ||
image_observation: | ||
enabled: false | ||
image_size: [64, 64] | ||
image_format: "channels_first" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# @package _global_ | ||
defaults: | ||
- override /environment: isaaclab | ||
|
||
training: | ||
async_parallel: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ safe-adaptation-gym = { git = "https://[email protected]/lasgroup/safe-adaptation-g | |
jmp = { git = "https://github.com/deepmind/jmp" } | ||
tensorboard = "^2.16.2" | ||
|
||
|
||
[[tool.poetry.source]] | ||
name = "PyPI" | ||
priority = "primary" | ||
|