Positioning optimization method, device, electronic device and storage medium

By setting a preset frequency in positioning data processing to obtain observation values, and using the Kalman filter algorithm to process a priori estimated values, the problem of poor smoothness of positioning information output by satellite combined inertial navigation sensors is solved, and high frequency and stability are achieved. Positioning data output enhances the real-time and stability of robot autonomous navigation.

CN117346782BActive Publication Date: 2024-09-24GUANGZHOU SAITE INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311288615.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-07
Publication Date
2024-09-24
Estimated Expiration
2043-10-07

AI Technical Summary

Technical Problem

In the existing technology, it is difficult for the satellite-based inertial navigation sensor to output high-frequency positioning information, resulting in poor smoothness of the positioning information and abnormal jump points, which affects the stability of the robot's autonomous navigation.

Method used

Obtain the observed value of the positioning data by setting the preset frequency greater than the actual frequency. If it is a null value, use the a priori estimate as the output. Otherwise, use the Kalman filter algorithm to determine the output value to improve the output density and stability of the positioning data.

Benefits of technology

It achieves high-frequency output of positioning data, enhances the stability and real-time performance of positioning and navigation, reduces optimization costs, and avoids the interference of abnormal points on the filtering system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117346782B
    Figure CN117346782B
Patent Text Reader

Abstract

The present invention discloses a positioning optimization method, device, electronic device and storage medium, which are used to track a target object. First, the observation value of the positioning data at the current moment is obtained at a preset frequency. If the preset frequency is greater than the actual frequency generated by the positioning data, the observation value may be a null value, and the posterior estimation value of the positioning data at the previous moment is obtained; the prior estimation value of the positioning data at the current moment is calculated based on the posterior estimation value; it is determined whether the observation value is a null value; if so, the prior estimation value is used as the output value of the positioning data at the current moment; if not, the output value of the positioning data at the current moment is determined based on the prior estimation value, the observation value and the Kalman filter algorithm. The positioning data can be smoothed to improve the stability of the positioning. At the same time, the abnormal points in the positioning data can be eliminated in combination with the Kalman filter algorithm, which enhances the stability of the filtering system and realizes the high-frequency output of the positioning data without adding other sensors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of positioning and navigation technology, and in particular to a positioning optimization method, device, electronic equipment and storage medium. Background Art

[0002] In the field of mobile robots, as an existing technology, multi-sensor fusion autonomous navigation robots cannot do without high-precision positioning functions for autonomous navigation. The positioning function means that the robot moves in the environment, perceives environmental information through the sensors it carries, and records its position in the map. Mobile robots usually use satellite combined inertial navigation for positioning during autonomous navigation, but the following situations are prone to occur.

[0003] In the first case, although the satellite-based inertial navigation sensor has added differential optimization, it cannot output high-frequency positioning information and cannot output positioning information in real time and quickly.

[0004] In the second case, the front and rear positioning information has poor smoothness and appears gear-shaped, or even has abnormal jumping points, causing the robot positioning to jump. Summary of the invention

[0005] The present invention provides a positioning optimization method to solve the problem that high-frequency positioning information cannot be output and the positioning information has poor smoothness.

[0006] In a first aspect, the present invention provides a positioning optimization method for tracking a target object, comprising:

[0007] Acquire an observation value of the positioning data at the current moment at a preset frequency, wherein the preset frequency is greater than an actual frequency at which the positioning data is generated;

[0008] Obtain the posterior estimation value of the positioning data at the previous moment;

[0009] Calculate a priori estimated value of the positioning data at the current moment based on the a posteriori estimated value;

[0010] Determine whether the observed value is a null value;

[0011] If so, taking the a priori estimated value as the output value of the positioning data at the current moment;

[0012] If not, the output value of the positioning data at the current moment is determined based on the prior estimation value, the observation value and the Kalman filter algorithm.

[0013] In a second aspect, the present invention provides a positioning optimization device, comprising:

[0014] An observation value acquisition module, used to acquire the observation value of the positioning data at the current moment at a preset frequency, wherein the preset frequency is greater than the actual frequency at which the positioning data is generated;

