forked from mcubelab/rgrasp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·46 lines (38 loc) · 1.26 KB
/
setup.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
#/bin/bash
# Eudald Romo Grau, 2017
function ask {
echo $1 # add this line
read -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
return 1;
else
exit
echo "Abort.."
fi
}
if [ "$#" == 0 ] || [ "$1" == "MSGS" ]; then
echo "Make abb-ros"
git submodule update --init --recursive catkin_ws/src/pr_msgs
fi
if [ "$#" == 0 ] || [ "$1" == "ABB" ]; then
echo "Make abb-ros"
git submodule update --init --recursive catkin_ws/src/abb-ros-catkin
fi
if [ "$#" == 0 ] || [ "$1" == "HAND" ]; then
git submodule update --init --recursive catkin_ws/src/wsg50-ros-pkg
echo 'Do catkin_make --pkg wsg_50_common wsg_50_driver wsg_50_simulation'
cd $CODE_BASE/catkin_ws
catkin_make --pkg wsg_50_common wsg_50_driver wsg_50_simulation
source $CODE_BASE/software/config/rgrasp_environment.sh
catkin_make
fi
if [ "$#" == 0 ] || [ "$1" == "WEIGHT" ]; then
git submodule update --init --recursive catkin_ws/src/weight_sensor
catkin_make
fi
if [ "$#" == 1 ] && [ "$1" == "VISION" ]; then
git submodule update --init --recursive catkin_ws/src/passive_vision
git submodule update --init --recursive catkin_ws/src/active_vision
git submodule update --init --recursive catkin_ws/src/realsense_camera
fi