1、Lidar basics

1.1、Overview

Single-line LiDAR refers to the single-line radar that the beam emitted by the laser source is divided into triangular ranging and TOF LiDAR, and is mainly used in the field of robotics. It has fast scanning speed, strong resolution and high reliability. Compared with multi-line lidar, single-line lidar has faster response in angular frequency and sensitivity, so it is more accurate in ranging distance and accuracy of obstacles.

1.2、4ROS Lidar

1.2.1、Overview

YDLIDAR 4ROS lidar is a 360° 2D lidar (hereinafter referred to as: 4ROS). This product is based on the principle of pulsed ToF ranging, and is equipped with related optical, electrical, and algorithm designs to achieve high-frequency and high-precision distance measurement. At the same time, the mechanical structure rotates 360 degrees to continuously obtain angle information, thus realizing 360-degree scanning ranging , which outputs the point cloud data of the scanned environment.

1.2.2、Product Features

1.2.3、Application scenarios

1.2.4、Polar coordinatesystem definition

In order to facilitate secondary development, 4ROS internally defines a polar coordinate system. The system polar coordinates take the center of the 4ROS rotating core as the pole, the specified angle is clockwise as positive (top view), and the zero angle is located in the direction of the outlet of the 4ROS interface line, as shown below.

1662125811388

1.3、Single-line lidar principle

Working principle of the single-line lidar, as shown below.

20200512204828561

1.3.1、Trigonometric ranging

According to the angle relationship between the incident beam and the surface normal of the measured object, the laser triangulation method can be divided into two types: oblique type and direct type.

1、Direct shot

image-20210914120518557

As shown below, when the laser beam is perpendicular to the surface of the object to be measured, that is, when the incident light beam is collinear with the normal to the surface of the object to be measured, it is a direct laser triangulation method.

2、Oblique shot

When the angle between the incident laser beam and the normal to the surface of the object to be measured in the optical path system is less than 90°, the incident method is oblique. The optical path diagram shown in FIG. 2 is an oblique light path diagram of the laser triangulation method.

image-20210914120552057

 

1.3.2、TOF (Time-of-flight) ranging

TOF lidar is based on measuring the time of flight of light to obtain the distance of the target. Its working principle is mainly as follows: a beam of modulated laser signal is sent out through the laser transmitter, the modulated light is reflected by the measured object and received by the laser detector, and the distance to the target can be calculated by measuring the phase difference between the emitted laser and the received laser. .

image-20210914120619928

 

1.4、Using 4ROS lidar

Run following command in terminal.

Run following command in terminal. (We can print the topic data through the terminal to check whether the radar starts normally)

If you want to view the scan results in RVIZ, type in the terminal.

image-20210914120619928

1.7、launch parsing

Code path:~/software/library_ws/src/ydlidar_ros_driver-master/launch

TG.launch file

Main debugging parameters:

For other parameters, please refer to the official documentation,

ydlidar_ros_driver/README.md at master · YDLIDAR/ydlidar_ros_driver · GitHub