-
Notifications
You must be signed in to change notification settings - Fork 57
/
vrep.sh
executable file
·64 lines (51 loc) · 1.35 KB
/
vrep.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
#!/bin/bash
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
set -e
set -u
set -x
echo "############################"
echo "# V-REP Robot Simulator #"
echo "############################"
echo ""
echo "http://www.coppeliarobotics.com/downloads.html"
echo ""
echo "TO RUN V-REP after installation:"
echo ""
echo "cd ~/src/V-REP_PRO_EDU_V3_4_0_Linux"
echo "sh vrep.sh"
echo ""
echo "@author Andrew Hundt <[email protected]>"
echo ""
# VREP_VERSION=V3_4_0
# V-REP_PRO_EDU_V3_4_0_Linux
VREP_FILE="V-REP_PRO_EDU_V3_6_1_Ubuntu18_04"
. /etc/lsb-release # get ubuntu version number
if [ "$DISTRIB_RELEASE" = "16.04" ]
then
# http://coppeliarobotics.com/files/V-REP_PRO_EDU_V3_6_1_Ubuntu16_04.tar.xz
VREP_FILE="V-REP_PRO_EDU_V3_6_1_Ubuntu16_04"
fi
if [ "$DISTRIB_RELEASE" = "18.04" ]
then
# http://coppeliarobotics.com/files/V-REP_PRO_EDU_V3_6_1_Ubuntu16_04.tar.xz
VREP_FILE="V-REP_PRO_EDU_V3_6_1_Ubuntu18_04"
fi
# V-REP_PRO_EDU_V3_4_0_Linux
mkdir -p ~/src
FILE_PATH=~/src/${VREP_FILE}.tar.xz
if [ ! -f ${FILE_PATH} ]
then
echo "downloading"
cd ~/src
# wget http://coppeliarobotics.com/files/V-REP_PRO_EDU_V3_4_0_Linux.tar.gz
wget http://coppeliarobotics.com/files/${VREP_FILE}.tar.xz
fi
if [ ! -d ~/src/${VREP_FILE} ]
then
cd ~/src
tar -xvf $FILE_PATH
# tar -xvzf $FILE_PATH
fi
cd $DIR