[0015] A posterior estimation value calculation module, used to obtain the posterior estimation value of the positioning data at the previous moment;

[0016] A priori estimation value calculation module, used to calculate the priori estimation value of the positioning data at the current moment based on the a posteriori estimation value;

[0017] The observation value judgment module is used to judge whether the observation value is a null value; if so, the content of the first output module is executed, and if not, the content of the second output module is executed.

[0018] A first output module, used to use the prior estimation value as the output value of the positioning data at the current moment;

[0019] The second output module is used to determine the output value of the positioning data at the current moment based on the prior estimation value, the observation value and the Kalman filter algorithm.

[0020] In a third aspect, the present invention provides an electronic device, the electronic device comprising:

[0021] at least one processor; and

[0022] a memory communicatively connected to the at least one processor; wherein,

[0023] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the positioning optimization method described in the first aspect of the present invention.

[0024] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the positioning optimization method described in the first aspect of the present invention when executed.

[0025] A positioning optimization method provided by an embodiment of the present invention is used to track a target object. First, an observation value of positioning data at a current moment is obtained at a preset frequency, and the preset frequency is greater than the actual frequency of positioning data generation, and a posterior estimation value of positioning data at a previous moment is obtained; a priori estimation value of positioning data at the current moment is calculated based on the posterior estimation value; whether the observation value is a null value is determined; if so, the priori estimation value is used as the output value of positioning data at the current moment; if not, the output value of positioning data at the current moment is determined based on the priori estimation value, the observation value and a Kalman filter algorithm.

[0026] On the one hand, if the preset frequency for obtaining the observation value is greater than the actual frequency of generating the positioning data, the observation value may be a null value. In this case, when the observation value is a null value, the prior estimate of the positioning data at the current moment is used as the output value of the positioning data at the current moment, which increases the output density of the data. The positioning data can be smoothed to improve the stability of positioning. At the same time, the Kalman filtering algorithm can be combined to eliminate abnormal points in the positioning data to avoid interference with the filtering system caused by abnormal points, thereby enhancing the stability of the filtering system.

[0027] On the other hand, the preset frequency for obtaining observation values ​​is greater than the actual frequency of positioning data generation, so that the frequency of the output positioning data is greater than the actual frequency of positioning data generation. Without adding other sensors, high-frequency output of positioning data is achieved, positioning information is output in real time and quickly, and optimization costs are reduced.

[0028] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0030] Figure 1 is a flow chart of a positioning optimization method provided by Embodiment 1 of the present invention;

[0031] Figure 2 is a flow chart of a positioning optimization method provided by Embodiment 2 of the present invention;

[0032] Figure 3 is a structural schematic diagram of a positioning optimization device provided in Embodiment 3 of the present invention;

[0033] Figure 4 It is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0035] Embodiment 1

[0036] Figure 1 A flowchart of a positioning optimization method provided in Example 1 of the present invention is applicable to situations where a target object is tracked and the positioning of the target object is optimized. The target object may be a robot, an autonomous driving vehicle, etc. By acquiring the positioning information of the target object in the environment, the positioning navigation system can plan a moving route and control the movement of the target object.

[0037] The positioning optimization method of the present invention is applied to the Kalman filtering algorithm. Kalman filtering is an algorithm that uses the linear system state equation to optimally estimate the system state through the system input and output observation data. Since the observation data includes the influence of noise and interference in the system, the optimal estimation can also be regarded as a filtering process. Several general formulas are involved, as follows:

[0038] 1. Equation of state

[0039] State estimation is an important part of Kalman filtering. Generally speaking, quantitative inference of random quantities based on observed data is an estimation problem, especially state estimation of dynamic behavior, which can realize the estimation and prediction of real-time operating state. The state equation is used to describe the change of system state over time, usually a first-order difference equation, and its common form is:

[0040]

[0041] Among them, x(·) is the state vector, is the prior estimate of the location data at time k, is the posterior estimate of the positioning data at time k-1, A is the state transfer matrix, B is the control matrix, and u k is the model correction vector at time k.

