Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.8 KB

shc_raspi_install_ros.md

File metadata and controls

64 lines (42 loc) · 1.8 KB

3. Installing ROS

Syropod Banner

Previous: Booting the Raspberry Pi

After booting the Raspberry Pi with a working internet connection, you can install ROS Melodic by following these steps. You can visit Ubuntu install of ROS Melodic to see a detailed guide on how to install ROS Melodic.

3.1 First setup your sources.list by,

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

3.2 Then setup your keys by,

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

3.3 Make sure your debian packages are up to date by,

sudo apt update

3.4 Since Raspberry Pi has limited resources and Ubuntu Server 18.04 does not have a GUI, it is sufficient to install the desktop version of ROS Melodic by,

sudo apt install ros-melodic-desktop

3.5 Before using ROS, initialize ROS by the following two commands.

sudo rosdep init
rosdep update

3.6 You can enable ROS on your current shell by,

source /opt/ros/melodic/setup.bash

3.7 However it is convenient to source the setup.bash file to every shell. You can do this by editing the .bashrc file in your system. Open the .bashrc file by,

nano ~/.bashrc

3.8 Then add the following line to the end of the file and save it.

source /opt/ros/melodic/setup.bash

3.9 Finally check whether you have successfully installed ROS by starting roscore. It should start ROS without getting any error messages.

roscore

Next: Installing Other Required Packages