Time synchronization method, electronic equipment and storage medium

By adjusting the camera sampling frequency and generating camera trigger signals, the time synchronization of the lidar and the camera is achieved, which solves the problem of the difference in sampling frequency and timestamp between the lidar and the camera in the autonomous driving system, and improves the synchronization and fusion efficiency of data collection.

CN118748580APending Publication Date: 2024-10-08SINO TRUK JINAN POWER CO LTD
View PDF -1 Cites 5 Cited by

Patent Information

Application Number
CN202411185314.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In the autonomous driving system, there are differences in the sampling frequency and timestamp mechanism of lidar and cameras, resulting in low synchronization accuracy and low fusion efficiency.

Method used

By adjusting the sampling frequency of the camera to make it the same as the sampling frequency of the lidar, and generating a camera trigger signal based on the clock information of the lidar, the time synchronization of the lidar and the camera is achieved, and their point cloud data and image data are fused.

Benefits of technology

It solves the problem of differences in sampling frequency and timestamps between lidar and cameras, improves the synchronization and fusion efficiency of data collection, and ensures high-precision perception and positioning of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748580A_ABST
    Figure CN118748580A_ABST
Patent Text Reader

Abstract

According to the time synchronization method provided by the embodiment of the invention, the sampling frequency of the camera is adjusted, the message sent by the laser radar is obtained, the message is analyzed, the frame header information and the sensing information in the message are extracted, the first timestamp is obtained according to the clock information, and the camera trigger signal is generated according to the first timestamp and the preset synchronization rule; and fusing the point cloud data acquired by the laser radar and the image data acquired by the camera according to a preset data fusion algorithm to obtain a synchronous image. And the synchronization precision is improved by introducing a timestamp mechanism, so that high-precision data acquisition and intelligent fusion are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and in particular to a time synchronization method, electronic device and storage medium. Background Art

[0002] Autonomous driving technology is an important development direction of the current automobile industry. It enables cars to autonomously perceive the surrounding environment, make decisions and perform driving tasks through advanced sensors, controllers, actuators, computing platforms and communication technologies, so as to achieve safe and efficient operation. Autonomous driving vehicles need to rely on sensors to perceive the surrounding environment, including common perception sensors such as laser radar, cameras and millimeter wave radar for data collection and data fusion to judge surrounding obstacles, as well as positioning sensors such as integrated navigation, which rely on satellites and inertial navigation to provide real-time and accurate vehicle location information. The information obtained is integrated by the controller to ensure driving safety.

[0003] Time synchronization plays a vital role in autonomous driving systems. Time synchronization ensures that various sensor data can work under a unified time reference, thereby achieving accurate sensor fusion, decision-making, and fusion positioning. To achieve time synchronization of multiple sensors, first of all, we need to select a unified clock source to provide a time reference for the entire system. Summary of the invention

[0004] The embodiments of the present application provide a time synchronization method, an electronic device, and a storage medium to solve the problem of time synchronization between a laser radar and multiple cameras.

[0005] In a first aspect, an embodiment of the present application provides a time synchronization method, which is applied to a domain controller of an autonomous driving system, wherein the autonomous driving system further includes a laser radar and a camera respectively connected to the domain controller by hard wires, and the method includes:

[0006] Adjust the camera sampling frequency so that the camera sampling frequency is the same as the lidar sampling frequency;

[0007] Obtain the message sent by the laser radar, parse the message, and extract the frame header information and perception information in the message, wherein the frame header information includes the start flag and the end flag of the frame, the perception information is located between the start flag and the end flag, and the perception information includes clock information based on the clock source of the laser radar;

[0008] A first timestamp is obtained according to the clock information, and a camera trigger signal is generated according to the first timestamp and a preset synchronization rule; wherein the preset synchronization rule is used to indicate adjusting the acquisition time of the camera so that the acquisition time of the camera is the same as the acquisition time of the laser radar; and the camera trigger signal is used to trigger the camera;

[0009] The point cloud data collected by the lidar and the image data collected by the camera are fused according to the preset data fusion algorithm to obtain a synchronized image.

[0010] Optionally, the method shown above, obtaining the first timestamp according to the clock information, includes:

[0011] Parse the clock information to obtain a second timestamp; wherein the second timestamp refers to the timestamp of the laser radar collecting the point cloud data;

[0012] A first timestamp is obtained according to the second timestamp and a first duration between two adjacent frames of the laser radar.

[0013] Optionally, the method shown above, obtaining the first timestamp according to the second timestamp and the first duration between two adjacent frames of the laser radar, includes:

[0014] According to the second timestamp, the first duration and the second duration, the first timestamp is obtained; the second duration refers to the duration of time when the domain controller triggers the camera through the camera trigger signal; the first timestamp The calculation formula is:

[0015]

[0016] in, refers to the second timestamp, It refers to the first duration. It refers to the second duration.

[0017] Optionally, in the method shown above, before fusing the point cloud data collected by the laser radar and the image data collected by the camera according to a preset data fusion algorithm to obtain a synchronized image, the method further includes:

[0018] Obtain point cloud data collected by the laser radar and image data collected by the camera;

[0019] The point cloud data and the image data are preprocessed, wherein the preprocessing includes denoising, filtering, data alignment and feature matching of the point cloud data and the image data.

[0020] Optionally, the method shown above pre-processes the point cloud data and image data, including:

[0021] Map the point cloud data to the coordinate system where the image data is located;

[0022] Key features are extracted from point cloud data and matched with image data; the key features include edge features, corner features and speed features.

[0023] Optionally, in the method shown above, after preprocessing the point cloud data and the image data, the method further includes:

[0024] Compare the key features with the pixels in the image data and calculate the reprojection error;

[0025] When the reprojection error exceeds a preset threshold, the point cloud data and the image data are remapped to the same coordinate system;

[0026] Remap point cloud data and image data based on the same time and the same coordinate system.

[0027] Optionally, as in the method shown above, the domain controller is hard-wired to the satellite positioning system, and the clock information is parsed to obtain the second timestamp, including:

[0028] Parse the clock information and obtain the parsing result;

[0029] When the analysis result indicates that the clock information is abnormal, obtaining a satellite signal of a satellite positioning system;

[0030] A second timestamp is obtained according to the message and the satellite time indicated by the satellite signal.

[0031] In a second aspect, an embodiment of the present application provides a time synchronization device, which is applied to a domain controller of an autonomous driving system. The autonomous driving system further includes a laser radar and a camera respectively connected to the domain controller by hard wires. The device further includes:

[0032] An adjustment module, used for adjusting the sampling frequency of the camera so that the sampling frequency of the camera is the same as the sampling frequency of the laser radar;

[0033] An extraction module is used to obtain the message sent by the laser radar, parse the message, and extract the frame header information and perception information in the message, wherein the frame header information includes the start mark and the end mark of the frame, the perception information is located between the start mark and the end mark, and the perception information includes clock information based on the clock source of the laser radar;

[0034] A trigger module, used to obtain a first timestamp according to the clock information, and generate a camera trigger signal according to the first timestamp and a preset synchronization rule; wherein the preset synchronization rule is used to indicate to adjust the acquisition time of the camera so that the acquisition time of the camera is the same as the acquisition time of the laser radar; the camera trigger signal is used to trigger the camera;

[0035] The data fusion module is used to fuse the point cloud data collected by the lidar and the image data collected by the camera according to a preset data fusion algorithm to obtain a synchronized image.

[0036] Optionally, the device as shown above, the extraction module, includes:

[0037] A first parsing module is used to parse the clock information to obtain a second timestamp; wherein the second timestamp refers to the timestamp of the laser radar collecting the point cloud data;

[0038] A first timestamp is obtained according to the second timestamp and a first duration between two adjacent frames of the laser radar.

[0039] Optionally, the device shown above obtains the first timestamp according to the second timestamp and the first duration between two adjacent frames of the laser radar, including:

[0040] According to the second timestamp, the first duration and the second duration, the first timestamp is obtained; the second duration refers to the duration of time when the domain controller triggers the camera through the camera trigger signal; the first timestamp The calculation formula is:

[0041]

[0042] in, refers to the second timestamp, It refers to the first duration. It refers to the second duration.

[0043] Optionally, in the device shown above, before the data fusion module performs data fusion, the method further includes:

[0044] The first acquisition module is used to acquire point cloud data collected by the laser radar and image data collected by the camera;

[0045] The preprocessing module is used to preprocess the point cloud data and image data, wherein the preprocessing includes denoising, filtering, data alignment and feature matching of the point cloud data and image data.

[0046] Optionally, the device as shown above, the pre-processing module comprises:

[0047] A mapping module, used to map the point cloud data to the coordinate system where the image data is located;

[0048] The matching module is used to extract key features from the point cloud data and match the key features with the image data, wherein the key features include: edge features, corner features and speed features.

[0049] Optionally, in the device shown above, after the preprocessing by the preprocessing module, the method further comprises:

[0050] A comparison module, used to compare the key features with the pixels in the image data and calculate the reprojection error;

[0051] When the reprojection error exceeds a preset threshold, the point cloud data and the image data are remapped to the same coordinate system;

[0052] The remapping module is used to remap point cloud data and image data based on the same time and the same coordinate system.

[0053] Optionally, in the device shown above, the domain controller is hard-wired to the satellite positioning system, and the clock information is parsed to obtain the second timestamp, including:

[0054] The second parsing module is used to parse the clock information and obtain a parsing result;

[0055] A second acquisition module is used to acquire satellite signals of a satellite positioning system when the analysis result indicates that the clock information is abnormal;

[0056] A second timestamp is obtained according to the message and the satellite time indicated by the satellite signal.

[0057] A third aspect of an embodiment of the present invention provides an electronic device, including: a memory and a processor;

[0058] Memory stores computer-executable instructions;

