Indoor and outdoor fusion positioning method based on inertial navigation fusion

Through the trajectory fusion and adaptive error compensation of the inertial navigation system and the global positioning satellite system, the problems of poor indoor positioning accuracy and high resource cost of inertial navigation are solved, indoor and outdoor precise positioning is achieved, and the accuracy and accuracy of inertial navigation are improved. Positioning accuracy.

CN118548878APending Publication Date: 2024-08-27上海枢极智能科技有限公司
View PDF 0 Cites 2 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, inertial navigation has poor indoor positioning accuracy, and the computing resources and costs of traditional indoor and outdoor positioning systems are too high, and inertial navigation has problems with drift and accumulated errors.

Method used

An indoor and outdoor fusion positioning method based on inertial navigation fusion is used to perform adaptive error compensation by obtaining the inertial navigation system error and zero-speed update threshold, and fuse the trajectory displacements of the inertial navigation system and the global positioning satellite system, using principal component analysis Calculate the heading angle for correction.

Benefits of technology

Without the need to deploy other facilities and sensors, it can achieve precise indoor and outdoor positioning, reduce resource overhead and costs, improve inertial navigation accuracy, solve drift and error accumulation problems, and enhance indoor and outdoor positioning accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118548878A
    Figure CN118548878A
Patent Text Reader

Abstract

The invention relates to the technical field of fusion positioning, and discloses an indoor and outdoor fusion positioning method based on inertial navigation fusion, which comprises the following steps: acquiring an inertial navigation system error and a zero-speed update threshold value of an inertial navigation system in different speed motion modes, and calculating a zero-speed update threshold value of the inertial navigation system according to a triaxial angular speed measured by a gyroscope of the inertial navigation system; carrying out adaptive error compensation on the inertial navigation system; obtaining the compensated track displacement of the inertial navigation system; obtaining track displacement and satellite signal intensity of a global positioning satellite system; judging whether the satellite signal strength meets a positioning standard, if so, fusing the compensated track displacement of the inertial navigation system with the track displacement of the global positioning satellite system to obtain a fused track, and otherwise, obtaining a course included angle between the fused track and the compensated track displacement of the inertial navigation system; correcting the compensated track displacement of the inertial navigation system by using the course included angle as a correction angle; the method improves the accuracy of indoor and outdoor positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fusion positioning, and in particular to an indoor and outdoor fusion positioning method based on inertial navigation fusion. Background Art

[0002] With the continuous development of society, people pay more and more attention to location services, and the demand for accurate positioning indoors and outdoors is increasing. Among them, outdoor positioning mainly uses the Global Navigation Satellite System (GNSS), which can provide real-time, all-weather and global location services, which can meet the needs of common outdoor activities. However, since satellite signals cannot penetrate most obstacles, the global navigation satellite system will have a large number of blind spots indoors due to signal obstruction and multipath effects. Therefore, the effect of directly using the global navigation satellite system technology based on outdoor location service technology for indoor location-based services is not good. If the global navigation satellite system is directly applied indoors, the accuracy of the global navigation satellite system will drop sharply and cannot meet the needs of indoor positioning accuracy.

[0003] There are three main methods for indoor positioning. The first is a wireless positioning system based on a certain infrastructure. Various sensors need to be deployed in advance to assist positioning, and algorithms such as triangulation and fingerprint matching are used to achieve target positioning. Commonly used communication technologies include radio frequency identification (RFID), Bluetooth, ultra-wideband (UWB), wireless fidelity (Wi-Fi), ultrasound, ZigBee, etc. However, using the above methods to achieve indoor positioning has very high requirements for the real environment. For example, the indoor structural plan is known, the indoor wireless LAN fingerprint library is complete and effective, and the above positioning facilities are installed in advance indoors. Later, special personnel are required to maintain it, which requires a lot of manpower and material resources. This type of positioning technology has not been widely used. Therefore, an independent positioning system that does not require the deployment of complex equipment in advance has become an urgent need for people. The second is a method of multiple sensor fusion, which uses neural networks to fuse multiple sensors such as lidar, visual sensors, inertial navigation, etc. to achieve indoor positioning. However, this positioning method requires the use of neural networks to consume more computing resources, and the use of multiple sensors will also increase costs. The third is to use only a single sensor such as inertial navigation for indoor positioning. The advantages of inertial navigation are that it does not rely on external information, does not radiate signals, has good concealment, is not interfered by external electromagnetic fields, can work around the clock, has good continuity of navigation information, and is complementary to satellite positioning technology. However, the biggest challenge of inertial navigation is drift and cumulative error. Errors in the inertial measurement unit itself are inevitable. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides an indoor and outdoor fusion positioning method based on inertial navigation fusion, which is used to solve the problem of poor indoor positioning accuracy of inertial navigation, while reducing drift, accumulated errors and the problems of excessive computing resources and costs of traditional indoor and outdoor positioning systems.

[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0006] An indoor and outdoor fusion positioning method based on inertial navigation fusion includes the following steps:

[0007] S1. Obtaining the inertial navigation system error and the zero-speed update threshold of the inertial navigation system under different speed motion modes;

[0008] S2, performing adaptive error compensation on the inertial navigation system according to the three-axis angular velocity measured by the gyroscope of the inertial navigation system, the inertial navigation system error obtained in step S1, and the zero-speed update threshold of the inertial navigation system to obtain a compensated inertial navigation system;

