File size: 605 Bytes
3f4bb1d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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"