Multi-window extended Kalman filtering fusion positioning method and system, and storage medium

The multi-window extended Kalman filter fusion positioning method solves the pose jump problem caused by sensor time offset, improves the positioning accuracy of the mobile robot, and ensures stable navigation in various scenarios.

CN118534480APending Publication Date: 2024-08-23SHANGHAI SEER INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410760188.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the positioning process of mobile robots, the hardware limitations of a single sensor lead to poor positioning accuracy. During multi-sensor fusion, problems such as time offset cause pose jumps, affecting positioning accuracy.

Method used

The multi-window extended Kalman filter fusion positioning method is used to estimate the time offset between lidar and encoder data through the maximum consistent correlation method, and the observation data is adjusted for Kalman filtering to ensure that each observation quantity corresponds correctly in time. , to avoid pose jumps.

Benefits of technology

It improves the positioning accuracy and ensures smooth and stable positioning and navigation of mobile robots in various scenarios. It can especially perform high-precision multi-sensor fusion for sensors with poor original data quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534480A
    Figure CN118534480A
Patent Text Reader

Abstract

The invention provides a multi-window extended Kalman filtering fusion positioning method and system, and a storage medium, and the method comprises the steps: estimating the time offset between a laser radar and encoder data through employing a maximum consistent correlation method; according to a state variable # imgabs0 # collected by a laser radar and an encoder at the current moment, a state variable # imgabs1 # of a window at the next moment is predicted according to a motion model and a recursive pose, and a state variable covariance matrix # imgabs2 # for predicting the next moment is established; kalman filtering is carried out on state variable data observed by the encoder, and # imgabs3 # and # imgabs4 # are updated; after the initial column number of the observation equation coefficient matrix # imgabs5 # in the observation equation coefficient matrix # imgabs6 # at the next time window is adjusted, Kalman filtering is carried out on observation data of the laser radar, and # imgabs7 # and # imgabs8 # are updated. Therefore, the observed quantity of the sensor corresponds correctly in time, and pose jump in the fusion process is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a multi-sensor fusion positioning technology, and in particular to a multi-window extended Kalman filter fusion positioning method and system based on time offset, and a storage medium. Background Art

[0002] In the field of mobile robot positioning technology, self-positioning technology is the basis for achieving other tasks. If only a single sensor is relied upon, it is often limited by its own hardware, resulting in poor positioning accuracy. For example, the encoder has a high release frequency, but there is a cumulative drift phenomenon; the camera sensor can perceive the environment with high resolution, but there are problems with scale uncertainty or being affected by light. In addition, although the lidar sensor can obtain accurate depth information, the generated point cloud information has poor quality in a highly reflective environment.

[0003] Therefore, in order to improve the robustness of the robot during positioning, existing technologies usually use a multi-sensor complementary fusion method to output a more stable posture. For example, the most common fusion positioning solution uses the absolute posture matched by the laser and the map, and the relative posture of the encoder recursive odometer for fusion. However, in the fusion process of such solutions, due to the poor quality of the encoder data and the time offset between the laser and the encoder, these situations will cause posture jumps during the fusion process, thereby affecting the positioning accuracy. Summary of the invention

[0004] To this end, the main purpose of the present invention is to provide a multi-window extended Kalman filter fusion positioning method and system, and storage medium, so that the sensor's observations can correspond correctly in time and avoid posture jumps during the fusion process.

[0005] In order to achieve the above object, according to one aspect of the present invention, a multi-window extended Kalman filter fusion positioning method is provided, the steps comprising:

[0006] Using the maximum consistent correlation method, the time offset between the lidar and encoder data is estimated;

[0007] According to the state variables collected by the laser radar and encoder at the current time i , according to the motion model, recursively predict the state variables of the next moment window , and establish the state variable covariance matrix for predicting the next moment i+1 ;

[0008] Establish the encoder data observation matrix , observation equation coefficient matrix And its corresponding next moment window observation equation coefficient matrix , observation equation noise matrix , perform Kalman filtering on the state variable data observed by the encoder and update and The corresponding state variable part in;