[0042] The state equation describes the state prediction process. It calculates the predicted value of the state at the current moment based on the state at the previous moment and the input of the control quantity. The state prediction formula is the basis of Kalman filtering. Through continuous iteration, accurate estimation of the state of unknown quantities can be achieved.

[0043] 2. Observation equation

[0044] The observation equation is used to describe the change of the observed value of the system state over time. It is usually a linear equation with the common form:

[0045] z k =Hx k +v k

[0046] where z k is the observation value (observation vector), the observation value is the original positioning output by the satellite integrated inertial navigation system (hereinafter referred to as INS), H is the observation matrix, and v is the observation noise.

[0047] The observation equation describes how to calculate the observed value predicted at the next moment by using the state predicted value at the previous moment. It is used to determine the error between the current state predicted value and the true observed value, that is, to adjust the observation error.

[0048] The positioning optimization method can be performed by a positioning optimization device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the positioning optimization method includes:

[0049] S101. Obtain observation values ​​of positioning data at the current moment at a preset frequency.

[0050] The preset frequency is greater than the actual frequency of the positioning data generation.

[0051] Acquiring the observation value of the positioning data at the current moment with a preset frequency specifically refers to acquiring the observation value of the positioning data of the target object at the current moment with a preset frequency. Various positioning data hereinafter are data for the target object and will not be pointed out separately.

[0052] Positioning data can be obtained through positioning devices, such as laser radar, GPS module and inertial navigation. The actual frequency of positioning data generation is related to the performance of the positioning device. The better the performance, the higher the frequency of obtaining data, and the worse the performance, the lower the frequency of obtaining data. At the same time, the performance of the positioning device is also proportional to the cost. The performance of general positioning devices is not good, so the frequency of obtaining positioning data is low.

[0053] This embodiment can use RTK (Real-time kinematic) carrier phase differential technology to output positioning data. RTK carrier phase differential technology is a differential method for real-time processing of carrier phase observations of two measurement stations. The carrier phase collected by the base station is sent to the user receiver for differential coordinate calculation. At present, the frequency of RTK (equipment) output depends on the equipment and system used. The general output frequency of market equipment is 10-20Hz, and the highest can reach 100Hz, but continuous high-frequency output requires more expensive hardware equipment.

[0054] Positioning data is the output data of the positioning device and is also the input data of the positioning navigation system. The positioning navigation system controls the frequency of obtaining the input positioning data by setting the execution frequency of the program, that is, the preset frequency, which is equivalent to controlling the frequency of the output positioning data.

[0055] In an optional example, the preset frequency is 10 times the actual frequency. For example, the actual frequency is 10 Hz and the preset frequency is 100 Hz. Of course, the ratio of the preset frequency to the actual frequency can also be other values, such as 2, 5, 20, etc., as long as it can meet the efficiency requirements of the positioning navigation system for processing positioning data, there is no limitation.

[0056] If the preset frequency is greater than the actual frequency of generating the positioning data, then the input value of the acquired positioning data may be a null value, that is, the observed value may be a null value. Specifically, acquiring the observed value of the positioning data at the current moment at the preset frequency includes: acquiring the input value of the positioning data at the current moment at the preset frequency; determining whether the input value is null; if so, taking the preset null value as the observed value of the positioning data at the current moment; if not, taking the input value as the observed value of the positioning data at the current moment.

[0057] For example, when the actual frequency of positioning data is 1 Hz, 1 positioning data is obtained as an observation value per second, and when the preset frequency is 10 Hz, 10 positioning data are obtained per second to obtain observation values. However, only 1 positioning data can actually be obtained within 1 second, and the remaining 9 positioning data are all null values.

[0058] S102: Obtain a posterior estimation value of the positioning data at the previous moment.

[0059] According to the state equation mentioned above, the a posteriori estimate of the positioning data at the previous moment can be obtained.

[0060] S103: Calculate a priori estimated value of the positioning data at the current moment based on the a posteriori estimated value.

