Platform edge detection method based on laser radar

Through the platform edge detection method based on lidar, the preprocessing of lidar data and feature point extraction technology are used to solve the problem of low detection accuracy in the existing technology, achieve high-precision platform edge detection, and reduce the impact of light and Three-dimensional space conversion error provides high-precision relative positioning for vehicles.

CN118534475APending Publication Date: 2024-08-23CRRC ZHUZHOU ELECTRIC LOCOMOTIVE RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310981855.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-06-21
Filing Date
2023-08-04
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The detection accuracy of the platform edge detection method in the existing technology is not high, especially because the camera is easily affected by external environmental light, resulting in a decrease in detection accuracy and a large error in three-dimensional space conversion.

Method used

A platform edge detection method based on lidar is adopted, including obtaining lidar data, sensor calibration, point cloud data preprocessing, feature point extraction and tracking, and extracting And track the edge feature points of the station, using Kalman filter and random sample consistency algorithm for fitting and tracking.

Benefits of technology

It improves the accuracy of platform edge detection, reduces the error of three-dimensional space conversion, enhances the robustness of detection, and can provide high-precision relative positioning for vehicle decision-making and planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534475A
    Figure CN118534475A
Patent Text Reader

Abstract

The invention relates to the technical field of laser radar obstacle detection, in particular to a platform edge detection method based on a laser radar. The invention provides a platform edge detection method based on a laser radar. The method comprises the following steps: S1, obtaining laser radar data; s2, carrying out sensor calibration on the laser radar and the vehicle body; s3, preprocessing the point cloud data generated by the laser radar; step S4, carrying out platform edge feature point extraction on the preprocessed laser radar point cloud data; and S5, tracking the edge feature points of the platform. According to the platform edge detection method based on the laser radar provided by the invention, the detection precision of the platform edge is improved, and high-precision relative positioning can be provided for the decision planning of the vehicle when the vehicle enters the station and stops.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of laser radar obstacle detection, and more specifically, to a platform edge detection method based on laser radar. Background Art

[0002] With the development of autonomous driving technology, the requirements for the accuracy and speed of environmental perception are getting higher and higher. Environmental perception is the core part of the autonomous driving system, which is responsible for collecting data from sensors (such as cameras, lidar, ultrasonic sensors, etc.) and processing this data into actual environmental information.

[0003] Platform edge detection is an important part of the environmental perception technology of the autonomous driving system. Its purpose is to determine the relative position relationship between the vehicle and the platform. In existing technologies, cameras are often used to collect data and perform semantic segmentation, and edge detection, morphological processing, etc. are used to identify road edges.

[0004] The camera is easily affected by external environmental lighting, which can easily lead to a decrease in detection accuracy. Using image semantic segmentation to convert the results into three-dimensional space will also produce large errors. Therefore, there is an urgent need for a new platform edge detection method to improve the accuracy of platform edge detection. Summary of the invention

[0005] The purpose of the present invention is to provide a platform edge detection method based on laser radar to solve the problem of low detection accuracy of the platform edge detection method in the prior art.

[0006] In order to achieve the above object, the present invention provides a platform edge detection method based on laser radar, comprising the following steps:

[0007] Step S1, obtaining laser radar data;

[0008] Step S2, calibrating the laser radar and the vehicle body;

[0009] Step S3, preprocessing the point cloud data generated by the laser radar;

[0010] Step S4, extracting platform edge feature points from the preprocessed laser radar point cloud data;

[0011] Step S5: Tracking the feature points on the platform edge.

[0012] In one embodiment, the step S2 further comprises:

[0013] By combining the laser radar with the vehicle position information of the inertial navigation system, the coordinate information of multiple frames of the same marker is extracted, and the posture transformation relationship between the laser radar and the vehicle body is calculated.

[0014] In one embodiment, the step S3 further comprises:

[0015] Step S31, using a straight-through filtering method to filter out point clouds that do not belong to the set area of ​​interest;

[0016] Step S32: using a statistical filtering method to filter out isolated noise points;

[0017] Step S33, filtering out points in the point cloud data whose reflection intensity is lower than a set threshold;

[0018] Step S34: grouping the filtered point cloud according to the line bundle information.

[0019] In one embodiment, the threshold value set in step S33 is in a certain proportion to the average reflection intensity of all point clouds after filtering in steps S31 and S32.

[0020] In one embodiment, the step S4 further comprises:

[0021] Step S41, wiring harness grouping;

[0022] Step S42, respectively extracting the lower endpoint of the rising edge, extracting the upper endpoint of the rising edge, extracting the upper endpoint of the falling edge, and extracting the lower endpoint of the falling edge;

