-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_helper_dev.sh
executable file
·75 lines (56 loc) · 1.87 KB
/
install_helper_dev.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
#!/bin/bash
if [ -z ${1+x} ]; then
echo "syntax is: install_helper.sh <dest_folder>"
exit 0
fi
ws_root=$(realpath $1)
echo "This is meant only as a helper script, I do not guarantee this will work and will not have unexpected consequences."
echo "Before using please check what the script does, it should be quite straightforward."
echo "RUN THIS ONLY IF YOU KNOW WHAT YOU ARE DOING"
echo "Do you want to continue? [y/N]"
read ans
if [ $ans != "y" ]; then
echo "exiting without installing."
exit 0
fi
echo "Do you want to install the virtualenv? [y/N]"
read install_venv
if [ $ans != "y" ]; then
echo "Will not install venv"
fi
echo "Preparing workspace in $1..."
sleep 3
cd $ws_root
mkdir src
cd src
git clone --branch crzz-dev-noetic https://gitlab.idiap.ch/learn-real/lr_gym.git
git clone --branch crzz-dev https://gitlab.idiap.ch/learn-real/lr_panda.git
git clone --branch crzz-dev https://gitlab.idiap.ch/learn-real/lr_panda_moveit_config.git
git clone --branch crzz-dev https://gitlab.idiap.ch/learn-real/lr_realsense.git
# echo "Installing python 3.7..."
# sleep 3
# sudo add-apt-repository -y ppa:deadsnakes/ppa
# sudo apt-get -y update
# sudo apt-get -y install python3.7 python3.7-venv python3.7-dev
cd $ws_root
if [ "$install_venv" = "y" ]; then
echo "Creating python virtualenv..."
sleep 3
src/lr_gym/lr_gym/build_virtualenv.sh sb3
. ./virtualenv/lr_gym_sb/bin/activate
sudo apt-get -y update
sudo apt-get -y install xvfb xserver-xephyr tigervnc-standalone-server xfonts-base
fi
echo "Installing dependencies..."
cd $ws_root
sleep 3
sudo apt-get -y update
sudo apt-get -y install python3-rosdep
rosdep update
rosdep install --from-paths src --ignore-src -r -y
sudo apt-get -y install python3-catkin-tools python3-osrf-pycommon
echo "Building workspace..."
cd $ws_root
sleep 3
. /opt/ros/noetic/setup.bash
catkin build -DCMAKE_BUILD_TYPE=Release