Skip to content

Commit f225cc1

Browse files
committed
Merge branch 'main' of github.com:some45bucks/IsaacLab
2 parents 5e3370a + 33df21b commit f225cc1

File tree

59 files changed

+3330
-985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+3330
-985
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
**/*.usdc
1515
**/*.usdz
1616

17+
# no textures allowed in the repo dont track textures folder
18+
**/textures/*
19+
1720
# Python
1821
.DS_Store
1922
**/*.egg-info/

README.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,36 @@
11
# For Heterogeneous Agent Reinforcement Learning
22

3-
Use these instructions to install isaac sim -> [here](https://docs.omniverse.nvidia.com/isaacsim/latest/installation/install_python.html#install-isaac-sim-using-pip)
3+
<!-- ![GIF 1](withoutpolicy.gif) ![GIF 2](withpolicy.gif) -->
4+
<!--
5+
<div style="display: flex; justify-content: space-around;">
6+
<img src="withoutpolicy.gif" width="45%">
7+
<img src="withpolicy.gif" width="45%">
8+
</div>
9+
10+
*Before and after results of multi-agent reinforcement learning for bar balancing task* -->
11+
12+
---
13+
Use [these instructions](https://docs.omniverse.nvidia.com/isaacsim/latest/installation/install_python.html#install-isaac-sim-using-pip) to install isaac sim.
14+
15+
Make sure to run all the following commands with your isaaclab conda environment activated, as highlighted in the instructions provided above.
416

5-
Make sure to run all the following commands with your isaaclab conda environment activated, as highlighted in the instruction provided above.
617

718
```bash
819
cd IsaacLab
920
./isaaclab.sh -i
1021
pip install gymnasium==0.29.0
1122
```
23+
Note that we modified the `isaaclab.sh` install script to point to our fork of the [HARL repository](https://github.com/some45bucks/HARL.git), which the script will automatically install into your conda environment. If you want to make changes to the HARL code yourself, with your conda environment activated run the following
24+
25+
```bash
26+
git clone https://github.com/some45bucks/HARL.git
27+
cd HARL
28+
pip install -e .
29+
```
30+
This will uninstall the default HARL and reference this one instead, recognizing any changes to the code that you make.
1231

13-
At this point you should be able to run the trained multi-agent homogeneous environment.
32+
33+
At this point you should be able to run the trained cooperative bar balancing task.
1434

1535
```bash
1636
cd IsaacLab
@@ -26,6 +46,9 @@ arrow keys = x,y velocity commands (forward, backward, left, right)
2646

2747
If you are just interested in running the environment and seeing how the environment resets, training works etc. You can use the `play.py` script instead.
2848

49+
If you want to use the soccer or piano environments, unzip the assets.zip folder into the Isaaclab directory.
50+
51+
2952
# Training custom environment
3053

3154

@@ -45,13 +68,7 @@ Isaac Lab allows you to register custom environments in the Gym framework, enabl
4568

4669
## Environment Registration Example
4770

48-
The environment `DirectEnvRL` is used as the base for the multi agent anymal c bar carrying environment, and it is registered in the Gym environments through the `__init__.py` file. To better understand the process, you can explore the following example folder:
49-
50-
```
51-
IsaacLab/source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/direct/anymal_c_multi_agent
52-
```
53-
54-
This folder contains the environment code and the necessary registration logic. To register your custom environment, follow these steps:
71+
The best way to understand how to set up your own custom environment is by looking at the environment set up at `IsaacLab/source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/direct/anymal_c_multi_agent`, which is the bar balancing environment. A simple way to get started is to make a copy of this folder and begin modifying the environment to your specified needs. This folder contains the environment code and the necessary registration logic. To register your custom environment, follow these steps:
5572

5673
---
5774

analysis/analysis.ipynb

Lines changed: 89 additions & 27 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)