[0009] S3, obtaining the trajectory displacement of the compensated inertial navigation system according to the three-axis angular velocity measured by the gyroscope of the compensated inertial navigation system and the three-axis acceleration measured by the accelerometer;

[0010] S4. Obtaining the trajectory displacement and satellite signal strength of the global positioning satellite system according to the message information of the global positioning satellite system;

[0011] S5, determining whether the satellite signal strength obtained in step S4 meets the positioning standard, if yes, executing step S6, otherwise executing step S7;

[0012] S6, fusing the trajectory displacement of the compensated inertial navigation system obtained in step S3 with the trajectory displacement of the global positioning satellite system obtained in step S4 to obtain a fused trajectory of the global positioning satellite system and the compensated inertial navigation system;

[0013] S7, using principal component analysis to analyze the trajectory displacement of the compensated inertial navigation system obtained in step S3 and the fused trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S6, respectively, to obtain a heading angle between the fused trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system;

[0014] S8. Using the heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S7 and the trajectory displacement of the compensated inertial navigation system as a correction angle to correct the trajectory displacement of the compensated inertial navigation system, so as to obtain the corrected trajectory displacement of the inertial navigation system.

[0015] Furthermore, step S1 specifically includes:

[0016] S11, setting different speed motion modes, and presetting the error constant and zero speed update threshold constant of the inertial navigation system;

[0017] S12. Under different speed motion modes, the inertial navigation system is moved along a rectangular path, and the error constant of the inertial navigation system is continuously adjusted to reduce the closing error of the inertial navigation system moving along the rectangular path, and the error of the inertial navigation system under different speed motion modes is obtained, that is:

[0018]

[0019] Among them, e c represents the inertial navigation system error under different speed motion modes, p ex 、p ey Respectively represent the horizontal and vertical coordinates of the end point of the inertial navigation system, p sx 、p sy Respectively represent the horizontal and vertical coordinates of the initialization point of the inertial navigation system, D ref Represents the length of the rectangular path;

[0020] S13, respectively, in different speed motion modes, the inertial navigation system is moved along a straight path, and the zero-speed update threshold constant of the inertial navigation system is continuously adjusted to continuously reduce the distance error of the inertial navigation system moving along the straight path, and the zero-speed update threshold of the inertial navigation system in different speed motion modes is obtained, that is:

[0021]

[0022] Among them, e d Indicates the zero-speed update threshold of the inertial navigation system under different speed motion modes, D measured Denotes the displacement length measured by the inertial navigation system, D ref ' represents the length of the straight line path.

[0023] Furthermore, step S2 specifically includes:

[0024] S21, sampling the inertial navigation system n times, and calculating the angular velocity of the inertial navigation system according to the three-axis angular velocity measured by the gyroscope of the inertial navigation system, that is:

[0025]

[0026] Among them, w t represents the angular velocity of the inertial navigation system at time t, ω t (1)ω t (2)ω t(3) respectively represent the three-axis angular velocity measured by the gyroscope of the inertial navigation system at the tth moment;

[0027] S22, obtaining a step start point and a step end point of the inertial navigation system sampling according to the angular velocity of the inertial navigation system calculated in step S21;

[0028] S23, obtaining the number of steps of the stepping starting point in step S22 within the set sampling period time, and obtaining the current speed motion mode;

[0029] S24, according to the current speed motion mode, obtaining the inertial navigation system error and the zero-speed update threshold of the inertial navigation system under different speed motion modes in step S1, and obtaining the inertial navigation system error and the zero-speed update threshold of the inertial navigation system under the current speed motion mode;

[0030] S25, according to the inertial navigation system error in the current speed motion mode obtained in step S24 and the zero-speed update threshold of the inertial navigation system, adopting the extended Kalman filter method to perform adaptive error compensation on the inertial navigation system to obtain the pitch angle, roll angle and yaw angle of the inertial navigation system;

[0031] S26. Using the pitch angle, roll angle, and yaw angle of the inertial navigation system obtained in step S25, the inertial navigation system is adjusted to obtain a compensated inertial navigation system.

[0032] Furthermore, step S22 specifically includes:

[0033] Determine whether the angular velocity of the inertial navigation system calculated by n samplings is higher than the angular velocity threshold. If so, the first sampling point of n samplings is the step starting point. Otherwise, perform n samplings again until the step starting point is found.

[0034] It is determined whether the angular velocity of the inertial navigation system calculated by n samplings is lower than the angular velocity threshold. If so, the first sampling point of n samplings is the stepping end point, otherwise, n samplings are performed again until the stepping end point is found.

[0035] Furthermore, the formulas for the pitch angle, roll angle, and yaw angle of the inertial navigation system in step S25 are:

[0036]

[0037] Among them, θ, ψ represents the pitch angle, roll angle, and yaw angle of the inertial navigation system, arcsin(·) and arctan(·) represent the inverse sine function and inverse tangent function, respectively. t represents the quaternion at time t, q 0 ,q 1 ,q 2 ,q3 Represent the elements of the quaternion, q t-1 It represents the quaternion at the t-1th moment, Q represents an intermediate temporary variable and has no practical meaning, and T represents transpose.

[0038] Furthermore, step S3 specifically includes:

[0039] S31, calculating the rotation matrix according to the three-axis angular velocity measured by the compensated inertial navigation system gyroscope, that is:

[0040]

