-
Notifications
You must be signed in to change notification settings - Fork 78
/
install-openrave.sh
executable file
·50 lines (47 loc) · 1.61 KB
/
install-openrave.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
#!/bin/bash
#
# Authors:
# Francisco Suarez <fsuarez6.github.io>
#
# Description:
# OpenRAVE Installation Script
# Check ubuntu version
UBUNTU_VER=$(lsb_release -sr)
if [ ${UBUNTU_VER} != '14.04' ] && [ ${UBUNTU_VER} != '16.04' ] && [ ${UBUNTU_VER} != '18.04' ] \
&& [ ${UBUNTU_VER} != '20.04' ]; then
echo "ERROR: Unsupported Ubuntu version: ${UBUNTU_VER}"
echo " Supported versions are: 14.04, 16.04, 18.04, and 20.04"
exit 1
fi
# Sympy version 0.7.1
echo ""
echo "Downgrading sympy to version 0.7.1..."
echo ""
pip install --upgrade --user sympy==0.7.1
# OpenRAVE
if [ ${UBUNTU_VER} = '14.04' ] || [ ${UBUNTU_VER} = '16.04' ]; then
RAVE_COMMIT=7c5f5e27eec2b2ef10aa63fbc519a998c276f908
echo ""
echo "Installing OpenRAVE 0.9 from source (Commit ${RAVE_COMMIT})..."
echo ""
mkdir -p ~/git; cd ~/git
git clone https://github.com/rdiankov/openrave.git
elif [ ${UBUNTU_VER} = '18.04' ] || [ ${UBUNTU_VER} = '20.04' ]; then
RAVE_COMMIT=2024b03554c8dd0e82ec1c48ae1eb6ed37d0aa6e
echo ""
echo "Installing OpenRAVE 0.53.1 from source (Commit ${RAVE_COMMIT})..."
echo ""
mkdir -p ~/git; cd ~/git
git clone -b production https://github.com/rdiankov/openrave.git
fi
cd openrave; git reset --hard ${RAVE_COMMIT}
mkdir build; cd build
if [ ${UBUNTU_VER} = '14.04' ] || [ ${UBUNTU_VER} = '16.04' ]; then
cmake -DODE_USE_MULTITHREAD=ON -DOSG_DIR=/usr/local/lib64/ ..
elif [ ${UBUNTU_VER} = '18.04' ] || [ ${UBUNTU_VER} = '20.04' ]; then
cmake -DODE_USE_MULTITHREAD=ON -DOSG_DIR=/usr/local/lib64/ \
-DUSE_PYBIND11_PYTHON_BINDINGS:BOOL=TRUE \
-DBoost_NO_BOOST_CMAKE=1 ..
fi
make -j `nproc`
sudo make install