[0059] The processor executes the computer-executable instructions stored in the memory to implement any time synchronization method of the first aspect.

[0060] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the time synchronization method of any one of the first aspects.

[0061] A fifth aspect of an embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, is used to implement any time synchronization method of the first aspect.

[0062] The time synchronization method, electronic device and storage medium provided in the embodiments of the present application adjust the sampling frequency of the camera so that the sampling frequency of the camera is the same as the sampling frequency of the laser radar; obtain the message sent by the laser radar, parse the message, and extract the frame header information and perception information in the message, wherein the frame header information includes the start mark and the end mark of the frame, the perception information is located between the start mark and the end mark, and the perception information includes clock information based on the clock source of the laser radar; obtain a first timestamp according to the clock information, and generate a camera trigger signal according to the first timestamp and a preset synchronization rule; wherein the preset synchronization rule is used to indicate the adjustment of the camera's acquisition time so that the camera's acquisition time is the same as the laser radar's acquisition time; the camera trigger signal is used to trigger the camera; and the point cloud data collected by the laser radar and the image data collected by the camera are fused according to a preset data fusion algorithm to obtain a synchronized image. The following technical effects are achieved: the camera sampling frequency is adjusted to make the camera sampling frequency the same as the lidar sampling frequency to solve the problem of the difference in sampling frequency between the lidar and the camera; the camera trigger signal timestamp is calculated according to the clock information by analyzing the lidar message to solve the problem of the timestamp mechanism of the lidar and the camera; the perception information in the radar message is analyzed to determine the radar's clock source as the benchmark to solve the problem of system synchronization time benchmark; the point cloud data collected by the lidar and the image data collected by the camera are integrated to solve the problem of data consistency. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0064] Figure 1 Schematic diagram of the time synchronization method provided by the embodiment of the present invention Figure 1 ;

[0065] Figure 2 Schematic diagram of the time synchronization method provided by the embodiment of the present invention Figure 2 ;

[0066] Figure 3 Schematic diagram of the time synchronization method provided by the embodiment of the present invention Figure 3 ;

[0067] Figure 4 Schematic diagram of the time synchronization method provided by the embodiment of the present invention Figure 4 ;

[0068] Figure 5 A schematic diagram of the structure of a time synchronization device provided by an embodiment of the present invention;

[0069] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0070] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments.

[0071] Reference numerals:

[0072] 510 - adjustment module; 520 - extraction module; 530 - trigger module; 540 - data fusion module; 610 - processor; 620 - memory; 630 - communication component; 640 - bus. DETAILED DESCRIPTION

[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0074] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0075] In the embodiments of the present invention, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference. It should be noted that in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or design. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the embodiments of the present invention, "at least one" refers to one or more, and "more" refers to two or more.

[0076] It should be noted that the “at…” in the embodiment of the present invention may be the instant when a certain situation occurs, or may be a period of time after the certain situation occurs, and the embodiment of the present invention does not specifically limit this.

[0077] In order to clearly describe the technical solutions of the embodiments of the present invention, some terms and technologies involved in the embodiments of the present invention are briefly introduced below:

[0078] Point cloud data: is a digital representation of an object or environment in three-dimensional space, consisting of a large number of points, each of which contains coordinates (X, Y, Z) and possible other attributes such as color, intensity, classification, etc.

[0079] Message: refers to the data unit transmitted during the communication process. Messages can carry different types of information, such as text, images, audio or video data.

[0080] Clock source: is a device or signal generator that provides a clock signal used to synchronize multiple components in a circuit or system.

[0081] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail.

[0082] At present, most of the automatic driving systems use mechanical LiDAR, which utilizes the working characteristics of mechanical LiDAR, calculates a certain angle and delay according to the scanning time of LiDAR and the exposure time of cameras installed at different angles, and achieves synchronous data collection. However, this method is only effective for mechanical LiDAR, and solid-state or semi-solid-state LiDAR cannot be synchronized using this method.

[0083] Some solid-state or semi-solid-state laser radars support external signal control to start data collection. For such radars, there is a technical solution that uses a controller to send out a PPS signal at the same time, uses the rising edge of the PPS signal to trigger the laser radar and camera, and records the timestamp at this moment to achieve synchronous data collection. However, for solid-state or semi-solid-state laser radars that do not support external signal triggering, the above solution is difficult to unify the time of data collection with the camera.

[0084] Autonomous driving vehicles in complex scenarios will have higher requirements for perception accuracy and sensitivity. In order to ensure stable and efficient operation of the vehicle, multi-sensor fusion is one of the key technologies to achieve high-performance perception and positioning of the vehicle. However, the two important sensors, lidar and camera, have differences in sampling frequency, timestamp mechanism, etc. How to achieve high-precision synchronous data acquisition and intelligent fusion has become an urgent problem to be solved. Existing technologies often rely on complex external synchronization devices or software algorithms, and have problems such as low synchronization accuracy and low fusion efficiency.

