-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·66 lines (46 loc) · 1.19 KB
/
install.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
#/bin/bash
echo "Choose what to install"
select mode in all git_submodules webots champ build source_ros_ws;
do
case $mode in
all | git_submodules)
echo "installing git_submodules"
git submodule init
git submodule update
pushd ./control/ros_ws/src/champ
git submodule init
git submodule update
popd
pushd ./control/ros_ws/src/champ_setup_assistant
git checkout ubuntu2004python3
popd;;&
all | webots)
echo "installing webots"
pushd ~/Downloads/
wget https://github.com/cyberbotics/webots/releases/download/R2023b/webots_2023b_amd64.deb
sudo apt install ./webots_2023b_amd64.deb -y
sudo apt install ros-noetic-webots-ros -y
rm -Rf ./webots_2023b_amd64.deb
popd
pushd ~
echo "export WEBOTS_HOME=/usr/local/webots">>.bashrc
popd;;&
all | champ)
echo "installing champ"
sudo apt install -y python3-rosdep
pushd control/ros_ws
rosdep install --os=ubuntu:focal --from-paths src --ignore-src -r -y
popd;;&
all | build)
echo "building the ros packages"
pushd control/ros_ws
catkin_make
popd;;&
all | source_ros_ws)
echo "sourcing the ros workspace"
pushd control/ros_ws
source devel/setup.bash
popd;;&
esac;
break;
done