yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
SLAM LiDAR📖
01.Version differences
  • 1.About SLAM Lidar
02.SLAM Lidar (A1, A2, S1, S2, S3, C1)
  • 1.How to use lidar
03.Linux basic course
  • 1.Introduction to Linux system
  • 2.Ubuntu file system
  • 3.Ubuntu common commands
  • 4.Ubuntu common editors
  • 5.Ubuntu software operation commands
  • 6.Virtual machine installation
  • 7.SSH remote control
  • 8.VNC remote control
  • 9.Transfer files remotely
  • 10.Driver library and communication
  • 11.Static IP and hotspot mode
  • 12.Bind device ID
  • 13.Capacity expansion and resource allocation
  • 14.Update system software sources
  • 15.Set root user password
  • 16.sudo free password
  • 17.Connect to WiFi network
  • 18.View system version
  • 19.Customized service management
  • 20.Back up system image
04.ROS1 basic course
  • 1.ROS introduction
  • 2.ROS installation
  • 3.ROS common command tools
  • 4.ROS workspace
  • 5.ROS function package
  • 6.ROS node
  • 7.ROS topic publisher
  • 8.ROS topic subscribers
  • 9.ROS service client
  • 10.ROS service server
  • 11.ROS action client
  • 12.ROS action server
  • 13.ROS custom message reception
  • 14.ROS-launch file
  • 15.ROS-TF transformation
  • 16.ROS parameter service
  • 17.ROS-rviz use
  • 18.ROS-rqt tool usage
  • 19.Topic message recording and playback
  • 20.urdf model introduction
  • 21.gazebo introduction
  • 22.ROS distributed communication
05.ROS1 lidar course
  • 0.ReadMe
  • 1.Preparation
  • 2.Handheld lidar mapping
  • 3.Lidar avoiding
  • 4.Lidar guard
  • 5.Lidar follow
  • 6.Lidar mapping
  • 7.rrt_exploration mapping algorithm
  • 8.Navigation and avoiding
  • 9.APP Mapping and Navigation
  • 10.RTAB 3D mapping and navigation
06.ROS2 basic course
  • 1.Introduction to ROS2
  • 2.ROS2 install Humble
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
07.ROS2 lidar course
  • 0.ReadMe
  • 1.Preparation
  • 2.Handheld lidar mapping
  • 3.Lidar avoiding
  • 4.Lidar follow
  • 5.Lidar guard
  • 6.gmapping mapping
  • 7.cartographer mapping
  • 8.Navigation and avoiding
  • 9.APP Mapping and Navigation
  • 10.RTAB 3D mapping and navigation
  • 11.Lidar patrol
08.Mapper M2 lidar course
  • 1.How to use M2M2lidar
09.High-speed version A1 lidar usage tutorial
  • 1.Preparation before using the high-speed version of A1 lidar
10.RaspberryPi5 Docker course
  • 1.Overview and installation
  • 2.Common commands
  • 3.Understand and publish images
  • 4.Hardware interaction data processing
  • 5.Enter docker container
  • 6.Update docker images
  • 7.Docker container to install ROS using accessories
Download
  • Code
  • VM File
  • Data Sheet
  • Just for Mapper M2 Lidar
  • Model File
  • PC_Software
  • ROS2_Basic_VM
Download ZIP

Welcome to SLAM LiDAR repository

1.How to use lidar

How to use lidar

Note: The baud rate is different between A1/A2<115200>, A3/S1<256000> and S2<1000000>.

Note: The information of the lidar M2M2 and the radar of this course (A1/A2/A3/S1/S2) are different, please view the information according to the corresponding model

Note: "Slan Lidar Course" is based on the use of Transbot crawler vehicles, for reference only! ! !

How to use lidar1、Overview2、Silan lidar components2.1、Laser2.2、Receiver2.3、Signal processing unit2.4、Rotating mechanism3、Principle of single-line lidar3.1、Triangular Ranging Method3.1.1、Direct shot3.1.2、Oblique shot3.2、TOF Ranging Method4、Lidar parameter comparison5、Application scenarios6、Run rplidar node6.1、Build the rplidar ros package6.2、Remap the USB serial port6.3、Run rplidar ros package7、RoboStudio test7.1、Install7.2、View device7.3、Log in7.4、Connect7.5、Test8、frame_grabber8.1、View device8.2、connect8.3、Start up

Lidar technology support Email :support@slamtec.com

Lidar wiki:http://wiki.ros.org/rplidar

Lidar SDK:https://github.com/Slamtec/rplidar_sdk

Lidar ROS:https://github.com/Slamtec/rplidar_ros

Lidar tutorials:https://github.com/robopeak/rplidar_ros/wiki

Lidar website:http://www.slamtec.com/cn/Support

Test the PC computer:https://www.slamtec.com/cn/RoboStudio

1、Overview

Single-line lidar refers to a single-line laser beam emitted by the laser source. It is divided into triangular ranging and TOF lidar. It is mainly used in the field of robotics.

2、Silan lidar components