[0085] In view of the problems of low synchronization accuracy and low fusion efficiency in existing time synchronization methods, the present application provides a time synchronization method.

[0086] Figure 1 Schematic diagram of the time synchronization method provided by the embodiment of the present invention Figure 1 .like Figure 1 As shown, the execution subject of the embodiment of the present invention is a domain controller in the autonomous driving system. Then the time synchronization method provided by the embodiment of the present invention includes the following steps:

[0087] S101. Adjust the sampling frequency of the camera so that the sampling frequency of the camera is the same as the sampling frequency of the laser radar.

[0088] Specifically, the domain controller is preset with a frequency detection and adaptive adjustment module. When the system starts, it will first detect the sampling frequencies of the laser radar and the camera in real time. If it is detected that the sampling frequencies of the laser radar and the camera are different, the sampling frequency of the camera will be automatically adjusted until it matches the laser radar. In the embodiment of the present application, the sampling frequency of the laser radar is fixed and cannot be adjusted, and the sampling frequency of the camera is generally adjustable.

[0089] The domain controller presets a built-in algorithm for calculating the adjustment value. Optionally, when the sampling frequency of the camera and the lidar sampling frequency differ greatly, the camera sampling frequency can be gradually adjusted until the camera sampling frequency and the lidar sampling frequency are the same. When the camera sampling frequency and the lidar sampling frequency do not differ much, the camera sampling frequency can be directly adjusted to be consistent with the lidar sampling frequency to ensure the consistency of the lidar and camera in sampling frequency. Different adjustment methods are used to use the system to avoid affecting the stability of the system.

[0090] S102, obtaining a message sent by the laser radar, parsing the message, and extracting frame header information and perception information in the message;

[0091] Specifically, the frame header information includes the start flag and the end flag of the frame, the perception information is located between the start flag and the end flag, and the perception information includes clock information based on the clock source of the laser radar;

[0092] The frame header information contains key metadata of the sensor data, such as data format, sensor identification, etc. During the data collection process, the frame header information helps identify the data packets collected by different sensors. This information ensures that the data can be correctly parsed and fused. When the start mark is identified, the message begins to be parsed, and the parsing is completed when the end mark is identified. Data fusion is performed according to the data format and sensor identification, and the consistency and accuracy of the data are ensured through motion compensation, time synchronization and sensor calibration.

[0093] Devices such as cameras and lidar detect and identify information around the vehicle in real time. The perceived information includes vehicle status, driving environment, positioning information and clock information. By combining the advantages of different sensors such as lidar and cameras, optionally, the lidar in this embodiment provides accurate measurement of distance and a clock signal based on the lidar's clock source, while the camera provides rich colors and textures. The lidar point cloud data and camera image data are integrated to overcome the limitations of a single sensor and improve the accuracy of the perception system.

[0094] S103, obtaining a first timestamp according to the clock information, and generating a camera trigger signal according to the first timestamp and a preset synchronization rule;

[0095] Specifically, the preset synchronization rule is used to instruct to adjust the acquisition time of the camera so that the acquisition time of the camera is the same as the acquisition time of the laser radar; the camera trigger signal is used to trigger the camera;

[0096] Based on the laser radar clock source, the sampling time of the next frame is calculated according to the sampling frequency of the laser radar to determine the first timestamp. When the laser radar samples the previous frame, the camera does not perform synchronous sampling. The calculated first timestamp is the moment when the camera and laser radar perform synchronous sampling in the next frame.

[0097] The synchronization rule is to use the calculated first timestamp to trigger camera acquisition at the same time. At the first timestamp, the camera and lidar are time synchronized. Based on the synchronization rule, the domain controller generates a trigger signal before the first timestamp to ensure that the camera is triggered when the first timestamp is reached.

[0098] S104, fusing the point cloud data collected by the laser radar and the image data collected by the camera according to a preset data fusion algorithm to obtain a synchronized image;

[0099] Specifically, data fusion includes data-level fusion, feature-level fusion and target-level fusion. Data-level fusion directly merges raw sensor data of different modalities through spatial alignment; feature-level fusion mixes cross-modal data in the feature space; target-level fusion integrates the prediction results of each modal model and makes a final decision. The domain controller identifies the sensor ID and the data format to fuse the data of multiple sensors to obtain more accurate and reliable information about the vehicle's surrounding environment.

