LakiBeam ROS2 Drvier is the software development kit for: LakiBeam1S/LakiBeam1/LakiBeam1L LiDAR manufactured by Richbeam (Beijing) Technology. After launched, the Driver will monitor UDP packets from Lidar, parse data and publish point clouds frames into ROS2 under topic: /scan or topic: /pcd.
System environment requirement: Linux + ROS
Recommanded:
Ubuntu 20.04 - with ROS2 foxy fitzroy desktop-full installed or
Ubuntu 22.04 - with ROS2 humble hawksbill desktop-full installed.
Check resources on http://ros.org for installation guide.
cd~
mkdir -p catkin_ws/src
cd catkin_ws/src
git clone https://github.com/RichbeamTechnology/Lakibeam_ROS2_Driver.git
colcon build
While Connecting via RJ45 cable and DC power supply, for the default LakiBeam1(L/S), it is configured the "192.168.198.2" as its own IP address, and the "192.168.198.1" as its destination PC IP address. So we need set the PC static IP as "192.168.198.1" and the net mask as "255.255.255.0", while the gateway address is not necessary. After configuration, we can use "ifconfig" command to check if the IP is work. While Connecting via USB Type-C cable, it is configured the "192.168.8.2" as its own IP address, and the "192.168.8.1" as its destination PC IP address. But the PC static IP doesn’t need to be set, enter this URL into your web browser: 192.168.8.2, which is the own IP of sensor. Then set the Host (Destination) IP: "192.168.8.1" and set to dynamic configuration.The sensor will reset the network configuration after a short sub second delay. The IP configuration via USB Type-C cable on sensor’s web server is shown in the picture below:

Before receiving data from sensor, we should configure parameters in launch file if needed. The configurable parameters are shown in the table below:
| Parameter name | Instruction |
|---|---|
| inverted | Invert the sensor, "true" is inverted |
| hostip | Destination IP address, monitoring to all IP address when set to 0.0.0.0 |
| port | Monitoring port, must be same with port number set on web server when using dual sensors in one PC |
| angle_offset | Point cloud rotation angle around Z-axes, can be set to a negative number |
| scanfreq | Scan frequency, range: 10, 20, 25, 30 |
| filter | General filter, range: 0, 1, 2, 3 |
| laser_enable | range: true, false |
| scan_range_start | range: 45°~315° |
| scan_range_stop | range: 45°~315°, The scan_range_stop must be greater than the scan_range_start |
- Connect the LakiBeam1(L/S) to your PC via RJ45 cable and DC power supply or USB Type-C cable, and power on it.
- We have provided several example launch files, such as "lakibeam1_scan.launch.py" and "lakibeam1_scan_view.launch.py" under /launch. To start the LaserScan node, we can run the launch file to view the real time point cloud.
cd ~/catkin_ws
source ./install/setup.bash
ros2 launch lakibeam1 lakibeam1_scan.launch.py
(run LaserScan node)
ros2 launch lakibeam1 lakibeam1_scan_view.launch.py
(run LaserScan node in RViz)
The real time point cloud data under LaserScan in RViz is shown in the picture below:
