Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ROS Noetic setup information #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions shc_pc_install_ros.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

[Back to Implementing OpenSHC on a PC](shc_pc.md)

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](http://wiki.ros.org/melodic/Installation/Ubuntu) to see a detailed guide on how to install ROS Melodic.
The first step of implementing OpenSHC is to install ROS Noetic on your Ubuntu 20.04 LTS System or ROS Melodic on your Ubuntu 18.04 LTS System by the following terminal commands. You can visit [Ubuntu install of ROS Noetic](http://wiki.ros.org/noetic/Installation/Ubuntu) to see a detailed guide on how to install ROS Noetic, or [Ubuntu install of ROS Melodic](http://wiki.ros.org/melodic/Installation/Ubuntu) for ROS Melodic.


1.1 First setup your sources.list by,

Expand All @@ -15,7 +16,8 @@ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main
1.2 Then setup your keys by,

```bash
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt install curl # if you haven't already installed curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
```

1.3 Make sure your debian packages are up to date by,
Expand All @@ -24,14 +26,28 @@ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31
sudo apt update
```

1.4 Install the full version of ROS Melodic by,
1.4 Install the full version of ROS Noetic by,

```bash
sudo apt install ros-noetic-desktop-full
```
or if using ROS Melodic:
```bash
sudo apt install ros-melodic-desktop-full
```


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

For ROS Noetic:

```bash
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
sudo rosdep init
rosdep update
```

For ROS Melodic:
```bash
sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
sudo rosdep init
Expand All @@ -40,6 +56,11 @@ rosdep update

1.6 You can enable ROS on your current shell by,

For ROS Noetic:
```bash
source /opt/ros/noetic/setup.bash
```
For ROS Melodic
```bash
source /opt/ros/melodic/setup.bash
```
Expand All @@ -53,7 +74,7 @@ nano ~/.bashrc
1.8 Then add the following line to the end of the file and save it.

```bash
source /opt/ros/melodic/setup.bash
source /opt/ros/$ROS_DISTR0/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.
Expand All @@ -64,4 +85,5 @@ source /opt/ros/melodic/setup.bash
roscore
```


[Next: Installing Other Required Packages](shc_pc_install_other.md)