Dmitry Maslov
Published

ROS Melodic on Raspberry Pi 4 [Debian Buster] + RPLIDAR A1M8

I suffered, so you wouldn't have to! This article describes the process of compiling ROS Melodic from source on new Raspberry Pi 4.

IntermediateProtip2,683
ROS Melodic on Raspberry Pi 4 [Debian Buster] + RPLIDAR A1M8

Things used in this project

Hardware components

RPLiDAR A1M8 360 Degree Laser Scanner Kit - 12M Range
×1
Kinect Sensor
Microsoft Kinect Sensor
×1
Raspberry Pi 4 Computer Model B 4GB
×1

Software apps and online services

Robot Operating System
ROS Robot Operating System

Story

Read more

Code

Code snippet #1

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

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

sudo apt-get update

sudo apt-get install -y python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential  cmake

Code snippet #6

Plain text
mkdir -p ~/ros_catkin_ws/external_src<br>cd ~/ros_catkin_ws/external_src

wget   <a href="http://sourceforge.net/projects/assimp/files/assi" rel="nofollow"> http://sourceforge.net/projects/assimp/files</a>/assimp-3.1/assimp-3.1.1_no_test_models.zip/download -O assimp-3.1.1_no_test_models.zip

unzip assimp-3.1.1_no_test_models.zip

cd assimp-3.1.1

cmake .

make

sudo make install

Code snippet #11

Plain text
mkdir -p ~/catkin_ws/src

cd ~/catkin_ws/

catkin_make

Code snippet #13

Plain text
cd src

sudo git clone <a href="https://github.com/Slamtec/rplidar_ros.git" rel="nofollow"> https://github.com/Slamtec/rplidar_ros.git</a>

catkin_make

Credits

Dmitry Maslov

Dmitry Maslov

3 projects • 4 followers

Comments