[0041] Among them, C t represents the rotation matrix at time t, C t-1 represents the rotation matrix at time t-1, I 3×3 represents a 3×3 unit matrix, Ω t Indicates an intermediate temporary variable, which has no practical meaning, ω t (1)′、ω t (2) ′, ω t (3)′ respectively represent the three-axis angular velocity measured by the gyroscope of the compensated inertial navigation system at the tth moment, and Δt′ represents the time interval between two data samplings in the compensated inertial measurement system;

[0042] S32, calculating the speed of the compensated inertial navigation system according to the three-axis acceleration measured by the compensated inertial navigation system accelerometer and the rotation matrix calculated in step S31, that is:

[0043]

[0044] Among them, a t represents the three-axis acceleration vector in the standard coordinate system at time t, T represents the transpose, represents the three-axis acceleration vector in the body coordinate system measured by the accelerometer at the tth moment, g represents the gravitational acceleration, represents the velocity of the inertial navigation system compensated at time t, v t-1 It represents the velocity of the inertial navigation system compensated at time t-1 after being corrected by the extended Kalman filter method, and dt represents the integral of t;

[0045] S33, according to the speed of the compensated inertial navigation system calculated in step S32, obtaining the displacement of the compensated inertial navigation system, that is:

[0046]

[0047] in, represents the displacement of the inertial navigation system compensated at time t, p t-1represents the displacement of the inertial navigation system compensated at time t-1 after being corrected by the extended Kalman filter;

[0048] S34. Using the displacement of the compensated inertial navigation system obtained in step S33 as the trajectory displacement of the compensated inertial navigation system.

[0049] Furthermore, step S4 specifically includes:

[0050] S41, according to the message information of the global positioning satellite system, the message information is parsed by using the parsing library to obtain the track points composed of latitude, accuracy, altitude, the number of satellites, the signal-to-noise ratio of the satellites, and the carrier noise density;

[0051] S42, according to the trajectory points consisting of latitude, accuracy and altitude obtained in step S41, obtaining the vector displacement of two trajectory points within the time interval of two data samplings in the compensated inertial measurement system, and obtaining the trajectory displacement of the global positioning satellite system;

[0052] S43. Obtain satellite signal strength according to the number of satellites, the signal-to-noise ratio of the satellites, and the carrier-to-noise density obtained in step S41.

[0053] Further, step S6 specifically includes:

[0054] The trajectory displacement of the compensated inertial navigation system obtained in step S3 is fused with the trajectory displacement of the global positioning satellite system obtained in step S4 by using the fast Kalman filter method to obtain the fused trajectory of the global positioning satellite system and the compensated inertial navigation system, namely:

[0055]

[0056] Among them, X F represents the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system, X GNSS represents the trajectory displacement of the global positioning satellite system, G k represents the fusion coefficient, X INS represents the trajectory displacement of the compensated inertial navigation system, e c ′ represents the inertial navigation system error in the current speed motion mode.

[0057] Furthermore, step S7 specifically includes:

[0058] S71, using principal component analysis to analyze the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system in step S6, to obtain a characteristic vector of the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system, namely:

[0059] H f =f pca (XF )

[0060] Among them, H f The eigenvector representing the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system, f pca (·) represents the principal component analysis function, X F represents the fused trajectory of the global positioning satellite system and the compensated inertial navigation system;

[0061] S72, using principal component analysis to analyze the trajectory displacement of the compensated inertial navigation system obtained in step S3, to obtain a characteristic vector of the trajectory displacement of the compensated inertial navigation system, namely:

[0062] H i =f pca (X INS )

[0063] Among them, H i The eigenvector representing the trajectory displacement of the compensated inertial navigation system, X INS represents the trajectory displacement of the compensated inertial navigation system;

[0064] S73, according to the characteristic vector of the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S71 and the characteristic vector of the trajectory displacement of the compensated inertial navigation system obtained in step S72, obtain the heading angle of the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system, that is:

[0065]

[0066] Among them, θ 0 represents the heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system, and arccos(·) represents the inverse cosine function.

[0067] Furthermore, step S8 specifically includes:

[0068] The heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S7 and the trajectory displacement of the compensated inertial navigation system is used as the correction angle, and the trajectory displacement of the compensated inertial navigation system is corrected by using the correction angle to obtain the corrected trajectory displacement of the inertial navigation system, that is:

[0069]

[0070] Among them, X F ′ represents the trajectory displacement of the corrected inertial navigation system, T represents the transposition, and T irepresents the rigid body transformation matrix, X INS represents the trajectory displacement of the compensated inertial navigation system, R i represents the rotation matrix, J represents the 2×1 matrix, sin(·) and cos(·) represent the sine function and cosine function respectively, θ 0 It represents the heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system.

[0071] The present invention has the following beneficial effects:

[0072] 1. The indoor and outdoor fusion positioning method based on inertial navigation fusion proposed in the present invention can achieve accurate indoor and outdoor positioning by only using an inertial navigation system and a global positioning satellite system without the need to deploy other facilities and sensors, thereby reducing the resource overhead and cost of indoor and outdoor positioning;

[0073] 2. By obtaining the inertial navigation system error and zero-speed update threshold under the current speed motion mode, the extended Kalman filter is used to make corresponding error compensation for the inertial navigation system, which solves the drift and error accumulation problems of the inertial navigation system and effectively improves the accuracy of the inertial navigation system;

