-
Notifications
You must be signed in to change notification settings - Fork 535
/
Copy pathinstall_x86.sh
executable file
·74 lines (60 loc) · 2.29 KB
/
install_x86.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env bash
# this script is for installing openvla on a training server or workstation with dGPU(s)
# https://pytorch.org/rl/stable/reference/generated/knowledge_base/MUJOCO_INSTALLATION.html
# git clone https://github.com/dusty-nv/jetson-containers
# export MUJOCO_GL=osmesa
# bash jetson-containers/packages/sim/mimicgen/install_x86.sh
set -ex
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
WORKDIR="/workspace"
mkdir -p $WORKDIR
cd $WORKDIR
APT_UPDATED=false
function apt_update() {
if [ ! $APT_UPDATED ]; then
apt-get update
APT_UPDATED=true
fi
}
if [ ! -d "robosuite" ]; then
echo "> INSTALLING robosuite"
git clone https://github.com/dusty-nv/robosuite
apt_update
apt-get install -y --no-install-recommends libhidapi-dev libosmesa6-dev python3-dev python3-pip
cd robosuite
pip3 install --verbose -e .
pip3 install --verbose --no-cache-dir imageio[ffmpeg] pyspacemouse opencv-python
fi
echo "> TESTING robosuite"
#python3 $SCRIPT_DIR/../robosuite/test.py \
# --robots Panda --grippers PandaGripper \
# --cameras agentview --camera-width 224 --camera-height 224 \
# --output $WORKDIR/robosuite/output/test
if [ ! -d "robomimic" ]; then
echo "> INSTALLING robomimic"
cd $WORKDIR
git clone https://github.com/ARISE-Initiative/robomimic/
cd robomimic
pip3 install --verbose cmake ninja torch==2.2
pip3 install --verbose -e .
fi
cd /
python3 -c 'import robomimic; print("robomimic version: ", robomimic.__version__)'
python3 -c 'import robosuite; print("robosuite version:", robosuite.__version__)'
python3 -c 'from robomimic.envs.env_robosuite import EnvRobosuite'
cd $WORKDIR
if [ ! -d "mimicgen" ]; then
echo "> INSTALLING mimicgen"
git clone https://github.com/dusty-nv/mimicgen
cd mimicgen
pip3 install --verbose -e .
fi
cd /
python3 -c 'import mimicgen; print("mimicgen version: ", mimicgen.__version__)'
python3 -c 'import robomimic; print("robomimic version: ", robomimic.__version__)'
python3 -c 'import robosuite; print("robosuite version:", robosuite.__version__)'
python3 $SCRIPT_DIR/test.py \
--robots Panda --grippers PandaGripper \
--cameras agentview --camera-width 224 --camera-height 224 \
--output $WORKDIR/mimicgen/output/test
cd $WORKDIR