[0100] The time synchronization method of the embodiment of the present invention adjusts the sampling frequency of the camera so that the sampling frequency of the camera is the same as the sampling frequency of the laser radar; obtains the message sent by the laser radar, parses the message, and extracts the frame header information and perception information in the message, wherein the frame header information includes the start mark and the end mark of the frame, the perception information is located between the start mark and the end mark, and the perception information includes clock information based on the clock source of the laser radar; obtains a first timestamp according to the clock information, and generates a camera trigger signal according to the first timestamp and a preset synchronization rule; wherein the preset synchronization rule is used to indicate the adjustment of the camera's acquisition time so that the camera's acquisition time is the same as the laser radar's acquisition time; the camera trigger signal is used to trigger the camera; and fuses the point cloud data collected by the laser radar and the image data collected by the camera according to a preset data fusion algorithm to obtain a synchronized image. The following technical effects are achieved: the camera sampling frequency is adjusted to make the camera sampling frequency the same as the lidar sampling frequency to solve the problem of the difference in sampling frequency between the lidar and the camera; the camera trigger signal timestamp is calculated according to the clock information by analyzing the lidar message to solve the problem of the timestamp mechanism of the lidar and the camera; the perception information in the radar message is analyzed to determine the radar's clock source as the benchmark to solve the problem of system synchronization time benchmark; the point cloud data collected by the lidar and the image data collected by the camera are integrated to solve the problem of data consistency.

[0101] Figure 2 Schematic diagram of the time synchronization method provided by the embodiment of the present invention Figure 2 .like Figure 2 As shown, the time synchronization method provided in this embodiment is further refined on the basis of the time synchronization method provided in the previous embodiment of the present invention. The time synchronization method provided in this embodiment includes the following steps:

[0102] S201, adjusting the sampling frequency of the camera so that the sampling frequency of the camera is the same as the sampling frequency of the laser radar;

[0103] S202, obtaining a message sent by the laser radar, parsing the message, and extracting frame header information and perception information in the message;

[0104] The implementation of S201 and S202 is similar to the implementation of S101 and S102 in the previous embodiment of the present invention, and will not be repeated here.

[0105] S203, parsing the clock information to obtain a second timestamp;

[0106] Specifically, the second timestamp refers to the timestamp of the laser radar collecting point cloud data;

[0107] The second timestamp is calculated based on a unified clock source and the PPS signal is parsed. The PPS signal is recorded at the moment when a specific target is detected or a state change occurs. The speed of processing data and the response time are determined by comparing these timestamps to obtain a second timestamp when the signal is stable.

[0108] S204, obtaining a first timestamp according to the second timestamp and a first duration between two adjacent frames of the laser radar;

[0109] Specifically, the second timestamp is obtained when the sensor sends messages stably. The domain controller calculates the first timestamp based on the sampling frequency of the lidar, the transmission time of the trigger signal, and the response time of the camera. The sampling time of the next frame is calculated as the first timestamp through the second timestamp of the previous frame. Then, at the first timestamp, the camera and radar collect data simultaneously.

[0110] S205 , fusing the point cloud data collected by the laser radar and the image data collected by the camera according to a preset data fusion algorithm to obtain a synchronized image.

[0111] The implementation of S205 is similar to the implementation of S104 in the previous embodiment of the present invention, and will not be described in detail here.

[0112] The technical effect of the solution in this embodiment is: determine the clock source, obtain the first timestamp based on the clock information analysis, and then calculate the second timestamp based on the first timestamp according to the sampling frequency and other factors, so as to solve the problem of asynchronous acquisition caused by unstable clock source.

[0113] Figure 3 Schematic diagram of the time synchronization method provided by the embodiment of the present invention Figure 3 In order to describe the time synchronization method in detail, the first time stamp obtained according to the second time stamp and the first duration between two adjacent frames of the laser radar in the time synchronization method is further explained. Figure 3 As shown, the time synchronization method provided by the embodiment of the present invention includes the following steps:

[0114] S301. Adjust the sampling frequency of the camera so that the sampling frequency of the camera is the same as the sampling frequency of the laser radar.

[0115] S302: Obtain the message sent by the laser radar, parse the message, and extract the frame header information and perception information in the message.

[0116] S303, parsing the clock information to obtain a second timestamp; wherein the second timestamp refers to the timestamp of the laser radar collecting the point cloud data;

[0117] The implementation of S301, S302, and S303 is similar to the implementation of S101, S102, and S203 in the previous embodiment of the present invention, and will not be repeated here.

[0118] S304, obtaining a first timestamp according to the second timestamp, the first duration, and the second duration;

[0119] Specifically, the second duration refers to the duration when the domain controller triggers the camera through the camera trigger signal; the first timestamp The calculation formula is: ;

[0120] refers to the second timestamp, It refers to the first duration. It refers to the second duration;

[0121] The first timestamp is obtained by parsing the clock information, and then the first timestamp is calculated based on the time interval between two consecutive frames of the lidar and the delay time for the trigger signal generated by the domain controller to be transmitted to the camera, thereby achieving synchronous acquisition of the camera and lidar.

[0122] The technical effect of the solution in this embodiment is: through the second timestamp based on the time interval, the trigger signal delays the calculation of the first timestamp, triggers the camera and lidar to collect synchronously from the next frame, and determines the starting collection time of the next frame.

[0123] Figure 4 Schematic diagram of the time synchronization method provided by the embodiment of the present invention Figure 4 In order to describe the time synchronization method in detail, the point cloud data collected by the lidar and the image data collected by the camera are fused according to the preset data fusion algorithm to obtain the synchronized image. Figure 4 As shown, the time synchronization method provided by the embodiment of the present invention includes the following steps:

[0124] S401, obtaining point cloud data collected by the laser radar and image data collected by the camera;

[0125] Specifically, the point cloud data includes,the distance measured by the lidar by emitting a laser beam and,receiving the laser signal reflected by the object, the clock,information in the lidar’s own clock source, the environment around the vehicle,the road status and other perception information;

[0126] Image data includes the pixels, resolution, color depth, and image quality of the surrounding environment captured by the camera;

[0127] The domain controller acquires point cloud data collected by the lidar and image data from the camera in real time to analyze the surrounding environment of the vehicle body from multiple dimensions.

[0128] S402, preprocessing the point cloud data and image data;

[0129] Specifically, preprocessing includes denoising, filtering, data alignment, and feature matching of point cloud data and image data;

[0130] The amount of data collected by the sensor is large, and the domain controller denoises the acquired sensor data to remove unnecessary noise components in the sensor collected data to retain useful information. At the same time, removing unnecessary noise can avoid interference with the domain controller; filtering is to remove abnormal data in the original data or data that the controller considers abnormal to reduce the difference in data output, which is convenient for the domain controller to analyze. If the difference is too large and exceeds the processing limit of the domain controller, it will cause the domain controller to be unable to process the data and the noise analysis results will be disordered;

[0131] Data alignment is to achieve spatial synchronization of point cloud data and graphic data based on time synchronization. Feature matching extracts key features from point cloud data and uses them to match image data to achieve multi-dimensional analysis of the target.

[0132] S403, mapping the point cloud data to the coordinate system where the image data is located;

[0133] Specifically, after the camera and lidar achieve synchronous data collection at the first timestamp, the collected data is spatially synchronized, that is, the point cloud data is mapped to the coordinate system where the image data is located. The point cloud data and image data display the characteristics of the target object in the same spatial coordinate system.

[0134] S404, extracting key features from the point cloud data, and matching the key features with the image data;

[0135] Specifically, key features are extracted from the data collected by the lidar on the target object, including: geometric features, three-dimensional coordinates, curvature and normals; intensity features gently describe the surface features of the target object material through the reflection of the lidar; global features describe the characteristics of the entire point cloud data set, such as the center point and overall shape of the entire point cloud; key point features are points with significant geometric or topological significance extracted from the point cloud data, such as corner points, edge points, etc. The above key features are matched with the image features collected by the camera, and each point in the point cloud data corresponds to a pixel in the image, using the color information of the image to enrich the point cloud data, or using the spatial information of the point cloud to enhance the three-dimensional perception capability of the image data.

[0136] S405, comparing the key features with the pixels in the image data, and calculating the reprojection error;

[0137] Specifically, the lidar point cloud data is projected onto the camera image plane and compared with the pixels in the actual image. The spatial consistency of the lidar and camera data is determined by calculating the reprojection error.

[0138] S406, when the reprojection error exceeds a preset threshold, re-mapping the point cloud data and the image data to the same coordinate system;

[0139] Specifically, if the reprojection error exceeds the preset threshold, the data is considered inconsistent and the system re-triggers the data acquisition and fusion process; if the error is within the allowable range, the next step of data fusion is performed.

[0140] S407, re-mapping the point cloud data and the image data based on the same time and the same coordinate system;

[0141] Specifically, the point cloud data and image data are remapped based on the same clock source and unified coordinate system to obtain a composite image of the target object. The composite image includes multiple aspects such as the geometric characteristics, color information, and spatial relationships of the target object, thereby realizing multi-dimensional matching of the target object and multi-layer perception of the target object in the autonomous driving system.

[0142] The technical effect of the solution in this embodiment is: to achieve time synchronization and space synchronization of point cloud data and image data to avoid the problem of unclear target perception caused by deviation of point cloud data and image data in the projection of the target object.

[0143] Optionally, in this embodiment, the clock information is parsed to obtain a parsing result;

[0144] Specifically, parsing the clock information is, on the one hand, to obtain the second timestamp, and on the other hand, to determine whether there is an abnormality in the clock source clock, and the parsing result is used to indicate the clock source status.

[0145] Optionally, in this embodiment, when the analysis result indicates that the clock information is abnormal, a satellite signal of a satellite positioning system is acquired;

[0146] Obtaining a second timestamp according to the message and the satellite time indicated by the satellite signal;

[0147] Specifically, when the analysis result indicates that the clock information is abnormal, it is determined that the lidar's own clock source is unavailable. At this time, the domain controller switches the clock source to receive satellite signals to determine the clock source for the system. The satellite can be the GPS-Global Satellite Navigation System or the Beidou Navigation System. The clock source is determined by the satellite to avoid system confusion.

[0148] The technical effect of this solution in this embodiment is: using a backup clock source to avoid the situation where the autonomous driving system cannot be used when the lidar's own clock source is unavailable.