[0009] Establishing the data observation matrix of LiDAR , observation equation coefficient matrix And its corresponding next moment window observation equation coefficient matrix , observation equation noise matrix , determine the delay step according to the time offset, and adjust exist After the starting number of columns in, the Kalman filter is applied to the laser radar observation data to update and The corresponding state variable part in .

[0010] In a possible preferred implementation, the time offset estimation step includes:

[0011] Calculate the average angular velocity of the encoder between two frames of lidar data ;

[0012] Calculate the current position based on the lidar data to calculate the average angular velocity of the two frames of lidar ;

[0013] according to and Calculate the time delay of each time period and compare the time periods and The correlation of the offsets is continuously enumerated to obtain the correlation coefficients under different time delays;

[0014] Several largest correlation coefficients and their corresponding time delays are selected, fitted into a quadratic curve, and the time delay corresponding to the largest correlation coefficient is output as the time offset.

[0015] In a possible preferred implementation, the time offset estimation step includes:

[0016] Calculate the average linear velocity of the encoder between two frames of lidar data ;

[0017] Calculate the current position based on the LiDAR data to calculate the average linear velocity of the two LiDAR frames ;

[0018] according to and Calculate the time delay of each time period and compare the time periods and The correlation of the offsets is continuously enumerated to obtain the correlation coefficients under different time delays;

[0019] Several largest correlation coefficients and their corresponding time delays are selected, fitted into a quadratic curve, and the time delay corresponding to the largest correlation coefficient is output as the time offset.

[0020] In a possible preferred implementation, the multi-window extended Kalman filter fusion positioning method further comprises the following steps:

[0021] Determine whether the current angular velocity output by the encoder is greater than the set threshold. If so, replace it with the angular velocity updated at the last moment. Otherwise, calculate the angular acceleration and determine if the angular acceleration of two consecutive frames has the same sign and is greater than the set threshold. Replace it with the angular velocity updated at the last moment. Otherwise, output the original data.

[0022] In a possible preferred implementation, the multi-window extended Kalman filter fusion positioning method further comprises the following steps:

[0023] Determine whether the current linear velocity output by the encoder is greater than the set threshold. If so, replace it with the linear velocity updated at the last moment. Otherwise, calculate the linear acceleration and determine if the linear acceleration of two consecutive frames has the same sign and is greater than the set threshold. Replace it with the linear velocity updated at the last moment. Otherwise, output the original data.

[0024] In a possible preferred embodiment, the state variable include:

[0025] The two-dimensional position information obtained by the laser radar at the current time i ( ),angle , and the two-dimensional linear velocity obtained by the encoder ( ), angular velocity , then the number of rows is , the number of columns is hour, X i = [ x i , y i , yaw i , v x i , vy i , wz i ] T .

[0026] In a possible preferred implementation, the state variable of the next window is The steps to establish include:

[0027] Set the multi-window step size to , the number of rows is , the number of columns is ,but The window state variable at this moment is :

[0028] χ i '= [ X i , X i -1 , X i -2 ,..., X i -24 ] T ;

[0029] Will The state is brought into the motion model to recursively predict the pose

[0030] X i +1 = [ x i +1 , y i +1 , yaw i +1 , v x i +1 , vy i +1 , wz i +1 ] T

[0031] get The window state variable at this moment is χ i +1 '= [ X i +1 , X i , X i -1 ,..., X i -23 ] T .

[0032] In a possible preferred embodiment, the state variable covariance matrix at the next moment i+1 is for:

[0033] ;

[0034] in is the covariance matrix of the prediction stage, A is the state transfer matrix of the motion model, is the state variable covariance matrix of the previous moment; for Matrix from Coordinate interception Matrix of size; for Matrix from Coordinate interception Matrix of size; for Matrix from Coordinate interception Matrix of size; for Matrix from Coordinate interception Matrix of size.

[0035] In order to achieve the above-mentioned purpose, corresponding to the above-mentioned method, according to another aspect of the present invention, a multi-window extended Kalman filter fusion positioning system is also provided, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the system implements the steps of the multi-window extended Kalman filter fusion positioning method as described in any one of the above items.