[0074] 3. The trajectory displacement of the inertial navigation system and the trajectory displacement of the global positioning satellite system are integrated, and the trajectory displacement of the inertial navigation system is corrected using the integrated trajectory, thereby improving the positioning accuracy. At the same time, the inertial navigation system is also used to provide attitude angle information that the global positioning satellite system cannot obtain, thereby achieving the complementarity of the inertial navigation system and the global positioning satellite system and improving the accuracy of indoor and outdoor positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 The figure is a flow chart of an indoor and outdoor fusion positioning method based on inertial navigation fusion proposed in the present invention. DETAILED DESCRIPTION

[0076] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0077] like Figure 1 As shown, an indoor and outdoor fusion positioning method based on inertial navigation fusion includes the following steps S1-S8:

[0078] S1. Obtain the inertial navigation system error and the zero-speed update threshold of the inertial navigation system under different speed motion modes.

[0079] In this embodiment, the different speed motion modes are running, fast walking, and slow walking, and the inertial navigation system errors and zero-speed update thresholds in these three states are obtained by using prior experiments.

[0080] Specifically, step S1 includes S11-S13:

[0081] S11, setting different speed motion modes, and presetting the error constant and zero speed update threshold constant of the inertial navigation system.

[0082] S12. Under different speed motion modes, the inertial navigation system is moved along a rectangular path, and the error constant of the inertial navigation system is continuously adjusted to reduce the closing error of the inertial navigation system moving along the rectangular path, and the error of the inertial navigation system under different speed motion modes is obtained, that is:

[0083]

[0084] Among them, e c represents the inertial navigation system error under different speed motion modes, p ex 、p ey Respectively represent the horizontal and vertical coordinates of the end point of the inertial navigation system, p sx 、p sy Respectively represent the horizontal and vertical coordinates of the initialization point of the inertial navigation system, D ref Represents the length of the rectangular path.

[0085] In this embodiment, the error constant of the inertial navigation system is continuously adjusted to continuously reduce the closing error of the inertial navigation system moving along the rectangular path. When the closing error is minimum, the corresponding inertial navigation system error is the inertial navigation system error in the current speed motion mode.

[0086] S13, respectively, in different speed motion modes, the inertial navigation system is moved along a straight path, and the zero-speed update threshold constant of the inertial navigation system is continuously adjusted to continuously reduce the distance error of the inertial navigation system moving along the straight path, and the zero-speed update threshold of the inertial navigation system in different speed motion modes is obtained, that is:

[0087]

[0088] Among them, e d Indicates the zero-speed update threshold of the inertial navigation system under different speed motion modes, D measured Denotes the displacement length measured by the inertial navigation system, D ref ' represents the length of the straight line path.

[0089] In this embodiment, the zero-speed update threshold constant of the inertial navigation system is continuously adjusted to continuously reduce the distance error of the inertial navigation system moving along a straight path. When the distance error is minimum, the corresponding zero-speed update threshold is the zero-speed update threshold of the inertial navigation system in the current speed motion mode.

[0090] S2. According to the three-axis angular velocity measured by the gyroscope of the inertial navigation system, the inertial navigation system error obtained in step S1, and the zero-speed update threshold of the inertial navigation system, adaptive error compensation is performed on the inertial navigation system to obtain a compensated inertial navigation system.

[0091] In this embodiment, the inertial navigation system includes an adaptive error compensation module based on motion speed and an extended Kalman filter module, and the adaptive error compensation module based on motion speed is used to determine the current speed motion mode of the inertial navigation system. After the current speed motion mode of the inertial navigation system is obtained, the extended Kalman filter module is used to perform adaptive error compensation on the inertial navigation system according to the inertial navigation system error and the zero-speed update threshold under the current speed motion mode to obtain a compensated inertial navigation system.

[0092] Specifically, step S2 specifically includes S21-S26:

[0093] S21, sampling the inertial navigation system n times, and calculating the angular velocity of the inertial navigation system according to the three-axis angular velocity measured by the gyroscope of the inertial navigation system, that is:

[0094]

[0095] Among them, w t represents the angular velocity of the inertial navigation system at time t, ω t (1)ω t (2)ω t (3) respectively represent the three-axis angular velocities measured by the gyroscope of the inertial navigation system at the tth moment.

[0096] S22. Acquire a step start point and a step end point of the inertial navigation system sampling according to the angular velocity of the inertial navigation system calculated in step S21.

[0097] In this embodiment, the step starting point is s s , the step end point is s e , the angular velocity threshold is w r And it is a fixed value.

[0098] Specifically, step S22 includes:

[0099] It is determined whether the angular velocity of the inertial navigation system calculated by n samplings is higher than the angular velocity threshold. If so, the first sampling point of n samplings is the step starting point. Otherwise, n samplings are performed again until the step starting point is found.

[0100] In this embodiment, the value of n sampling is 10, that is, sampling is performed 10 times, and the angular velocity of the inertial navigation system is calculated each time, and it is determined whether the angular velocity of the inertial navigation system of the 10 samplings is higher than the angular velocity threshold. If so, the first sampling point of n samplings is the step starting point, otherwise, sampling is continued for 10 times until the angular velocity of the inertial navigation system calculated by the 10 samplings is higher than the angular velocity threshold, and the first sampling point of these 10 samplings is taken as the step starting point.

[0101] It is determined whether the angular velocity of the inertial navigation system calculated by n samplings is lower than the angular velocity threshold. If so, the first sampling point of n samplings is the stepping end point, otherwise, n samplings are performed again until the stepping end point is found.

[0102] S23, obtaining the number of steps of the stepping starting point in step S22 within the set time of the sampling period, and obtaining the current speed motion mode.

