-
Notifications
You must be signed in to change notification settings - Fork 384
[Feature] IsaacLab wrapper #2937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
ee4865a
Update
836c854
Update
321157f
Update
650d34e
Update
45f1bf2
Update
284cffd
Update
2e5de6d
Update
6e8d486
Update
1631ba4
Update
bc423b6
Update
b594d62
Update
56d58df
Update
e34fc05
Update
8008d88
Update
c59802e
Update
6d4d7ea
Update
828c1bd
Update
f103e8c
Update
30e244c
Update
29bc3ac
Update
524c342
Update
67f3b8a
Update
2f4544d
Update
788a4cd
Update
b5ec158
Update
a378b9b
Update
3d197a8
Update
22192ac
Update
3640654
Update
962ddfc
Update
2b2625b
Update
dcbbb4c
Update
295a828
Update
98d480e
Update
58ae14f
Update
2abaa41
Update
0699be9
Update
f5aa260
Update
04c8ef9
Update
cfdb98b
Update
4016986
Update
fe5403b
Update
81095b3
Update
44189fb
Update
2bed777
Update
ec1d009
Update
ce4f31b
Update
9fa150d
Update
a365c4c
Update
1132aed
Update
6c45d31
Update
6324de6
Update
e5c7b46
Update
00ce1b4
Update
3f61daa
Update
124729b
Update
fc79624
Update
ed64649
Update
9c41be3
Update
a09eaa8
Update
c694d24
Update
a4f0d3b
Update
7e8e498
Update
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,81 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -v | ||
|
||
#if [[ "${{ github.ref }}" =~ release/* ]]; then | ||
# export RELEASE=1 | ||
# export TORCH_VERSION=stable | ||
#else | ||
export RELEASE=0 | ||
export TORCH_VERSION=nightly | ||
#fi | ||
|
||
set -euo pipefail | ||
export PYTHON_VERSION="3.10" | ||
export CU_VERSION="12.8" | ||
export TAR_OPTIONS="--no-same-owner" | ||
export UPLOAD_CHANNEL="nightly" | ||
export TF_CPP_MIN_LOG_LEVEL=0 | ||
export BATCHED_PIPE_TIMEOUT=60 | ||
export TD_GET_DEFAULTS_TO_NONE=1 | ||
export OMNI_KIT_ACCEPT_EULA=yes | ||
|
||
nvidia-smi | ||
|
||
# Setup | ||
apt-get update && apt-get install -y git wget gcc g++ | ||
apt-get install -y libglfw3 libgl1-mesa-glx libosmesa6 libglew-dev libsdl2-dev libsdl2-2.0-0 | ||
apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2 xvfb libegl-dev libx11-dev freeglut3-dev | ||
|
||
git config --global --add safe.directory '*' | ||
root_dir="$(git rev-parse --show-toplevel)" | ||
conda_dir="${root_dir}/conda" | ||
env_dir="${root_dir}/env" | ||
lib_dir="${env_dir}/lib" | ||
|
||
cd "${root_dir}" | ||
|
||
# install conda | ||
printf "* Installing conda\n" | ||
wget -O miniconda.sh "http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" | ||
bash ./miniconda.sh -b -f -p "${conda_dir}" | ||
eval "$(${conda_dir}/bin/conda shell.bash hook)" | ||
|
||
|
||
conda create --prefix ${env_dir} python=3.10 -y | ||
conda activate ${env_dir} | ||
|
||
# Pin pytorch to 2.5.1 for IsaacLab | ||
conda install pytorch==2.5.1 torchvision==0.20.1 pytorch-cuda=12.4 -c pytorch -c nvidia -y | ||
|
||
conda run -p ${env_dir} pip install --upgrade pip | ||
conda run -p ${env_dir} pip install 'isaacsim[all,extscache]==4.5.0' --extra-index-url https://pypi.nvidia.com | ||
conda install conda-forge::"cmake>3.22" -y | ||
|
||
git clone https://github.com/isaac-sim/IsaacLab.git | ||
cd IsaacLab | ||
conda run -p ${env_dir} ./isaaclab.sh --install sb3 | ||
cd ../ | ||
|
||
# install tensordict | ||
if [[ "$RELEASE" == 0 ]]; then | ||
conda install "anaconda::cmake>=3.22" -y | ||
conda run -p ${env_dir} python3 -m pip install "pybind11[global]" | ||
conda run -p ${env_dir} python3 -m pip install git+https://github.com/pytorch/tensordict.git | ||
else | ||
conda run -p ${env_dir} python3 -m pip install tensordict | ||
fi | ||
|
||
# smoke test | ||
conda run -p ${env_dir} python -c "import tensordict" | ||
|
||
printf "* Installing torchrl\n" | ||
conda run -p ${env_dir} python setup.py develop | ||
conda run -p ${env_dir} python -c "import torchrl" | ||
|
||
# Install pytest | ||
conda run -p ${env_dir} python -m pip install pytest pytest-cov pytest-mock pytest-instafail pytest-rerunfailures pytest-error-for-skips pytest-asyncio | ||
|
||
# Run tests | ||
conda run -p ${env_dir} python -m pytest test/test_libs.py -k isaac -s |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lin-erica this should hold for you too, I don't think we have access to the last obs of a trajectory in Isaac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's right.