Install ROS under ROS Ubuntu 18.04[2]

image.png

table of Contents##

The first article: ROS First Understanding of Robot Operating System [一]
Part 2: Install ROS under Ubuntu 18.04 of ROS[2]

Front words##

If a worker wants to do his job well, he must first sharpen his tools.

Not much nonsense, start the journey of installing ROS. O(∩_∩)O

This installation is the ROS Melodic Morenia version.

image.png

My system is Ubuntu 18.04.

Step 1: Set the update method##

Enter the software search interface, enter soft, search for software and updates:

image.png

After selecting Software and Update, the following interface pops up:

Tick all the following under Ubuntu software

image.png

Step 2: Modify the source of the software##

Foreign sources are slow to install, so domestic sources will be used here:

sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'

Step 2: Set keys

After setting up the source, start adding keys below:

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

As shown:

image.png

Then, update the source:

$ sudo apt update

Step 3: Start the installation##

There are many installation methods, and the most comprehensive installation method is selected this time:

$ sudo apt install ros-melodic-desktop-full

Different installation methods refer to [official website]((http://wiki.ros.org/melodic/Installation/Ubuntu):

image.png

verification##

Finally, let's verify whether it is installed:

$ sudo rosdep init
$ rosdep update

This sentence is to initialize ROS, which must be initialized before use:

Before you can use ROS, you will need to initialize rosdep. rosdep enables you to easily install system dependencies for source you want to compile and is required to run some core components in ROS.

Before using ROS, you need to initialize ROSDEP. Rosdep enables you to easily install system dependencies for the source code to be compiled, and some core components need to be run in ROS.

Follow-up

Of course we can set the environment variables to automatically add ROS:

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

Finally, let's install some tools for development:

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

ok, the installation is complete. O(∩_∩)O

reference##

ROS learning journey (1)———— ros installationUbuntu install of ROS Melodic

Recommended Posts

Install ROS under ROS Ubuntu 18.04[2]
Install apache+PHP under Ubuntu
Install node.js under Ubuntu
Install python3.6 under Ubuntu 16.04
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
2018-09-11 Install arduino under Ubuntu
Install MySQL under Ubuntu
Install Yarm-PM2 under Ubuntu
ubuntu14.0464 Ros environment install halcon13.01
Install server-side Shadowsocks under Ubuntu 16.04
Install rgl package under Ubuntu
Install 3 single-cell R packages under Ubuntu
Install and deploy Gerrit under Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install JDK1.8 original under Ubuntu Kylin
Small tool: install screenshot tool under ubuntu
Install nodejs and npm under Ubuntu 16.04
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
Compile and install QEMU under Ubuntu
ubuntu18.04 install python2
ubuntu18.04 install docker
ubuntu12.04 install python3
ubuntu install nodejs
ubuntu 16 install asp.net
ubuntu install leanote
docker install ubuntu
ubuntu install elasticsearch
ubuntu16.0.1 install pagoda
ubuntu18.04 install python
ubuntu 18.04 install teamviewer
ubuntu install sendmail
Install linux (ubuntu) dual system under windows system
How to install ROS Noetic in Ubuntu20.04
Install YouCompleteMe plugin for vim under Ubuntu
Install PyTesser under ubuntu 14.04 for OCR recognition
Install Ubuntu with Parallels Desktop under Mac
Three ways to install software under Ubuntu
Install utility software collection under Ubuntu system
install vscode on ubuntu18
Install mysql-pytho in Ubuntu
ubuntu install zsh terminal
Install Redis on Ubuntu
Install R4 on ubuntu20
Install postgresql-10 on Ubuntu 18.04
Install docker on Ubuntu
Install mysql5.7 under CentOS7
Ubuntu18.04 install opencv 3.2.0 solution
Python MySQLd under Ubuntu
Install Docker on ubuntu18.04
Start working under ubuntu
Install nodejs10 on Ubuntu16
Install the old version of seurat under Ubuntu
Install CentOS under VMware
ubuntu install harbor warehouse
The solution to the failure to install .deb under Ubuntu 16.04
[python] python2 and python3 under ubuntu
Install mysql on Ubuntu 14.04