image.png
The first article: ROS First Understanding of Robot Operating System [一]
Part 2: Install ROS under Ubuntu 18.04 of ROS[2]
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.
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
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'
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
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
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.
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
ROS learning journey (1)———— ros installationUbuntu install of ROS Melodic
Recommended Posts