Lidar Anti-Interference Method and Apparatus
20230366995 · 2023-11-16
Inventors
Cpc classification
G01S7/495
PHYSICS
International classification
Abstract
A lidar may include a control module, a laser, and a detector. The control module is configured to determine N first sequences and N groups of first time intervals, where N is an integer greater than or equal to 1. The laser is configured to emit N first laser signals based on the N first sequences and the N groups of first time intervals. The detector is configured to receive N second laser signals, and convert the N second laser signals into electrical signals to obtain N first electrical signals. The control module is further configured to determine N second sequences and N groups of second time intervals based on the N first electrical signals.
Claims
1. A lidar comprising: a processor configured to determine N first sequences and N groups of first time intervals, wherein N is an integer greater than or equal to 1; a laser coupled to the processor and configured to emit N first laser signals based on the N first sequences and the N groups of first time intervals; and detector configured to: receive N second laser signals based on the N first laser signals; and convert the N second laser signals into electrical signals to obtain N first electrical signals, wherein the processor is further configured to determine N second sequences and N groups of second time intervals based on the N first electrical signals.
2. The lidar of claim 1, further comprising a signal generator configured to generate N second electrical signals based on the N first sequences and the N groups of first time intervals, wherein the laser is further configured to further emit the N first laser signals based on the N second electrical signals.
3. The lidar of claim 1, wherein the processor is further configured to: superpose the N first electrical signals to obtain a first superposed signal; and determine the N second sequences and the N groups of second time intervals based on the first superposed signal.
4. The lidar of claim 3, wherein when the N first sequences are the same, the processor is further configured to: superpose the N first electrical signals based on the N groups of first time intervals to obtain a second superposed signal; and filter the second superposed signal based on the N first sequences to obtain the first superposed signal.
5. The lidar of claim 3, wherein when the N first sequences are different sequences the processor is further configured to: filter the N first electrical signals based on the N first sequences to obtain N filtered signals; and superpose the N filtered signals based on the N groups of first time intervals to obtain the first superposed signal.
6. The lidar of claim 4, further comprising a beam splitter configured to: receive N third laser signals after the beam splitter transmits the N first laser signals; transmit N fourth laser signals; and reflect N fifth laser signals, wherein a third laser signal of the N third laser signals comprises a fourth laser signal of the N fourth laser signals and a fifth laser signal of the N fifth laser signals, wherein the detector is further configured to: receive N sixth laser signals after the detector transmits the fifth laser signals; and and convert the N sixth laser signals into electrical signals to obtain N third electrical signals, and wherein the processor comprises a filer configured to the second superposed signal based on the N first sequences to obtain the first superposed signal, and wherein the processor is further configured to adjust a filtering coefficient of the filter based on the N third electrical signals.
7. The lidar of claim 5, further comprising a beam splitter configured to: receive N third laser signals after the beam splitter transmits the N first laser signals; transmit N fourth laser signals, and reflect N fifth laser signals, wherein a third laser signal of the N third laser signals comprises a fourth laser signal of the N fourth laser signals and a fifth laser signal of the N fifth laser signals, wherein the detector is further configured to: receive N sixth laser signals after the detector transmits the fifth laser signals; and convert the N sixth laser signals into electrical signals to obtain N fourth electrical signals, and wherein the processor comprises a filter configured to filter a second superposed signal based on the N first sequences to obtain the N filtered signals, and is further configured to adjust a filtering coefficient of the filter based on the N fourth electrical signals.
8. The lidar claim 3, wherein when a correlation peak exists between the N first sequences and the first superposed signal and a value of a main-to-sidelobe ratio of the correlation peak is greater than a first threshold, the processor is further configured to: determine the N first sequences as the N second sequences; and determine the N groups of first time intervals as the N groups of second time intervals.
9. The lidar of claim 3, wherein when a correlation peak exists between the N first sequences and the first superposed signal and a value of a main-to-sidelobe ratio of the correlation peak is less than or equal to a first threshold, the processor is further configured to: increase an interval length of each of the N groups of first time intervals; and/or increase a quantity of intervals of the N groups of first time intervals to obtain next N groups of first time intervals.
10. The lidar claim 8, wherein the processor is further configured to adjust the N first sequences to obtain next N first sequences when no correlation peak exists between the first superposed signal.
11. The lidar of claim 8, wherein when the value of the main-to-sidelobe ratio is greater than a second threshold, the processor is further configured to decrease an interval length in each of the N groups of first time intervals and/or decrease a quantity of intervals in the N groups of first time intervals to obtain next N groups of first time intervals, and wherein the second threshold is greater than the first threshold.
12. The lidar of claim 8, wherein the processor is further configured to adjust the N first sequences to obtain next N first sequences when a signal-to-noise ratio of the first superposed signal is greater than a third threshold.
13. The lidar claim 1, wherein an interval length of the N groups of second time intervals is less than or equal to a fourth threshold, and wherein a quantity of intervals of the N groups of second time intervals is less than or equal to a fifth threshold.
14. A method implemented by a lidar, wherein the method comprises: determining N first sequences and N groups of first time intervals, wherein N is an integer greater than or equal to 1; emitting N first laser signals based on the N first sequences and the N groups of first time intervals; receiving N second laser signals based on the N first laser signals, converting the N second laser signals into electrical signals to obtain N first electrical signals; and determining N second sequences and N groups of second time intervals based on the N first electrical signals.
15. The method of claim 14, further comprising: generating N second electrical signals based on the N first sequences and the N groups of first time intervals; and further emitting the N first laser signals based on the N second electrical signals.
16. The method of claim 14, wherein determining the N second sequences and the N groups of second time intervals comprises: superposing the N first electrical signals to obtain a first superposed signal; and further determining the N second sequences and the N groups of second time intervals based on the first superposed signal.
17. The method claim 16, wherein when the N first sequences are the same superposing the N first electrical signals comprises: superposing the N first electrical signals based on the N groups of first time intervals to obtain a second superposed signal; and filtering the second superposed signal based on the N first sequences to obtain the first superposed signal.
18. The method of claim 16, wherein when the N first sequences are different sequences, superposing the N first electrical signal comprises: filtering the N first electrical signals based on the N sequences to obtain N filtered signals; and superposing the N filtered signals based on the N groups of first time intervals to obtain the first superposed signal.
19. The method of claim 17, further comprising receiving N third laser signals after a beam splitter transmits the N first laser signals; transmitting N fourth laser signals; reflecting N fifth laser signals, wherein a third laser signal of N third laser signals comprises a fourth laser signal of the N fourth laser signals and a fifth laser signal of the N fifth laser signals; and receiving N sixth laser signals after a detector transmits the fifth laser signals; converting the N sixth laser signals into electrical signals to obtain N third electrical signals; adjusting a filtering coefficient of a filter of the lidar based on the N third electrical signals; and filtering the second superposed signal based on the N first sequences to obtain the first superposed signal.
20. The method of claim 18, further comprising: receiving N third laser signals after a beam splitter transmits the N first laser signals; transmitting N fourth laser signals; reflecting N fifth laser signals, wherein a third laser signal of the N third laser signals comprises a fourth laser signal of the N fourth laser signals and a fifth laser signal of the N fourth laser signals; and receiving N sixth laser signals after a detector transmits the fifth laser signals; converting the N sixth laser signals into electrical signals to obtain N fourth electrical signals adjusting a filtering coefficient of a filter of the lidar based on the N fourth electrical signals; and filtering a second superposed signal based on the N first sequences to obtain the N filtered signals.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
DESCRIPTION OF EMBODIMENTS
[0063] Embodiments of this application disclose a lidar anti-interference method and apparatus, to improve an anti-interference capability of a lidar. Details are separately described in the following.
[0064] To better understand the lidar anti-interference method and apparatus disclosed in embodiments of this application, the following first describes related technologies in embodiments of this application.
[0065] Light detection and ranging (lidar) systems are widely used in the fields of automobile assisted driving or self-driving, service robots and industrial automation. In an actual application scenario, there are a plurality of interference sources of the lidar.
[0066] The lidar can be classified as a pulsed lidar and a continuous wave lidar based on emission waveforms of laser light.
[0067] When the lidar emits a laser signal to the detected object, in order to ensure human eye security, laser transmission power needs to be limited. This limits both a signal-to-noise ratio of the received echo signal and a ranging capability of the lidar. Because an interference signal has great impact on the lidar, how to further improve the anti-interference capability of the lidar is an urgent problem to be resolved.
[0068]
[0069] The control module 301 is configured to determine N first sequences and N groups of first time intervals, where N is an integer greater than or equal to 1.
[0070] The laser 302 is configured to emit N first laser signals based on the N first sequences and the N groups of first time intervals.
[0071] The detector 303 is configured to receive N second laser signals, and convert the N second laser signals into electrical signals, to obtain N first electrical signals.
[0072] The control module 301 is further configured to superimpose or superpose the N first electrical signals to obtain a first superimposed signal; and determine N second sequences and N groups of second time intervals based on the first superimposed signal.
[0073] When an ambient environment needs to be detected by using a lidar, the control module 301 may determine N first sequences and N groups of first time intervals. The control module 301 may generate the N first sequences by generating a random sequence, or may select the N first sequences from stored sequences, or may adjust previously used first sequences to obtain the N first sequences, or may continuously use previously used first sequences as the current N first sequences. It should be understood that the foregoing is an example of how to determine the first sequence, and a specific determining manner of the first sequence is not limited. The first sequence may be a sequence representing a pulse-type laser signal. N is an integer greater than or equal to 1. In a case, all of the N first sequences may be the same. In another case, all of the N first sequences may be different, or may be partially the same or partially different. One first sequence may include a non-zero value, for example, “1”, or may include a plurality of non-zero values, such as “10111001”.
[0074] The control module 301 may determine the N groups of first time intervals by generating a random number, or may determine the N groups of first time intervals based on a preset random sequence, or may adjust previously used first time intervals to obtain the N groups of first time intervals, or may continuously use previously used first time intervals as the current N groups of first time intervals. It should be understood that the foregoing is an example of generating N groups of random first time intervals, and does not constitute a limitation on a specific manner of generating the random time interval. The first time interval represents a time interval between two groups of laser signals. The N groups of first time intervals may be time intervals of random time lengths. Each of the N groups of first time intervals may be the same, or may be different, or may be partially the same or partially different.
[0075] After determining the N first sequences and the N groups of first time intervals, the control module 301 may send the N first sequences and the N groups of first time intervals to the laser 302. After receiving the N first sequences and the N groups of first time intervals, the laser 302 may emit N first laser signals based on the N first sequences and the N groups of first time intervals. The first laser signal may be a pulse-type laser signal, and a sequence of the first laser signal may be correspondingly consistent with the first sequence. That is, it may be understood that sequences of the N first laser signals may be determined by using the N first sequences, and time for emitting every two adjacent first laser signals of the N first laser signals may be determined by using the N groups of first time intervals. For example, a sequence of a 1.sup.st first laser signal emitted by the laser 302 is consistent with a 1.sup.st first sequence (If the first sequence is “1010”, a sequence corresponding to the first laser signal is also “1010”), a sequence of a 2nd first laser signal is consistent with a 2nd first sequence, . . . , and a sequence of an N.sup.th first laser signal is consistent with an N.sup.th first sequence. The laser 302 may calculate, based on the N groups of first time intervals, start time of emitting each first laser signal. For example, a group of first time intervals may represent a time interval between two first laser signals that are successively transmitted. For example, a sequence of the 1st first laser signal is “1010”, a sequence of the 2nd first laser signal is “0101”, and a first time interval may indicate an interval length between time for emitting a first sequence “1” in “1010” and time for emitting a first sequence “0” in “0101”. When determining, by using a (N−1).sup.th first time interval, start time of emitting the N.sup.th first laser signal, the laser may further determine, end time of emitting the N.sup.th first laser signal by using an N.sup.th first time interval.
[0076] In a case in which the laser 302 emits the laser signal, the detector 303 may detect a reflected signal of the laser signal emitted by the laser 302. Therefore, after the laser 302 emits the N first laser signals based on the N first sequences and the N groups of first time intervals, the detector 303 may receive N second laser signals. The second laser signal may include a laser signal obtained after the first laser signal is reflected by a detected object, or may include an interference signal, or may include an interference signal and a laser signal obtained after the first laser signal is reflected by the detected object. The interference signal may include another laser signal that may be received by the detector 303, and that is reflected by the detected object from a non-first laser signal. Then, the detector 303 may convert the N second laser signals into electrical signals to obtain N first electrical signals, and may send the N first electrical signals to the control module 301.
[0077] After receiving the N first electrical signals from the detector 303, the control module 301 may superimpose the N first electrical signals to obtain a first superimposed signal.
[0078] After obtaining the first superimposed signal, the control module 301 may perform a cross-correlation operation based on the obtained first superimposed signal and the known first sequence, to determine whether the first superimposed signal is a reflected echo signal that includes a laser signal emitted based on the first sequence. The control module 301 may determine the N second sequences and the N groups of second time intervals based on whether the echo signal includes the emitted laser signal.
[0079]
[0080] For detailed descriptions, refer to related descriptions corresponding to
[0081] In an embodiment, the lidar anti-interference apparatus may further include a signal generator 504.
[0082] The signal generator 504 is configured to generate N second electrical signals based on N first sequences and N groups of first time intervals.
[0083] That the laser 502 is configured to emit N first laser signals based on the N first sequences and the N groups of first time intervals includes:
[0084] The laser 502 emits the N first laser signals based on the N second electrical signals.
[0085] The signal generator 504 may be separately coupled to the control module 501 and the laser 502. The control module 501 may send the determined N first sequences and N groups of first time intervals to the signal generator 504. After receiving the N first sequences and the N groups of first time intervals, the signal generator 504 may generate the N second electrical signals based on the N first sequences and the N groups of first time intervals. That is, the signal generator 504 may determine sequences of the N second electrical signals based on the N first sequences, and may determine time intervals between the N second electrical signals based on the N groups of first time intervals. A sequence of each of the N second electrical signals may be determined by using the N first sequences, and an emitting start point corresponding to each sequence of the N second electrical signals may be determined by using N groups of time intervals. For example, a sequence of a 1.sup.st second electrical signal generated by the signal generator 504 is the same as a 1.sup.st first sequence, and a sequence of a 2.sup.nd second electrical signal is the same as a 2.sup.nd first sequence. In addition, a time interval between start time for emitting, by the signal generator 504, the 1.sup.st second electrical signal and start time for emitting, by the signal generator 504, the 2.sup.nd second electrical signal is a 1.sup.st first time interval, . . . , a time interval between start time of a (N−1).sup.th second electrical signal and start time of an N.sup.th second electrical signal is a (N−1).sup.th first time interval, and a time interval between the start time and end time of the N.sup.th second electrical signal is an N.sup.th first time interval. Further, the laser 502 may transmit the N first laser signals based on the N second electrical signals. It may be understood that sequences of the N first laser signals are the same as sequences of the N second electrical signals. A time interval between two adjacent first laser signals is the same as a time interval between two corresponding adjacent second electrical signals, and a time interval between start time and end time of a last first laser signal is the same as a time interval between start time and end time of a last second electrical signal.
[0086] In an embodiment, when the N first sequences are the same, that the control module 501 superimposes the N first electrical signals to obtain a first superimposed signal includes superimposing the N first electrical signals based on the N groups of first time intervals, to obtain a second superimposed signal; and filtering the second superimposed signal based on the N first sequences, to obtain the first superimposed signal.
[0087] After receiving N second laser signals, the detector 503 may convert the N second laser signals into electrical signals to obtain the N first electrical signals. For detailed descriptions of the second laser signal, refer to related descriptions in
[0088] It should be understood that the control module 501 may include a decoder 5013, and the foregoing control module 501 may superimpose the N first electrical signals to obtain the first superimposed signal by the decoder 5013.
[0089] In an embodiment, the lidar anti-interference apparatus may further include a beam splitter 505, and the control module 501 may include a filter 5011.
[0090] The beam splitter 505 is configured to receive N third laser signals, transmit N fourth laser signals, and reflect N fifth laser signals. The third laser signal is a laser signal obtained after the first laser signal is transmitted to the beam splitter. The third laser signal includes the fourth laser signal and the fifth laser signal.
[0091] The detector 503 is further configured to receive N sixth laser signals, and convert the N sixth laser signals into electrical signals, to obtain N third electrical signals. The sixth laser signal is a laser signal obtained after the fifth laser signal is transmitted to the detector.
[0092] That the control module 501 filters the second superimposed signal based on the N first sequences, to obtain the first superimposed signal includes:
[0093] The control module 501 adjusts a filtering coefficient of the filter 5011 based on the N third electrical signals.
[0094] The filter 5011 filters the second superimposed signal based on the N first sequences, to obtain the first superimposed signal.
[0095] The laser 502 may send the N first laser signals to the beam splitter 505, and the beam splitter 505 may receive the N third laser signals. After receiving the N third laser signals, the beam splitter 505 may transmit the N fourth laser signals, and may reflect the N fifth laser signals. The third laser signal may be a laser signal obtained after the first laser signal is transmitted to the beam splitter 505. The third laser signal may include the fourth laser signal and the fifth laser signal. In other words, it may be understood that the beam splitter 505 may transmit and reflect the N third laser signals, to obtain the N fourth laser signals and the N fifth laser signals. Then, the beam splitter 505 may transmit the N fourth laser signals to a detected object, and may directly send the N fifth laser signals to the detector 503. Then, the detector 503 may receive the N second laser signals, and convert the N second laser signals into electrical signals, to obtain the N first electrical signals. The detector 503 may further receive N sixth laser signals, and the N sixth laser signals may be laser signals obtained after the N fifth laser signals are transmitted to the detector 503. Then, the detector 503 may convert the N sixth laser signals into electrical signals, to obtain the N third electrical signals.
[0096] After receiving the N third electrical signals from the detector 503, the control module 501 may determine the filtering coefficient of the filter 5011 based on the N third electrical signals. The control module 501 may filter a superimposed signal (namely, the second superimposed signal) of the N first electrical signals, to obtain a first superimposed signal. The control module 501 may determine the filtering coefficient based on the N third electrical signals. The control module 501 may adjust the filtering coefficient of the filter 5011 based on a same sequence corresponding to the N third electrical signals. After the filtering coefficient is determined, the control module 501 may perform filtering on the second superimposed signal. For a detailed filtering method, refer to related descriptions in
[0097] It should be understood that, generally, the detector 501 should first receive the sixth laser signal and then receive the second laser signal. However, a special case is not excluded. Therefore, a sequence of receiving the sixth laser signal and the second laser signal by the detector 504 is not limited herein.
[0098] In an embodiment, the control module 501 determines N second sequences and N groups of second time intervals based on the first superimposed signal includes that when a correlation peak exists between the N first sequences and the first superimposed signal, and a value of a main-to-sidelobe ratio of the correlation peak is greater than a first threshold, determining the N first sequences as the N second sequences, and determining the N groups of first time intervals as the N groups of second time intervals.
[0099] In an embodiment, the control module 501 determines N second sequences and N groups of second time intervals based on the first superimposed signal further includes that when a correlation peak exists, and a value of a main-to-sidelobe ratio is less than or equal to a first threshold, increasing an interval length included in each of the N groups of first time intervals and/or increasing a quantity of intervals included in the N groups of first time intervals, to obtain N groups of new first time intervals.
[0100] In an embodiment, the control module 501 determines N second sequences and N groups of second time intervals based on the first superimposed signal further includes that when the value of the main-to-sidelobe ratio is greater than a second threshold, decreasing an interval length in each of the N groups of first time intervals and/or decreasing a quantity of intervals in the N groups of first time intervals, to obtain N groups of new first time intervals, where the second threshold is greater than the first threshold.
[0101] In an embodiment, the control module 501 determines N second sequences and N groups of second time intervals based on the first superimposed signal further includes that when no correlation peak exists, adjusting the N first sequences to obtain new N first sequences.
[0102] In an embodiment, the control module 501 determines N second sequences and N groups of second time intervals based on the first superimposed signal further includes that when a signal-to-noise ratio of the first superimposed signal is greater than a third threshold, adjusting the N first sequences, to obtain N first sequences.
[0103]
[0104] When determining that the value of the main-to-sidelobe ratio of the correlation peak is less than or equal to the first threshold, the control module 501 may adjust the current N groups of first time intervals. When determining that the value of the main-to-sidelobe ratio of the correlation peak is greater than the second threshold, the control module 501 may adjust the current N groups of first time intervals. When determining that no correlation peak exists, the control module 501 may continue to determine whether a signal-to-noise ratio of the first superimposed signal is greater than a third threshold. When determining that the signal-to-noise ratio is greater than the third threshold, the control module 501 may adjust the current N first sequences. When it is determined that the signal-to-noise ratio is less than or equal to the third threshold, it may indicate that the second laser signal does not include an echo signal of a first laser signal. In this case, the target echo signal may not be output. The correlation peak may be a correlation peak obtained by the control module 501 by performing cross-correlation on the current N first sequences and the first superimposed signal. In a possible case,
[0105] The first threshold may be variable. For example, the control module 501 may adjust the first threshold based on the signal-to-noise ratio of the first superimposed signal, or may adjust the first threshold based on the value of the main-to-sidelobe ratio of the correlation peak, or may set the first threshold according to a system requirement, or may set the first threshold by using another method. Alternatively, the first threshold may be fixed, that is, may be a preset value. It should be understood that the foregoing is merely an example of a method for determining the first threshold, and constitutes no limitation.
[0106] The second threshold may be variable. For example, the control module 501 may adjust the second threshold based on an absolute value of a difference between a main-to-sidelobe ratio of a correlation peak corresponding to a previous first superimposed signal and a main-to-sidelobe ratio of a correlation peak corresponding to the current first superimposed signal. When the absolute value of the difference is greater than a sixth threshold, it indicates that a value of the main-to-sidelobe ratio of the correlation peak corresponding to the previous first superimposed signal is greatly different from a value of the main-to-sidelobe ratio of the correlation peak corresponding to the current first superimposed signal. The control module 501 may increase the second threshold. When the absolute value of the difference is less than or equal to the sixth threshold, it indicates a value of the main-to-sidelobe ratio of the correlation peak corresponding to the previous first superimposed signal is slightly different from a value of the main-to-sidelobe ratio of the correlation peak corresponding to the current first superimposed signal. The control module 501 may decrease the second threshold or keep the second threshold unchanged. Alternatively, the second threshold may be fixed.
[0107] The third threshold may be variable, or may be fixed. The control module 501 may set the third threshold as a fixed value, or may adjust the third threshold based on the signal-to-noise ratio of the first superimposed signal or the value of the main-to-sidelobe ratio of the correlation peak, or the like.
[0108] Before determining whether a correlation peak exists, the control module 501 may first perform dynamic threshold detection on the first superimposed signal. The control module 501 may determine a threshold value, and then may first determine whether an amplitude value of the first superimposed signal is greater than the threshold value. When determining that the amplitude value is greater than the threshold value, the control module 501 may continue to determine whether a correlation peak exists. When it is determined that the amplitude value is less than or equal to the threshold value, the first superimposed signal may be discarded. The threshold value may dynamically change. The dynamic threshold value may be determined based on a channel condition. For example, when the signal-to-noise ratio is less than or equal to a seventh threshold, the threshold value may be decreased. When the signal-to-noise ratio is greater than the seventh threshold, the threshold value may be increased. This threshold value may alternatively be determined based on an amplitude of another received signal. It should be understood that the foregoing is merely an example of determining the dynamic threshold value, and constitutes no limitation on a specific determining method.
[0109] When determining that the value of the main-to-sidelobe ratio of the correlation peak is less than or equal to the first threshold, the control module 501 may increase an interval length and/or a quantity of intervals of the current N groups of first time intervals, and determine N groups of new first time intervals. That is, it may be understood that a time interval between two first laser signals that are successively emitted may be increased, and/or a quantity of sent first laser signals may be increased (that is, a value of N is increased). In a case, the interval length and/or the quantity of intervals that are/is increased each time may be the same. The control module 501 may increase the interval length and/or the quantity of first time intervals based on a step size. The control module 501 may preset a step size a of the interval length, and a step size b of the quantity of intervals, where both a and b are greater than 0. It is assumed that an interval length of one of the current N groups of first time intervals is a1, and a quantity of intervals of the current N groups of first time intervals is b1. When the group of first time intervals needs to be increased, an interval length of a group of new first time intervals corresponding to the group of first time intervals may be a2, and a new quantity of intervals may be b2. It should be understood that the interval length of the new group of first time intervals corresponding to the group of first time intervals and the new quantity of intervals may be a2=a1+a, and b2=b1, or may be a2=a1, and b2=b1+b, or may be a2=a1+a, and b2=b1+b. In another case, the interval length and/or the quantity of intervals that are/is increased each time may be the different. The control module 501 may increase the interval length and/or the quantity of time intervals based on an absolute value of a difference between a value of a main-to-sidelobe ratio of the current correlation peak and the first threshold. When the absolute value of the difference between the first threshold and the value of the main-to-sidelobe ratio of the correlation peak is relatively large, an amplitude of increasing the interval length and/or the quantity of first time intervals by the control module 501 may be relatively large. For example, an increasing linear function (like y=x, x is the absolute value of the difference between the first threshold and the value of the main-to sidelobe ratio of the correlation peak, and y is an increased interval length or quantity of first time intervals) or a quadratic function y=x.sup.2, where x is greater than zero, and the like, may be set. The control module 501 may further increase the interval length and/or the quantity of first time intervals in another manner. A specific increase manner is not limited herein. Increasing the interval length of the first time interval may reduce a probability that interference signals are accumulated in a superimposing process, and increasing the quantity of first time intervals may increase an amplitude of a superimposed signal. This may increase the signal-to-noise ratio of the first superimposed signal, and further improve an anti-interference capability of a lidar apparatus.
[0110] When determining that the value of the main-to-sidelobe ratio of the correlation peak is greater than the second threshold, the control module 501 may decrease an interval length of each of the current N groups of first time intervals and/or decrease a quantity of intervals of the current N groups of first time intervals, to obtain N groups of new first time intervals. That is, it may be understood that a time interval between two first laser signals that are successively emitted may be decreased, and/or a quantity of sent first laser signals may be decreased (that is, a value of N is decreased). In a case, the interval length and/or the quantity of intervals that are/is decreased each time may be the same. The control module 501 may decrease the interval length and/or the quantity of first time intervals based on a step size. The control module 501 may preset a step size a3 of the interval length, and a step size b3 of the quantity of intervals, where both a3 and b3 are greater than 0. It is assumed that an interval length of one of the current N groups of first time intervals is a1, and a quantity of intervals of the current N groups of first time intervals is b1. When the group of first time intervals needs to be decreased, an interval length of a group of new first time intervals corresponding to the group of first time intervals may be a2, and a new quantity of intervals may be b2. It should be understood that the interval length of the new group of first time intervals corresponding to the group of first time intervals and the new quantity of intervals may be a2=a1−a3, and b2=b1, or may be a2=a1, and b2=b1−b3, or may be a2=a1−a3, and b2=b1−b3. In another case, the interval length and/or the quantity of intervals that are/is decreased each time may be the different. The control module 501 may decrease the interval length and/or the quantity of current N first time intervals based on an absolute value of a difference between the second threshold and a value of a main-to-sidelobe ratio of the current correlation peak. When the absolute value of the difference is greater, an amplitude of reducing the interval length and/or the quantity of current N first time intervals may be relatively large. For example, a function (like y=x, x is the absolute value of the difference between the second threshold and the value of the main-to sidelobe ratio of the correlation peak, and y is the decreased interval length or quantity of first time intervals) may be set to decrease the interval length and/or the quantity of time intervals. The interval length and/or the quantity of current N first time intervals may alternatively be decreased in another manner. The control module 501 may continuously increase the interval length and/or the quantity of N first time intervals. In this case, effect of outputting an echo signal cannot be obviously improved even if the interval length and/or the quantity of current N first time intervals is further increased. Therefore, processing efficiency can be improved, and waste of processed resources can be reduced by reducing the excessive long time interval and/or excessive high quantity of first time intervals.
[0111] When determining that no correlation peak exists and the signal-to-noise ratio of the first superimposed signal is greater than the third threshold, the control module 501 may adjust the current N first sequences to obtain the new N first sequences. The control module 501 may adjust the N first sequences such that the new N first sequences are different from unadjusted first sequences, or may increase or decrease a length of a current sequence. For example, when the current N first sequences are the same, and the first sequence is 10011010, it may be determined that the new first sequence is 11001011, or may be 100110101011, or may be 100110. It should be understood that, when no correlation peak exists, the first superimposed signal may alternatively be a received echo signal. However, due to an external interference signal or another factor, the control module 501 cannot determine the signal as the echo signal. Therefore, whether signal accumulation exists in the first superimposed signal may be determined by using a value of the signal-to-noise ratio, that is, by determining whether the signal-to-noise ratio of the first superimposed signal is greater than the third threshold. When it is determined that the signal-to-noise ratio is greater than the third threshold, it may indicate that signal accumulation exists, and the control module 501 adjusts the N first sequences such that a signal-to-noise ratio of the first superimposed signal obtained next time can be improved through sequence transformation. When it is determined that the signal-to-noise ratio is less than or equal to the second threshold, it may indicate that no signal accumulation exists in the first superimposed signal, and the target echo signal may not be output. When a surrounding lidar uses a same or similar sequence to detect the ambient environment, interference may be caused to detection performance of the lidar apparatus. In this case, the control module 501 may adjust the N first sequences such that the lidar apparatus and the surrounding lidar apparatus use different sequences, to improve an anti-interference capability of the lidar apparatus.
[0112] In an embodiment, an interval length included in the N groups of second time intervals is less than or equal to a fourth threshold, and a quantity of intervals of the N groups of second time intervals is less than or equal to a fifth threshold.
[0113] The control module 501 may set the fourth threshold and the fifth threshold such that the interval length included in the N groups of second time intervals is less than or equal to the fourth threshold, and the quantity of intervals of the N groups of second time intervals is less than or equal to the fifth threshold. The fourth threshold and/or the fifth threshold may be a fixed value, or may be a variable value. When the fourth threshold and/or the fifth threshold are/is variable values/a variable value, the control module 501 may adjust the value of the fourth threshold and/or the fifth threshold based on received signal quality, channel interference, and the like. A specific method for determining the fourth threshold and the fifth threshold is not limited herein. In the case in which the interval length and an upper limit of the quantity of intervals is set, an endless increase of the time interval can be avoided such that processing efficiency of the lidar apparatus can be improved, and endless consumption of processing resources can be avoided.
[0114] The control module 501 may further include an encoding/decoding control unit 5012, and the foregoing step of determining the current N first sequences and the current N groups of first time intervals based on the first superimposed signal may be performed by the encoding/decoding control unit 5012. The control module 501 may further include a signal selector 5014. The determining steps in
[0115] It should be understood that the current N first sequences and the current N groups of first time intervals determined by the control module 501 are N first sequences and N groups of first time intervals that are used for this cycle. The determined new N first sequences and the determined N groups of new first time intervals are N first sequences and N groups of first time intervals that are used in a next cycle. The N second sequences and the N groups of second time intervals are final results obtained after one or more cycles, are determined best sequences and time intervals that can be used by the apparatus in a current environment, and have a relatively high anti-interference capability. However, the N second sequences and the N groups of second time intervals are applicable only to the current environment. When the environment changes, the determined N second sequences and N groups of second time intervals may change in anti-interference capability. In a possible case, as shown in
[0116]
[0117] For detailed descriptions, refer to related descriptions corresponding to
[0118] In an embodiment, the lidar anti-interference apparatus may further include a signal generator 804.
[0119] The signal generator 804 is configured to generate N second electrical signals based on N first sequences and N groups of first time intervals.
[0120] That the laser 802 is configured to emit N first laser signals based on the N first sequences and the N groups of first time intervals includes:
[0121] The laser 802 emits the N first laser signals based on the N second electrical signals.
[0122] For detailed descriptions, refer to related descriptions corresponding to
[0123] In an embodiment, when the N first sequences are different sequences, that the control module 801 superimposes the N first electrical signals to obtain a first superimposed signal includes filtering the N first electrical signals based on the N first sequences to obtain N filtered signals; and superimposing the N filtered signals based on the N groups of first time intervals to obtain the first superimposed signal.
[0124] After receiving N second laser signals, the detector 801 may convert the N second laser signals into electrical signals to obtain the N first electrical signals. The detector 803 may send the N first electrical signals to the control module 801. The control module 801 may include a filter 8011. When the N first sequences are different sequences, the control module 801 may first filter the N first electrical signals based on the N first sequences to obtain N filtered signals, and then may superimpose the N filtered signals based on the N groups of first time intervals to obtain the first superimposed signal. In other words, it may be understood that coefficients of N different filters 8011 may be first determined based on the N different first sequences, and then the N first electrical signals may be separately input into the N filters 8011 corresponding to the filtering coefficients for filtering, to obtain the N filtered signals. For detailed descriptions of filtering, refer to related descriptions corresponding to
[0125] In an embodiment, the lidar anti-interference apparatus may further include a beam splitter 805, and the control module 801 may include a filter 8011.
[0126] The beam splitter 805 is configured to receive N third laser signals, transmit N fourth laser signals, and reflect N fifth laser signals. The third laser signal is a laser signal obtained after the first laser signal is transmitted to the beam splitter. The third laser signal includes the fourth laser signal and the fifth laser signal.
[0127] The detector 803 is further configured to receive N sixth laser signals, and convert the N sixth laser signals into electrical signals, to obtain N fourth electrical signals. The sixth laser signal is a laser signal obtained after the fifth laser signal is transmitted to the detector 803.
[0128] That the control module 801 filters the N first electrical signals based on the N first sequences, to obtain N filtered signals includes:
[0129] The control module 801 adjusts a filtering coefficient of the filter 8011 based on the N fourth electrical signals.
[0130] The filter 8011 filters the second superimposed signal based on the N first sequences, to obtain the N filtered signals.
[0131] The laser 802 may send the N first laser signals to the beam splitter 805, and the beam splitter 805 may receive the N third laser signals. After receiving the N third laser signals, the beam splitter 805 may transmit the N fourth laser signals, and may reflect the N fifth laser signals. For related descriptions, refer to corresponding descriptions in
[0132] After receiving the N fourth electrical signals from the detector 803, the control module 801 may determine the filtering coefficient of the filter 8011 based on the N fourth electrical signals. The control module 801 may perform filtering on the N first electrical signals to obtain the N filtered signals, and then may perform superimposition on the N filtered signals to obtain the first superimposed signal. The control module 801 may first determine that the received N fourth electrical signals are different sequences or partially different sequences, and then may separately determine, based on the N fourth electrical signals, filtering coefficients corresponding to the filter 8011. After determining the filtering coefficient, the control module 801 may further perform filtering and superimposition on the N first electrical signals. For detailed description, refer to related descriptions in
[0133] It should be understood that an order in which the detector 803 receives the sixth laser signal and the second laser signal is not limited herein.
[0134] In an embodiment, that the control module 801 determines N second sequences and N groups of second time intervals based on the first superimposed signal includes that when a correlation peak exists between the N first sequences and the first superimposed signal, and a value of a main-to-sidelobe ratio of the correlation peak is greater than a first threshold, determining the N first sequences as the N second sequences, and determining the N groups of first time intervals as the N groups of second time intervals.
[0135] In an embodiment, that the control module 801 determines N second sequences and N groups of second time intervals based on the first superimposed signal further includes that when a correlation peak exists between the N first sequences and the first superimposed signal, and a value of a main-to-sidelobe ratio is less than or equal to a first threshold, increasing an interval length included in each of the N groups of first time intervals and/or increasing a quantity of intervals included in the N groups of first time intervals, to obtain N groups of new first time intervals.
[0136] In an embodiment, that the control module 801 determines N second sequences and N groups of second time intervals based on the first superimposed signal further includes that when the value of the main-to-sidelobe ratio is greater than a second threshold, decreasing an interval length in each of the N groups of first time intervals and/or decreasing a quantity of intervals in the N groups of first time intervals, to obtain N groups of new first time intervals, where the second threshold is greater than the first threshold.
[0137] In an embodiment, that the control module 801 determines N second sequences and N groups of second time intervals based on the first superimposed signal further includes that when no correlation peak exists, adjusting the N first sequences to obtain new N first sequences.
[0138] In an embodiment, that the control module 801 determines N second sequences and N groups of second time intervals based on the first superimposed signal further includes that when a signal-to-noise ratio of the first superimposed signal is greater than a third threshold, adjusting the N first sequences to obtain N first sequences.
[0139] For specific descriptions, refer to related descriptions in
[0140] In an embodiment, an interval length included in the N groups of second time intervals is less than or equal to a fourth threshold, and a quantity of intervals of the N groups of second time intervals is less than or equal to a fifth threshold.
[0141] For specific descriptions, refer to related descriptions in
[0142] The control module 801 may further include an encoding/decoding control unit 8012, and the foregoing step of determining the current N first sequences and the current N groups of first time intervals based on the first superimposed signal may be performed by the encoding/decoding control unit 8012. The control module 801 may further include a signal selector 8014. The determining steps in
[0143] It should be understood that the control module 801 determines the current N first sequences and the current N groups of first time intervals as N first sequences and N groups of first time intervals that are used for this cycle. The determined new N first sequences and the determined N groups of new first time intervals are N first sequences and N groups of first time intervals that are used in a next cycle. The N second sequences and the N groups of second time intervals are final results obtained after one or more cycles, are determined best sequences and time intervals that can be used by the apparatus in a current environment, and have a relatively high anti-interference capability. However, the N second sequences and the N groups of second time intervals are applicable only to the current environment. When the environment changes, the determined N second sequences and N groups of second time intervals may change in anti-interference capability. In a possible case, as shown in
[0144]
[0145] 901: Determine N first sequences and N groups of first time intervals by using a control module.
[0146] N is an integer greater than or equal to 1.
[0147] 902: Emit N first laser signals based on the N first sequences and the N groups of first time intervals by using a laser.
[0148] 903: Receive N second laser signals, and convert the N second laser signals into electrical signals by using a detector, to obtain N first electrical signals.
[0149] 904: Superimpose the N first electrical signals by using the control module to obtain a first superimposed signal.
[0150] 905: Determine N second sequences and N groups of second time intervals based on the first superimposed signal by using the control module.
[0151] In an embodiment, the signal generator generates N second electrical signals based on the N first sequences and the N groups of first time intervals. Then, the laser emits the N first laser signals based on the N second electrical signals.
[0152] In an embodiment, when the N first sequences are the same, the control module may superimpose the N first electrical signals based on the N groups of first time intervals to obtain a second superimposed signal, and then filter the second superimposed signal based on the N first sequences, to obtain the first superimposed signal.
[0153] In an embodiment, a beam splitter may receive N third laser signals, transmit N fourth laser signals, and reflect N fifth laser signals. The third laser signal is a laser signal obtained after the first laser signal is transmitted to the beam splitter, and the third laser signal may include the fourth laser signal and the fifth laser signal. Alternatively, the detector may receive N sixth laser signals, and convert the N sixth laser signals into electrical signals to obtain N third electrical signals. The sixth laser signal is a laser signal obtained after the fifth laser signal is transmitted to the detector. The control module may adjust a filtering coefficient of the filter based on the N third electrical signals. The filter may filter the second superimposed signal based on the N first sequences to obtain the first superimposed signal.
[0154] In an embodiment, when the N first sequences are different sequences, the control module may filter the N first electrical signals based on the N first sequences to obtain N filtered signals, and may superimpose the N filtered signals based on the N groups of first time intervals, to obtain a first superimposed signal.
[0155] In an embodiment, the beam splitter may receive N third laser signals, transmit N fourth laser signals, and reflect N fifth laser signals. The third laser signal is a laser signal obtained after the first laser signal is transmitted to the beam splitter, and the third laser signal includes the fourth laser signal and the fifth laser signal. Alternatively, the detector may receive N sixth laser signals, and convert the N sixth laser signals into electrical signals to obtain N fourth electrical signals. The sixth laser signal is a laser signal obtained after the fifth laser signal is transmitted to the detector. Alternatively, the control module may adjust a filtering coefficient of the filter based on the N fourth electrical signals. Alternatively, the control module may filter the second superimposed signal based on the N first sequences, to obtain the N filtered signals.
[0156] In an embodiment, the control module may determine whether a correlation peak exists between the first superimposed signal and the first sequence. When the correlation peak exists and a value of a main-to-sidelobe ratio of the correlation peak is greater than a first threshold, the control module may determine the N first sequences as N second sequences, and may determine the N groups of first time intervals as the N groups of second time intervals.
[0157] In an embodiment, the control module may determine whether a correlation peak exists between the first superimposed signal and the first sequence. When the correlation peak exists and the value of the main-to-sidelobe ratio is less than or equal to the first threshold, the control module may increase the interval length included in each of the N groups of first time intervals and/or increase the quantity of intervals included in the N groups of first time intervals, to obtain the N groups of first time intervals.
[0158] In an embodiment, when whether a correlation peak exists between the first superimposed signal and the first sequence, and the value of the main-to-sidelobe ratio is greater than a second threshold, the control module may decrease an interval length in each of the N groups of first time intervals and/or decrease a quantity of intervals in the N groups of first time intervals, to obtain N groups of first time intervals. The second threshold is greater than the first threshold.
[0159] In an embodiment, the control module may determine whether a correlation peak exists between the first superimposed signal and the first sequence, and when no correlation peak exists, the control module may adjust the N first sequences to obtain N first sequences.
[0160] In an embodiment, the control module may determine whether a correlation peak exists between the first superimposed signal and the first sequence. When no correlation peak exists and a signal-to-noise ratio of the first superimposed signal is greater than a third threshold, the control module may adjust the N first sequences to, obtain N first sequences.
[0161] In an embodiment, an interval length included in the N groups of second time intervals is less than or equal to a fourth threshold, and a quantity of intervals of the N groups of second time intervals is less than or equal to a fifth threshold.
[0162] In an embodiment, after the control module obtains the first superimposed signal and before the control module determines whether a correlation peak exists between the first superimposed signal and the first sequence, the control module may perform dynamic threshold detection on the first superimposed signal. That is, the control module may determine whether an amplitude of the first superimposed signal is greater than a dynamic threshold value. When the amplitude is greater than the dynamic threshold value, the control module may further determine whether a correlation peak exists between the first superimposed signal and the first sequence. When the value is less than or equal to the dynamic threshold value, the first superimposed signal may be discarded.
[0163] It should be noted that, for functions related to a specific procedure of the lidar anti-interference method described in embodiments of this application, refer to related descriptions in embodiments of the lidar anti-interference apparatuses in
[0164] In the foregoing specific implementations, the objectives, technical solutions, and beneficial effects of this application are further described in detail. It should be understood that the foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, or the like made based on the technical solutions of this application shall fall within the protection scope of this application.