-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathROS_KINETIC_INSTALLATION
More file actions
executable file
·41 lines (31 loc) · 1.07 KB
/
Copy pathROS_KINETIC_INSTALLATION
File metadata and controls
executable file
·41 lines (31 loc) · 1.07 KB
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
#!/bin/bash
#echo color table
BLACK='\033[0;30m'
RED='\033[0;31m'
GREEN='\033[0;32m'
BROWN='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
LIGHT_GRAY='\033[0;37m'
DARK_GRAY='\033[1;30m'
LIGHT_RED='\033[1;31m'
LIGHT_GREEN='\033[1;32m'
YELLOW='\033[1;33m'
LIGHT_BLUE='\033[1;34m'
LIGHT_PURPLE='\033[1;35m'
LIGHT_CYAN='\033[1;36m'
WHITE='\033[1;37m'
NC='\033[0m' #no color
echo -e "${YELLOW}:::ROS Kinectic is only support by Ubuntu 16.04 ${NC}"
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-get update &&
sudo apt-get install ros-kinetic-desktop-full &&
sudo rosdep init &&
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc &&
source ~/.bashrc &&
echo "source /opt/ros/kinetic/setup.zsh" >> ~/.zshrc &&
source ~/.zshrc &&
sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
echo "ROS Kinectic installed sucessfully"