Installing ROS Melodic

Modified on Tue, 17 Aug 2021 at 11:15 AM

Info:
Read the Disclaimer in the Introduction.


Estimated Completion Time: 1 hour


The following steps demonstrate how to install ROS Melodic Morenia into the COBOTTA. If the Ubuntu OS has not been installed, go back to the Installing Ubuntu document. If ROS has been installed, move onto the Installing the COBOTTA Driver document.


The following link contains how to install ROS into the COBOTTA: ROS Wiki - Installing ROS  


Steps 1 through 11 also explain how to install ROS.


Step 1:

 

Begin by configuring the Repositories in Ubuntu. Go into the Software & Updates application.


Step 2:

Under the Ubuntu Software tab, move the mouse cursor to hover over the Downloadable from the Internet section.
Step 3: 

Check each of the following boxes: Main, Universe, Restricted, and Multiverse. Then close the application.


Step 4: 

Open a new terminal to begin installing ROS into the COBOTTA. At the end, an image of a text editor will be displayed for the user to view the full code used to enter into the terminal to install ROS Melodic. The following wiki-site contains the procedure and code to install ROS Melodic Morenia: ROS Wiki - Installing ROS
 

Note:
A quick way to open a new terminal is by pressing 'CTRL + ALT + T'.

Step 5: 

To be able to run the ROS packages, enter the following into the terminal:


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





Step 6: 

Set up the keys for the ROS packages, enter the following into the terminal:


$ sudo apt install curl
$ curl -s 
https://raw.githubusercontent.com/ros
/rosdistro/master/ros.asc 
| sudo apt-key add -
Note:
Only install 'curl' if it has not been installed.




Step 7: 

Update the Debian package by entering the following into the terminal:


$ sudo apt update





Step 8: 

Enter the following to install the full Desktop version of ROS (recommended installation type):


$ sudo apt install ros-melodic-desktop-full


Note: 
The Full Desktop Version comes with ROS, RVIZ, RQT, and Robot-Generic



Step 9: 

Set up the ROS environment by entering the following into the terminal:


$ echo "source /opt/ros/melodic/setup.bash" 
>> ~/.bashrc
$ source ~/.bashrc





Step 10: 

Install the ROS tools and dependencies for Python by entering the following into the terminal:


$ sudo apt install python-rosdep python-rosinstall 
python-rosinstall-generator python-wstool 
build-essential





Step 11: 

Initialize the ROS tools and dependencies by entering the following into the terminal:


$ sudo apt install python-rosdep
$ sudo rosdep init
$ rosdep update



The image displayed in the box to the right contains the code entered into the terminal to install ROS Melodic Morenia:


This concludes on Installing ROS Melodic into the COBOTTA. Proceed onto the Installing the COBOTTA Driver document.


Finished


 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article