[0149] Figure 5 Schematic diagram of the structure of the time synchronization device provided by the embodiment of the present invention. Figure 5 As shown, an embodiment of the present invention further provides a time synchronization device, which is applied to a domain controller of an autonomous driving system, and the autonomous driving system further includes a laser radar and a camera respectively connected to the domain controller by hard wire. Then the time synchronization device further includes:

[0150] An adjustment module, used for adjusting the sampling frequency of the camera so that the sampling frequency of the camera is the same as the sampling frequency of the laser radar;

[0151] An extraction module is used to obtain the message sent by the laser radar, parse the message, and extract the frame header information and perception information in the message, wherein the frame header information includes the start mark and the end mark of the frame, the perception information is located between the start mark and the end mark, and the perception information includes clock information based on the clock source of the laser radar;

[0152] A trigger module, used to obtain a first timestamp according to the clock information, and generate a camera trigger signal according to the first timestamp and a preset synchronization rule; wherein the preset synchronization rule is used to indicate to adjust the acquisition time of the camera so that the acquisition time of the camera is the same as the acquisition time of the laser radar; the camera trigger signal is used to trigger the camera;

[0153] The data fusion module is used to fuse the point cloud data collected by the lidar and the image data collected by the camera according to a preset data fusion algorithm to obtain a synchronized image.

[0154] Optionally, the device as shown above, the extraction module, includes:

[0155] A first parsing module is used to parse the clock information to obtain a second timestamp; wherein the second timestamp refers to the timestamp of the laser radar collecting the point cloud data;

[0156] A first timestamp is obtained according to the second timestamp and a first duration between two adjacent frames of the laser radar.

[0157] Optionally, the device shown above obtains the first timestamp according to the second timestamp and the first duration between two adjacent frames of the laser radar, including:

[0158] According to the second timestamp, the first duration and the second duration, the first timestamp is obtained; the second duration refers to the duration of time when the domain controller triggers the camera through the camera trigger signal; the first timestamp The calculation formula is:

[0159]

[0160] in, refers to the second timestamp, It refers to the first duration. It refers to the second duration.

[0161] Optionally, in the device shown above, before the data fusion module performs data fusion, the method further includes:

[0162] The first acquisition module is used to acquire point cloud data collected by the laser radar and image data collected by the camera;

[0163] The preprocessing module is used to preprocess the point cloud data and image data, wherein the preprocessing includes denoising, filtering, data alignment and feature matching of the point cloud data and image data.

[0164] Optionally, the device as shown above, the pre-processing module comprises:

[0165] A mapping module, used to map the point cloud data to the coordinate system where the image data is located;

[0166] The matching module is used to extract key features from the point cloud data and match the key features with the image data; wherein the key features include: edge features, corner features and speed features.

[0167] Optionally, in the device shown above, after the preprocessing by the preprocessing module, the method further comprises:

[0168] A comparison module, used to compare the key features with the pixels in the image data and calculate the reprojection error;

[0169] When the reprojection error exceeds a preset threshold, the point cloud data and the image data are remapped to the same coordinate system;

[0170] The remapping module is used to remap point cloud data and image data based on the same time and the same coordinate system.

[0171] Optionally, in the device shown above, the domain controller is hard-wired to the satellite positioning system, and the clock information is parsed to obtain the second timestamp, including:

[0172] The second parsing module is used to parse the clock information and obtain a parsing result;

[0173] A second acquisition module is used to acquire satellite signals of a satellite positioning system when the analysis result indicates that the clock information is abnormal;

[0174] A second timestamp is obtained according to the message and the satellite time indicated by the satellite signal.

[0175] Figure 6 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 6As shown, an embodiment of the present invention further provides an electronic device, which includes: at least one processor 610 and a memory 620, and the electronic device also includes a communication component 630, wherein the processor 610, the memory 620 and the communication component 630 are connected via a bus 640.

[0176] In a specific implementation process, at least one processor 710 executes the computer execution instructions stored in the memory 720, so that the at least one processor 710 is used to implement the time synchronization method of the above embodiment.

[0177] The specific implementation process of the processor 710 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0178] In the above embodiment, it should be understood that the processor 710 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.

[0179] The memory 720 may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.

[0180] The bus 740 may be an ISA bus, a PCI bus, or an EISA bus. The bus 740 may be an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0181] The above-mentioned functions implemented by the electronic device and the main control device introduce the scheme provided by the embodiment of the present invention. It can be understood that in order to implement the above-mentioned functions, the electronic device or the main control device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and algorithm steps of each example described in the embodiment disclosed in the embodiment of the present invention, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present invention.

[0182] The embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the time synchronization method of the above embodiment. In the specific implementation of the above time synchronization method, each module can be implemented as a processor.

[0183] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory SRAM, electrically erasable programmable read-only memory EEPROM, erasable programmable read-only memory EPROM, programmable read-only memory PROM, read-only memory ROM, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0184] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.

[0185] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the time synchronization method of the above embodiment.

[0186] The computer program is stored in a readable storage medium. At least one processor can read the computer program from the readable storage medium. At least one processor executes the computer program to execute the solution provided in any of the above embodiments.

