Ensure you have ROS 2 Humble installed on your Raspberry Pi (or Ubuntu system).
Refer to the official ROS 2 Humble installation guide.
RTAB-Map is a real-time appearance-based mapping system.
sudo apt update
sudo apt install ros-humble-rtabmap
Identify the serial device
ls /dev/tty*
sudo usermod -a -G dialout $USER
newgrp dialout