melodic/Installation/Ubuntu - ROS Wiki
wiki.ros.org/melodic/Installation/UbuntuUbuntu install of ROS Melodic. We are building Debian packages for several Ubuntu platforms, listed below. These packages are more efficient than source-based builds and are our preferred installation method for Ubuntu. Note that there are also packages available from Ubuntu upstream. Please see UpstreamPackages to understand the difference.
melodic/Installation/Debian - ROS Wiki
wiki.ros.org/melodic/Installation/Debiansudo apt-get install ros-melodic-slam-gmapping. To find available packages, use: apt-cache search ros-melodic. Initialize rosdep. 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.
melodic/Installation/Source - ROS Wiki
wiki.ros.org/melodic/Installation/SourceSelect the vcstool command for the particular variant you want to install: Desktop-Full Install: ROS, rqt, rviz, robot-generic libraries, 2D/3D simulators, navigation and 2D/3D perception. $ rosinstall_generator desktop_full --rosdistro melodic --deps --tar > melodic-desktop-full.rosinstall $ vcs import src < melodic-desktop-full.rosinstall ...