[0061] Similarly, according to the state equation mentioned above, the prior estimate of the positioning data at the current moment can be calculated. Specifically,

[0062]

[0063] in, is the prior estimate of the location data at time k, is the posterior estimate of the positioning data at time k-1, A is the state transfer matrix, B is the control matrix, and u k is the model correction vector at time k. In the present invention, no input control is added, so B is the unit matrix. The prior estimate at the current moment is calculated based on the posterior estimate at the previous moment, that is, a recursive form is used to estimate the positioning data at the current moment, that is, the prior estimate. x(·) is a state vector, which may specifically include information on the coordinates, velocity, and acceleration of the target object in the X, Y, and Z directions.

[0064] S104. Determine whether the observed value is a null value.

[0065] If yes, execute S105, if no, execute S106.

[0066] S105: Use the prior estimation value as the output value of the positioning data at the current moment.

[0067] When the observed value is null, it means that there is no positioning data at present, and the prior estimation value can be used as the output value of the positioning data at the current moment. The prior estimation value is a virtual value, but it is also obtained by recursion based on the previous positioning data. For example, assuming that the current positioning data (sequence number 100) is a null value, and the previous positioning data (sequence number 99) of the current positioning data is a non-null value, and the three positioning data after the current positioning data (sequence numbers 101-103) are all null values, then, for positioning data No. 100, the prior estimation value is calculated based on the a posteriori estimation value of positioning data No. 99, and the prior estimation value is used as its positioning data. For positioning data No. 101, the prior estimation value is calculated based on the a posteriori estimation value of positioning data No. 100, and the prior estimation value is used as its positioning data, and so on.

[0068] Considering the instability of RTK and the timeout of outputting positioning data in the middle, the density of positioning data may be sparse, so the positioning navigation system obtains less input data and the stability of positioning navigation is poor. At this time, by adding high-frequency null values ​​at the input end and predicting the positioning data at subsequent moments through the Kalman algorithm, the density of output positioning data can be increased and the stability of positioning navigation can be improved.

[0069] The preset frequency for obtaining observation values ​​is greater than the actual frequency of positioning data generation, so that the frequency of the output positioning data is greater than the actual frequency of positioning data generation. Without adding other sensors, high-frequency output of positioning data is achieved, the density of positioning data is increased, positioning information is output in real time and quickly, and the stability of positioning navigation is improved.

[0070] S106: Determine the output value of the positioning data at the current moment based on the prior estimation value, the observation value and the Kalman filter algorithm.

[0071] In this embodiment, when the observed value is not a null value, the output value of the positioning data at the current moment can be determined based on the prior estimate, the observed value and the Kalman filter algorithm, that is, the observed value is used as a reference and the Kalman filter algorithm is used to filter and update the prior estimate, and abnormal points can be eliminated. On this basis, filtering and smoothing are performed, and the positioning data can be smoothed to improve the stability of positioning.

[0072] It should be noted that after determining the output value of the positioning data at the current moment, the process may return to S101 to obtain the next observation value, and execute S101-S106 in a loop until the filtering system is closed.

[0073] A positioning optimization method provided by an embodiment of the present invention first obtains the observation value of the positioning data at the current moment with a preset frequency, the preset frequency is greater than the actual frequency of the positioning data generation, and obtains the a posteriori estimate of the positioning data at the previous moment; calculates the a priori estimate of the positioning data at the current moment based on the a posteriori estimate; determines whether the observation value is a null value; if so, uses the a priori estimate as the output value of the positioning data at the current moment; if not, determines the output value of the positioning data at the current moment based on the a priori estimate, the observation value and the Kalman filter algorithm. On the one hand, if the preset frequency of obtaining the observation value is greater than the actual frequency of the positioning data generation, the observation value may be a null value. Then, when the observation value is a null value, the a priori estimate of the positioning data at the current moment is used as the output value of the positioning data at the current moment, which increases the output density of the data, can smooth the positioning data, and improve the stability of the positioning. At the same time, the Kalman filter algorithm can be combined to remove abnormal points in the positioning data to avoid the interference of abnormal points on the filtering system, thereby enhancing the stability of the filtering system. On the other hand, the preset frequency for obtaining observation values ​​is greater than the actual frequency of positioning data generation, so that the frequency of the output positioning data is greater than the actual frequency of positioning data generation. Without adding other sensors, high-frequency output of positioning data is achieved, positioning information is output in real time and quickly, and optimization costs are reduced.