[0023] Step S43: generate a straight line equation of the platform edge points by fitting the characteristic points.

[0024] In one embodiment, the step S42 further includes the following steps:

[0025] The gradient of each point in the same line bundle is calculated by one-dimensional convolution, and the two points with the maximum gradient are extracted as endpoints;

[0026] Determine the rising edge or falling edge by combining the relative heights of the points on both sides;

[0027] After the endpoints are determined, the endpoints and the middle points are used as feature points.

[0028] In one embodiment, the step S43 further comprises:

[0029] The random sample consistency algorithm is used to perform straight line fitting of feature points to generate the straight line equation of the platform edge points.

[0030] In one embodiment, the step S43 further comprises:

[0031] The least square method or template matching straight line fitting method is used to fit the feature points and generate the straight line equation of the platform edge points.

[0032] In one embodiment, the step S5 further comprises:

[0033] Step S51, determining the observation model;

[0034] Step S52, initialization state, using the detection result of the first frame as the initial state;

[0035] Step S53: predict the state, predict the state vector at the current moment;

[0036] Step S54: measurement update, taking the current frame detection result as the measurement value, and weightedly superimposing the measurement value and the predicted value of the state vector at the current moment;

[0037] Step S55, output the result, output the state vector after weighted superposition;

[0038] Step S56, return to step S53, until all frames are tracked, and the process ends.

[0039] In one embodiment, the step S53 further comprises:

[0040] According to the prediction equation of Kalman filter and the state vector at the previous moment, the uniform speed model is used to predict the state vector at the current moment.

[0041] In one embodiment, the step S5 further comprises:

[0042] The feature points along the platform are tracked according to the feature point method.

[0043] The present invention provides a platform edge detection method based on laser radar, which improves the detection accuracy of the platform edge and can provide high-precision relative positioning for vehicle decision-making planning when entering the station. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The above and other features, properties and advantages of the present invention will become more apparent through the following description in conjunction with the accompanying drawings and embodiments, in which the same reference numerals always represent the same features, wherein:

[0045] Figure 1 A flow chart of a platform edge detection method based on laser radar according to an embodiment of the present invention is disclosed;

[0046] Figure 2 A flow chart of an edge feature extraction method according to an embodiment of the present invention is disclosed;

[0047] Figure 3 A schematic diagram of wiring harness information according to an embodiment of the present invention is disclosed;

[0048] Figure 4 A schematic diagram of coordinate system definition according to an embodiment of the present invention is disclosed;

[0049] Figure 5A front view of a platform edge according to an embodiment of the present invention is disclosed;

[0050] Figure 6 A rising edge side view according to an embodiment of the present invention is disclosed;

[0051] Figure 7 A side view of a falling edge according to an embodiment of the present invention is disclosed;

[0052] Figure 8 A flow chart of a tracking method according to an embodiment of the present invention is disclosed. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the invention and are not used to limit the invention.

[0054] Figure 1 A flow chart of a platform edge detection method based on laser radar according to an embodiment of the present invention is disclosed. Figure 1 As shown, the present invention proposes a platform edge detection method based on laser radar, comprising the following steps:

[0055] Step S1, obtaining laser radar data;

[0056] Step S2, calibrating the laser radar and the vehicle body;

[0057] Step S3, preprocessing the point cloud data generated by the laser radar;

[0058] Step S4, extracting platform edge feature points from the preprocessed laser radar point cloud data;

[0059] Step S5: Tracking the feature points on the platform edge.

[0060] The platform edge detection method based on lidar proposed in the present invention calculates the relative position relationship between the lidar and the vehicle body through sensor posture calibration, and then preprocesses the lidar data to filter out noise and invalid data. A feature extractor based on geometric features is designed to segment the platform edge points in the lidar data and track them using inter-frame information.

[0061] These steps will be described in detail below. It should be understood that within the scope of the present invention, the above-mentioned technical features of the present invention and the technical features specifically described below (such as embodiments) can be combined and related to each other to form a preferred technical solution.

[0062] Step S1, obtaining lidar data.

[0063] Get lidar data.

[0064] Step S2: calibrate the laser radar and the vehicle body.

[0065] It is necessary to obtain the relative position relationship between the vehicle and the platform, so the lidar and the vehicle body need to be accurately calibrated.

[0066] In the LiDAR posture calibration, the LiDAR is combined with the vehicle position information of the inertial navigation system to extract the coordinate information of multiple frames of the same marker, and calculate the posture transformation relationship between the LiDAR and the vehicle body.