[0103] In this embodiment, the sampling cycle is set to 3 seconds. If the number of steps from the stepping starting point within the sampling cycle setting time is less than or equal to 2, the current speed motion mode is slow walking; if the number of steps from the stepping starting point within the sampling cycle setting time is 3, the current speed motion mode is fast walking; if the number of steps from the stepping starting point within the sampling cycle setting time is greater than or equal to 4, the current speed motion mode is running.

[0104] S24. According to the current speed motion mode, the inertial navigation system error and the zero-speed update threshold of the inertial navigation system under different speed motion modes in step S1 are obtained to obtain the inertial navigation system error and the zero-speed update threshold of the inertial navigation system under the current speed motion mode.

[0105] S25. According to the inertial navigation system error in the current speed motion mode obtained in step S24 and the zero-speed update threshold of the inertial navigation system, an extended Kalman filter method is used to perform adaptive error compensation on the inertial navigation system to obtain the pitch angle, roll angle, and yaw angle of the inertial navigation system.

[0106] Specifically, the formulas for the pitch angle, roll angle, and yaw angle of the inertial navigation system in step S25 are:

[0107]

[0108] Among them, θ, ψ represents the pitch angle, roll angle, and yaw angle of the inertial navigation system, arcsin(·) and arctan(·) represent the inverse sine function and inverse tangent function, respectively. t represents the quaternion at time t, q 0 ,q 1 ,q 2 ,q 3 Represent the elements of the quaternion, q t-1 It represents the quaternion at the t-1th moment, Q represents an intermediate temporary variable and has no practical meaning, and T represents transpose.

[0109] S26. Using the pitch angle, roll angle, and yaw angle of the inertial navigation system obtained in step S25, the inertial navigation system is adjusted to obtain a compensated inertial navigation system.

[0110] In this embodiment, the pitch angle, roll angle, and yaw angle of the inertial navigation system are obtained, that is, the attitude angle information of the inertial navigation system is obtained. 0 Quaternion of time It is an artificially set 1×4 matrix.

[0111] S3. Obtain the trajectory displacement of the compensated inertial navigation system according to the three-axis angular velocity measured by the gyroscope of the compensated inertial navigation system and the three-axis acceleration measured by the accelerometer.

[0112] In this embodiment, the rotation matrix is ​​calculated based on the three-axis angular velocity measured by the high-precision inertial navigation system gyroscope and the three-axis acceleration information measured by the accelerometer to obtain the velocity and displacement of the high-precision inertial navigation system, and the displacement is used as the trajectory displacement of the high-precision inertial navigation system.

[0113] Specifically, step S3 specifically includes S31-S34:

[0114] S31, calculating the rotation matrix according to the three-axis angular velocity measured by the compensated inertial navigation system gyroscope, that is:

[0115]

[0116] Among them, C t represents the rotation matrix at time t, C t-1 represents the rotation matrix at time t-1, I 3×3 represents a 3×3 unit matrix, Ω t Indicates an intermediate temporary variable, which has no practical meaning, ω t (1)′、ω t (2) ′, ω t(3)′ respectively represent the three-axis angular velocity measured by the gyroscope of the compensated inertial navigation system at the tth moment, and Δt′ represents the time interval between two data samplings in the compensated inertial measurement system.

[0117] S32, calculating the speed of the compensated inertial navigation system according to the three-axis acceleration measured by the compensated inertial navigation system accelerometer and the rotation matrix calculated in step S31, that is:

[0118]

[0119] Among them, a t represents the three-axis acceleration vector in the standard coordinate system at time t, T represents the transpose, represents the three-axis acceleration vector in the body coordinate system measured by the accelerometer at the tth moment, g represents the gravitational acceleration, represents the velocity of the inertial navigation system compensated at time t, v t-1 It represents the velocity of the inertial navigation system compensated at time t-1 after being corrected by the extended Kalman filter method, and dt represents the integral of t.

[0120] S33, according to the speed of the compensated inertial navigation system calculated in step S32, obtaining the displacement of the compensated inertial navigation system, that is:

[0121]

[0122] in, represents the displacement of the inertial navigation system compensated at time t, p t-1 It represents the displacement of the inertial navigation system compensated at time t-1 after being corrected by the extended Kalman filter.

[0123] S34. Using the displacement of the compensated inertial navigation system obtained in step S33 as the trajectory displacement of the compensated inertial navigation system.

[0124] S4. Obtain the trajectory displacement and satellite signal strength of the global positioning satellite system according to the message information of the global positioning satellite system.

[0125] In this embodiment, the parsing library is used to parse the message information of the global positioning satellite system, that is, the NMEA-0183 protocol message information, and the trajectory points composed of latitude, accuracy, and altitude are obtained by parsing, wherein the two trajectory points within the time interval Δt′ between two data samplings in the compensated inertial measurement system constitute a vector, that is, the trajectory displacement of the global positioning satellite system. In addition, the analysis can also obtain the number of satellites, the signal-to-noise ratio of the satellite, and the carrier noise density.

[0126] Specifically, step S4 includes S41-S43:

[0127] S41. According to the message information of the global positioning satellite system, the message information is parsed using the parsing library to obtain the trajectory points composed of latitude, accuracy, altitude, the number of satellites, the signal-to-noise ratio of the satellite, and the carrier noise density.

[0128] S42, according to the trajectory points consisting of latitude, accuracy and altitude obtained in step S41, obtain the vector displacement of two trajectory points within the time interval of two data samplings in the compensated inertial measurement system to obtain the trajectory displacement of the global positioning satellite system.