[0074] Embodiment 2

[0075] Figure 2This is a flow chart of a positioning optimization method provided in the second embodiment of the present invention. The embodiment of the present invention is optimized based on the above-mentioned first embodiment. Figure 2 As shown, the positioning optimization method includes:

[0076] S201. Obtaining an observation value of positioning data at a current moment at a preset frequency, where the preset frequency is greater than an actual frequency at which the positioning data is generated.

[0077] S202: Determine whether filtering initialization is completed.

[0078] If not, execute S203; if yes, execute S204.

[0079] S203: Using the current positioning data as the initial positioning data to complete the filter initialization.

[0080] This step is to obtain the initial input value of the filtering process. The first positioning data does not need to be filtered.

[0081] S204: Obtain a posterior estimation value of the positioning data at the previous moment.

[0082] S205: Calculate a priori estimated value of the positioning data at the current moment based on the a posteriori estimated value.

[0083] S206. Determine whether the observed value is a null value.

[0084] If yes, execute S207, if no, execute S208.

[0085] S207: Use the prior estimation value as the output value of the positioning data at the current moment.

[0086] Steps S201 and S204 - S207 are similar to S101 - S105 in the first embodiment, and details may be referred to S101 - S105 , which will not be described here.

[0087] S208. Calculate the error between the prior estimate and the observed value.

[0088] In an optional embodiment, the positioning data includes coordinates, and calculating the error between the prior estimate and the observation includes: determining a first coordinate corresponding to the prior estimate and a second coordinate corresponding to the observation in three-dimensional space; and taking the spatial distance between the first coordinate and the second coordinate as the error.

[0089]

[0090] e k is the error, x 1 ,y 1 、z 1 are the coordinate values ​​of the X, Y, and Z directions in the coordinates of the observation value, respectively.2 ,y 2 、z 2 They are the coordinate values ​​in the X, Y, and Z directions of the prior estimate.

[0091] S209: Determine whether the error exceeds a preset error threshold.

[0092] If not, execute S210; if yes, execute S211.

[0093] S210: Use the Kalman filter algorithm to filter and update the prior estimation value, and use the filtered prior estimation value as the output value of the positioning data at the current moment.

[0094] If the error does not exceed the preset error threshold, it means that the original data (observation value) is normal and no jump occurs. Then the observation value can be used to filter and update the prior estimate.

[0095] The reason why the filter parameters need to be updated is that the filter estimation estimates the positioning information of the next moment based on the state of the previous moment (including positioning information), and the state of the target object can change all the time. From the perspective of the cause, taking a car as an example, the throttle may be increased, the speed may increase, or the speed needs to be increased by receiving external instructions, etc., then the state of the next moment is likely to change. From the perspective of the result, for example, if the speed of the target object at moment k is 1m / s, it is estimated that the positioning at moment k+1 is increased by one meter, and the actual measurement increases by 1.2m (assuming it is within the preset error range), then it can be observed that at moment k+1, the speed has reached or exceeded 1.2m / s. Even if the estimated error is within the range, if the current state of the target object has changed slightly, the state of the previous moment and the state of the next moment will change.

[0096] Therefore, the filter parameters need to be updated, and the update is a continuous process. The Kalman filter algorithm is used to filter and update the prior estimate, which specifically includes the following steps:

[0097] a: Calculate the prediction variance at the current moment based on the prediction variance after filtering and updating at the previous moment.

[0098]

[0099] Where m, is the prediction variance at time k, P k-1 is the prediction variance after filtering and updating at the last moment, A is the state transfer matrix, Q k is the process noise.

[0100] b: Update the filter parameters based on the prediction variance at the current moment.