Take SLAMTec lidar as an example, which is mainly composed of 4 core components: laser, receiver, signal processing unit and rotating mechanism.

2.1、Laser

The laser is the laser emitting mechanism in the lidar. During work, it will light up in pulses.

The RPLIDAR A3 series lidar of SLAMTec will turn on and off 16000 times per second.

2.2、Receiver

After the laser emitted by the laser hits the obstacle, the reflected light will be converged on the receiver through the lens group through the reflection of the obstacle.

2.3、Signal processing unit

The signal processing unit is responsible for controlling the emission of the laser and processing the signal received by the receiver.

Based on this information, the distance information of the target object is calculated.

2.4、Rotating mechanism

The above three components constitute the core part of the measurement.

The rotating mechanism is responsible for rotating the above-mentioned core components at a stable speed, so as to realize the scanning of the plane and generate real-time plan information.

image-20210914115829206

3、Principle of single-line lidar

The working principle of the radar is shown in the figure below:

20200512204828561

3.1、Triangular Ranging Method

3.1.1、Direct shot

image-20210914120518557

3.1.2、Oblique shot

image-20210914120552057

 

3.2、TOF Ranging Method

image-20210914120619928

 

4、Lidar parameter comparison

image-20211025171756137

It can be seen from the figure above that parameters such as measurement radius, sampling speed, scanning frequency, and angular resolution are important indicators of radar performance.

PerformanceDescription
Ranging radiusRadar measurement range
Ranging sampling rateHow many ranging outputs are performed in one second
Scanning frequencyHow many scans the radar does in one second
Angular resolutionAngular steps of two adjacent ranging
Measurement resolution/accuracyCan perceive the minimum distance change

 

7b2aa26039954693b1ac971784d5f56f

5、Application scenarios

Lidar plays an indispensable role in many fields such as autonomous robot positioning and navigation, spatial environment mapping, and security.

 

6、Run rplidar node

6.1、Build the rplidar ros package

Function download link:https://github.com/Slamtec/rplidar_ros/

Clone this feature pack to your workspace src folder

Run catkin_make to build rplidarNode and rplidarNodeClient

Note: If you do not write the update environment variable to【.bahsrc】, you must update the environment variable before each execution of the running program.

source devel/setup.bash  # Update environment variables

6.2、Remap the USB serial port

Under the path of rplidar_ros function package, install USB port remapping:

xxxxxxxxxx
./scripts/create_udev_rules.sh

Use the following command to modify the remapping:

xxxxxxxxxx
ls -l /dev | grep ttyUSB

image-20210914151239649

After changing the USB port and remapping, change the startup file related to the serial_port value.

image-20210914151831558

6.3、Run rplidar ros package

  • Method 1

Run rplidar node, view in rviz

xxxxxxxxxx
roslaunch rplidar_ros view_rplidar.launch    # RPLIDAR A1/A2
roslaunch rplidar_ros view_rplidar_a3.launch # RPLIDAR A3
roslaunch rplidar_ros view_rplidar_s1.launch # RPLIDAR S1
roslaunch rplidar_ros view_rplidar_s2.launch # RPLIDAR S2

You can see rplidar scan results in rviz.

image-20210914151139732

  • Method 2

Run rplidar node

xxxxxxxxxx
roslaunch rplidar_ros rplidar.launch    # RPLIDAR A1/A2
roslaunch rplidar_ros rplidar_a3.launch # RPLIDAR A3
roslaunch rplidar_ros rplidar_s1.launch # RPLIDAR S1
roslaunch rplidar_ros rplidar_s2.launch # RPLIDAR S2

Start the test application

xxxxxxxxxx
rosrun rplidar_ros rplidarNodeClient

You should see rplidar scan results in the console

image-20210914152013978

7、RoboStudio test

Test tool download link:https://www.slamtec.com/cn/RoboStudio

Take S1M1 radar as an example, other models are similar.

7.1、Install

Double-click robostudio icon to install, and continue to the next step until the installation is complete. Adjust the radar to the corresponding baud rate [A1/A2: 115200, A3/S1: 256000, S2: 1000000].

Using the original data cable to connect the device (for example: PC).

7.2、View device

6115

由上图可知道,激光雷达的端口是【COM2】。

7.3、Log in

Log in for the first time, you need to register before you can use it. Select [Radar], right-click in the blank area of the radar bar, and select [Manually connect to radar...].

7.4、Connect

Select the corresponding [COM2], and click [Connect].

6117

7.5、Test

Enter the test interface, click the green triangle to start the lidar test.

6118

We can view the basic information of the radar: model [S1M1], sampling frequency [9K], scanning frequency [10.02Hz], etc.

6119

8、frame_grabber

8.1、View device

The operation is the same as in 7.2.

8.2、connect

Select the corresponding port [COM2] and baud rate [256000], and click [OK].

6020

8.3、Start up

Click as shown in the figure below to activate the button.

6021

The effect diagram is as follows.

6021

 

About SLAM Lidar
Introduction to Linux system

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文