-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_helper.sh
executable file
·62 lines (45 loc) · 1.53 KB
/
install_helper.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
#!/bin/bash
if [ -z ${1+x} ]; then
echo "syntax is: install_helper.sh <dest_folder>"
exit 0
fi
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 "Preparing workspace in $1 ..."
sleep 3
cd $1
mkdir src
cd src
git clone --branch a2110 https://github.com/c-rizz/lr_gym.git
git clone --branch a2110 https://github.com/c-rizz/lr_panda.git
git clone --branch a2110 https://github.com/c-rizz/lr_panda_moveit_config.git
git clone --branch a2110 https://github.com/c-rizz/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 $1
echo "Creating python virtualenv..."
sleep 3
src/lr_gym/lr_gym/build_virtualenv.sh sb3
. ./virtualenv/lr_gym_sb/bin/activate
echo "Installing dependencies..."
sleep 3
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
sudo apt-get -y install xvfb xserver-xephyr tigervnc-standalone-server xfonts-base
cd $1
echo "Building workspace in $1 ..."
sleep 3
. /opt/ros/noetic/setup.bash
catkin build -DCMAKE_BUILD_TYPE=Release