Skip to content

Commit 0092e6b

Browse files
committed
ROS Melodic install - Ubuntu 18.04 init
1 parent 99a74f7 commit 0092e6b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

melodic-ros-u18.04.sh

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
# Released under the MIT License (MIT)
4+
# https://github.com/nullbyte91/Simple-Sh-DataScience/blob/master/LICENSE.md
5+
6+
# Title : Melodic-ros-u18.04.sh
7+
# Description : A script to install ROS on ubuntu 18.04
8+
# author : Jegathesan Shanmugam
9+
10+
11+
function configure()
12+
{
13+
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
14+
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
15+
16+
}
17+
18+
function basicUpdate()
19+
{
20+
sudo apt update
21+
}
22+
23+
function rosInstall()
24+
{
25+
# Installing only base
26+
sudo apt install -y ros-melodic-ros-base
27+
28+
# Install ROS Desktop
29+
sudo apt install -y ros-melodic-desktop
30+
31+
# ROS dep
32+
sudo python3 -m pip install -U rosdep
33+
sudo rosdep init
34+
35+
# And, Update them
36+
rosdep update
37+
38+
}
39+
# Main start from here
40+
configure
41+
basicUpdate
42+
rosInstall
43+

0 commit comments

Comments
 (0)