/
oko_install.sh
executable file
·83 lines (66 loc) · 1.98 KB
/
oko_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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
#lamp
echo "Oz Kardesler Otomasyon"
echo "Installation Script for Raspberry-Pi/General Computer"
echo "Please Enter Input:{raspberry, pc} "
read input
if [ $input == "raspberry" ]; then
sudo apt update
echo "#####################"
echo "Installing ROS Serial"
# sudo apt-get install ros-kinetic-serial -y
cd ros_ws/src
git clone https://github.com/wjwwood/serial.git
cd serial
make
make test
make doc
cd ../../..
echo "#####################"
echo "Installing Gmapping"
sudo apt-get install ros-kinetic-gmapping -y
echo "#####################"
echo "Installing Hector-SLAM"
sudo apt-get install ros-kinetic-hector-slam -y
echo "#####################"
echo "Installing opencv"
sudo apt-get install ros-kinetic-opencv3
elif [ $input == "pc" ]; then
sudo apt update
echo "#####################"
echo "Installing ROS Serial"
# cd ros_ws/src
# git clone https://github.com/wjwwood/serial.git
# cd serial
# make
# make test
# make doc
# cd ../../..
echo "#####################"
echo "Installing Gmapping"
sudo apt-get install ros-kinetic-gmapping -y
echo "#####################"
echo "Installing Hector-SLAM"
sudo apt-get install ros-kinetic-hector-slam -y
echo "#####################"
echo "Installing ROS Navigation Stack"
sudo apt-get install ros-kinetic-navigation -y
echo "#####################"
echo "Installing Turtlebot3"
sudo apt-get install ros-kinetic-turtlebot3 -y
echo "#####################"
echo "Installing Frontier Exploration"
sudo apt-get install ros-kinetic-frontier-exploration -y
echo "#####################"
echo "Installing ROS Navigation-Stage"
sudo apt-get install ros-kinetic-navigation-stage -y
echo "#####################"
echo "Installing Explore-Lite"
sudo apt-get install ros-kinetic-explore-lite -y
echo "#####################"
echo "Installing opencv"
sudo apt-get install ros-kinetic-opencv3
else
echo "Nothing was installed!"
echo "You need to enter input: raspberry or pc"
fi