[0036] In order to achieve the above-mentioned purpose, corresponding to the above-mentioned method, according to another aspect of the present invention, a computer-readable storage medium is also provided, and the computer-readable storage medium stores a computer program, wherein when the computer program is executed, the steps of the multi-window extended Kalman filter fusion positioning method as described in any of the above items are implemented.

[0037] Through the multi-window extended Kalman filter fusion positioning method and system and storage medium provided by the present invention, the encoder recursive posture and the laser radar matching posture are correctly fused in physical time by using a multi-window extended Kalman filter that takes time offset into consideration, so that each observation can correspond correctly in time, which greatly smoothes the posture data and improves the positioning accuracy. Especially for sensors with poor original data quality and no hardware trigger calibration, high-precision multi-sensor fusion can still be performed to avoid posture jumps and output smooth and stable postures, thereby ensuring the positioning and navigation accuracy of the mobile robot in various scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0039] Figure 1 A schematic diagram of the steps of the multi-window extended Kalman filter fusion positioning method of the present invention;

[0040] Figure 2 A conceptual diagram of the time offset between the LiDAR sensor and the encoder;

[0041] Figure 3 This is a schematic diagram of the angular velocity filtering process in the multi-window extended Kalman filter fusion positioning method of the present invention;

[0042] Figure 4 It is a schematic diagram of the linear velocity filtering process in the multi-window extended Kalman filter fusion positioning method of the present invention;

[0043] Figure 5 It is a schematic diagram of the time offset estimation process in the multi-window extended Kalman filter fusion positioning method of the present invention;

[0044] Figure 6 It is a structural schematic diagram of the multi-window extended Kalman filter fusion positioning system of the present invention. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the technical solution of the present invention, the specific technical solution of the present invention will be clearly and completely described in conjunction with the embodiments below to help those skilled in the art further understand the present invention. Obviously, the embodiments described in this case are only embodiments of a part of the present invention, not all of the embodiments. It should be pointed out that for those of ordinary skill in the art, the embodiments in this application and the features in the embodiments can be combined with each other without departing from the concept of the present invention and without conflicting with each other. Based on the embodiments in the present invention, all other embodiments obtained without creative work by those of ordinary skill in the art should belong to the disclosure and protection scope of the present invention.

[0046] In addition, the terms "first", "second", "S100", "S200", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the features used in this way can be interchanged where appropriate, so that the embodiments of the present invention described here can be implemented in an order other than those described here. At the same time, the stages recorded in each step are not mandatory to be implemented in the same step. It should be understood that the implementation order of the contents in each step stage can be adjusted and interchanged without violating the inventive concept, so that the step embodiments of the present invention described here can be implemented in an order other than those described here. In addition, the terms "including" and "having" and any of their variations in the present invention are intended to cover non-exclusive inclusions. Unless otherwise clearly specified and limited, the terms "set", "layout", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this case can be understood according to specific circumstances and in combination with the prior art.

[0047] In order to make the observations of sensors such as laser radar and encoder used for navigation and positioning on the mobile robot correspond correctly in time, and avoid posture jumps during the fusion process. Figures 1 to 5 As shown, the present invention provides a multi-window extended Kalman filter fusion positioning method, the steps of which include:

[0048] Step S100 estimates the time offset between the lidar and encoder data using the maximum consistent correlation method.

[0049] Specifically, due to the hardware limitations of the sensor itself, hardware time synchronization cannot be achieved through hardware triggering. Therefore, in use, the time when the data arrives at the host computer is often uniformly used as the timestamp of the sampling.

[0050] The time it takes for data to reach the host computer mainly includes two parts: the time it takes for the sensor and the host computer to transmit on the bus; and the time it takes for the host computer to schedule tasks. Even if two sensor data are the same in physical time, the timestamps marked on the host computer will be different due to the difference in the two parts of time mentioned above. Figure 2 shown.

[0051] To this end, this scheme needs to estimate the transmission time difference between the encoder and the lidar, that is, the constant offset :

[0052]

[0053] in, It is the time from the sampling moment of the laser to the time when it is transmitted to the host computer and marked with the timestamp; is the time from the encoder sampling moment to the time when it is transmitted to the host computer and marked with the timestamp. If the encoder sequence has a longer transmission time than the lidar sensor sequence, then is a positive value, whereas if the lidar sensor sequence has a longer transmission time than the encoder sequence, then is a negative value.

[0054] Therefore, the correlation analysis of the two sets of data is suitable for analyzing time series data. For this reason, before estimating the time offset, the angular velocity directly measured by the encoder can be subjected to limiting filtering to eliminate abnormal data, and then a correlation analysis can be performed with the angular velocity information calculated by the laser odometer, so as to estimate the time offset more accurately.

[0055] For example, in an alternative embodiment, Figure 3 As shown in the figure, the algorithm inputs the original angular velocity data of the encoder. First, it determines whether the angular velocity is greater than the maximum set threshold. If the condition is met, the current angular velocity value is set to the angular velocity of the state estimation at the previous moment, and the algorithm ends. Otherwise, the angular acceleration is calculated. If the angular acceleration data of two consecutive frames are greater than the set threshold, and the two consecutive frames of angular acceleration have the same sign, the current angular velocity value is set to the angular velocity of the state estimation at the previous moment, and the algorithm ends. Otherwise, the original data is output and the algorithm ends.

[0056] For example, in another optional embodiment, Figure 4As shown in the figure, the algorithm inputs the original linear velocity data of the encoder. First, it determines whether the linear velocity is greater than the maximum set threshold. If the condition is met, the current linear velocity value is set to the linear velocity of the state estimation at the previous moment, and the algorithm ends. Otherwise, the linear acceleration is calculated. If the linear acceleration data of two consecutive frames are greater than the set threshold, and the two consecutive frames of linear acceleration have the same sign, the current linear velocity value is set to the linear velocity of the state estimation at the previous moment, and the algorithm ends. Otherwise, the original data is output and the algorithm ends.

[0057] The method of the above example can eliminate abnormal values ​​of encoder data and output more accurate angular velocity information.

[0058] Furthermore, since the encoder publishes data at a higher frequency than the laser odometer publishes pose data, there will be multiple frames of encoder data between two frames of laser pose data, for example and There is a gap between two frames of laser pose data. , Encoder data at the moment:

[0059]

[0060] in, For the encoder The angular velocity at the moment, similarly For the encoder The angular velocity at the moment, and so on. The average angular velocity of the current window is :

[0061] .

[0062] In the time offset estimation method, the time offset variable needs to be enumerated. The range of the enumerated offset here is: belong arrive ; Enumeration step size: the step size of each frame encoder .when hour, and The angular velocity of the encoder filter between two frames of lidar data is:

[0063]

[0064] The average angular velocity of the current window is recorded as :

[0065] .

[0066] like Figure 5 As shown, in order to accurately estimate the time offset between the laser odometer and the encoder, it is necessary to prepare arrive time time period data.

[0067] On the other hand, the LiDAR data will be matched with the map to obtain the position of the robot center in the global coordinate system. : It contains the location ,attitude , but in this example, we focus more on the attitude information to obtain the average angular velocity information of two frames of LiDAR data:

[0068]

[0069] in, express arrive Logarithmic mapping of .

[0070] Similarly, laser mileage data needs to be prepared arrive time time period data.

[0071] When the enumeration offset is When the encoder data needs to be compared:

[0072]

[0073] With laser mileage pose data:

[0074]

[0075] The correlation between two sets of data.

[0076] Using the correlation coefficient theorem in mathematical statistics: Given two random vectors a = [ a 1 , a 2 , a 3 ] T and b = [ b 1 , b 2 , b 3 ] T , we can get and The covariance of , Variance , Variance , then the correlation coefficient :

[0077]

[0078] Transform this problem into finding the correlation coefficient The largest and Two sets of data. By continuously enumerating the offsets, we can get the correlation coefficients under different time delays.

[0079] For example, in this example, the values ​​with the largest first three correlation coefficients are taken, the independent variable is the time delay, the dependent variable is the correlation coefficient, and a quadratic curve is fitted. Finally, the time delay corresponding to the maximum correlation coefficient is output as the time offset.

[0080] In addition, in an optional implementation manner, the time offset under the linear velocity can also be calculated in a similar manner. For example, the estimation steps include:

[0081] Similarly, calculate the average linear velocity of the encoder between two frames of lidar data ; Then calculate the current position based on the laser radar data to calculate the average linear velocity of the two frames of laser radar ; Later according to and Calculate the time delay of each time period and compare the time periods and The correlation is obtained by continuously enumerating the offsets to obtain the correlation coefficients under different time delays; finally, several (such as 3) largest correlation coefficients and their corresponding time delays are selected, fitted into a quadratic curve, and the time delay corresponding to the maximum correlation coefficient is output as the time offset.

[0082] Through the above scheme, the time offset can be refined to obtain the final time offset. At this point, the time delay between the encoder and the lidar odometer is obtained. , the unit is, for example, milliseconds.

[0083] Step S200 is based on the state variables collected by the laser radar and the encoder at the current time i , according to the motion model, recursively predict the state variables of the next moment window , and establish the state variable covariance matrix for predicting the next moment i+1 .

[0084] Specifically, in order to use the multi-window extended Kalman filter considering time offset, it is first necessary to convert the two-dimensional position information collected by the lidar ( ),angle( ) and the two-dimensional linear velocity collected by the encoder ( ), angular velocity ( ) as the state variable, record Status at all times , for example, let the number of rows be , the number of columns is .

[0085] but X i = [ x i , y i , yaw i , v x i , vy i , wz i ] T .

[0086] At this time, set the multi-window step size to ,but The window state variable at this moment is , the number of rows is , the number of columns is .

[0087] but χ i '= [ X i , X i -1 , X i -2 ,..., X i -24 ] T .

[0088] Since the algorithm in this example is divided into prediction and observation modules. When making predictions at any time, The window state variable is only Changes, the rest remain unchanged.

[0089] At this time, the previous moment The state is brought into the motion model to recursively predict the pose ,get The current window state variable is: χ i +1 '= [ X i +1 , X i , X i -1 ,..., X i -23 ] T .

[0090] in X i +1 = [ x i +1 , y i +1 , yaw i +1 , v x i +1 , vy i +1 , wz i +1 ] T .

[0091] The motion model is:

[0092]

[0093] Derivative the above formula, the state transfer matrix of the motion model is , the number of rows and columns of dimensions are .

[0094]

[0095] in:

[0096]

[0097] .

[0098] The covariance matrix in the prediction stage is recorded as , the number of rows and columns of dimensions are :

[0099] .

[0100] at this time The covariance matrix of the time window prediction stage is: , the number of rows and columns of dimensions are .

[0101] .

[0102] in, is the state variable covariance matrix of the previous moment;

[0103] for Matrix from Coordinate interception Matrix of size;

[0104] for Matrix from Coordinate interception Matrix of size;

[0105] for Matrix from Coordinate interception Matrix of size;

[0106] for Matrix from Coordinate interception Matrix of size.

[0107] Step S300: Establish the encoder data observation matrix , observation equation coefficient matrix And its corresponding next moment window observation equation coefficient matrix , observation equation noise matrix , perform Kalman filtering on the state variable data observed by the encoder and update and The corresponding state variable part in .

[0108] Specifically, the observation information in this example is divided into two parts. On the one hand, the angular velocity and linear velocity output by the limiting filter are used for observation; on the other hand, the posture of the predicted state corresponding to the time offset is observed by using the LiDAR to match the posture.

[0109] For example, the corresponding encoder The angular velocity and linear velocity observation matrix at each moment is recorded as:

[0110] y i +1 1 =[ vx i +1 ' , vy i +1 ' , wz i +1 ' ] , the observation equation coefficient matrix :

[0111]

[0112] Observation equation noise matrix :

[0113]

[0114] Time window observation equation coefficient matrix for:

[0115] C i +1 1 = [ C i +1 1 , C i 1 , C i - 1 1 , C i - 2 1 ,..., C i - 23 1 ] T

[0116] Calculate the current system Kalman gain :

[0117]

[0118] in is the covariance matrix of the state variables, that is, the covariance matrix in the prediction stage. After the angular velocity and linear velocity observations output by the limiting filter system are updated, Time window state variables Updated to:

[0119]

[0120] Covariance matrix renew:

[0121]

[0122] So far, through Update the angular velocity and linear velocity at every moment and recalibrate Time window state variables , the covariance matrix renew.

[0123] Since Kalman filter measurement updates are usually performed when measurements are obtained, it can lead to large changes in estimates, especially for low-frequency measurements. When the mobile robot moves too fast, the mismatch caused by time delays becomes larger.

[0124] Since this example algorithm considers compensating for the time offset of the observation information, the observation information can be correctly matched with the real prediction information, that is, the prediction and update are at the same time. When using LiDAR to match the pose, it is necessary to observe the pose of the predicted state with the corresponding time offset.

[0125] Step S400: Establishing the laser radar data observation matrix , observation equation coefficient matrix And its corresponding next moment window observation equation coefficient matrix , observation equation noise matrix , determine the delay step according to the time offset, and adjust exist After the starting number of columns in, the Kalman filter is applied to the laser radar observation data to update and The corresponding state variable part in .

[0126] Specifically, The output position observation matrix of the laser radar module at this moment is recorded as:

[0127] y i +1 2 =[ x i +1 ' , y i +1 ' , yaw i +1 ' ] , the observation equation coefficient matrix :

[0128]

[0129] Observation equation noise matrix :

[0130]

[0131] The calculation Time window observation equation coefficient matrix , the time offset needs to be considered, since the time delay has been estimated in the previous example , in milliseconds.

[0132] Therefore, in the multi-window extended Kalman filter, the release frequency is based on the high-frequency recursive pose of the encoder frequency. This time needs to be converted into a time delay step, corresponding to the multi-window extended Kalman filter. The average interval between two encoder frames is recorded as , in milliseconds. Then the delay step It can be calculated by the following formula:

[0133]

[0134] Time window observation equation coefficient matrix :

[0135] C i +1 2 = [ C i 1 , C i - 1 1 , C i - 2 1 ,..., C i +1 2 ,...., C i - 23 1 ] T

[0136] in The starting number of columns is .

[0137] Calculate the current system Kalman gain :

[0138]

[0139] After the laser radar module outputs the pose observation update, Time window state variables renew:

[0140]

[0141] Covariance matrix renew:

[0142]

[0143] pass The output position of the LiDAR module is updated at every moment. Time window state variables , the covariance matrix renew.

[0144] At this point, a complete multi-window extended Kalman filter calculation is completed. After receiving the next encoder data and laser mileage posture output data, continue the calculation according to the above method. In this way, outliers in the original data are eliminated, and each observation value is correctly corresponded in time, which greatly smooths the posture data and improves the positioning accuracy.

[0145] On the other hand, corresponding to the above method example, Figure 6 As shown, the present invention also provides a multi-window extended Kalman filter fusion positioning system, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the system implements the steps of the multi-window extended Kalman filter fusion positioning method as described in any one of the above items.

[0146] On the other hand, corresponding to the above method example, according to another aspect of the present invention, a computer-readable storage medium is also provided, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed, the steps of the multi-window extended Kalman filter fusion positioning method as described in any of the above items are implemented.

[0147] In summary, the multi-window extended Kalman filter fusion positioning method and system, and storage medium provided by the present invention, on the basis of the traditional extended Kalman filter, take into account the time offset step, increase the sliding window of the multi-time state variable, and perform multi-sensor fusion according to the correct offset for sensors with time offset, thereby solving the problem of poor positioning accuracy caused by time offset. In this way, even in the face of sensors with poor original data quality and no hardware trigger calibration, high-precision multi-sensor fusion can still be performed to output a smooth and stable posture, thereby ensuring the positioning and navigation accuracy of the mobile robot in various scenarios.

[0148] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is only limited by the claims and their full scope and equivalents. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

[0149] Those skilled in the art can understand that, in addition to implementing the system, device, unit and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be regarded as structures within the hardware component; the modules for implementing various functions can also be regarded as both software programs for implementing the method and structures within the hardware component.

[0150] In addition, all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program codes.

[0151] In addition, various implementation modes of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed by the embodiments of the present invention.

Claims

1. A multi-window extended Kalman filter fusion positioning method, the steps comprising: Using the maximum consistent correlation method, the time offset between the lidar and encoder data is estimated; According to the state variables collected by the laser radar and encoder at the current time i , according to the motion model, recursively predict the state variables of the next moment window , and establish the state variable covariance matrix for predicting the next moment i+1 ; Establish the data observation matrix of the encoder , observation equation coefficient matrix And its corresponding next moment window observation equation coefficient matrix , observation equation noise matrix , perform Kalman filtering on the state variable data observed by the encoder and update and The corresponding state variable part in; Establishing the data observation matrix of LiDAR , observation equation coefficient matrix And its corresponding next moment window observation equation coefficient matrix , observation equation noise matrix , determine the delay step according to the time offset, and adjust exist After the starting number of columns in, the Kalman filter is applied to the laser radar observation data to update and The corresponding state variable part in .

2. The multi-window extended Kalman filter fusion positioning method according to claim 1, wherein the time offset estimation step comprises: Calculate the average angular velocity of the encoder between two frames of lidar data ; Calculate the current position based on the lidar data to calculate the average angular velocity of the two frames of lidar ; according to and Calculate the time delay of each time period and compare the time periods and The correlation of the offsets is continuously enumerated to obtain the correlation coefficients under different time delays; Several largest correlation coefficients and their corresponding time delays are selected, fitted into a quadratic curve, and the time delay corresponding to the largest correlation coefficient is output as the time offset.

3. The multi-window extended Kalman filter fusion positioning method according to claim 1, wherein the time offset estimation step comprises: Calculate the average linear velocity of the encoder between two frames of lidar data ; Calculate the current position based on the LiDAR data to calculate the average linear velocity of the two LiDAR frames ; according to and Calculate the time delay of each time period and compare the time periods and The correlation of the offsets is continuously enumerated to obtain the correlation coefficients under different time delays; Several largest correlation coefficients and their corresponding time delays are selected, fitted into a quadratic curve, and the time delay corresponding to the largest correlation coefficient is output as the time offset.

4. The multi-window extended Kalman filter fusion positioning method according to claim 1, wherein the steps further include: Determine whether the current angular velocity output by the encoder is greater than the set threshold. If so, replace it with the angular velocity updated at the last moment. Otherwise, calculate the angular acceleration and determine if the angular acceleration of two consecutive frames has the same sign and is greater than the set threshold. Replace it with the angular velocity updated at the last moment. Otherwise, output the original data.

5. The multi-window extended Kalman filter fusion positioning method according to claim 1, wherein the steps further include: Determine whether the current linear velocity output by the encoder is greater than the set threshold. If so, replace it with the linear velocity updated at the last moment. Otherwise, calculate the linear acceleration and determine if the linear acceleration of two consecutive frames has the same sign and is greater than the set threshold. Replace it with the linear velocity updated at the last moment. Otherwise, output the original data.

6. The multi-window extended Kalman filter fusion positioning method according to claim 1, wherein the state variable include: The two-dimensional position information obtained by the laser radar at the current time i ( ),angle , and the two-dimensional linear velocity obtained by the encoder ( ), angular velocity , then the number of rows is , the number of columns is hour, .

7. The multi-window extended Kalman filter fusion positioning method according to claim 6, wherein the state variable of the window at the next moment is The steps to establish include: Set the multi-window step size to , the number of rows is , the number of columns is ,but The window state variable at this moment is : ; Will The state is brought into the motion model to recursively predict the pose , , get The window state variable at this moment is .

8. The multi-window extended Kalman filter fusion positioning method according to claim 7, wherein the state variable covariance matrix of the next moment i+1 for: ; in is the covariance matrix of the prediction stage, A is the state transfer matrix of the motion model, is the state variable covariance matrix of the previous moment; for Matrix from Coordinate interception Matrix of size; for Matrix from Coordinate interception Matrix of size; for Matrix from Coordinate interception Matrix of size; for Matrix from Coordinate interception Matrix of size.

9. A multi-window extended Kalman filter fusion positioning system, comprising: The system comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the system implements the steps of the multi-window extended Kalman filter fusion positioning method as described in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed, the steps of the multi-window extended Kalman filter fusion positioning method as described in any one of claims 1 to 8 are implemented.