Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 2.04 KB

shc_pc_install_ros.md

File metadata and controls

67 lines (44 loc) · 2.04 KB

1. Installing ROS

Syropod Banner

Back to Implementing OpenSHC on a PC

The first step of implementing OpenSHC is to install ROS Melodic on your Ubuntu 18.04 LTS System by the following terminal commands. You can visit Ubuntu install of ROS Melodic to see a detailed guide on how to install ROS Melodic.

1.1 First setup your sources.list by,

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

1.2 Then setup your keys by,

sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

1.3 Make sure your debian packages are up to date by,

sudo apt update

1.4 Install the full version of ROS Melodic by,

sudo apt install ros-melodic-desktop-full

1.5 Before using ROS, install useful build tools and dependencies by the following commands.

sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
sudo rosdep init
rosdep update

1.6 You can enable ROS on your current shell by,

source /opt/ros/melodic/setup.bash

1.7 However it is convenient to source the setup.bash file to every shell. You can do this by editing the .bashrc file in your system. Open the .bashrc file by,

nano ~/.bashrc

1.8 Then add the following line to the end of the file and save it.

source /opt/ros/melodic/setup.bash
  • If you are using Anaconda please comment the line export PATH=/USER/anaconda3/bin:$PATH (can be slightly different to this) if it is shown in the .bashrc file at the same time because it can cause confusions with ROS.

1.9 Finally check whether you have successfully installed ROS by starting roscore. It should start ROS without getting any error messages.

roscore

Next: Installing Other Required Packages