Laser radar signal processing method, device, storage medium and electronic equipment
Through threshold compensation of baseline voltage and fluctuation characteristics, the problem of insufficient sampling accuracy of lidar is solved, ranging accuracy and reflectivity analysis are improved, and the performance optimization of lidar is achieved.
Patent Information
- Application Number
- CN202211513710.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-11-29
AI Technical Summary
The hardware defects of lidar lead to poor sampling accuracy, affecting detection performance, especially the baseline voltage drop, resulting in inaccurate sampling of echo signals.
By acquiring the baseline voltage and initial sampling threshold of the receiving module, the fluctuation characteristics of the baseline voltage are determined, based on this, the threshold compensation is performed, and the target sampling threshold is adjusted to achieve accurate sampling of the echo laser signal.
Improves the accuracy of laser ranging, improves reflectivity analysis, avoids the impact of baseline voltage sinking, and does not need to modify the original hardware circuit, and optimizes signal processing logic to improve performance.
Smart Images

Figure CN115932782B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser radar technology, and in particular to a laser radar signal processing method, device, storage medium and electronic device. Background Art
[0002] LiDAR is a radar system that emits laser beams to detect target characteristics such as position and speed. Its working principle is to first emit a detection laser beam to the target, and then compare the received signal reflected from the target with the transmitted signal. After appropriate processing, relevant information about the target can be obtained, such as target distance, direction, altitude, speed, attitude, and even shape parameters.
[0003] Due to the hardware defects of the lidar, the sampling accuracy is poor, which in turn affects the detection performance of the lidar. Summary of the invention
[0004] The embodiments of this specification provide a laser radar-based signal processing method, device, storage medium, and electronic device, and the technical solution is as follows:
[0005] In a first aspect, an embodiment of the present specification provides a signal processing method based on a laser radar, the method comprising:
[0006] Acquire a baseline voltage corresponding to a receiving module and an initial sampling threshold corresponding to the baseline voltage;
[0007] Determine a baseline fluctuation characteristic corresponding to the baseline voltage, and obtain a target sampling threshold based on the baseline fluctuation characteristic and the initial sampling threshold;
[0008] The echo laser signal sampling process is performed based on the baseline voltage and the target sampling threshold.
[0009] In a second aspect, an embodiment of the present specification provides a laser radar-based signal processing device, the device comprising:
[0010] An acquisition module, used for acquiring a baseline voltage corresponding to a receiving module and an initial sampling threshold corresponding to the baseline voltage;
[0011] An adjustment module, configured to determine a baseline fluctuation characteristic corresponding to the baseline voltage, and obtain a target sampling threshold based on the baseline fluctuation characteristic and the initial sampling threshold;
[0012] A sampling module is used to perform echo laser signal sampling processing based on the baseline voltage and the target sampling threshold.
[0013] In a third aspect, an embodiment of the present specification provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0014] In a fourth aspect, an embodiment of the present specification provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0015] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least:
[0016] In one or more embodiments of the present specification, the baseline voltage corresponding to the receiving module and the initial sampling threshold corresponding to the baseline voltage are obtained to determine the baseline fluctuation characteristics corresponding to the baseline voltage, and the initial sampling threshold is subjected to threshold compensation processing based on the baseline fluctuation characteristics to obtain the target sampling threshold, and then the echo laser signal sampling processing is performed based on the baseline voltage and the target sampling threshold, and the influence of the baseline voltage sag is compensated by adjusting the sampling threshold. The problems caused by the baseline voltage sag can be avoided, the echo signal can be accurately sampled, the laser ranging accuracy can be improved, and the phenomenon of inaccurate reflectivity analysis can be improved. At the same time, the modification of the original hardware circuit of the laser radar can be avoided as much as possible, and the optimization of the laser radar application scenario can be achieved by optimizing the signal processing logic control based on the relevant hardware, thereby improving the performance of the laser radar. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is a schematic diagram of an application scenario based on laser radar provided in an embodiment of this specification;
[0019] Figure 2 It is a structural schematic diagram of a laser radar provided in this manual;
[0020] Figure 3 It is a schematic diagram of a scene of field scanning provided in this manual;
[0021] Figure 4 is a schematic diagram of a galvanometer drive signal provided in an embodiment of this specification;
[0022] Figure 5 It is a schematic diagram of a galvanometer drive scanning provided in an embodiment of this specification;
[0023] Figure 6 It is a flowchart of a laser radar-based signal processing method provided in an embodiment of this specification;
[0024] Figure 7 is a schematic diagram of a baseline voltage fluctuation provided in an embodiment of this specification;
[0025] Figure 8 is a schematic diagram of a dual-threshold sampling scenario provided by an embodiment of this specification;
[0026] Fig. 9 This is a schematic diagram of a scene of near-field object recognition provided by an embodiment of this specification;
[0027] Fig.10 This is a schematic diagram of a galvanometer scanning scenario provided in an embodiment of this specification;
[0028] Fig.11 is a flowchart of another embodiment of a laser radar-based signal processing method provided in this specification;
[0029] Fig.12 is a schematic diagram of a threshold compensation involved in this specification;
[0030] Fig.13 is a flowchart of another embodiment of a laser radar-based signal processing method provided in this specification;
[0031] Fig.14 It is a schematic diagram of coefficient calibration provided in this manual;
[0032] Fig.15 It is a schematic diagram of a pulse width modulation curve provided in this specification;
[0033] Fig.16 This is a comparison chart of the field scanning application of signal processing provided in this manual;
[0034] Fig.17 is a structural schematic diagram of a signal processing device provided in an embodiment of this specification;
[0035] Fig.18 is a structural diagram of an adjustment module provided in an embodiment of this specification;
[0036] Fig.19 The present invention provides a schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0038] In the description of this specification, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of this specification, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in this specification can be understood in specific circumstances. In addition, in the description of this specification, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0039] The present specification is described in detail below with reference to specific embodiments.
[0040] In one or more embodiments of this specification, please refer to Figure 1 , Figure 1 FIG. 1 shows a schematic diagram of an application scenario based on laser radar provided in this specification. Figure 1 As shown, the application scenario includes: a laser radar 101 and a vehicle 102. The laser radar 101 is installed on various vehicles 102 that need to detect the surrounding environment. The vehicle 102 can be, for example, a vehicle, a ship, an aircraft, etc.
[0041] Optionally, when the vehicle 102 is a vehicle, the laser radar can be installed on the front, rear, roof, side of the vehicle, or any other body position where the laser radar can be fixed. It is understood that the laser radar can also be fixed on other device structure platforms that are externally connected to the vehicle. It is understood that the external device structure platform can keep running synchronously with the vehicle when the vehicle is running.
[0042] In one or more embodiments of this specification, see Figure 2, is a schematic diagram of the structure of a laser radar provided in this specification, including a transmitting device 10, a scanning device 20 and a receiving device 30, wherein: the transmitting device 10 is used to transmit a detection laser; the scanning device 20 is used to receive the detection laser and emit the detection laser to the detection field of view; the scanning device 20 is also used to receive the echo laser and deflect the echo laser to the receiving device 30; the receiving device 30 (also referred to as a receiving module (device)) is used to receive the echo laser.
[0043] Optionally, the scanning device 20 may include at least a galvanometer.
[0044] It is understandable that this specification does not limit the number and combination of hardware included in the scanning device. The scanning device shown in this specification may also include other scanning devices besides the galvanometer, for example, other rotating mirrors, or one-dimensional galvanometers, two-dimensional galvanometers. Optionally, the laser radar in this specification does not limit whether the radar includes the above-mentioned device or whether it includes other device forms in addition to the above-mentioned device. The above is only to facilitate a better understanding of the laser radar-based signal processing method shown in this specification.
[0045] The transmitting device 10 may include a laser; schematically, when the laser radar performs field scanning, the laser emits a pulsed outgoing detection laser and directs it to the galvanometer in the scanning device 20, receives the detection laser through the galvanometer in the scanning device, and emits the detection laser to the detection field, and receives the echo laser (generated after being reflected by the echo object) and deflects the echo laser to the receiving device; and then receives the echo laser through the receiving device. Usually, a scanning point is obtained after solving based on a detection laser and the corresponding echo laser.
[0046] In one or more embodiments of this specification, the laser radar may use a galvanometer to scan the field of view. Figure 3 As shown, Figure 3 It is a schematic diagram of a scene of field scanning provided in this specification, wherein the laser 11 can emit a detection laser in the form of a pulsed laser, projected onto the galvanometer 12, and reflected by the galvanometer 12; and the galvanometer 12 receives the echo laser and deflects the echo laser to the receiving device, and the receiving device (not shown) receives the echo laser reflected by the object; illustratively, the flight time can be obtained by the emission time of the detection laser and the reception time of the echo laser, thereby obtaining the distance from the above-mentioned target object to the location of the laser radar, thereby realizing ranging.
[0047] In addition, if the scanning device is a two-dimensional galvanometer, the galvanometer 12 can swing two-dimensionally around the X-axis and the Y-axis, thereby changing the emission scanning angle of the detection laser in two directions, realizing scanning over a large area, and obtaining a distance image within the scanning range; the galvanometer 12 can swing at a high speed on one axis of the X-axis or the Y-axis, and swing at a relatively uniform low speed relative to the other axis, so as to realize the following Figure 3 The raster scanning obtains a more refined distance image.
[0048] Schematically, the laser radar uses a galvanometer to scan the field of view based on the movement of the galvanometer, such as Figure 4 As shown, the galvanometer usually needs to connect two low-voltage drive signals for superposition to achieve two-dimensional scanning. One is the fast-axis drive signal (for example, it can control the galvanometer to move around the vertical axis, corresponding to the Y-axis), and the other is the slow-axis drive signal (for example, it can control the galvanometer to move around the horizontal axis, corresponding to the X-axis). The two-dimensional scanning of the galvanometer can be achieved by superimposing the two signals of the slow axis and the fast axis. Usually, the fast-axis drive signal is a sinusoidal signal, and the slow-axis drive signal is a triangular signal. The movement speed in the slow axis direction is relatively slow, and the pitch angle of the galvanometer can be accurately controlled in real time by the slow-axis drive signal. The movement speed in the fast axis direction is relatively fast, and the galvanometer is in a resonant motion state. Usually, the motion state of the galvanometer in the horizontal direction can only be adjusted by changing the frequency of the fast-axis drive signal. Of course, the directions corresponding to the slow axis and the fast axis can be set as needed, and this is only an exemplary description.
[0049] Schematically, during the movement of the galvanometer, the laser emits pulsed detection laser to the galvanometer according to the emission cycle for scanning. If the emission cycle is fixed, scanning is performed at equal time intervals, and the scanning points in the fast axis direction are distributed according to the deflection angle-time distribution as follows Figure 5 Shown in the middle left picture.
[0050] Schematically, the trajectory of the galvanometer moving along the fast axis is a resonance curve. The movement speed is slowest when the galvanometer is deflected to the edge position with the largest angle, and the movement speed is fastest when the galvanometer is deflected to the middle position (crossing the zero point). Usually, in order to evenly distribute the scanning points in the field of view, the frequency of the outgoing laser emission can be controlled to be higher when the galvanometer moves to the middle position, and the frequency of the outgoing laser emission gradually decreases when it moves to the edge position (that is, the scanning boundary). Usually, the scanning points in the fast axis direction are distributed according to the deflection angle-time distribution as shown in the figure. Figure 5 As shown in the middle right picture.
[0051] In addition, if the scanning device includes a one-dimensional galvanometer, the galvanometer 12 can swing around the rotation axis, thereby changing the emission scanning angle of the detection laser in one direction. The driving characteristics and movement characteristics of the one-dimensional galvanometer are similar to the fast axis of the two-dimensional galvanometer. Therefore, the laser radar including the one-dimensional galvanometer scanning device will also have the problem of uneven movement speed, and it is necessary to adjust the frequency of laser emission to make the scanning points evenly distributed.
[0052] Based on this, when the laser radar performs field scanning, the middle scanning points are usually the densest and the boundary scanning points are the sparsest during the laser echo signal processing stage of the receiving module. The uneven scanning leads to unequal energy of the echo laser per unit time. Furthermore, the baseline voltage of the related baseline circuit in the receiving module will experience a baseline voltage sag. The baseline voltage sag phenomenon will cause inaccurate or unsampled subsequent sampling of all or part of the echo signals, thereby affecting the ranging capability. The baseline voltage sag phenomenon will also affect the reflectivity analysis and object judgment in the near-field area.
[0053] In one embodiment, Figure 6 As shown, a laser radar-based signal processing method is proposed, which can be implemented by a computer program and can be run on a laser radar-based signal processing device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application. The laser radar-based signal processing device can be a laser radar-based scanning system, a receiving system, a signal processing system, etc.
[0054] Specifically, the laser radar-based signal processing method includes:
[0055] S102: Acquire a baseline voltage corresponding to a receiving module and an initial sampling threshold corresponding to the baseline voltage;
[0056] In one or more embodiments of the present specification, the receiving module of the laser radar can be used to receive the echo laser and perform further signal processing on the echo laser, and in some scenarios it can also be referred to as a receiving device or a receiving link.
[0057] Schematically, the receiving module may include a baseline circuit and a TDC (time to digital converter). The baseline circuit is used to provide a stable baseline voltage to the back-end time to digital converter TDC. During the field of view scanning phase, the time to digital converter TDC can perform signal sampling based on the baseline voltage and an initial sampling threshold for the baseline voltage.
[0058] Optionally, the receiving module may include a (echo laser) receiving sensor, a TIA (variable transimpedance amplifier), an AC coupling capacitor, a baseline circuit and a TDC (time to digital converter) connected in sequence.
[0059] Furthermore, from the above analysis, it can be seen that when a laser radar including a one-dimensional galvanometer or a two-dimensional galvanometer scanning device performs field scanning, the middle scanning points are usually the densest and the boundary scanning points are the sparsest when the receiving module processes the echo laser. The uneven scanning leads to unequal energy of the echo laser per unit time, such as Figure 7 As shown, Figure 7It is a schematic diagram of baseline voltage fluctuation. When the laser radar performs field scanning such as equi-angle scanning, Figure 7 The baseline voltage fluctuation corresponding to different scanning angles of the galvanometer period when the laser radar scans the field of view based on the galvanometer is fed back. Figure 7 When the middle galvanometer is at the middle angle of the scanning range, the outgoing laser emission is dense, the echo energy is strong, the charging and discharging of the AC coupling capacitor is more intensive, and the baseline voltage sag is the highest. Since the slow axis direction of the two-dimensional galvanometer moves uniformly, it will not cause fluctuations in the baseline. All subsequent galvanometer movements and galvanometer movement-related quantities (such as galvanometer movement period, galvanometer movement time, galvanometer deflection angle, etc.), unless otherwise specified, refer to the movement of a one-dimensional galvanometer or the movement of a two-dimensional galvanometer in the fast axis direction.
[0060] The initial sampling threshold may be understood as a sampling threshold for a baseline voltage set based on a time-to-digital converter, and the initial sampling threshold is usually a constant voltage value.
[0061] In a feasible implementation, the initial sampling threshold corresponding to the baseline voltage may be a single-threshold sampling, that is, taking a single-threshold sampling receiving module as an example, it may include a sampling threshold A. Typically, the TDC (time-to-digital converter) is based on a sampling frequency. If the baseline voltage provided by the current baseline circuit is less than the sampling threshold A, the echo sampling signal may be represented as a low level. If the baseline voltage provided by the current baseline circuit is greater than or equal to the sampling threshold A, the echo sampling signal may be represented as a high level.
[0062] It can be understood that the echo laser returned from a long distance within the field of view of the laser radar is weak, and the output echo signal peak is low. If the baseline voltage of the baseline circuit sinks at this time, it may cause the echo signal that can be sampled using the sampling threshold A to not be sampled or to be sampled inaccurately, thereby affecting the ability of the receiving module to read weak echo signals, resulting in a significant deterioration in the ranging capability of the laser radar. In one or more embodiments of the present specification, the signal processing method can be executed to track the baseline fluctuation characteristics, and the initial sampling threshold can be adjusted according to the baseline fluctuation characteristics to compensate for the impact of the baseline voltage sag.
[0063] In a feasible implementation, the initial sampling threshold corresponding to the baseline voltage may be a dual-threshold sampling, that is, taking a receiving module of dual-threshold sampling as an example, Figure 8 As shown, Figure 8 This is a schematic diagram of a dual threshold sampling scenario, see Figure 8 As shown in the left figure, dual threshold sampling includes two sampling thresholds, A1 and A2, A1 is the dynamic threshold for baseline sampling (can be called the A1 dynamic threshold), and A2 is the fixed threshold for baseline sampling (can be called the fixed threshold).
[0064] Indicatively, Figure 8 As shown, the A2 fixed threshold is based on the calibrated baseline voltage, adding N pe units (a pe unit is the voltage value obtained after the sipm silicon photomultiplier receives the photocurrent output by a photon and performs current-voltage conversion), which can usually be several to dozens of pe units. The A1 dynamic threshold is an adjustable threshold, and the adjustment range is several to dozens of pe units. In actual applications, when the background noise on the baseline voltage is small, A1 can be adjusted lower to obtain better ranging capability; on the contrary, when the background noise is large, A1 can be adjusted higher to improve ranging accuracy.
[0065] Optional, see Figure 8 As shown in the left figure, usually the TDC (time to digital converter) is based on the sampling frequency. The rising edge of the echo signal passes through A1 and A2 in sequence, and the falling edge also passes through A2 and A1 in sequence, indicating that the echo signal is greater than both A1 and A2. The echo signal is compared with the sampling thresholds A1 and A2 to obtain high-level echo sampling signals.
[0066] It is understandable that the echo laser returned from a long distance within the laser radar field of view is weak, and the output echo signal peak is low. If the baseline voltage of the baseline circuit sags at this time, such as Figure 8 As shown in the right figure, the echo signal that can be sampled by sampling threshold A1 or A2 may not be sampled or sampled inaccurately, thus affecting the ability of the receiving module to read weak echo signals, resulting in a significant deterioration in the ranging capability of the laser radar. The echo signal is compared with the sampling threshold A1 to obtain a high-level echo sampling signal, while it becomes a low-level echo sampling signal when compared with the sampling threshold A2. In addition, if Figure 8 As shown in the right figure, the baseline voltage sags, causing the pulse width of the echo signal sampled by the original threshold A1 to become narrower, resulting in a smaller reflectivity obtained by the solution. In some embodiments, the baseline voltage sag may also affect the object judgment in the near field area, such as Fig. 9 As shown, Fig. 9 It is a scene diagram of object recognition in the near field area. The receiving module compares the measured leading pulse width with the calibrated leading pulse width to determine whether there is an overlap between the near field echo signal and the leading signal, and then determines whether there is an object in the near field; Fig. 9 As shown. The baseline sag causes the measured pulse width to narrow, making it impossible to identify the near-field echo signal, resulting in near-point loss and identification of no objects in the near field. In one or more embodiments of this specification, the signal processing method can be executed to track the baseline fluctuation characteristics, and adjust the initial sampling threshold according to the baseline fluctuation characteristics to compensate for the impact of the baseline voltage sag, solve the aforementioned problems such as reflectivity analysis impact, near-field area object judgment, and ranging impact, and improve the performance and detection capability of near-field scanning.
[0067] S104: Determine a baseline fluctuation feature corresponding to the baseline voltage, and obtain a target sampling threshold based on the baseline fluctuation feature and the initial sampling threshold.
[0068] The baseline fluctuation characteristics are used to feedback the fluctuation amplitude and fluctuation amplitude change trend of the baseline voltage relative to time during the scanning phase.
[0069] Optionally, when the galvanometer is located at the scanning boundary point, the baseline voltage fluctuation amplitude of the laser radar is usually 0, that is, when the galvanometer is located at the scanning boundary point (that is, when the deflection angle of the galvanometer is the largest), the baseline voltage has no sag or has a small sag; the baseline voltage when the galvanometer moves to the scanning boundary point can be used as the reference baseline voltage. Since the galvanometer performs resonant motion, the deflection angle and time of the galvanometer movement are sinusoidally related, and the deflection angle or time can be used as a reference quantity for the baseline fluctuation characteristics. Taking time as an example to describe the baseline fluctuation characteristics, the current baseline voltage corresponding to the receiving module at each moment or each sampling frequency is obtained, and the difference between the current baseline voltage and the reference baseline voltage is used as the (voltage) fluctuation amplitude. All (voltage) fluctuation amplitudes within a period of time (such as a cycle) or a range of the galvanometer movement angle can feedback the baseline fluctuation characteristics corresponding to the baseline voltage.
[0070] In a feasible implementation, the change of the baseline voltage can be tracked in real time, and a baseline monitoring circuit for monitoring the baseline circuit can be set in the receiving module of the laser radar, so that the size of the baseline voltage at each moment can be determined. The threshold circuit directly adds a certain voltage increment on the basis of the baseline voltage obtained in real time, and outputs the target sampling threshold, and the voltage increment is the aforementioned N pe units.
[0071] In a feasible implementation, the galvanometer motion curve can be acquired in real time during the field of view scanning of the laser radar, and the mapping relationship between the baseline fluctuation characteristics and the galvanometer motion time / galvanometer motion angle can be found according to the galvanometer motion moment or the galvanometer motion angle, so as to realize the prediction of the baseline voltage at the current moment or the subsequent moment, and then the initial sampling threshold can be adjusted in real time. The mapping relationship between the galvanometer motion moment / galvanometer motion angle and the baseline fluctuation characteristics can be obtained through the galvanometer motion cycle before the current galvanometer motion cycle, and the relationship between the galvanometer motion moment / galvanometer motion angle and the baseline fluctuation characteristics in the previous galvanometer motion cycle is monitored and used as the mapping relationship of the current galvanometer motion cycle.
[0072] Since the galvanometer performs reciprocating motion, its motion position changes periodically, so the motion position of the galvanometer (i.e., the galvanometer motion time or the galvanometer motion angle) can be expressed by the motion position of the galvanometer within one cycle. The motion position of the galvanometer can be expressed by the deflection angle when the galvanometer moves. The galvanometer is a resonant motion, and the galvanometer motion curve representing the motion position of the galvanometer is a deflection angle-time sine curve. The motion position of the galvanometer can also be expressed by time. The galvanometer chip usually outputs a feedback signal. The feedback signal of the two-dimensional galvanometer includes a fast-axis feedback signal and a slow-axis feedback signal. The fast-axis feedback signal is the aforementioned galvanometer motion curve. The galvanometer motion position of the galvanometer in the fast-axis direction is obtained in real time by monitoring the fast-axis feedback signal; the feedback signal of the one-dimensional galvanometer only includes the feedback signal of one axis, and the feedback signal is the aforementioned galvanometer motion curve.
[0073] In practical applications, since the galvanometer moves quickly and continuously, the baseline voltage at the current or next moment is predicted based on the real-time acquired galvanometer movement position and its correspondence with the baseline fluctuation characteristics, and the initial sampling threshold is adjusted accordingly. The hardware part does not have time to respond.
[0074] In a feasible implementation, an adjustment control strategy acquired in advance (such as a threshold compensation curve, a pulse width modulation curve, etc. involved in one or more embodiments of the present invention) is introduced to drive the threshold circuit to output a target sampling threshold, and the change characteristics of the obtained target sampling threshold match the baseline fluctuation characteristics of the baseline voltage. The time for introducing the adjustment control strategy can be set based on actual conditions, for example, it can be the start time of each scanning cycle of the galvanometer, or it can be the start time of the frame scanning cycle of the galvanometer.
[0075] According to the above explanation, in order to make the scanning points evenly distributed in the field of view along the scanning direction, the frequency of controlling the outgoing laser emission is relatively large when the galvanometer moves to the middle position. At this time, the baseline sag is the largest. When the galvanometer moves to the edge position (that is, the scanning boundary), the frequency of the outgoing laser emission from the middle scanning position to the edge position gradually decreases, and the corresponding baseline voltage sag gradually decreases. The movement position of the galvanometer is highly correlated with the baseline fluctuation characteristics, from which the baseline fluctuation characteristics can be known. The threshold compensation curve is determined according to the baseline fluctuation characteristics, and the adjustment control strategy is determined according to the threshold compensation curve, and the control strategy can be introduced into the threshold circuit in advance.
[0076] In one or more embodiments of the present specification, the laser radar can obtain a target sampling threshold based on at least one baseline fluctuation feature and an initial sampling threshold.
[0077] Optionally, the baseline fluctuation characteristic may be measured by a change in amplitude from a reference baseline voltage, ie, a dip amplitude. For example, the dip amplitude may be represented by a difference between a reference baseline voltage and an actual baseline voltage during a galvanometer scanning cycle.
[0078] In a feasible implementation, the compensation value is determined according to the trend of the depression amplitude (related to the baseline fluctuation characteristics), the initial sampling threshold is subjected to threshold compensation processing to obtain the target sampling threshold, and the comprehensive value of the initial sampling threshold and the compensation value is calculated as the target sampling threshold. A reference unit compensation value can be set, such as the aforementioned one pe unit. The current sampling threshold is dynamically compensated according to the deviation amplitude of the baseline voltage to obtain the target sampling threshold, such as: if the deviation amplitude of the baseline voltage at time T1 is three pe units, then the initial sampling threshold is subtracted by three pe units to obtain the target sampling threshold at time T1, and the deviation amplitude of the baseline voltage at time T2 is further expanded to five pe units, then the initial sampling threshold is subtracted by five pe units to obtain the target sampling threshold at time T2. Of course, this is only an exemplary explanation, and the deviation amplitude of the baseline voltage can also be N pe units, then the initial sampling threshold is subtracted by M pe units, and a fixed operational relationship is satisfied between M and N. The reference unit compensation value can also be dynamically increased or decreased based on the current sampling threshold according to the baseline fluctuation characteristics. For example, if the baseline fluctuation characteristics indicate that the decrease amplitude of the baseline voltage is increasing, that is, the deviation amplitude of the baseline voltage is increasing, then one or more reference unit compensation values are added on the basis of the current sampling threshold to obtain the target sampling threshold for the next moment. If the baseline fluctuation characteristics indicate that the decrease amplitude of the baseline voltage is decreasing, that is, the deviation amplitude of the baseline voltage is decreasing, then one or more reference unit compensation values are reduced on the basis of the current sampling threshold to obtain the target sampling threshold for the next moment.
[0079] In a feasible implementation, the threshold compensation curve is determined according to the trend of the periodically changing dip amplitude. The greater the deviation amplitude of the baseline voltage, the greater the threshold compensation value. The initial sampling threshold minus the compensation value of the threshold compensation curve corresponding to the time is the target sampling threshold. In the actual application stage, when the laser radar performs field scanning, it is sufficient to turn on or import the threshold compensation curve to perform threshold compensation on the current initial sampling threshold.
[0080] Threshold compensation processing for the initial sampling threshold can be achieved by adjusting the pulse width (PWM) of the modulation signal corresponding to the threshold circuit. The threshold circuit outputs different circuit effective voltages (i.e., compensation values) by adjusting the duty cycle through PWM. The duty cycle of the modulation signal is changed through PWM, thereby affecting the output voltage of the threshold circuit (i.e., compensation value).
[0081] It is understandable that when there are multiple sampling thresholds, multiple sampling thresholds can be simultaneously compensated based on the above method to obtain multiple target sampling thresholds, or at least one of the multiple sampling thresholds can be compensated to obtain the target sampling threshold.
[0082] S106: Perform echo laser signal sampling processing based on the baseline voltage and the target sampling threshold.
[0083] It can be understood that after the initial sampling threshold is subjected to threshold compensation processing to obtain the target sampling threshold, the echo laser signal sampling processing can be performed based on the target sampling threshold.
[0084] For example, sampling the echo laser signal based on the baseline voltage and the target sampling threshold to calculate the reflectivity based on the echo signal; sampling the echo laser signal based on the baseline voltage and the target sampling threshold to accurately identify the pulse width of the near-field echo, and then compare the pulse width of the near-field echo with the calibrated leading pulse width to determine whether the near-field echo signal overlaps with the leading signal, and then confirm whether there is an object in the near field; sampling the echo laser signal based on the baseline voltage and the target sampling threshold to calculate the distance of the target object and identify the energy peak of the echo signal.
[0085] In a feasible implementation, if the galvanometer used by the laser radar is a two-dimensional galvanometer, the field of view scanning starts when the galvanometer of the laser radar is in operation, and the galvanometer working state may also include a scanning state and a retrace state.
[0086] Furthermore, the working state of the galvanometer can be determined based on the motion state of the galvanometer in the slow axis direction. Fig.10 This is a schematic diagram of a slow-axis drive signal of a galvanometer involved in this specification, in which the horizontal axis is time t, and the vertical axis is the voltage value of the slow-axis drive signal. If the scanning path of the galvanometer starts from the upper left corner of the field of view, and the slow-axis drive signal is in the scanning area, the slow-axis drive signal and the fast-axis drive signal work together to make the galvanometer scan from the starting position to the end position at the lower left corner; during this period of time, the galvanometer is in a scanning state. Then, the slow-axis drive signal enters the retracement area, and the galvanometer returns from the end position to the starting position under the joint action of the slow-axis drive signal and the fast-axis drive signal, ready to enter the next frame of scanning; during this period of time, the galvanometer is in a retracement state. The above scanning path of the galvanometer is only described as an example, and the scanning path can also start from the lower left corner and end at the upper left corner, or start from the upper right corner and end at the lower right corner, or start from the lower right corner and end at the upper right corner.
[0087] When the galvanometer is in the retrace state, the laser radar is in the blanking state and does not emit an outgoing laser. When the laser radar is in the blanking state, the receiving end does not need to receive the echo laser and perform subsequent processing, and the threshold circuit does not need to output the sampling threshold. However, after the blanking state, the galvanometer will immediately enter the scanning state, and the laser radar will begin to enter normal detection. The blanking state does not last long. In order to avoid frequent opening and closing of the threshold circuit, the hardware response speed is very high and the device life is affected. In the blanking state, the sampling threshold output by the threshold circuit is maintained at the preset constant voltage value P0. P0 can be set to be equal to the initial sampling threshold or slightly less than the initial sampling threshold. When the galvanometer is in the retrace state, the initial sampling threshold does not need to be adjusted; when the galvanometer switches from the retrace state to the scanning state, the initial sampling threshold begins to be adjusted.
[0088] In one or more embodiments of the present specification, by obtaining the baseline voltage corresponding to the receiving module and the initial sampling threshold corresponding to the baseline voltage, when the laser radar performs field scanning, the baseline fluctuation characteristics corresponding to the baseline voltage are determined, and the initial sampling threshold is threshold compensated based on the baseline fluctuation characteristics to obtain the target sampling threshold, and then the echo laser signal sampling is processed based on the baseline voltage and the target sampling threshold, and the influence of the baseline voltage sag is compensated by adjusting the sampling threshold. Accurate sampling of echo signals can be achieved under the phenomenon of baseline voltage sag, the accuracy of laser ranging can be improved, and the phenomenon of inaccurate reflectivity analysis can be improved. At the same time, the modification of the original hardware circuit of the laser radar can be avoided as much as possible. By optimizing the signal processing logic control based on the relevant hardware, the optimization of the laser radar application scenario can be achieved, and the performance of the laser radar can be improved.
[0089] See also Fig.11 , Fig.11 This is a flowchart of another embodiment of a laser radar-based signal processing method proposed in this specification. Specifically:
[0090] S202: Acquire a baseline voltage corresponding to a receiving module and an initial sampling threshold corresponding to the baseline voltage.
[0091] For details, please refer to the same method steps as other embodiments of this specification, which will not be repeated here.
[0092] S204: Acquire a baseline fluctuation feature for the baseline voltage determined based on the galvanometer motion curve, wherein the baseline fluctuation feature includes a reference adjustment position and its corresponding baseline voltage.
[0093] From the above, it can be seen that there is a mapping relationship between the movement position of the galvanometer and the baseline fluctuation characteristics. Therefore, when the galvanometer moves to the middle position, the baseline sinking amplitude is the largest, and when the galvanometer moves to the edge position, the baseline sinking amplitude is the smallest.
[0094] In one or more embodiments of the present specification, the laser radar can obtain the real-time galvanometer motion position and predict the baseline voltage at the current or next moment based on the mapping relationship. Before the current scanning cycle starts, the galvanometer motion curve and the corresponding baseline voltage in the previous galvanometer fast-axis scanning cycle can be obtained, and the baseline fluctuation characteristics can be obtained accordingly. The baseline fluctuation characteristics are the mapping relationship between the galvanometer motion position and the baseline voltage. The baseline fluctuation characteristics of the previous cycle of the current scanning cycle can be obtained, or the baseline fluctuation characteristics of the Nth cycle forward, where N is an integer greater than 1. Generally speaking, the smaller the value of N, the more accurate the prediction of the baseline fluctuation characteristics of the current cycle.
[0095] Optionally, as can be seen from the above, the movement of the galvanometer is directly related to the baseline fluctuation. For a one-dimensional galvanometer, it reciprocates around the axis of rotation, for example, scanning to the right from the starting position of the leftmost edge, continuing to the right after passing the middle position, until the leftmost edge, and then scanning to the left from the rightmost edge, and continuing to the left after passing the middle position, until the leftmost edge; at this time, the leftmost edge position is also the starting position of the next fast-axis scanning cycle. For a two-dimensional galvanometer, the movement in the slow axis direction is uniform and will not affect the baseline, while its movement in the fast axis direction is directly related to the baseline fluctuation. The process of the galvanometer reciprocating around the fast axis is similar to that of a one-dimensional galvanometer. The directions described in the above movement are for illustrative purposes only. It is also possible to scan to the left from the rightmost starting position, scan downward from the uppermost starting position, scan upward from the lowermost starting position, or scan at an inclined angle.
[0096] The motion curve of the galvanometer is a deflection angle-time sinusoidal curve, and the reference adjustment position includes at least one of the first reference position, the second reference position, the third reference position and the fourth reference position. The first reference position corresponds to the starting position of the motion cycle of the galvanometer, the second reference position corresponds to the position of 1 / 4 of the motion cycle of the galvanometer, the third reference position corresponds to the position of 1 / 2 of the motion cycle of the galvanometer, and the fourth reference position corresponds to the position of 3 / 4 of the motion cycle of the galvanometer. Taking the above-mentioned embodiment as an example, the baseline fluctuation characteristics are: from the first reference position to the second reference position, the galvanometer deflects from the left edge position to the middle position, and the baseline voltage gradually decreases; from the second reference position to the third reference position, the galvanometer deflects from the middle position to the right edge position, and the baseline voltage gradually increases; from the third reference position to the fourth reference position, the galvanometer deflects from the right edge position to the middle position, and the baseline voltage gradually decreases; from the fourth reference position to the first reference position of the next galvanometer motion cycle, the galvanometer deflects from the middle position to the left edge position, and the baseline voltage gradually increases.
[0097] Of course, more reference positions may be set within the galvanometer motion cycle to more specifically and meticulously represent the baseline fluctuation characteristics of the baseline voltage.
[0098] S206: Obtain a target sampling threshold based on at least one of the baseline fluctuation characteristics and the initial sampling threshold.
[0099] According to the fluctuation trend of the baseline voltage, combined with the galvanometer motion position, several reference adjustment positions can be configured or set. In one or more embodiments of the present specification, at least one reference adjustment position corresponding to the baseline fluctuation feature can be predetermined, at least one reference adjustment position can be obtained in the actual application stage, and then based on the at least one reference adjustment position and the galvanometer motion position, the initial sampling threshold is subjected to threshold compensation processing to obtain the target sampling threshold.
[0100] It can be understood that different baseline fluctuation characteristics correspond to corresponding threshold compensation processing methods. According to the baseline sag fluctuation trend of the baseline voltage under actual working conditions, it can be divided into the first position range, the second position range, the third position range, and the fourth position range at least in combination with the reference adjustment position. When the galvanometer movement position is in different position ranges, the adjustment method used is different from that of the previous stage. For example, in the first position range, a threshold reduction process is required, and in the second position range, a threshold increase process is required. The adjustment methods of these two position range stages are different.
[0101] The first position range is the position range between the first reference position and the second reference position; the second position range is the position range between the second reference position and the third reference position; the third position range is the position range between the third reference position and the fourth reference position; the fourth position range is the position range between the fourth reference position and the first reference position of the next galvanometer motion cycle.
[0102] In a feasible implementation, since the galvanometer motion curve of the galvanometer is a deflection angle-time curve, time can be used as a representation of the galvanometer motion position; the above-mentioned baseline fluctuation characteristics (i.e., the mapping relationship between the galvanometer motion position and the baseline voltage) can be represented by the mapping relationship between the reference time and the baseline voltage. The first reference position is the first moment, the second reference position is the second moment, the third reference position is the third moment, and the fourth reference position is the fourth moment. Taking the galvanometer motion cycle as T as an example, the first moment can be the starting moment of the galvanometer motion cycle, the second moment can be 1 / 4T, the third moment can be 1 / 2T, the fourth moment can be 3 / 4T, and so on.
[0103] Taking the above embodiment as an example, the process of obtaining the target sampling threshold may be:
[0104] Get the current galvanometer movement moment. Specifically, the current galvanometer movement moment refers to the moment in the galvanometer movement cycle, such as 1 / 3T, 2 / 5T, etc., which can be obtained based on the fast axis feedback signal received in real time, or based on the clock module in the laser radar.
[0105] If the galvanometer movement moment is in the first time period, the first time period is the time period between the first moment and the second moment, the galvanometer deflects from the left edge position to the middle position, and the baseline voltage gradually decreases, then the target sampling threshold is reduced from the first sampling threshold to the second sampling threshold.
[0106] If the galvanometer moves in the second time period, which is the time period between the second moment and the third moment, and the galvanometer moves from the middle position to the right edge position, the baseline voltage gradually increases, and the target sampling threshold is increased from the second sampling threshold to the third sampling threshold.
[0107] If the galvanometer movement moment is in the third time period, the third time period is the time period between the third moment and the fourth moment, the galvanometer deflects from the right edge position to the middle position, and the baseline voltage gradually decreases, then the target sampling threshold is reduced from the third sampling threshold to the fourth sampling threshold.
[0108] If the galvanometer movement moment is in the fourth time period, the fourth time period is the time period between the fourth moment and the first moment of the next galvanometer movement cycle, the galvanometer deflects from the middle position to the left edge position, and the baseline voltage gradually increases, then the target sampling threshold is increased from the fourth sampling threshold to the first sampling threshold.
[0109] Furthermore, the first sampling threshold is associated with the initial sampling threshold. The first sampling threshold corresponds to the target sampling threshold at the first moment, and the first sampling threshold is less than or equal to the initial sampling threshold.
[0110] Furthermore, the second sampling threshold corresponds to the target sampling threshold at the second moment, the third sampling threshold corresponds to the target sampling threshold at the third moment, and the fourth sampling threshold corresponds to the target sampling threshold at the fourth moment. The baseline fluctuation characteristics from the first moment to the third moment are the same as the baseline fluctuation characteristics from the third moment to the first moment of the next galvanometer motion cycle; the second sampling threshold and the fourth sampling threshold are equal, which is the minimum value of the target sampling threshold, and the baseline sinks the most at this time; the first sampling threshold and the third sampling threshold are equal, which is the maximum value of the target sampling threshold, and the baseline sinks the least or does not sink at this time.
[0111] In a feasible implementation, the deflection angle can be used as a representation of the galvanometer movement position. The first reference position is the first angle, the second reference position is the second angle, the third reference position is the third angle, and the fourth reference position is the fourth angle. The first angle can be the position corresponding to the maximum deflection angle, that is, the starting position of the galvanometer movement cycle, the second angle can be the position corresponding to the 0° deflection angle when the galvanometer deflection direction is positive, the third angle can be the position corresponding to the negative maximum deflection angle, and the fourth angle can be the position corresponding to the 0° deflection angle when the galvanometer deflection direction is negative.
[0112] Taking the above embodiment as an example, the process of obtaining the target sampling threshold may be:
[0113] Get the current galvanometer movement angle. Exemplarily, the galvanometer movement angle can be: the galvanometer deflects to the middle position as 0°, the galvanometer deflects to the left edge position as the maximum positive angle, such as 10°, and the galvanometer deflects to the right edge position as the maximum negative angle, such as -10°; the deflection direction when the galvanometer deflects from left to right is positive, and the deflection direction when the galvanometer deflects from right to left is negative. The above left and right directions and positive and negative angles can be set as needed. The current galvanometer movement angle can be obtained based on the feedback signal received in real time.
[0114] If the galvanometer movement angle is within the first angle range, the first angle range is the angle range between the first angle and the second angle, the galvanometer deflects from the left edge position to the middle position, and the baseline voltage gradually decreases, then the target sampling threshold is reduced from the fifth sampling threshold to the sixth sampling threshold. Figure 7 As shown, Figure 7 This is a schematic diagram of the correlation between the galvanometer motion curve and the baseline fluctuation involved in this specification. The first reference position is the starting position of the galvanometer motion cycle, which can correspond to Figure 7 At point A, the galvanometer moves from the first reference position to the second reference position (see Figure 7 The target sampling threshold is also reduced accordingly, from the fifth sampling threshold to the sixth sampling threshold.
[0115] If the galvanometer movement angle is within the second angle range, the second angle range is the angle range between the second angle and the third angle, the galvanometer moves from the middle position to the right edge position, the baseline voltage gradually increases, and the target sampling threshold is increased from the sixth sampling threshold to the seventh sampling threshold. Figure 7 As shown, the second reference position is the 1 / 4 position of the galvanometer scanning cycle, which can correspond to Figure 7 At point B, the galvanometer moves from the second reference position to the third reference position (see Figure 7 The baseline gradually increases, and the target sampling threshold is also increased accordingly, from the sixth sampling threshold to the seventh sampling threshold.
[0116] If the galvanometer movement angle is within the third angle range, which is the angle range between the third angle and the fourth angle, the galvanometer deflects from the right edge position to the middle position, the baseline voltage gradually decreases, and the target sampling threshold is reduced from the seventh sampling threshold to the eighth sampling threshold. Figure 7 As shown, the third reference position is the 1 / 2 position of the galvanometer scanning cycle, which can correspond to Figure 7 At point C, the galvanometer moves from the third reference position to the fourth reference position (see Figure 7 The baseline starts to gradually decrease, and the target sampling threshold is also reduced accordingly, from the seventh sampling threshold to the eighth sampling threshold.
[0117] If the galvanometer movement angle is within the fourth angle range, which is the angle range between the fourth angle and the first angle of the next galvanometer movement cycle, the galvanometer deflects from the middle position to the left edge position, the baseline voltage gradually increases, and the target sampling threshold is increased from the eighth sampling threshold to the fifth sampling threshold. Figure 7 As shown, the fourth reference position is the 3 / 4 position of the galvanometer scanning cycle, which can correspond to Figure 7 At point D, the galvanometer subsequently moves along the fourth reference position to the first reference position of the next galvanometer movement cycle, and the baseline begins to gradually increase from the eighth sampling threshold to the fifth sampling threshold.
[0118] Further, the fifth sampling threshold is associated with the initial sampling threshold. The fifth sampling threshold corresponds to the target sampling threshold of the first angle, and the fifth sampling threshold is less than or equal to the initial sampling threshold.
[0119] Optionally, the difference between the initial sampling threshold P0 and the fifth sampling threshold P5 is ΔP, which can facilitate the adjustment of the target sampling threshold and avoid the problem of inaccurate sampling or failure to sample when the target sampling threshold exceeds the initial sampling threshold P0 when the sampling threshold is increased.
[0120] Furthermore, the sixth sampling threshold corresponds to the target sampling threshold of the second angle, the seventh sampling threshold corresponds to the target sampling threshold of the third angle, and the eighth sampling threshold corresponds to the target sampling threshold of the fourth angle. The baseline fluctuation characteristics from the first angle to the third angle are the same as the baseline fluctuation characteristics from the third angle to the first angle of the next galvanometer motion cycle; the fifth sampling threshold is equal to the seventh sampling threshold, which is the minimum value of the target sampling threshold, and the baseline sinks the most at this time; the sixth sampling threshold is equal to the eighth sampling threshold, which is the maximum value of the target sampling threshold, and the baseline sinks the least or does not sink at this time.
[0121] S208: Perform echo laser signal sampling processing based on the baseline voltage and the target sampling threshold.
[0122] For details, please refer to the same method steps as other embodiments of this specification, which will not be repeated here.
[0123] In one or more embodiments of the present specification, by obtaining the baseline voltage corresponding to the receiving module and the initial sampling threshold corresponding to the baseline voltage, when the laser radar performs field scanning, the baseline fluctuation characteristics corresponding to the baseline voltage are determined, and the initial sampling threshold is threshold compensated based on the baseline fluctuation characteristics to obtain the target sampling threshold, and then the echo laser signal sampling is processed based on the baseline voltage and the target sampling threshold, and the influence of the baseline voltage sag is compensated by adjusting the sampling threshold. The problems caused by the baseline voltage sag can be avoided, the echo signal can be accurately sampled, the laser ranging accuracy can be improved, and the inaccurate reflectivity analysis can be improved. At the same time, the modification of the original hardware circuit of the laser radar can be avoided as much as possible, and the signal processing logic control can be optimized on the basis of the relevant hardware to achieve the optimization of the laser radar application scenario and improve the performance of the laser radar.
[0124] See also Fig.13 , Fig.13 This is a flowchart of another embodiment of a laser radar-based signal processing method proposed in this specification. Specifically:
[0125] S302: Acquire a baseline voltage corresponding to a receiving module and an initial sampling threshold corresponding to the baseline voltage.
[0126] For details, please refer to the same method steps as other embodiments of this specification, which will not be repeated here.
[0127] S304: Obtaining a baseline fluctuation feature for a baseline voltage determined based on a galvanometer motion curve, the baseline fluctuation feature including a reference adjustment position and its corresponding baseline voltage.
[0128] For details, please refer to the same method steps as other embodiments of this specification, which will not be repeated here.
[0129] S306: Determine a threshold compensation curve based on at least one baseline fluctuation feature and an initial sampling threshold; determine a pulse width modulation curve according to the threshold compensation curve; import the pulse width modulation curve, and use the pulse width modulation curve to perform pulse width modulation processing on the pulse width of the threshold circuit to obtain a target sampling threshold.
[0130] In a feasible implementation, the threshold compensation curve is determined based on at least one baseline fluctuation feature and an initial sampling threshold, which may be:
[0131] The threshold compensation curve is determined according to the trend of the periodically changing depression amplitude. The greater the depression amplitude of the baseline voltage, the greater the threshold compensation value. The initial sampling threshold minus the compensation value of the threshold compensation curve corresponding to the time is the target sampling threshold. It can be seen from the above embodiments that there is a mapping relationship between the galvanometer movement position and the baseline fluctuation characteristics. When the galvanometer moves to the middle position, the baseline depression amplitude is the largest, and when the galvanometer moves to the edge position, the baseline depression amplitude is the smallest. The change trend of the threshold compensation curve can be determined based on the correlation between the galvanometer movement curve and the baseline fluctuation characteristics.
[0132] The reference adjustment position of the baseline fluctuation characteristic includes at least one of the first reference position, the second reference position, the third reference position and the fourth reference position. The first reference position corresponds to the starting position of the galvanometer movement cycle, the second reference position corresponds to the position of 1 / 4 of the galvanometer movement cycle, the third reference position corresponds to the position of 1 / 2 of the galvanometer movement cycle, and the fourth reference position corresponds to the position of 3 / 4 of the galvanometer movement cycle. Therefore, based on the difference between the actual baseline voltage and the initial baseline voltage at the reference adjustment position during field scanning, the baseline sag amplitude can be determined, and the threshold compensation curve can be obtained. Fig.12 As shown, the threshold compensation curve has a minimum threshold compensation value at the starting position of the galvanometer movement cycle, which is equal to or approximately equal to 0; a maximum threshold compensation value at the position of 1 / 4 of the galvanometer movement cycle, which is equal to the negative maximum baseline sag amplitude; a minimum threshold compensation value at the position of 1 / 2 of the galvanometer movement cycle, which is equal to or approximately equal to 0; and a maximum threshold compensation value at the position of 3 / 4 of the galvanometer movement cycle, which is equal to the negative maximum baseline sag amplitude.
[0133] In a possible implementation, the pulse width modulation curve is determined according to the threshold compensation curve.
[0134] The threshold compensation curve can be obtained by fitting based on step waveform function, trigonometric function, second-order function curve, etc. The galvanometer motion curve is a sine curve, and the baseline voltage curve after the baseline sinks also conforms to the characteristics of the trigonometric function curve. Therefore, the threshold compensation curve also conforms to the characteristics of the trigonometric function curve.
[0135] Optionally, threshold compensation processing for the initial sampling threshold can be achieved by pulse width modulation (PWM) of the threshold circuit. The input signal of the threshold circuit changes the duty cycle through PWM, and after filtering by the filter circuit, it can output different target sampling thresholds to achieve the adjustment of the target sampling threshold. It can be understood that different duty cycles can make the threshold circuit output different effective voltages (that is, sampling thresholds), and the effective voltage (that is, sampling threshold) output by the circuit is adjusted by changing the duty cycle of the threshold circuit. According to the threshold compensation curve, the trigonometric function fitting processing of PWM is performed to obtain a pulse width adjustment curve. The pulse width adjustment curve is introduced into the threshold circuit to obtain a threshold compensation curve. The threshold circuit further subtracts the corresponding threshold compensation value from the initial sampling threshold to obtain the target sampling threshold.
[0136] Specifically, the pulse width modulation curve satisfies the following formula:
[0137] N pwm =-|A*sin[(Π / B)*N+Pha]+Offset|
[0138] Among them, N pwm is the pulse width regulation value, A is the pulse width regulation amplitude, N is the serial number of the current pulse width regulation cycle, Pha is the circuit response regulation coefficient, Offset is the pulse width regulation compensation coefficient; B is the quotient of 1 / 2 of the period of the galvanometer motion curve and the pulse width regulation period.
[0139] The pulse width adjustment compensation coefficient Offset determines the difference between the first sampling threshold value P1 and the initial sampling threshold value P0 when threshold compensation is started. In some embodiments, the pulse width adjustment value can be compensated when phase adjustment is performed, thereby adjusting the sampling threshold to avoid the problem that the first sampling threshold after threshold compensation is greater than the initial sampling threshold, resulting in a problem of no sampling.
[0140] The PWM of the threshold circuit has a design base frequency, which is determined by the hardware performance of the threshold circuit. It cannot output a pulse width adjustment value that changes continuously over time. Instead, the pulse width adjustment period is determined by the design base frequency, and the pulse width adjustment period is used as the minimum time unit for the change of the pulse width adjustment value. B is the number of adjustable periods contained in 1 / 2 of the galvanometer motion period. For example, if the design base frequency of PWM is 250MHz, the pulse width adjustment period is 2048ns, and the pulse width adjustment curve N can be imported in each adjustment period. pwm .
[0141] Circuit response adjustment coefficient Pha: Considering that the hardware response of the receiving module (such as the receiving link) requires a certain amount of time, a circuit response adjustment coefficient Pha can be set to adjust the phase of the pulse width modulation curve so that the fluctuation characteristics of the target sampling threshold are consistent with the baseline fluctuation characteristics of the baseline voltage.
[0142] In a feasible implementation manner, the above-mentioned pulse width modulation curve formula, the parameters therein, such as the pulse width modulation amplitude A, the circuit response adjustment coefficient Pha, the pulse width modulation compensation coefficient Offset, etc.; can be fitted out by the relationship between the pulse width modulation curves of multiple previous galvanometer motion cycles and the output target sampling threshold, so as to obtain the parameters in the formula; it can also be obtained by pre-calibration, and the parameter values in the formula are obtained after calibration.
[0143] Specifically, after the laser radar is assembled on the production line, a large number of parameters need to be calibrated, such as reflectivity, distance, etc. The calibration results are written into the programmable array logic device (FPGA) or chip inside the laser radar. The calibration process is usually carried out in a standard calibration site. For example, when performing reflectivity calibration, a standard target plate with a known reflectivity is set at a preset distance from the laser radar to be calibrated in the calibration site, and the measured results are associated with the known reflectivity to obtain calibration data.
[0144] The circuit response adjustment coefficient Pha is related to the hardware response speed of the receiving module. The faster the hardware response speed, the smaller the Pha. During the calibration process, the Pha value can be adjusted to make the fluctuation characteristics of the target sampling threshold output by the threshold circuit consistent with the baseline fluctuation characteristics in the current galvanometer motion cycle. The Pha value calibration is considered complete. The specific setting can be based on the actual working conditions, and the specific value is not limited here.
[0145] The pulse width modulation amplitude A can be understood as being directly related to the maximum depth of the baseline voltage sag. A is the maximum value of the pulse width modulation curve, corresponding to the maximum duty cycle of the threshold circuit input signal. After passing through the threshold circuit, the maximum threshold compensation value is output. The threshold circuit subtracts the maximum threshold compensation value from the initial sampling threshold to obtain the target sampling threshold, which is the target sampling threshold at the maximum depth of the baseline voltage sag, and the target sampling threshold is several to dozens of pe greater than the baseline voltage. The pulse width modulation amplitude A is related to the transmission power, the distance of the target object, the reflectivity of the target object, etc. The more energy of the echo laser returned in the field of view, the greater the depth of the baseline sag. The complexity and changeability of the working conditions cause the depth of the baseline sag to change all the time.
[0146] The pulse width modulation amplitude A can select the baseline voltage depression depth caused by the echo laser of the target object at the farthest ranging distance when the laser radar performs field scanning, so as to determine the pulse width modulation amplitude A of the PWM curve. Among them, the target object can be an object with low reflectivity, such as an object with laser reflectivity less than a certain reflectivity threshold.
[0147] It is understandable that "the depth of the baseline voltage sag caused by the echo laser of the target object at the farthest ranging distance when the laser radar performs field scanning is selected to determine the pulse width modulation amplitude A of the PWM curve", taking into account: 1. The baseline voltage sag has the greatest impact on the ranging of long-distance low-reflectivity conditions. The echo of far-low reflection is small, and the baseline sag directly leads to the echo signal cannot be measured; the maximum compensation amount calibrated for the far-low reflection condition can just solve this problem. 2. If the pulse width modulation amplitude is calibrated for high-energy conditions using echo laser, such as close-range target objects or high-reflectivity target objects, the threshold compensation value is large, and the compensated target sampling threshold will be less than the baseline voltage, resulting in the echo signal cannot be measured.
[0148] For example, when calibrating the pulse width modulation amplitude A, Fig.14 As shown, Fig.14 It is a schematic diagram of coefficient calibration. During calibration, the baseline voltage curve under far-low reverse working conditions is obtained, and the noise extreme point at the middle angle is determined by scanning from bottom to top. Fig.14 The noise point scanning extreme value is shown, and the depression depth of the baseline voltage is determined according to the noise point scanning extreme value, and the calibration amount of the pulse width modulation amplitude A is obtained by conversion.
[0149] Schematically, due to the discreteness of device performance, the baseline voltage sag depth may be different between channels of different devices and multi-channel lidars even under the same operating conditions; the parameters of the pulse width modulation curve of each channel can be determined separately through pre-calibration.
[0150] Optionally, after the calibration of the various parameters of the pulse width modulation curve is completed, a verification process can be set to verify the calibration results. Turn on the laser radar to obtain the echo laser signal of the known target in the field of view, and use the adjusted target sampling threshold to sample the echo laser signal. If the difference between the pulse width of the sampled echo laser signal and the known pulse width is within a preset range, the calibrated pulse width modulation curve is considered qualified. Exemplarily, the pulse width modulation curve obtained by fitting can be as follows Fig.15 As shown, the circuit response adjustment coefficient Pha is 50 pulse width adjustment cycles, the pulse width adjustment amplitude A is 8, and the pulse width adjustment compensation coefficient Offset is 5.
[0151] In a feasible implementation manner, a pulse width modulation curve is introduced, and the pulse width of the threshold circuit is subjected to pulse width modulation processing using the pulse width modulation curve to obtain a target sampling threshold.
[0152] As mentioned above, the pulse width modulation curve is fitted by the numerical value of the previous galvanometer motion cycle, or the pulse width modulation curve is obtained by pre-calibration. No matter which method is used, the pulse width modulation curve is obtained in advance. The pulse width modulation curve of the baseline voltage compensation control is determined in the above manner, and then the pulse width modulation curve is stored in the register of the laser radar.
[0153] During the operation of the laser radar, the pulse width modulation curve in the register can be read at the beginning of each scanning cycle and imported into the threshold circuit to obtain the target sampling threshold output by the threshold circuit; the pulse width modulation curve can also be imported after every N scanning cycles, such as after the laser radar completes a frame scan, and before the next frame starts scanning. Even if the laser radar uses a calibration method to obtain the pulse width modulation curve, and it is no longer modified during operation, it only needs to read the pulse width modulation curve and import it into the threshold circuit when the laser radar is powered on and initialized.
[0154] For a schematic comparison of signal processing field scanning applications, please refer to Fig.16 In the actual application stage, when the laser radar performs field scanning, by executing the laser radar based signal processing method of one or more embodiments of the present invention, the baseline voltage sag mainly occurs in the middle area of the galvanometer scanning, which has a significant effect on improving the ranging at the extreme long distance in the middle area of the field of view. Its prompt effect in the intermediate ranging application stage is significantly better than before the baseline tracking function is turned on and the "laser radar based signal processing method" is executed.
[0155] S308: Perform echo laser signal sampling processing based on the baseline voltage and the target sampling threshold.
[0156] For details, please refer to the method steps in other embodiments of this specification, which will not be repeated here.
[0157] In one or more embodiments of the present specification, by obtaining the baseline voltage corresponding to the receiving module and the initial sampling threshold corresponding to the baseline voltage, when the laser radar performs field scanning, the baseline fluctuation characteristics corresponding to the baseline voltage are determined, and the initial sampling threshold is threshold compensated based on the baseline fluctuation characteristics to obtain the target sampling threshold, and then the echo laser signal sampling is processed based on the baseline voltage and the target sampling threshold, and the influence of the baseline voltage sag is compensated by adjusting the sampling threshold. It is possible to accurately sample the echo signal under the phenomenon of baseline voltage sag, improve the accuracy of laser ranging, and improve the phenomenon of inaccurate reflectivity analysis. At the same time, it is possible to avoid the modification of the original hardware circuit of the laser radar as much as possible, and optimize the signal processing logic control on the basis of the relevant hardware to optimize the application scenario of the laser radar and improve the performance of the laser radar; and, by adjusting the pulse width through the pulse width modulation curve to compensate for the initial sampling threshold, the signal processing process is optimized, and the efficiency of sampling threshold compensation can be achieved by optimizing the signal processing logic control.
[0158] The following will be combined Fig.17 , a laser radar-based signal processing device provided in the embodiments of this specification is introduced in detail. It should be noted that, Fig.17 The laser radar-based signal processing device shown in the specification is used to execute Figures 1 to 16 For the convenience of explanation, only the part related to the embodiment of this specification is shown. For the specific technical details not disclosed, please refer to this specification. Figures 1 to 16 The embodiment shown.
[0159] See also Fig.17 , which shows a schematic diagram of the structure of a laser radar-based signal processing device according to an embodiment of the present specification. The laser radar-based signal processing device 1 can be implemented as all or part of a user terminal through software, hardware, or a combination of both. According to some embodiments, the laser radar-based signal processing device 1 includes a laser radar-based signal processing module 11, a laser radar-based signal processing module 12, and a laser radar-based signal processing module 13, which are specifically used to:
[0160] An acquisition module 11 is used to acquire a baseline voltage corresponding to a receiving module and an initial sampling threshold corresponding to the baseline voltage;
[0161] An adjustment module 12, configured to determine a baseline fluctuation characteristic corresponding to the baseline voltage, and obtain a target sampling threshold based on the baseline fluctuation characteristic and the initial sampling threshold;
[0162] The sampling module 13 is used to perform echo laser signal sampling processing based on the baseline voltage and the target sampling threshold.
[0163] Optional, such as Fig.18As shown, the adjustment module 12 includes:
[0164] A feature acquisition unit 121, configured to acquire a baseline fluctuation feature for the baseline voltage determined based on a galvanometer motion curve, wherein the baseline fluctuation feature includes a reference adjustment position and the corresponding baseline voltage;
[0165] The threshold compensation unit 122 is used to obtain a target sampling threshold based on at least one of the baseline fluctuation characteristics and the initial sampling threshold.
[0166] Optionally, the galvanometer motion curve is a deflection angle-time sinusoidal curve, and the reference adjustment position includes at least one of a first reference position, a second reference position, a third reference position and a fourth reference position, the first reference position corresponds to the starting position of the galvanometer motion cycle, the second reference position corresponds to the position of 1 / 4 of the galvanometer motion cycle, the third reference position corresponds to the position of 1 / 2 of the galvanometer motion cycle, and the fourth reference position corresponds to the position of 3 / 4 of the galvanometer motion cycle.
[0167] Optionally, the threshold compensation unit 122 is configured to:
[0168] determining a threshold compensation curve based on at least one of the baseline fluctuation characteristics and the initial sampling threshold;
[0169] determining a pulse width modulation curve according to the threshold compensation curve;
[0170] The pulse width modulation curve is imported, and the pulse width of the threshold circuit is subjected to pulse width modulation processing using the pulse width modulation curve to obtain a target sampling threshold.
[0171] Optionally, the threshold compensation unit 122 is used to: perform pulse width fitting processing on the threshold compensation curve to obtain a pulse width modulation curve;
[0172] The pulse width modulation curve satisfies the following formula:
[0173] N pwm =-|A*sin[(Π / B)*N+Pha]+Offset|
[0174] Among them, the N pwm is the pulse width regulation value, A is the pulse width regulation amplitude, N is the serial number of the current pulse width regulation cycle, Pha is the circuit response regulation coefficient, Offset is the pulse width regulation compensation coefficient; B is the quotient of 1 / 2 of the galvanometer motion curve cycle and the pulse width regulation cycle.
[0175] Optionally, the first reference bit is a first moment, the second reference bit is a second moment, the third reference bit is a third moment, and the fourth reference bit is a fourth moment.
[0176] The threshold compensation unit 122 is used to:
[0177] Get the current galvanometer motion moment;
[0178] If the galvanometer movement moment is in the first time period, the target sampling threshold is reduced from the first sampling threshold to the second sampling threshold;
[0179] If the galvanometer movement moment is in the second time period, the target sampling threshold is increased from the second sampling threshold to the third sampling threshold;
[0180] If the galvanometer movement moment is in the third time period, the target sampling threshold is reduced from the third sampling threshold to the fourth sampling threshold;
[0181] If the galvanometer movement moment is in the fourth time period, the target sampling threshold is increased from the fourth sampling threshold to the first sampling threshold;
[0182] Among them, the first sampling threshold is associated with the initial sampling threshold, the first time period is the time period between the first moment and the second moment, the second time period is the time period between the second moment and the third moment, the third time period is the time period between the third moment and the fourth moment, and the fourth time period is the time period between the fourth moment and the first moment of the next galvanometer motion cycle.
[0183] Optionally, the second sampling threshold is equal to the fourth sampling threshold, and the first sampling threshold is equal to the third sampling threshold.
[0184] Optionally, the first reference position is a first angle, the second reference position is a second angle, the third reference position is a third angle, and the fourth reference position is a fourth angle;
[0185] The obtaining of a target sampling threshold based on at least one of the baseline fluctuation characteristics and the initial sampling threshold comprises:
[0186] Get the current galvanometer movement angle;
[0187] If the galvanometer movement angle is within the first angle range, the target sampling threshold is reduced from the fifth sampling threshold to the sixth sampling threshold;
[0188] If the galvanometer movement angle is within the second angle range, the target sampling threshold is increased from the sixth sampling threshold to the seventh sampling threshold;
[0189] If the galvanometer movement angle is within the third angle range, the target sampling threshold is reduced from the seventh sampling threshold to the eighth sampling threshold;
[0190] If the galvanometer movement angle is within the fourth angle range, the target sampling threshold is increased from the eighth sampling threshold to the fifth sampling threshold;
[0191] Among them, the fifth sampling threshold is associated with the initial sampling threshold, the first angle range is the angle range between the first angle and the second angle, the second angle range is the angle range between the second angle and the third angle, the third angle range is the angle range between the third angle and the fourth angle, and the fourth angle range is the angle range between the fourth angle and the first angle of the next galvanometer motion cycle.
[0192] Optionally, the fifth sampling threshold is equal to the seventh sampling threshold, and the sixth sampling threshold is equal to the eighth sampling threshold.
[0193] Optionally, the device 1 is also used for:
[0194] Detecting the working state of the galvanometer, wherein the working state of the galvanometer includes a scanning state and a retrace state;
[0195] If the working state of the galvanometer is the retrace state, entering the blanking state;
[0196] If the working state of the galvanometer is switched from the retrace state to the scan state, the steps of determining the baseline fluctuation characteristics corresponding to the baseline voltage and obtaining the target sampling threshold based on the baseline fluctuation characteristics and the initial sampling threshold are performed.
[0197] It should be noted that the laser radar-based signal processing device provided in the above embodiment only uses the division of the above functional modules as an example when executing the laser radar-based signal processing method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the laser radar-based signal processing device provided in the above embodiment and the laser radar-based signal processing method embodiment belong to the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.
[0198] The serial numbers of the embodiments of this specification are for description only and do not represent the advantages or disadvantages of the embodiments.
[0199] In one or more embodiments of the present specification, the baseline voltage corresponding to the receiving module and the initial sampling threshold corresponding to the baseline voltage are obtained to determine the baseline fluctuation characteristics corresponding to the baseline voltage, and the initial sampling threshold is subjected to threshold compensation processing based on the baseline fluctuation characteristics to obtain the target sampling threshold, and then the echo laser signal sampling processing is performed based on the baseline voltage and the target sampling threshold, and the influence of the baseline voltage sag is compensated by adjusting the sampling threshold. The problems caused by the baseline voltage sag can be avoided, the echo signal can be accurately sampled, the laser ranging accuracy can be improved, and the phenomenon of inaccurate reflectivity analysis can be improved. At the same time, the modification of the original hardware circuit of the laser radar can be avoided as much as possible, and the optimization of the laser radar application scenario can be achieved by optimizing the signal processing logic control based on the relevant hardware, thereby improving the performance of the laser radar.
[0200] The present specification also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figures 1 to 16 The laser radar-based signal processing method of the embodiment shown in the figure can be specifically implemented by referring to Figures 1 to 16 The specific description of the illustrated embodiment will not be repeated here.
[0201] The present specification also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figures 1 to 16 The laser radar-based signal processing method of the embodiment shown in the figure can be specifically implemented by referring to Figures 1 to 16 The specific description of the illustrated embodiment will not be repeated here.
[0202] Further, Fig.19 The present invention provides a schematic diagram of the structure of an electronic device. Fig.19 As shown, the electronic device 2100 may include: at least one processor 2101 , at least one network interface 2104 , a user interface 2103 , a memory 2105 , and at least one communication bus 2102 .
[0203] The electronic device 2100 further includes the display screen assembly 1800 in the above embodiment.
[0204] The communication bus 2102 is used to realize the connection and communication between these components.
[0205] The user interface 2103 may include a laser radar, and the optional user interface 2103 may also include a standard wired interface and a wireless interface.
[0206] The network interface 2104 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0207] Among them, the processor 2101 may include one or more processing cores. The processor 2101 uses various interfaces and lines to connect various parts within the entire electronic device 2100, and executes various functions and processes data of the electronic device 2100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 2105, and calling data stored in the memory 2105. Optionally, the processor 2101 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 2101 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 2101, and it can be implemented separately through a chip.
[0208] Among them, the memory 2105 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 2105 includes a non-transitory computer-readable storage medium. The memory 2105 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 2105 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 2105 may also be optionally at least one storage device located away from the aforementioned processor 2101. As Fig.19 As shown, the memory 2105 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program.
[0209] exist Fig.19In the electronic device 2100 shown, the electronic device 2100 may be integrated with a laser radar, and the user interface 2103 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 2101 may be used to call the application stored in the memory 2105 and specifically perform the following operations:
[0210] Acquire a baseline voltage corresponding to a receiving module and an initial sampling threshold corresponding to the baseline voltage;
[0211] Determine a baseline fluctuation characteristic corresponding to the baseline voltage, and obtain a target sampling threshold based on the baseline fluctuation characteristic and the initial sampling threshold;
[0212] The echo laser signal sampling process is performed based on the baseline voltage and the target sampling threshold.
[0213] In one embodiment, the processor 2101 performs the following steps when determining the baseline fluctuation characteristics corresponding to the baseline voltage, obtaining the target sampling threshold based on the baseline fluctuation characteristics and the initial sampling threshold:
[0214] A baseline fluctuation characteristic corresponding to the baseline voltage is determined, and a target sampling threshold is obtained based on the baseline fluctuation characteristic and the initial sampling threshold.
[0215] In one embodiment, the galvanometer motion curve is a deflection angle-time sinusoidal curve, and the reference adjustment position includes at least one of a first reference position, a second reference position, a third reference position and a fourth reference position. The first reference position corresponds to the starting position of the galvanometer motion cycle, the second reference position corresponds to the position of 1 / 4 of the galvanometer motion cycle, the third reference position corresponds to the position of 1 / 2 of the galvanometer motion cycle, and the fourth reference position corresponds to the position of 3 / 4 of the galvanometer motion cycle.
[0216] In one embodiment, the processor 2101 performs the following steps when executing the step of obtaining the target sampling threshold based on at least one of the baseline fluctuation characteristics and the initial sampling threshold:
[0217] determining a threshold compensation curve based on at least one of the baseline fluctuation characteristics and the initial sampling threshold;
[0218] determining a pulse width modulation curve according to the threshold compensation curve;
[0219] The pulse width modulation curve is imported, and the pulse width of the threshold circuit is subjected to pulse width modulation processing using the pulse width modulation curve to obtain a target sampling threshold.
[0220] In one embodiment, the processor 2101 performs the following steps when determining the pulse width modulation curve according to the threshold compensation curve:
[0221] Performing pulse width fitting processing on the threshold compensation curve to obtain a pulse width modulation curve;
[0222] The pulse width modulation curve satisfies the following formula:
[0223] N pwm =-|A*sin[(Π / B)*N+Pha]+Offset|
[0224] Among them, the N pwm is the pulse width regulation value, A is the pulse width regulation amplitude, N is the serial number of the current pulse width regulation cycle, Pha is the circuit response regulation coefficient, Offset is the pulse width regulation compensation coefficient; B is the quotient of 1 / 2 of the galvanometer motion curve cycle and the pulse width regulation cycle.
[0225] In one embodiment, the first reference bit is a first moment, the second reference bit is a second moment, the third reference bit is a third moment, and the fourth reference bit is a fourth moment;
[0226] The processor 2101 executes the step of obtaining a target sampling threshold based on at least one of the baseline fluctuation characteristics and the initial sampling threshold, including:
[0227] Get the current galvanometer motion moment;
[0228] If the galvanometer movement moment is in the first time period, the target sampling threshold is reduced from the first sampling threshold to the second sampling threshold;
[0229] If the galvanometer movement moment is in the second time period, the target sampling threshold is increased from the second sampling threshold to the third sampling threshold;
[0230] If the galvanometer movement moment is in the third time period, the target sampling threshold is reduced from the third sampling threshold to the fourth sampling threshold;
[0231] If the galvanometer movement moment is in the fourth time period, the target sampling threshold is increased from the fourth sampling threshold to the first sampling threshold;
[0232] Among them, the first sampling threshold is associated with the initial sampling threshold, the first time period is the time period between the first moment and the second moment, the second time period is the time period between the second moment and the third moment, the third time period is the time period between the third moment and the fourth moment, and the fourth time period is the time period between the fourth moment and the first moment of the next galvanometer motion cycle.
[0233] In one embodiment, the second sampling threshold is equal to the fourth sampling threshold, and the first sampling threshold is equal to the third sampling threshold.
[0234] In one embodiment, the first reference position is a first angle, the second reference position is a second angle, the third reference position is a third angle, and the fourth reference position is a fourth angle;
[0235] The processor 2101, when executing the step of obtaining a target sampling threshold based on at least one of the baseline fluctuation characteristics and the initial sampling threshold, further performs the following steps:
[0236] Get the current galvanometer movement angle;
[0237] If the galvanometer movement angle is within the first angle range, the target sampling threshold is reduced from the fifth sampling threshold to the sixth sampling threshold;
[0238] If the galvanometer movement angle is within the second angle range, the target sampling threshold is increased from the sixth sampling threshold to the seventh sampling threshold;
[0239] If the galvanometer movement angle is within the third angle range, the target sampling threshold is reduced from the seventh sampling threshold to the eighth sampling threshold;
[0240] If the galvanometer movement angle is within the fourth angle range, the target sampling threshold is increased from the eighth sampling threshold to the fifth sampling threshold;
[0241] Among them, the fifth sampling threshold is associated with the initial sampling threshold, the first angle range is the angle range between the first angle and the second angle, the second angle range is the angle range between the second angle and the third angle, the third angle range is the angle range between the third angle and the fourth angle, and the fourth angle range is the angle range between the fourth angle and the first angle of the next galvanometer motion cycle.
[0242] In one embodiment, the fifth sampling threshold is equal to the seventh sampling threshold, and the sixth sampling threshold is equal to the eighth sampling threshold.
[0243] In one embodiment, the processor 2101 performs the following steps before determining the baseline fluctuation characteristics corresponding to the baseline voltage and obtaining the target sampling threshold based on the baseline fluctuation characteristics and the initial sampling threshold:
[0244] Detecting the working state of the galvanometer, wherein the working state of the galvanometer includes a scanning state and a retrace state;
[0245] If the working state of the galvanometer is the retrace state, entering the blanking state;
[0246] If the working state of the galvanometer is switched from the retrace state to the scan state, the steps of determining the baseline fluctuation characteristics corresponding to the baseline voltage and obtaining the target sampling threshold based on the baseline fluctuation characteristics and the initial sampling threshold are performed.
[0247] In one or more embodiments of the present specification, the baseline voltage corresponding to the receiving module and the initial sampling threshold corresponding to the baseline voltage are obtained to determine the baseline fluctuation characteristics corresponding to the baseline voltage, and the initial sampling threshold is subjected to threshold compensation processing based on the baseline fluctuation characteristics to obtain the target sampling threshold, and then the echo laser signal sampling processing is performed based on the baseline voltage and the target sampling threshold, and the influence of the baseline voltage sag is compensated by adjusting the sampling threshold. The problems caused by the baseline voltage sag can be avoided, the echo signal can be accurately sampled, the laser ranging accuracy can be improved, and the phenomenon of inaccurate reflectivity analysis can be improved. At the same time, the modification of the original hardware circuit of the laser radar can be avoided as much as possible, and the optimization of the laser radar application scenario can be achieved by optimizing the signal processing logic control based on the relevant hardware, thereby improving the performance of the laser radar.
[0248] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0249] The above disclosure is only the preferred embodiment of this specification, which certainly cannot be used to limit the scope of rights of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.
Claims
1. A laser radar signal processing method, characterized in that: The method comprises: Acquire a baseline voltage corresponding to a receiving module and an initial sampling threshold corresponding to the baseline voltage, wherein the initial sampling threshold is a voltage value set for the baseline voltage; Determine a baseline fluctuation feature corresponding to the baseline voltage, and perform threshold compensation processing on the initial sampling threshold based on the baseline fluctuation feature to obtain a target sampling threshold; The echo laser signal sampling process is performed based on the baseline voltage and the target sampling threshold.
2. The method according to claim 1, characterized in that The determining of the baseline fluctuation characteristics corresponding to the baseline voltage, and performing threshold compensation processing on the initial sampling threshold based on the baseline fluctuation characteristics to obtain a target sampling threshold, includes: Acquire a baseline fluctuation feature for the baseline voltage determined based on a galvanometer motion curve, wherein the baseline fluctuation feature includes a reference adjustment position and the corresponding baseline voltage; The initial sampling threshold is subjected to threshold compensation processing based on at least one of the baseline fluctuation characteristics to obtain a target sampling threshold.
3. The method according to claim 2, characterized in that The galvanometer motion curve is a deflection angle-time sinusoidal curve, and the reference adjustment position includes at least one of a first reference position, a second reference position, a third reference position and a fourth reference position. The first reference position corresponds to the starting position of the galvanometer motion cycle, the second reference position corresponds to the position of 1 / 4 of the galvanometer motion cycle, the third reference position corresponds to the position of 1 / 2 of the galvanometer motion cycle, and the fourth reference position corresponds to the position of 3 / 4 of the galvanometer motion cycle.
4. The method according to claim 3, characterized in that The performing threshold compensation processing on the initial sampling threshold based on at least one baseline fluctuation feature to obtain a target sampling threshold comprises: determining a threshold compensation curve based on at least one of the baseline fluctuation characteristics and the initial sampling threshold; determining a pulse width modulation curve according to the threshold compensation curve; The pulse width modulation curve is imported, and the pulse width of the threshold circuit is subjected to pulse width modulation processing using the pulse width modulation curve to obtain a target sampling threshold.
5. The method according to claim 4, characterized in that The step of determining a pulse width modulation curve according to the threshold compensation curve further includes: Performing pulse width fitting processing on the threshold compensation curve to obtain a pulse width modulation curve; The pulse width modulation curve satisfies the following formula: N pwm =-|A*sin[(Π / B)*N+Pha]+Offset| Among them, the N pwm is the pulse width regulation value, A is the pulse width regulation amplitude, N is the serial number of the current pulse width regulation cycle, Pha is the circuit response regulation coefficient, Offset is the pulse width regulation compensation coefficient; B is the quotient of 1 / 2 of the galvanometer motion curve cycle and the pulse width regulation cycle.
6. The method according to claim 3, characterized in that The first reference bit is a first moment, the second reference bit is a second moment, the third reference bit is a third moment, and the fourth reference bit is a fourth moment; The obtaining of a target sampling threshold based on at least one of the baseline fluctuation characteristics and the initial sampling threshold comprises: Get the current galvanometer motion moment; If the galvanometer movement moment is in the first time period, the target sampling threshold is reduced from the first sampling threshold to the second sampling threshold; If the galvanometer movement moment is in the second time period, the target sampling threshold is increased from the second sampling threshold to the third sampling threshold; If the galvanometer movement moment is in the third time period, the target sampling threshold is reduced from the third sampling threshold to the fourth sampling threshold; If the galvanometer movement moment is in the fourth time period, the target sampling threshold is increased from the fourth sampling threshold to the first sampling threshold; Among them, the first sampling threshold is associated with the initial sampling threshold, the first time period is the time period between the first moment and the second moment, the second time period is the time period between the second moment and the third moment, the third time period is the time period between the third moment and the fourth moment, and the fourth time period is the time period between the fourth moment and the first moment of the next galvanometer motion cycle.
7. The method according to claim 6, characterized in that The second sampling threshold is equal to the fourth sampling threshold, and the first sampling threshold is equal to the third sampling threshold.
8. The method according to claim 3, characterized in that The first reference position is a first angle, the second reference position is a second angle, the third reference position is a third angle, and the fourth reference position is a fourth angle; The obtaining of a target sampling threshold based on at least one of the baseline fluctuation characteristics and the initial sampling threshold comprises: Get the current galvanometer movement angle; If the galvanometer movement angle is within the first angle range, the target sampling threshold is reduced from the fifth sampling threshold to the sixth sampling threshold; If the galvanometer movement angle is within the second angle range, the target sampling threshold is increased from the sixth sampling threshold to the seventh sampling threshold; If the galvanometer movement angle is within the third angle range, the target sampling threshold is reduced from the seventh sampling threshold to the eighth sampling threshold; If the galvanometer movement angle is within the fourth angle range, the target sampling threshold is increased from the eighth sampling threshold to the fifth sampling threshold; Among them, the fifth sampling threshold is associated with the initial sampling threshold, the first angle range is the angle range between the first angle and the second angle, the second angle range is the angle range between the second angle and the third angle, the third angle range is the angle range between the third angle and the fourth angle, and the fourth angle range is the angle range between the fourth angle and the first angle of the next galvanometer motion cycle.
9. The method according to claim 8, characterized in that The fifth sampling threshold is equal to the seventh sampling threshold, and the sixth sampling threshold is equal to the eighth sampling threshold.
10. The method according to claim 1, characterized in that Before determining the baseline fluctuation characteristics corresponding to the baseline voltage and performing threshold compensation processing on the initial sampling threshold based on the baseline fluctuation characteristics to obtain a target sampling threshold, the method further includes: Detecting the working state of the galvanometer, wherein the working state of the galvanometer includes a scanning state and a retrace state; If the working state of the galvanometer is the retrace state, entering the blanking state; If the working state of the galvanometer is switched from the retrace state to the scanning state, the step of determining the baseline fluctuation characteristics corresponding to the baseline voltage and performing threshold compensation processing on the initial sampling threshold based on the baseline fluctuation characteristics to obtain a target sampling threshold is executed.
11. A laser radar signal processing device, characterized in that: The device comprises: An acquisition module, used for acquiring a baseline voltage corresponding to a receiving module and an initial sampling threshold corresponding to the baseline voltage, wherein the initial sampling threshold is a voltage value set for the baseline voltage; An adjustment module, configured to determine a baseline fluctuation characteristic corresponding to the baseline voltage, and perform threshold compensation processing on the initial sampling threshold based on the baseline fluctuation characteristic to obtain a target sampling threshold; A sampling module is used to perform echo laser signal sampling processing based on the baseline voltage and the target sampling threshold.
12. A laser radar, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 10.
Citation Information
Patent Citations
Laser radar echo wave processing system and method
CN108279407A
Pulse laser range finding system echo signal processing device and method
CN110261864A
Ranging apparatus, ranging method, and mobile platform
CN112219135A
Pulse laser range finder and range finding method
CN113311446A
Reduction of Receive Data of a Radar, in Particular, a Synthetic Aperture Radar
US20160139261A1