[0129] S43. Obtain satellite signal strength according to the number of satellites, the signal-to-noise ratio of the satellites, and the carrier-to-noise density obtained in step S41.

[0130] S5. Determine whether the satellite signal strength obtained in step S4 meets the positioning standard. If so, execute step S6; otherwise, execute step S7.

[0131] In this embodiment, whether the satellite signal strength meets the positioning standard is determined based on the number of satellites searched by the device, the satellite signal-to-noise ratio, and the carrier-to-noise density. o ) is 37 to 45 dB-Hz, and the number of satellites is greater than or equal to 4, it is determined that the current satellite signal strength can be used for positioning, that is, it meets the positioning standard.

[0132] S6. Fusing the trajectory displacement of the compensated inertial navigation system obtained in step S3 with the trajectory displacement of the global positioning satellite system obtained in step S4 to obtain a fused trajectory of the global positioning satellite system and the compensated inertial navigation system.

[0133] Specifically, step S6 includes:

[0134] The trajectory displacement of the compensated inertial navigation system obtained in step S3 is fused with the trajectory displacement of the global positioning satellite system obtained in step S4 by using the fast Kalman filter method to obtain the fused trajectory of the global positioning satellite system and the compensated inertial navigation system, namely:

[0135]

[0136] Among them, X F represents the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system, X GNSS represents the trajectory displacement of the global positioning satellite system, G k represents the fusion coefficient, X INS represents the trajectory displacement of the compensated inertial navigation system, e c ′ represents the inertial navigation system error in the current speed motion mode.

[0137] S7. Use principal component analysis to analyze the trajectory displacement of the compensated inertial navigation system obtained in step S3 and the fused trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S6, so as to obtain a heading angle between the fused trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system.

[0138] Specifically, step S7 specifically includes S71-S73:

[0139] S71, using principal component analysis to analyze the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system in step S6, to obtain a characteristic vector of the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system, namely:

[0140] H f =f pca (X F )

[0141] Among them, H f The eigenvector representing the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system, f pca (·) represents the principal component analysis function, X F Represents the fused trajectory of the GPS and the compensated inertial navigation system.

[0142] S72, using principal component analysis to analyze the trajectory displacement of the compensated inertial navigation system obtained in step S3, to obtain a characteristic vector of the trajectory displacement of the compensated inertial navigation system, namely:

[0143] H i =f pca (X INS )

[0144] Among them, H i The eigenvector representing the trajectory displacement of the compensated inertial navigation system, X INS represents the trajectory displacement of the compensated inertial navigation system.

[0145] S73, according to the characteristic vector of the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S71 and the characteristic vector of the trajectory displacement of the compensated inertial navigation system obtained in step S72, obtain the heading angle of the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system, that is:

[0146]

[0147] Among them, θ 0represents the heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system, and arccos(·) represents the inverse cosine function.

[0148] S8. Using the heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S7 and the trajectory displacement of the compensated inertial navigation system as a correction angle to correct the trajectory displacement of the compensated inertial navigation system, so as to obtain the corrected trajectory displacement of the inertial navigation system.

[0149] Specifically, step S8 includes:

[0150] The heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S7 and the trajectory displacement of the compensated inertial navigation system is used as the correction angle, and the trajectory displacement of the compensated inertial navigation system is corrected by using the correction angle to obtain the corrected trajectory displacement of the inertial navigation system, that is:

[0151]

[0152] Among them, X F ′ represents the trajectory displacement of the corrected inertial navigation system, T represents the transposition, and T i represents the rigid body transformation matrix, X INS represents the trajectory displacement of the compensated inertial navigation system, R i represents the rotation matrix, J represents the 2×1 matrix, sin(·) and cos(·) represent the sine function and cosine function respectively, θ 0 It represents the heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system.

[0153] The invention proposes an indoor and outdoor fusion positioning method based on inertial navigation fusion, which fuses the trajectories of an inertial navigation system and a global positioning satellite system, and uses a principal component analysis method to calculate the angle between the trajectory displacement of the inertial navigation system and the fusion trajectory, and uses the angle as a correction angle; when the satellite signal strength of the global positioning satellite system is poor, the correction angle is directly used to rotate the inertial navigation system to correct the trajectory, thereby solving the positioning problem in an environment such as indoors and underground where the satellite signal of the global positioning satellite system is poor; at the same time, the method of global positioning satellite system trajectory correction (trajectory fusion) and inertial navigation system internal correction (adaptive error compensation for the inertial navigation system) is also used to improve the positioning accuracy of the inertial navigation system; in addition, the inertial navigation system can also output attitude angle information that cannot be obtained by the global positioning satellite system, thereby providing complete posture information for indoor and outdoor positioning. Therefore, this method can achieve precise indoor and outdoor positioning by using only inertial navigation systems and global positioning satellite systems without the need to deploy other facilities and sensors, reducing the resource overhead and cost of indoor and outdoor positioning; at the same time, the inertial navigation system also uses an adaptive error compensation module based on motion speed to obtain the current speed motion mode, and selects a suitable zero-speed update threshold, and uses the extended Kalman filter module to make corresponding error compensation for the inertial navigation system, solving the drift and error accumulation problems of the inertial navigation system and effectively improving the accuracy of the inertial navigation system.

