Special thanks to Natasha and Emily from Ouster for making this information available!
Today I will guide you thru the installation of ROS Melodic on your Linux machine with Ubuntu 18.04
Setup your sources:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
Setup your keys:
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
Confirm that your Debian package is current:
sudo apt update
Full desktop install is recommended:
sudo apt install ros-melodic-desktop-full
Initialize Rosdep:
sudo rosdep init
If you get an error that doesn't recognise rosdep as a command, run
sudo apt-get install python-rosdep
first
If you get an error with your catkin package, run
sudo apt install --reinstall python-catkin-pkg-modules
If you get an error that a file already exists, remove the file and re-run sudo rosdep init: run
sudo rm -rf /etc/ros/rosdep/sources.list.d/20-default.list
rosdep update
Setup ROS environment:
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
Source your ROS environment
Install the following:
ros-melodic-pcl-ros:
git clone https://aur.archlinux.org/ros-melodic-pcl-ros.git
ros-melodic-tf2-geometry-msgs:
git clone https://aur.archlinux.org/ros-melodic-tf2-geometry-msgs.git
OPTIONAL, ros-melodic-rviz:
git clone https://aur.archlinux.org/ros-melodic-rviz.git
Source your setup script:
source /opt/ros/melodic/setup.bash
Build the source file
mkdir -p myworkspace/src && cd myworkspace && ln -s /path/to/ouster_example-master ./src/ && catkin_make -DCMAKE_BUILD_TYPE=Release
Ensure that it points to the correct file
Run sudo apt install python-roslaunch
, if necessary