Raspberry Pi: Installing ROS Melodic - LoCO-AUV/loco_config GitHub Wiki

Install ROS Melodic

We follow the general ROS Melodic install instructions for Ubuntu, found here

Setup Sources List

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

Add Keys

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

Install ROS-Desktop

sudo apt update
sudo apt install ros-melodic-desktop-full
Initialize rosdep for Dependency Management
sudo rosdep init
rosdep update
Setup Environment

Before you do this, know what IP you'll be setting the RPi's static Ethernet to and replace <chosen_ip> with that Ipv4 address.

echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
echo "export ROS_HOSTNAME=<chosen_ip>" >> ~/.bashrc
echo "export ROS_MASTER_URI=http://<chosen_ip>:11311" >> ~/.bashrc
source ~/.bashrc

Package Building Dependencies

sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
⚠️ **GitHub.com Fallback** ⚠️