v2d / simulation /setup /00_init_modules.sh
hk239's picture
Upload v2d project (excluding data and .venv) (part 18)
3f4bb1d verified
Raw History Blame Contribute Delete
605 Bytes
#!/bin/bash
# Place Isaac Lab under simulation/modules (not imported from Dream).
set -eo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
mkdir -p "$ROOT/modules"
cd "$ROOT/modules"
clone() {
local url="$1" dest="$2" branch="${3:-}"
if [ -d "$dest/.git" ]; then
echo "exists: $dest"
return
fi
rm -rf "$dest"
if [ -n "$branch" ]; then
git clone --depth 1 --branch "$branch" "$url" "$dest"
else
git clone --depth 1 "$url" "$dest"
fi
}
clone https://github.com/isaac-sim/IsaacLab.git IsaacLab release/3.0.0-beta2
echo "[00] modules ready under $ROOT/modules"