[0101] Update the filter system coefficients: in, is the prediction variance at time k, R k is the measurement noise matrix, and H is the observation matrix.

[0102] c: Determine the updated prior estimate of the filter based on the updated filter parameters, the prior estimate, and the error.

[0103] Update filter status:

[0104]

[0105] in, is the prior estimate of the k-time positioning data after filtering and updating, is the prior estimate of the positioning data at time k, K is the filter system coefficient, e k For error.

[0106] d: Calculate the prediction variance after filtering and updating at the current moment based on the prediction variance at the current moment.

[0107]

[0108] Among them, H is the measurement matrix, K is the filter system coefficient, is the prediction variance at time k before the update, P k is the updated prediction variance at time k. The updated prediction variance here is used for the filtering process at the next moment and has nothing to do with the current moment.

[0109] S211. Determine whether the interval time between the current moment and the moment corresponding to the previous non-null observation value exceeds a preset time threshold.

[0110] If yes, execute S210, if no, execute S212.

[0111] The preset time threshold may be the time interval between two observations of non-null values ​​under normal circumstances. For example, assuming that a non-null value positioning data is output every 10 seconds, the preset time threshold is 10 seconds, and the current moment is the 100th second, then there should be a non-null value positioning data in the previous 10 seconds, and if the moment of the previous non-null value observation is the 85th second, then the interval between the two moments exceeds 10 seconds, which is determined to exceed the preset time threshold.

[0112] Considering the instability of the RTK system and the timeout of the output of positioning data in the middle of reality, the difference between the state of the previous moment and the state of the next moment of the filter estimation is too large, resulting in a large error in the output of the estimated result. If there is no time limit, the filter parameters will not be updated, and the error will continue to increase. The availability of the estimated state will decrease and gradually tend to be invalid. Therefore, the time limit is added to determine whether the interval time between the current moment and the moment corresponding to the previous non-null value observation value exceeds the preset time threshold. If not, execute S212. If so, that is, when the interval time exceeds the preset time threshold, it is necessary to update the filter parameters and the prior estimate value of the current moment, that is, execute S210.

[0113] It should be noted that under this setting, it can be guaranteed that every time a non-null observation value is received, valid positioning data (T) can be output. After this operation, if the subsequent observation values ​​are always null values, the output positioning data will always be the predicted prior estimate, but the prior estimate is recursively obtained based on the valid positioning data (T), so it can also be regarded as valid.

[0114] S212: Use the prior estimation value as the output value of the positioning data at the current moment.

[0115] When the interval time does not exceed the preset time threshold, the availability of the estimated state is high, and therefore the calculated a priori estimated value can be directly used as the output value of the positioning data at the current moment.

[0116] This embodiment takes into account the error between the observation value and the prior estimate value, and determines whether to perform a filtering operation based on the error. When the error is small, the prior estimate value can be directly used as the output value of the positioning data at the current moment, and the output is completed quickly and efficiently. The interval time of the observation value of the non-null value is also combined to update the filtering parameters and the prior estimate value at the current moment. This can prevent the RTK system from being unstable and the output of the positioning data from timing out midway, resulting in a large difference between the state of the filtering estimate at the previous moment and the state at the next moment, thereby ensuring the validity of the output positioning data.

[0117] Embodiment 3

[0118] Figure 3 This is a schematic diagram of the structure of a positioning optimization device provided in Embodiment 3 of the present invention. Figure 3 As shown, the positioning optimization device includes:

[0119] An observation value acquisition module 301 is used to acquire the observation value of the positioning data at the current moment at a preset frequency, where the preset frequency is greater than the actual frequency at which the positioning data is generated;

[0120] The posterior estimation value calculation module 302 is used to obtain the posterior estimation value of the positioning data at the previous moment;

[0121] A priori estimation value calculation module 303, used to calculate the priori estimation value of the positioning data at the current moment based on the a posteriori estimation value;

[0122] The observation value judgment module 304 is used to judge whether the observation value is a null value; if so, the content of the first output module is executed, and if not, the content of the second output module is executed.

