LGDXRobot2 ROS 2 can be installed using package manager. Please refer to the ROS 2 Support Policy for the recommended system configurations.

Permission Configuration

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.

Installation

  1. Install ROS 2 (refer to the ROS 2 Support Policy for the supported versions).
  2. The packages are hosted in a self-hosted repository, install this package to add the repository and the public key.
wget -q http://packages.lgdxrobot.uk/lgdxrobot-apt-source.deb
sudo dpkg -i lgdxrobot-apt-source.deb
sudo apt update
  1. Install the packages. This will also install the required dependencies, including the Nav2 stack.
sudo apt install lgdxrobot2-udev \
  ros-${ROS_DISTRO}-sllidar-ros2 \
  ros-${ROS_DISTRO}-lgdxrobot2-* \
  ros-${ROS_DISTRO}-lgdxrobot-cloud* 

Do not install rplidar_ros, as it appears to be out of date.

  1. Optionally, install the simulation package for Webots.
sudo apt install ros-${ROS_DISTRO}-lgdxrobot2sim-webots

Or install the simulation package for Gazebo.

sudo apt install ros-${ROS_DISTRO}-lgdxrobot2sim-gz