[0154] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0155] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. An indoor and outdoor fusion positioning method based on inertial navigation fusion, characterized in that: The following steps are involved: S1. Obtaining the inertial navigation system error and the zero-speed update threshold of the inertial navigation system under different speed motion modes; S2, performing adaptive error compensation on the inertial navigation system according to the three-axis angular velocity measured by the gyroscope of the inertial navigation system, the inertial navigation system error obtained in step S1, and the zero-speed update threshold of the inertial navigation system to obtain a compensated inertial navigation system; S3, obtaining the trajectory displacement of the compensated inertial navigation system according to the three-axis angular velocity measured by the gyroscope of the compensated inertial navigation system and the three-axis acceleration measured by the accelerometer; S4. Obtaining the trajectory displacement and satellite signal strength of the global positioning satellite system according to the message information of the global positioning satellite system; S5, determining whether the satellite signal strength obtained in step S4 meets the positioning standard, if yes, executing step S6, otherwise executing step S7; S6, fusing the trajectory displacement of the compensated inertial navigation system obtained in step S3 with the trajectory displacement of the global positioning satellite system obtained in step S4 to obtain a fused trajectory of the global positioning satellite system and the compensated inertial navigation system; S7, using principal component analysis to analyze the trajectory displacement of the compensated inertial navigation system obtained in step S3 and the fused trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S6, respectively, to obtain a heading angle between the fused trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system; S8. Using the heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S7 and the trajectory displacement of the compensated inertial navigation system as a correction angle to correct the trajectory displacement of the compensated inertial navigation system, so as to obtain the corrected trajectory displacement of the inertial navigation system.

2. The indoor and outdoor fusion positioning method based on inertial navigation fusion according to claim 1 is characterized in that: Step S1 specifically includes: S11, setting different speed motion modes, and presetting the error constant and zero speed update threshold constant of the inertial navigation system; S12. Under different speed motion modes, the inertial navigation system is moved along a rectangular path, and the error constant of the inertial navigation system is continuously adjusted to reduce the closing error of the inertial navigation system moving along the rectangular path, and the error of the inertial navigation system under different speed motion modes is obtained, that is: Among them, e c represents the inertial navigation system error under different speed motion modes, p ex 、p ey Respectively represent the horizontal and vertical coordinates of the end point of the inertial navigation system, p sx 、p sy Respectively represent the horizontal and vertical coordinates of the initialization point of the inertial navigation system, D ref Represents the length of the rectangular path; S13, respectively, in different speed motion modes, the inertial navigation system is moved along a straight path, and the zero-speed update threshold constant of the inertial navigation system is continuously adjusted to continuously reduce the distance error of the inertial navigation system moving along the straight path, and the zero-speed update threshold of the inertial navigation system in different speed motion modes is obtained, that is: Among them, e d Indicates the zero-speed update threshold of the inertial navigation system under different speed motion modes, D measured Denotes the displacement length measured by the inertial navigation system, D ref ′ Indicates the length of the straight line path.

3. The indoor and outdoor fusion positioning method based on inertial navigation fusion according to claim 1 is characterized in that: Step S2 specifically includes: S21, sampling the inertial navigation system n times, and calculating the angular velocity of the inertial navigation system according to the three-axis angular velocity measured by the gyroscope of the inertial navigation system, that is: Among them, w t represents the angular velocity of the inertial navigation system at time t, ω t (1)ω t (2)ω t (3) respectively represent the three-axis angular velocity measured by the gyroscope of the inertial navigation system at the tth moment; S22, obtaining a step start point and a step end point of the inertial navigation system sampling according to the angular velocity of the inertial navigation system calculated in step S21; S23, obtaining the number of steps of the stepping starting point in step S22 within the set sampling period time, and obtaining the current speed motion mode; S24, according to the current speed motion mode, obtaining the inertial navigation system error and the zero-speed update threshold of the inertial navigation system under different speed motion modes in step S1, and obtaining the inertial navigation system error and the zero-speed update threshold of the inertial navigation system under the current speed motion mode; S25, according to the inertial navigation system error in the current speed motion mode obtained in step S24 and the zero-speed update threshold of the inertial navigation system, adopting the extended Kalman filter method to perform adaptive error compensation on the inertial navigation system to obtain the pitch angle, roll angle and yaw angle of the inertial navigation system; S26. Using the pitch angle, roll angle, and yaw angle of the inertial navigation system obtained in step S25, the inertial navigation system is adjusted to obtain a compensated inertial navigation system.

4. The indoor and outdoor fusion positioning method based on inertial navigation fusion according to claim 3 is characterized in that: Step S22 specifically includes: Determine whether the angular velocity of the inertial navigation system calculated by n samplings is higher than the angular velocity threshold. If so, the first sampling point of n samplings is the step starting point. Otherwise, perform n samplings again until the step starting point is found. It is determined whether the angular velocity of the inertial navigation system calculated by n samplings is lower than the angular velocity threshold. If so, the first sampling point of n samplings is the stepping end point, otherwise, n samplings are performed again until the stepping end point is found.

5. The indoor and outdoor fusion positioning method based on inertial navigation fusion according to claim 3 is characterized in that: The formulas for the pitch angle, roll angle, and yaw angle of the inertial navigation system in step S25 are: Among them, θ, ψ represents the pitch angle, roll angle, and yaw angle of the inertial navigation system, arcsin(·) and arctan(·) represent the inverse sine function and inverse tangent function, respectively. t represents the quaternion at time t, q0, q1, q2, q3 represent the elements of the quaternion respectively, q t-1 It represents the quaternion at the t-1th moment, Q represents an intermediate temporary variable and has no practical meaning, and T represents transpose.