[0067] Step S3: pre-process the point cloud data generated by the laser radar.

[0068] In order to enable the on-board perception system to more accurately identify the platform edge, and to consider the computational cost and reduce noise, the point cloud data generated by the lidar is preprocessed.

[0069] Furthermore, in this embodiment, the point cloud preprocessing further includes the following steps:

[0070] Step S31, adopting straight-through filtering, which can filter out point clouds that do not belong to the set area of ​​interest;

[0071] Step S32: using statistical filtering (mean, variance information) to effectively filter out isolated noise points;

[0072] Step S33, filtering out points in the point cloud data whose reflection intensity is lower than a set threshold;

[0073] Points with reflection intensity lower than the set threshold are considered to have low reflection intensity.

[0074] The set threshold in this embodiment is in a certain proportion to the average reflection intensity of all point clouds after filtering in step S31 and step S32.

[0075] Preferably, the set threshold is 0.5 times the mean reflection intensity of all point clouds after filtering in step S31 and step S32. That is, when it is less than 0.5 times the mean, it can be considered as a point with low reflection intensity.

[0076] Step S34: For subsequent feature extraction, the filtered point cloud may be grouped according to the line bundle information.

[0077] Each point in the laser radar raw data will have corresponding beam information, which can be used directly. For example, for a 16-line laser radar, each point is numbered from 0 to 15.

[0078] Step S4: extracting platform edge feature points from the preprocessed lidar point cloud data.

[0079] For the filtered lidar point cloud data, it is necessary to extract the platform edge feature points from it.

[0080] Figure 2 A flow chart of an edge feature extraction method according to an embodiment of the present invention is disclosed. Figure 2 The edge feature extraction method shown further comprises the following steps:

[0081] Step S41, wiring harness grouping;

[0082] Step S42, respectively extracting the lower endpoint of the rising edge, extracting the upper endpoint of the rising edge, extracting the upper endpoint of the falling edge, and extracting the lower endpoint of the falling edge;

[0083] Step S43: generate a straight line equation of the platform edge points by fitting the characteristic points.

[0084] Furthermore, in step S41, the wire harnesses are grouped according to the wire harness information of step S34.

[0085] Figure 3 A schematic diagram of wiring harness information according to an embodiment of the present invention is disclosed. Figure 3 As shown, the 64-line laser radar divides the line beams into 0 to 63, and the line beam information is provided by the laser radar raw data.

[0086] Furthermore, in step S42, each point can be represented as x, y, z, r (reflection intensity), i (beam information).

[0087] Figure 4 A schematic diagram of a coordinate system definition according to an embodiment of the present invention is disclosed. Figure 4 The coordinate system shown is defined as follows: the x-axis is positive toward the front of the vehicle, the y-axis is positive toward the right of the vehicle's forward direction, and the z-axis is positive toward the top of the vehicle.

[0088] Furthermore, the step S42 further comprises the following steps:

[0089] The gradient of each point in the same line bundle is calculated by one-dimensional convolution, and the two points with the maximum gradient are extracted as endpoints;

[0090] Determine the rising edge or falling edge by combining the relative heights of the points on both sides;

[0091] After the endpoints are determined, the endpoints and the middle points are used as feature points.

[0092] The one-dimensional convolution method is used to calculate the gradient of each point in the same beam, and the two points with the largest gradient are extracted as endpoints. Due to the sparsity of point cloud data, the extracted endpoints may not be on the edge. Therefore, the rising and falling edges and endpoints of each laser beam scanned on the platform are retained and used as feature points.

[0093] It should be noted that the edge point feature extraction method is not limited to the one-dimensional convolution method, and other edge detection methods can meet the requirements of the present invention.

[0094] Figure 5 A front view of a platform edge according to an embodiment of the present invention is disclosed. Figure 6 A side view of a rising edge according to an embodiment of the present invention is disclosed, such as Figure 5 and Figure 6 As shown, the gradient calculation method of the lower endpoint 3 of the rising edge is: grad3 = abs(z1-z2-z3-z4-z5);

[0095] The gradient calculation method of the rising edge upper endpoint 8 is grad8 = abs(z6-z7-z8-z9-z 10 ).

[0096] Figure 5 A front view of a platform edge according to an embodiment of the present invention is disclosed. Figure 7 A side view of a falling edge according to an embodiment of the present invention is disclosed, such as Figure 5 and Figure 7 As shown, the gradient calculation method of the lower endpoint 3 of the falling edge is grad3=abs(z1-z2-z3-z4-z5);

