forked from isaac-sim/IsaacLab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moves the robot configs to orbit_assets extension (isaac-sim#305)
# Description Moves the robot configs from orbit core to orbit assets. ## Type of change - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./orbit.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Co-authored-by: Mayank Mittal <[email protected]>
- Loading branch information
1 parent
9a2a877
commit 7ec1536
Showing
52 changed files
with
379 additions
and
80 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
*.usd filter=lfs diff=lfs merge=lfs -text | ||
*.dae filter=lfs diff=lfs merge=lfs -text | ||
*.mtl filter=lfs diff=lfs merge=lfs -text | ||
*.obj filter=lfs diff=lfs merge=lfs -text | ||
*.gif filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text | ||
*.psd filter=lfs diff=lfs merge=lfs -text | ||
*.mp4 filter=lfs diff=lfs merge=lfs -text | ||
*.usda filter=lfs diff=lfs merge=lfs -text | ||
*.hdr filter=lfs diff=lfs merge=lfs -text | ||
*.pt filter=lfs diff=lfs merge=lfs -text | ||
*.jit filter=lfs diff=lfs merge=lfs -text |
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
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
18 changes: 0 additions & 18 deletions
18
source/extensions/omni.isaac.orbit/omni/isaac/orbit/assets/config/__init__.py
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
18 changes: 18 additions & 0 deletions
18
source/extensions/omni.isaac.orbit_assets/config/extension.toml
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,18 @@ | ||
[package] | ||
# Semantic Versioning is used: https://semver.org/ | ||
version = "0.1.0" | ||
|
||
# Description | ||
title = "ORBIT Assets" | ||
description="Extension containing configuration instances of different assets and sensors" | ||
readme = "docs/README.md" | ||
repository = "https://github.com/NVIDIA-Omniverse/Orbit" | ||
category = "robotics" | ||
keywords = ["kit", "robotics", "assets", "orbit"] | ||
|
||
[dependencies] | ||
"omni.isaac.orbit" = {} | ||
|
||
# Main python module this extension provides. | ||
[[python.module]] | ||
name = "omni.isaac.orbit_assets" |
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 @@ | ||
For Orbit, we primarily store assets on the Omniverse Nucleus server. However, at times, it may be | ||
needed to store the assets locally (for debugging purposes). In such cases, this directory can be | ||
used for temporary hosting of assets. | ||
|
||
Inside the `data` directory, we recommend following the same structure as our Nucleus directory | ||
`Isaac/Samples/Orbit`. Please check the extension's README for further details. |
10 changes: 10 additions & 0 deletions
10
source/extensions/omni.isaac.orbit_assets/docs/CHANGELOG.rst
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,10 @@ | ||
Changelog | ||
--------- | ||
|
||
0.1.0 (2023-12-20) | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
Added | ||
^^^^^ | ||
|
||
* Moved all assets' configuration from ``omni.isaac.orbit`` to ``omni.isaac.orbit_assets`` extension. |
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,41 @@ | ||
# Orbit: Assets for Robots and Objects | ||
|
||
This extension contains configurations for various assets and sensors. The configuration instances are | ||
used to spawn and configure the instances in the simulation. They are passed to their corresponding | ||
classes during construction. | ||
|
||
## Organizing custom assets | ||
|
||
For Orbit, we primarily store assets on the Omniverse Nucleus server. However, at times, it may be | ||
needed to store the assets locally (for debugging purposes). In such cases, the extension's `data` | ||
directory can be used for temporary hosting of assets. | ||
|
||
Inside the `data` directory, we recommend following the same structure as our Nucleus directory | ||
`Isaac/Samples/Orbit`. This helps us later to move these assets to the Nucleus server seamlessly. | ||
|
||
The recommended directory structure inside `data` is as follows: | ||
|
||
* **`Robots/<Company-Name>/<Robot-Name>`**: The USD files should be inside `<Robot-Name>` directory with | ||
the name of the robot. | ||
* **`Props/<Prop-Type>/<Prop-Name>`**: The USD files should be inside `<Prop-Name>` directory with the name | ||
of the prop. This includes mounts, objects and markers. | ||
* **`ActuatorNets/<Company-Name>`**: The actuator networks should inside `<Company-Name` directory with the | ||
name of the actuator that it models. | ||
* **`Policies/<Task-Name>`**: The policy should be JIT/ONNX compiled with the name `policy.pt`. It should also | ||
contain the parameters used for training the checkpoint. This is to ensure reproducibility. | ||
* **`Test/<Test-Name>`**: The asset used for unit testing purposes. | ||
|
||
## Referring to the assets in your code | ||
|
||
You can use the following snippet to refer to the assets: | ||
|
||
```python | ||
|
||
from omni.isaac.orbit_assets import ORBIT_ASSETS_DATA_DIR | ||
|
||
|
||
# ANYmal-C | ||
ANYMAL_C_USD_PATH = f"{ORBIT_ASSETS_DATA_DIR}/Robots/ANYbotics/ANYmal-C/anymal_c.usd" | ||
# ANYmal-D | ||
ANYMAL_D_USD_PATH = f"{ORBIT_ASSETS_DATA_DIR}/Robots/ANYbotics/ANYmal-D/anymal_d.usd" | ||
``` |
39 changes: 39 additions & 0 deletions
39
source/extensions/omni.isaac.orbit_assets/omni/isaac/orbit_assets/__init__.py
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,39 @@ | ||
# Copyright (c) 2022-2023, The ORBIT Project Developers. | ||
# All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES, ETH Zurich, and University of Toronto | ||
# All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
"""Package containing asset and sensor configurations.""" | ||
|
||
import os | ||
import toml | ||
|
||
# Conveniences to other module directories via relative paths | ||
ORBIT_ASSETS_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../")) | ||
"""Path to the extension source directory.""" | ||
|
||
ORBIT_ASSETS_DATA_DIR = os.path.join(ORBIT_ASSETS_EXT_DIR, "data") | ||
"""Path to the extension data directory.""" | ||
|
||
ORBIT_ASSETS_METADATA = toml.load(os.path.join(ORBIT_ASSETS_EXT_DIR, "config", "extension.toml")) | ||
"""Extension metadata dictionary parsed from the extension.toml file.""" | ||
|
||
# Configure the module-level variables | ||
__version__ = ORBIT_ASSETS_METADATA["package"]["version"] | ||
|
||
|
||
## | ||
# Configuration for different assets. | ||
## | ||
|
||
from .anymal import * | ||
from .cartpole import * | ||
from .franka import * | ||
from .ridgeback_franka import * | ||
from .unitree import * | ||
from .universal_robots import * |
Oops, something went wrong.