forked from vinismarques/butia_navigation_system
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·37 lines (30 loc) · 1.41 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
#!/bin/sh
# Verifica dependencias e instala caso necessário
[ $(which navigation) ] || sudo apt install -y ros-noetic-navigation
[ $(which map_server) ] || sudo apt-get install -y ros-noetic-map-server
[ $(which sick_scan) ] || sudo apt-get install -y ros-noetic-sick-scan
[ $(which move_base) ] || sudo apt-get install -y ros-noetic-move-base
[ $(which amcl) ] || sudo apt-get install -y ros-noetic-amcl
[ $(which rosdep) ] || sudo apt install -y python3-rosdep
[ $(which curl) ] || sudo apt-get install -y curl
[ $(which curl) ] || sudo apt install ros-noetic-joint-trajectory-controller
# curl -sSL git.io/jovial | sudo bash -s $USER
#sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
#sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
#sudo apt update
# Cria a pasta de trabalho para o butia caso ainda não tenha
mkdir -p ~/butia_ws/src
#cd ~/butia_ws
#SHELL_TYPE=$(echo $SHELL | grep -oE '[^/]+/?$' | tr -d '/')
#if [[ $SHELL_TYPE == "bash" ]]; then
# source devel/setup.bash
#elif [[ $SHELL_TYPE == "zsh" ]]; then
# source devel/setup.zsh
#else
# echo "Não foi possível determinar o tipo de shell"
# exit
#fi
# Clona os repositórios
cd ~/butia_ws/src
git clone https://github.com/ros-perception/openslam_gmapping
git clone https://github.com/ros-perception/slam_gmapping