#!/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"