[0123] A first output module 305, configured to use the a priori estimated value as an output value of the positioning data at the current moment;

[0124] The second output module 306 is used to determine the output value of the positioning data at the current moment based on the prior estimation value, the observation value and the Kalman filter algorithm.

[0125] In an optional embodiment, the positioning optimization device further includes:

[0126] An initialization judgment module is used to judge whether the filter initialization is completed;

[0127] If yes, execute the content of the posterior estimation value calculation module 302, if no, execute the content of the initialization module;

[0128] The initialization module is used to use the positioning data at the current moment as the positioning data at the initial moment to complete the filtering initialization.

[0129] In an optional embodiment, the observation value acquisition module 301 includes:

[0130] An input value acquisition submodule is used to acquire the input value of the positioning data at the current moment at a preset frequency;

[0131] An input value judgment submodule is used to judge whether the input value is empty;

[0132] If yes, execute the content of the empty value submodule, if no, execute the content of the input value submodule;

[0133] A null value submodule is used to use a preset null value as the observation value of the positioning data at the current moment;

[0134] The input value submodule is used to use the input value as the observation value of the positioning data at the current moment.

[0135] In an optional embodiment, the predicted frequency is 10 times the actual frequency.

[0136] In an optional embodiment, the second output module 306 includes:

[0137] An error calculation submodule, used to calculate the error between the prior estimate and the observed value;

[0138] The error judgment submodule is used to judge whether the error exceeds a preset error threshold; if so, the contents of the filtering submodule are executed; if so, the contents of the time judgment submodule are executed;

[0139] A filtering submodule, used to filter and update the a priori estimate value by using a Kalman filter algorithm, and use the filtered a priori estimate value as the output value of the positioning data at the current moment;

[0140] The time difference judgment submodule is used to judge whether the interval time between the current moment and the moment corresponding to the previous non-null value of the observation value exceeds the preset time threshold; if so, the content of the filtering submodule is executed, and if not, the content of the positioning data output submodule is executed;

[0141] The positioning data output submodule is used to use the prior estimation value as the output value of the positioning data at the current moment.

[0142] In an optional embodiment, the positioning data includes coordinates, and the error calculation submodule includes:

[0143] A coordinate determination unit, used to determine, in three-dimensional space, a first coordinate corresponding to the prior estimation value and a second coordinate corresponding to the observation value;

[0144] An error determination unit is used to take the spatial distance between the first coordinate and the second coordinate as an error.

[0145] In an optional embodiment, the filtering submodule includes:

[0146] A prediction variance calculation unit, used to calculate the prediction variance at the current moment based on the prediction variance after filtering and updating at the previous moment;

[0147] A filter parameter updating unit, used to update the filter parameters based on the prediction variance at the current moment;

[0148] A first updating unit, configured to determine a priori estimated value after filtering update based on the updated filtering parameters, the priori estimated value, and the error;

[0149] The second updating unit is used to calculate the prediction variance after filtering and updating at the current moment according to the prediction variance at the current moment.

[0150] The positioning optimization device provided in the embodiment of the present invention can execute the positioning optimization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0151] Embodiment 4

[0152] Figure 4A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0153] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0154] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0155] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as a positioning optimization method.

[0156] In some embodiments, the positioning optimization method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the positioning optimization method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the positioning optimization method in any other appropriate manner (e.g., by means of firmware).