[0097] The gradient calculation method of the upper endpoint 8 of the falling edge is grad8 = abs(z6-z7-z8-z9-z 10 ).

[0098] Among them, z1, z2, ..., z 10 is the z-direction coordinate of point clouds 1, 2, ..., 10.

[0099] At the same time, the relative heights of the points on both sides are combined, for example, the relative heights of points 1 and 2 and points 4 and 5 are used to determine the rising edge or falling edge;

[0100] After the endpoints are determined, the endpoints and the middle points are used as feature points. Figure 6 Midpoints 3, 4, 5, 6, 7, 8, Figure 7 The midpoints 3, 4, 5, 6, 7, and 8 are used as feature points.

[0101] After extracting the feature points, it is necessary to segment the platform edge points from them. Since the upper and lower edges of the platform are located on the same plane perpendicular to the ground, and the Z direction does not need to be considered when calculating the relative position relationship between the vehicle and the platform edge, in order to improve stability, all points on the upper and lower edges of the platform are retained, and the RANSAC (random sample consistency) algorithm is used to perform straight line fitting of the feature points to generate the straight line equation of the platform edge points.

[0102] The RANSAC line fitting algorithm is based on the idea of ​​random sampling and iteration. It constructs an inlier set by randomly selecting a small group of data points, estimates the line model based on the inlier set, compares all data points with the line model, adds data points whose distance to the line model is less than a certain threshold to the inlier set, repeats the above steps multiple times, and finally selects the line model with the most inliers as the final result.

[0103] It should be noted that different straight line fitting methods can meet the requirements of the present invention.

[0104] For example, the least square method or template matching straight line fitting method can be used to perform straight line fitting of feature points to generate a straight line equation for the platform edge points.

[0105] The least squares method estimates the slope and intercept of the line by minimizing the sum of the squares of the vertical distances from the data points to the fitted line.

[0106] The template matching straight line fitting method is to match the data with a template to find a straight line that meets the template, thereby obtaining the parameters of the fitting line.

[0107] Step S5: Tracking the feature points on the platform edge.

[0108] Since steps S2 to S4 are all single-frame processing flows, in order to adapt to the dynamic changes of the straight line, eliminate the influence of errors and noise and improve stability, in this embodiment, a linear Kalman filter uniform speed model is used to track the edge points, and inter-frame information is used to reduce the jitter of the final result.

[0109] Figure 8 A flow chart of a tracking method according to an embodiment of the present invention is disclosed. Figure 8 As shown, the step S5, tracking the feature points on the platform edge, further includes:

[0110] Step S51, determining the observation model;

[0111] The observation model includes a state vector and an observation vector.

[0112] In this embodiment, the state vector and the observation vector are the slope and position of the straight line;

[0113] Step S52, initialization state, using the detection result of the first frame as the initial state;

[0114] Step S53: predict the state, predict the state vector at the current moment;

[0115] Step S54: measurement update, taking the current frame detection result as the measurement value, and weightedly superimposing the measurement value and the predicted value of the state vector at the current moment;

[0116] Step S55, output the result, output the state vector after weighted superposition;

[0117] Step S56, determine whether all frames have completed tracking. If not, return to step S53 and repeat the prediction state and measurement update until all frames have completed tracking, and the process ends.

[0118] Furthermore, the step S53 includes: using a uniform speed model to predict the state vector at the current moment according to the prediction equation of the Kalman filter and the state vector at the previous moment.

[0119] The prediction equation of the Kalman filter predicts the state estimation at the current moment through the state estimation and state transfer matrix at the previous moment, and estimates its error covariance.

[0120] The uniform velocity model is a commonly used state transition model, which is used to describe the state change of an object when it is in uniform motion. In the uniform velocity model, the displacement and velocity of an object at two adjacent moments are fixed, so the state vector usually contains two dimensions: position and velocity.

[0121] Furthermore, the step S55 includes: calculating the slope and position of the straight line according to the filtered state vector.

[0122] It should be noted that different straight line / curve tracking methods can meet the requirements of the present invention.

[0123] For example, the step S5 may track the feature points of the platform edge according to the feature point method.

[0124] The feature point method realizes straight line tracking by extracting and matching straight line feature points.

[0125] The platform edge detection method based on laser radar provided by the present invention improves the detection accuracy of the platform edge and can provide high-precision relative positioning for vehicle decision-making planning when entering the station and stopping.

[0126] The platform edge detection method based on laser radar proposed in the present invention has the following beneficial effects:

[0127] 1) The laser radar of the intelligent driving vehicle can be used to directly detect the platform in three-dimensional space, which reduces the error caused by the coordinate conversion from two-dimensional space to three-dimensional space and effectively solves the problem of error in the platform edge conversion from image semantic segmentation to three-dimensional space;

[0128] 2) Through real-time platform edge detection, the problem of sensors being easily affected by the external environment is effectively solved. It is not affected by external ambient light, improves robustness, and can provide high-precision relative positioning for vehicle decision-making planning when entering the station.

[0129] Although the above methods are illustrated and described as a series of actions for simplicity of explanation, it should be understood and appreciated that these methods are not limited by the order of the actions, because according to one or more embodiments, some actions may occur in a different order and / or concurrently with other actions from those illustrated and described herein or not illustrated and described herein but understandable to those skilled in the art.

[0130] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0131] The above embodiments are provided for persons familiar with the art to implement or use the present invention. Personnel familiar with the art can make various modifications or changes to the above embodiments without departing from the inventive concept of the present invention. Therefore, the protection scope of the present invention is not limited to the above embodiments, but should be the maximum scope of the innovative features mentioned in the claims.

Claims

1. A platform edge detection method based on laser radar, characterized in that: The following steps are involved: Step S1, obtaining laser radar data; Step S2, calibrating the laser radar and the vehicle body; Step S3, preprocessing the point cloud data generated by the laser radar; Step S4, extracting platform edge feature points from the preprocessed laser radar point cloud data; Step S5: Tracking the feature points on the platform edge.

2. The platform edge detection method based on laser radar according to claim 1 is characterized in that: The step S2 further comprises: By combining the laser radar with the vehicle position information of the inertial navigation system, the coordinate information of multiple frames of the same marker is extracted, and the posture transformation relationship between the laser radar and the vehicle body is calculated.

3. The platform edge detection method based on laser radar according to claim 1, characterized in that: The step S3 further comprises: Step S31, using a straight-through filtering method to filter out point clouds that do not belong to the set area of ​​interest; Step S32: using a statistical filtering method to filter out isolated noise points; Step S33, filtering out points in the point cloud data whose reflection intensity is lower than a set threshold; Step S34: grouping the filtered point cloud according to the line bundle information.

4. The platform edge detection method based on laser radar according to claim 3 is characterized in that: The threshold value set in step S33 is in a certain proportion to the average reflection intensity of all point clouds after filtering in steps S31 and S32.

5. The platform edge detection method based on laser radar according to claim 1, characterized in that: The step S4 further comprises: Step S41, wiring harness grouping; Step S42, respectively extracting the lower endpoint of the rising edge, extracting the upper endpoint of the rising edge, extracting the upper endpoint of the falling edge, and extracting the lower endpoint of the falling edge; Step S43: generate a straight line equation of the platform edge points by fitting the characteristic points.

6. The platform edge detection method based on laser radar according to claim 5, characterized in that: The step S42 further comprises the following steps: The gradient of each point in the same line bundle is calculated by one-dimensional convolution, and the two points with the maximum gradient are extracted as endpoints; Determine the rising edge or falling edge by combining the relative heights of the points on both sides; After the endpoints are determined, the endpoints and the middle points are used as feature points.

7. The platform edge detection method based on laser radar according to claim 5, characterized in that: The step S43 further comprises: The random sample consistency algorithm is used to perform straight line fitting of feature points to generate the straight line equation of the platform edge points.

8. The platform edge detection method based on laser radar according to claim 5, characterized in that: The step S43 further comprises: The least square method or template matching straight line fitting method is used to fit the feature points and generate the straight line equation of the platform edge points.

9. The platform edge detection method based on laser radar according to claim 1, characterized in that: The step S5 further comprises: Step S51, determining the observation model; Step S52, initialization state, using the detection result of the first frame as the initial state; Step S53: predict the state, predict the state vector at the current moment; Step S54: measurement update, taking the current frame detection result as the measurement value, and weightedly superimposing the measurement value and the predicted value of the state vector at the current moment; Step S55, output the result, output the state vector after weighted superposition; Step S56, return to step S53, until all frames are tracked, and the process ends.

10. The platform edge detection method based on laser radar according to claim 9, characterized in that: The step S53 further comprises: According to the prediction equation of Kalman filter and the state vector at the previous moment, the uniform speed model is used to predict the state vector at the current moment.

11. The platform edge detection method based on laser radar according to claim 1, characterized in that: The step S5 further comprises: The feature points along the platform are tracked according to the feature point method.

Citation Information

Cited By

  • Intelligent heavy truck battery swap station accurate alignment method, system and device and storage medium

    CN120510209A