6. The indoor and outdoor fusion positioning method based on inertial navigation fusion according to claim 1 is characterized in that: Step S3 specifically includes: S31, calculating the rotation matrix according to the three-axis angular velocity measured by the compensated inertial navigation system gyroscope, that is: Among them, C t represents the rotation matrix at time t, C t-1 represents the rotation matrix at time t-1, I 3×3 represents a 3×3 unit matrix, Ω t Indicates an intermediate temporary variable, which has no practical meaning. t (1)′、ω t (2) ′, ω t (3)′ respectively represent the three-axis angular velocity measured by the gyroscope of the compensated inertial navigation system at the tth moment, and Δt′ represents the time interval between two data samplings in the compensated inertial measurement system; S32, calculating the speed of the compensated inertial navigation system according to the three-axis acceleration measured by the compensated inertial navigation system accelerometer and the rotation matrix calculated in step S31, that is: Among them, a t represents the three-axis acceleration vector in the standard coordinate system at time t, T represents the transpose, represents the three-axis acceleration vector in the body coordinate system measured by the accelerometer at the tth moment, g represents the gravitational acceleration, represents the velocity of the inertial navigation system compensated at time t, v t-1 It represents the velocity of the inertial navigation system compensated at time t-1 after being corrected by the extended Kalman filter method, and dt represents the integral of t; S33, according to the speed of the compensated inertial navigation system calculated in step S32, obtaining the displacement of the compensated inertial navigation system, that is: in, represents the displacement of the inertial navigation system compensated at time t, p t-1 represents the displacement of the inertial navigation system compensated at time t-1 after being corrected by the extended Kalman filter; S34. Using the displacement of the compensated inertial navigation system obtained in step S33 as the trajectory displacement of the compensated inertial navigation system.

7. The indoor and outdoor fusion positioning method based on inertial navigation fusion according to claim 1 is characterized in that: Step S4 specifically includes: S41, according to the message information of the global positioning satellite system, the message information is parsed by using the parsing library to obtain the track points composed of latitude, accuracy, altitude, the number of satellites, the signal-to-noise ratio of the satellites, and the carrier noise density; S42, according to the trajectory points consisting of latitude, accuracy and altitude obtained in step S41, obtaining the vector displacement of two trajectory points within the time interval of two data samplings in the compensated inertial measurement system, and obtaining the trajectory displacement of the global positioning satellite system; S43. Obtain satellite signal strength according to the number of satellites, the signal-to-noise ratio of the satellites, and the carrier-to-noise density obtained in step S41.

8. The indoor and outdoor fusion positioning method based on inertial navigation fusion according to claim 1 is characterized in that: Step S6 specifically includes: The trajectory displacement of the compensated inertial navigation system obtained in step S3 is fused with the trajectory displacement of the global positioning satellite system obtained in step S4 by using the fast Kalman filter method to obtain the fused trajectory of the global positioning satellite system and the compensated inertial navigation system, namely: Among them, X F represents the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system, X GNSS represents the trajectory displacement of the global positioning satellite system, G k represents the fusion coefficient, X INS represents the trajectory displacement of the compensated inertial navigation system, e c ′ Indicates the inertial navigation system error in the current speed motion mode.

9. The indoor and outdoor fusion positioning method based on inertial navigation fusion according to claim 1 is characterized in that: Step S7 specifically includes: S71, using principal component analysis to analyze the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system in step S6, to obtain a characteristic vector of the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system, namely: H f =f pca (X F ) Among them, H f The eigenvector representing the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system, f pca (·) represents the principal component analysis function, X F represents the fused trajectory of the global positioning satellite system and the compensated inertial navigation system; S72, using principal component analysis to analyze the trajectory displacement of the compensated inertial navigation system obtained in step S3, to obtain a characteristic vector of the trajectory displacement of the compensated inertial navigation system, namely: H i =f pca (X INS ) Among them, H i The eigenvector representing the trajectory displacement of the compensated inertial navigation system, X INS represents the trajectory displacement of the compensated inertial navigation system; S73, according to the characteristic vector of the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S71 and the characteristic vector of the trajectory displacement of the compensated inertial navigation system obtained in step S72, obtain the heading angle of the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system, that is: Wherein, θ0 represents the heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system, and arccos(·) represents the inverse cosine function.

10. The indoor and outdoor fusion positioning method based on inertial navigation fusion according to claim 1 is characterized in that: Step S8 specifically includes: The heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system obtained in step S7 and the trajectory displacement of the compensated inertial navigation system is used as the correction angle, and the trajectory displacement of the compensated inertial navigation system is corrected by using the correction angle to obtain the corrected trajectory displacement of the inertial navigation system, that is: Among them, X F ′ represents the trajectory displacement of the corrected inertial navigation system, T represents the transposition, and T i represents the rigid body transformation matrix, X INS represents the trajectory displacement of the compensated inertial navigation system, R i represents the rotation matrix, J represents a 2×1 matrix, sin(·) and cos(·) represent the sine function and cosine function respectively, and θ0 represents the heading angle between the fusion trajectory of the global positioning satellite system and the compensated inertial navigation system and the trajectory displacement of the compensated inertial navigation system.

Citation Information

Cited By

  • Inertial navigation method and system for unmanned aerial vehicle

    CN119958549A

  • Method and device for determining position of user in traffic blind area and electronic equipment

    CN121888363A