[0157] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0158] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0159] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0160] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0161] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0162] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0163] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0164] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A positioning optimization method, It is characterized in that Used to track target objects, including: Acquire an observation value of the positioning data at the current moment at a preset frequency, wherein the preset frequency is greater than an actual frequency at which the positioning data is generated; Obtain the posterior estimation value of the positioning data at the previous moment; Calculate the a priori estimate of the positioning data at the current moment based on the a posteriori estimate; Determine whether the observed value is a null value; If so, use the a priori estimated value as the output value of the positioning data at the current moment; If not, determining an output value of the positioning data at the current moment based on the prior estimation value, the observation value, and a Kalman filter algorithm; The step of determining the output value of the positioning data at the current moment based on the prior estimation value, the observation value, and the Kalman filter algorithm includes: Calculating the error between the prior estimate and the observed value; Determining whether the error exceeds a preset error threshold; If not, use a Kalman filter algorithm to filter and update the prior estimation value, and use the filtered prior estimation value as the output value of the positioning data at the current moment; If so, determine whether the interval time between the current moment and the moment corresponding to the previous non-null value of the observed value exceeds a preset time threshold; If the time threshold is exceeded, the step of filtering and updating the a priori estimate value by using a Kalman filter algorithm is executed, and the a priori estimate value after filtering is used as the output value of the positioning data at the current moment; If the threshold is not exceeded, the a priori estimated value is used as the output value of the positioning data at the current moment.

2. The method according to claim 1, It is characterized in that After obtaining the observation value of the positioning data at the current moment at the preset frequency, the method further includes: Determine whether the filter initialization is completed; If yes, executing the step of obtaining the posterior estimation value of the positioning data at the previous moment; If not, the positioning data at the current moment is used as the positioning data at the initial moment to complete the filter initialization.

3. The method according to claim 1, It is characterized in that The step of obtaining the observation value of the positioning data at the current moment at a preset frequency includes: Obtaining the input value of the positioning data at the current moment at a preset frequency; Determine whether the input value is empty; If yes, the preset null value is used as the observation value of the positioning data at the current moment; If not, the input value is used as the observation value of the positioning data at the current moment.

4. The method according to claim 1, It is characterized in that The preset frequency is 10 times the actual frequency.

5. The method according to claim 1, It is characterized in that The positioning data includes coordinates, and the calculating the error between the prior estimation value and the observation value includes: In three-dimensional space, determining a first coordinate corresponding to the prior estimate and a second coordinate corresponding to the observed value; The spatial distance between the first coordinate and the second coordinate is taken as an error.

6. The method according to claim 1, It is characterized in that The step of filtering and updating the prior estimation value using a Kalman filtering algorithm comprises: Calculate the prediction variance at the current moment based on the prediction variance after filtering and updating at the previous moment; Update the filter parameters based on the prediction variance at the current moment; Determine the updated prior estimation value of the filter based on the updated filtering parameters, the prior estimation value, and the error; The prediction variance after filtering and updating at the current moment is calculated according to the prediction variance at the current moment.

7. A positioning optimization device, It is characterized in that include: An observation value acquisition module, used to acquire the observation value of the positioning data at the current moment at a preset frequency, wherein the preset frequency is greater than the actual frequency at which the positioning data is generated; A posterior estimation value calculation module, used to obtain the posterior estimation value of the positioning data at the previous moment; A priori estimation value calculation module, used to calculate the priori estimation value of the positioning data at the current moment based on the a posteriori estimation value; An observation value judgment module is used to judge whether the observation value is a null value; if so, the content of the first output module is executed, and if not, the content of the second output module is executed; A first output module, used to use the prior estimation value as the output value of the positioning data at the current moment; A second output module, used to determine the output value of the positioning data at the current moment based on the prior estimation value, the observation value and the Kalman filter algorithm; The second output module comprises: An error calculation submodule, used to calculate the error between the prior estimate and the observed value; The error judgment submodule is used to judge whether the error exceeds a preset error threshold; if so, the contents of the filtering submodule are executed; if so, the contents of the time judgment submodule are executed; A filtering submodule, used to filter and update the a priori estimate value by using a Kalman filter algorithm, and use the filtered a priori estimate value as the output value of the positioning data at the current moment; The time difference judgment submodule is used to judge whether the interval time between the current moment and the moment corresponding to the previous non-null value of the observation value exceeds the preset time threshold; if so, the content of the filtering submodule is executed, and if not, the content of the positioning data output submodule is executed; The positioning data output submodule is used to use the prior estimation value as the output value of the positioning data at the current moment.

8. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the positioning optimization method according to any one of claims 1 to 6.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the positioning optimization method according to any one of claims 1 to 6 when executed.