LGDXRobot2 ROS 2 can be installed using package manager. The packages are available for both AMD64 and ARM64 architectures. However, only ROS 2 Jazzy (Ubuntu 24.04) is supported.
To allow access to hardware devices without root permissions, the lgdxrobot2-udev package needs to be installed. This installation is included in the steps below.
wget -q http://packages.bristolgram.uk/lgdxrobotics-apt-source.deb
sudo dpkg -i lgdxrobotics-apt-source.deb
sudo apt update
sudo apt install lgdxrobot2-udev \
ros-${ROS_DISTRO}-sllidar-ros2 \
ros-${ROS_DISTRO}-lgdxrobot2-*
sudo apt install ros-${ROS_DISTRO}-lgdxrobot2sim-webots
Do not install rplidar_ros, as it appears to be out of date.