[0187] Those skilled in the art can understand that all or part of the steps of the above method embodiments can be completed by hardware related to program instructions. The above program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above method embodiments are executed; and the above storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0188] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A time synchronization method, characterized in that: The method is applied to a domain controller of an autonomous driving system, wherein the autonomous driving system further comprises a laser radar and a camera respectively connected to the domain controller by hard wires. The method comprises: Adjusting the sampling frequency of the camera so that the sampling frequency of the camera is the same as the sampling frequency of the laser radar; Obtaining a message sent by the laser radar, parsing the message, and extracting frame header information and perception information in the message, wherein the frame header information includes a start flag and an end flag of a frame, the perception information is located between the start flag and the end flag, and the perception information includes clock information based on a clock source of the laser radar; A first timestamp is obtained according to the clock information, and a camera trigger signal is generated according to the first timestamp and a preset synchronization rule; wherein the preset synchronization rule is used to indicate adjustment of the acquisition time of the camera so that the acquisition time of the camera is the same as the acquisition time of the laser radar; and the camera trigger signal is used to trigger the camera; The point cloud data collected by the laser radar and the image data collected by the camera are fused according to a preset data fusion algorithm to obtain a synchronized image.

2. The method according to claim 1, characterized in that The obtaining a first timestamp according to the clock information includes: Parsing the clock information to obtain a second timestamp; wherein the second timestamp refers to a timestamp of the laser radar collecting the point cloud data; The first timestamp is obtained according to the second timestamp and a first duration between two adjacent frames of the laser radar.

3. The method according to claim 2, characterized in that The obtaining the first timestamp according to the second timestamp and a first duration between two adjacent frames of the laser radar includes: The first timestamp is obtained according to the second timestamp, the first duration and the second duration; the second duration refers to the duration of time during which the domain controller triggers the camera through the camera trigger signal; the first timestamp The calculation formula is: Among them, the refers to the second timestamp, the refers to the first duration, refers to the second duration.

4. The method according to claim 1, characterized in that Before fusing the point cloud data collected by the laser radar and the image data collected by the camera according to a preset data fusion algorithm to obtain a synchronized image, the method further includes: Acquire the point cloud data collected by the laser radar and the image data collected by the camera; The point cloud data and the image data are preprocessed, wherein the preprocessing includes denoising, filtering, data alignment and feature matching of the point cloud data and the image data.

5. The method according to claim 4, characterized in that The preprocessing of the point cloud data and the image data comprises: Mapping the point cloud data to the coordinate system where the image data is located; Extract key features from the point cloud data, and match the key features with the image data; wherein the key features include: edge features, corner features and speed features.

6. The method according to claim 5, characterized in that After preprocessing the point cloud data and the image data, the method further includes: Comparing the key features with the pixels in the image data to calculate the reprojection error; When the reprojection error exceeds a preset threshold, remapping the point cloud data and the image data to the same coordinate system; The point cloud data and the image data are remapped based on the same time and the same coordinate system.

7. The method according to claim 1, characterized in that The domain controller is hard-wired to the satellite positioning system, and the parsing of the clock information to obtain the second timestamp includes: Parsing the clock information to obtain a parsing result; When the analysis result indicates that the clock information is abnormal, acquiring a satellite signal of the satellite positioning system; The second timestamp is obtained according to the message and the satellite time indicated by the satellite signal.

8. A time synchronization device, characterized in that: The device is applied to a domain controller of an autonomous driving system, and the autonomous driving system further includes a laser radar and a camera respectively connected to the domain controller by hard wires. The device includes: An adjustment module, used for adjusting the sampling frequency of the camera so that the sampling frequency of the camera is the same as the sampling frequency of the laser radar; An extraction module, used to obtain a message sent by the laser radar, parse the message, and extract frame header information and perception information in the message, wherein the frame header information includes a start mark and an end mark of a frame, the perception information is located between the start mark and the end mark, and the perception information includes clock information based on a clock source of the laser radar; A trigger module, used to obtain a first timestamp according to the clock information, and generate a camera trigger signal according to the first timestamp and a preset synchronization rule; wherein the preset synchronization rule is used to indicate to adjust the acquisition time of the camera so that the acquisition time of the camera is the same as the acquisition time of the laser radar; the camera trigger signal is used to trigger the camera; The data fusion module is used to fuse the point cloud data collected by the laser radar and the image data collected by the camera according to a preset data fusion algorithm to obtain a synchronized image.

9. An electronic device, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the time synchronization method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the time synchronization method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Data processing method, data processing device, data acquisition device and vehicle

    CN118972034A

  • Data processing method, data processing device, data acquisition device and vehicle

    CN118972034B

  • Real-time MEMS attitude matching camera and laser sensor time synchronization method and device

    CN119644349A

  • Camera and laser sensor time synchronization method and device with real-time MEMS posture matching

    CN119644349B

  • Camera soft synchronization method and device based on laser radar event triggering

    CN121596303A