-
Notifications
You must be signed in to change notification settings - Fork 368
[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
vmoens 836c854
Update
vmoens 321157f
Update
vmoens 650d34e
Update
vmoens 45f1bf2
Update
vmoens 284cffd
Update
vmoens 2e5de6d
Update
vmoens 6e8d486
Update
vmoens 1631ba4
Update
vmoens bc423b6
Update
vmoens b594d62
Update
vmoens 56d58df
Update
vmoens e34fc05
Update
vmoens 8008d88
Update
vmoens c59802e
Update
vmoens 6d4d7ea
Update
vmoens 828c1bd
Update
vmoens f103e8c
Update
vmoens 30e244c
Update
vmoens 29bc3ac
Update
vmoens 524c342
Update
vmoens 67f3b8a
Update
vmoens 2f4544d
Update
vmoens 788a4cd
Update
vmoens b5ec158
Update
vmoens a378b9b
Update
vmoens 3d197a8
Update
vmoens 22192ac
Update
vmoens 3640654
Update
vmoens 962ddfc
Update
vmoens 2b2625b
Update
vmoens dcbbb4c
Update
vmoens 295a828
Update
vmoens 98d480e
Update
vmoens 58ae14f
Update
vmoens 2abaa41
Update
vmoens 0699be9
Update
vmoens f5aa260
Update
vmoens 04c8ef9
Update
vmoens cfdb98b
Update
vmoens 4016986
Update
vmoens fe5403b
Update
vmoens 81095b3
Update
vmoens 44189fb
Update
vmoens 2bed777
Update
vmoens ec1d009
Update
vmoens ce4f31b
Update
vmoens 9fa150d
Update
vmoens a365c4c
Update
vmoens 1132aed
Update
vmoens 6c45d31
Update
vmoens 6324de6
Update
vmoens e5c7b46
Update
vmoens 00ce1b4
Update
vmoens 3f61daa
Update
vmoens 124729b
Update
vmoens fc79624
Update
vmoens ed64649
Update
vmoens 9c41be3
Update
vmoens a09eaa8
Update
vmoens c694d24
Update
vmoens a4f0d3b
Update
vmoens 7e8e498
Update
vmoens 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.