-
Notifications
You must be signed in to change notification settings - Fork 11
/
install_script.sh
executable file
·110 lines (97 loc) · 3.56 KB
/
install_script.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/bin/bash
INSTALL_DIR=`pwd`
echo "***********************************************************************"
echo "Install Directory: ${INSTALL_DIR}"
echo "***********************************************************************"
#REQUIREMENT:
# -- github.com account
# -- SSH access at github.com
ssh -q -T [email protected]
if [ $? -eq 255 ];then
echo "########################################################################"
echo "ERROR: SSH not added to GITHUB."
echo "ERROR: https://help.github.com/en/enterprise/2.15/user/articles/adding-a-new-ssh-key-to-your-github-account"
echo "########################################################################"
exit 0
fi
ubuntu_version=`lsb_release -rs | sed 's/\.//'`
if [ $ubuntu_version == "1604" ];then
echo "Install script Ubuntu 16.04"
elif [ $ubuntu_version == "1804" ];then
echo "Install script Ubuntu 18.04"
elif [ $ubuntu_version == "1910" ];then
echo "Install script Ubuntu 19.10"
else
echo "This install script is for Ubuntu {16,18}.04"
echo "but version is $ubuntu_version"
exit 0
fi
echo "If install directory is not correct, please change it in the script before
continuing."
read -p "Press [enter] to continue"
mkdir -p ${INSTALL_DIR}
cd ${INSTALL_DIR}
echo "Installing dependencies"
if [ $ubuntu_version == "1604" ];then
sudo apt-get install -qq libboost1.58-all-dev
elif [ $ubuntu_version == "1804" ];then
sudo apt-get install -qq libboost1.65-all-dev
elif [ $ubuntu_version == "1910" ];then
sudo apt-get install -qq libboost1.67-all-dev
sudo apt-get install -qq g++
else
exit 0
fi
sudo apt-get install -qq g++-5 cmake git freeglut3 freeglut3-dev libglpk-dev
sudo apt-get install -qq libxmu-dev libxi-dev libqt4-dev libeigen3-dev libassimp-dev libflann-dev liburdfdom-tools libccd-dev libqhull-dev
sudo apt-get install -qq python-dev python-opengl python-setuptools pypy python-tk
sudo apt-get install -qq xclip openctm-tools
echo "***********************************************************************"
echo "Installing Libraries for Python (Optional)"
echo "***********************************************************************"
pip install --user --upgrade pip
pip install --user matplotlib
pip install --user scipy
pip install --user cvxpy
pip install --user pdf2image
pip install --user openmesh
pip install --user trimesh
mkdir -p ${INSTALL_DIR}/libs
sudo cp scripts/converter* /usr/bin/
echo "***********************************************************************"
echo "Installing OMPL (Planning Library)"
echo "***********************************************************************"
cd ${INSTALL_DIR}/libs/
git clone [email protected]:aorthey/ompl.git
cd ompl
mkdir build
cd build/
cmake ..
make -j$(nproc)
sudo make install
# wget http://ompl.kavrakilab.org/install-ompl-ubuntu.sh
# chmod u+x install-ompl-ubuntu.sh
# ./install-ompl-ubuntu.sh --app
echo "***********************************************************************"
echo "Installing KLAMPT (Dynamical Simulator)"
echo "***********************************************************************"
cd ${INSTALL_DIR}/libs/
git clone [email protected]:aorthey/Klampt.git
cd Klampt/Library
make unpack-deps
rm -rf KrisLibrary
git clone [email protected]:aorthey/KrisLibrary.git
make deps
cd ..
cmake .
make -j$(nproc)
sudo make install
echo "***********************************************************************"
echo "Installing MotionPlanningExplorerGUI"
echo "***********************************************************************"
cd ${INSTALL_DIR}
mkdir -p build
cd build
cmake ..
make -j$(nproc) planner_gui
./planner_gui ../data/experiments/02D_manipulator.xml