This time, I installed ubuntu 18.04 last time, so I will install ROS further. The target environment is as follows, and basically install according to the reference site.
Those who want to install ROS People who have seen roswiki but are not sure what it says in English
ubuntu18.04 ROS Melodic (Please note that the version of ROS to be installed differs depending on the version of ubuntu)
First, get permission to install ROS on your PC
ros_install_1
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
Next, set the key
ros_install_2
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
Update the package
ros_install_3
sudo apt update
ROS recommended in tall is performed, so enter the following command (ROS, rqt, rviz, robot-generic libraries, 2D / 3D simulators and 2D / 3D perception)
ros_install_4
sudo apt install ros-melodic-desktop-full
Initialize rosdep. rosdep is a simple installation of the system needed to run ROS.
ros_install_5
sudo rosdep init
rosdep update
Build an environment
ros_install_6
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
Install tools to build ROS packages
ros_install_7
sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
This is the end of ROS installation for the time being. From here on, I'm going to do various things using ROS.
http://wiki.ros.org/melodic/Installation/Ubuntu
Recommended Posts