-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmelodic-ros-u18.04.sh
More file actions
executable file
·43 lines (31 loc) · 947 Bytes
/
melodic-ros-u18.04.sh
File metadata and controls
executable file
·43 lines (31 loc) · 947 Bytes
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
#!/bin/bash
# Released under the MIT License (MIT)
# https://github.com/nullbyte91/Simple-Sh-DataScience/blob/master/LICENSE.md
# Title : Melodic-ros-u18.04.sh
# Description : A script to install ROS on ubuntu 18.04
# author : Jegathesan Shanmugam
function configure()
{
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
}
function basicUpdate()
{
sudo apt update
}
function rosInstall()
{
# Installing only base
sudo apt install -y ros-melodic-ros-base
# Install ROS Desktop
sudo apt install -y ros-melodic-desktop
# ROS dep
sudo python3 -m pip install -U rosdep
sudo rosdep init
# And, Update them
rosdep update
}
# Main start from here
configure
basicUpdate
rosInstall