Indoor and outdoor positioning method based on RTK / UWB / IMU multi-unit collaborative

Through the RTK/UWB/IMU multi-unit collaboration method, combined with IMU, Kalman filter and TWR algorithm, the problem of indoor and outdoor environmental constraints and UWB signal occlusion is solved, achieving continuous and accurate positioning of indoor and outdoor environments, and improving the accuracy of positioning. Versatility and practicality.

CN114964221BActive Publication Date: 2024-09-20YANSHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210385742.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-13
Publication Date
2024-09-20
Estimated Expiration
2042-04-13

AI Technical Summary

Technical Problem

Existing technologies have environmental constraints in indoor and outdoor positioning. In particular, indoor UWB signal obstruction causes positioning failure, and UWB base stations need to be built in advance, which limits the convenience and versatility of positioning.

Method used

An indoor and outdoor positioning method based on RTK/UWB/IMU multi-unit collaboration is adopted. Through the combination of RTK and UWB, the limitations of building a UWB base station are eliminated, and collaborative positioning can be carried out in various situations in indoor and outdoor environments, using IMU, Carl Mann filter and TWR algorithm to achieve uninterrupted precise positioning.

Benefits of technology

It achieves unconstrained continuous precise positioning in indoor and outdoor environments, improves the versatility and practicality of positioning, enhances positioning capabilities in complex situations, and avoids positioning failures caused by UWB signal obstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114964221B
    Figure CN114964221B
Patent Text Reader

Abstract

The present invention discloses a method for indoor and outdoor positioning based on RTK / UWB / IMU multi-unit collaborative positioning, which belongs to the field of navigation and positioning technology. The system includes a base station and multiple positioning units; the base station includes a computer, a communication base station and an RTK base station running a positioning monitoring host computer software, and each positioning unit includes RTK, UWB, IMU and a communication radio station; the method includes: judging whether the unit is indoors or outdoors by the number of observation satellites of RTK, and in the outdoor case, positioning is performed by loose combination of RTK and IMU; in the indoor case, judging whether UWBs can communicate with each other by the precision factor between UWBs; if UWBs can communicate with each other, first combine RTK to give the same unit UWB coordinates, and then perform tight combination positioning by IMU and UWB; if UWBs cannot communicate with each other, the coordinates are refreshed by an IMU navigation algorithm. The present invention realizes continuous and accurate positioning of indoor and outdoor environments without constraints.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of navigation and positioning technology, in particular to an indoor and outdoor positioning method based on RTK / UWB / IMU multi-unit collaboration. Background Art

[0002] With the development of 5G technology, features such as high speed, low latency, and large connections provide better basic conditions for positioning services, and also create a huge market for positioning services such as location information. For example, the field of autonomous driving requires extremely high positioning accuracy. However, the most well-known GPS positioning is greatly affected by the environment. In complex and diverse environments, positioning signals are often blocked, resulting in insufficient visible satellites and other reasons that cannot meet positioning requirements. In addition, common indoor positioning methods such as UWB and IMU cannot provide accurate earth coordinates or meet precise positioning requirements when used alone. In order to perform continuous and precise positioning without being constrained by indoor and outdoor environments, consider using RTK / UWB / IMU to integrate and complement each other for indoor and outdoor integrated positioning.

[0003] Although there are many fusion positioning methods, the convenience of indoor and outdoor integrated positioning and the complexity of the situation can be further improved and perfected. In the prior art, Chinese invention patent CN112946712 A discloses a positioning system and method based on RTK and UWB, and proposes an indoor and outdoor positioning method that uses UWB and RTK with pre-built UWB base stations and set coordinate signals for outdoor RTK and indoor UWB. The limitation is greatly increased because the UWB base station needs to be arranged in advance; Chinese invention patent CN110645979A discloses an indoor and outdoor seamless positioning method based on GNSS / INS / UWB combination. Although the positioning accuracy is improved by the combination of GNSS and INS outdoors, and the positioning method by the combination of UWB original measurement values ​​and INS indoors, it also needs to build a UWB base station, and if the scene is more complicated, such as the occlusion between indoor UWBs, this indoor positioning method will fail. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an indoor and outdoor positioning method based on RTK / UWB / IMU multi-unit collaborative positioning, which comprehensively considers the integrated positioning method for the unit to be tested from outdoor to indoor, eliminates the limitation of needing to build a UWB base station through the combination of RTK and UWB, and takes various indoor situations into consideration, thus realizing continuous and precise positioning without being constrained by indoor and outdoor environments to a greater extent.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] Based on the RTK / UWB / IMU multi-unit collaborative indoor and outdoor positioning method, the positioning system includes a base station and multiple positioning units, wherein the base station includes a running positioning monitoring processor, a communication base station and an RTK base station, and each positioning unit includes an RTK, UWB, IMU module and a communication radio station. According to the various conditions of the unit under test outdoors or indoors, the multiple positioning units cooperate with each other to continuously give appropriate positioning methods;

[0007] At least four positioning carriers and cooperative positioning carriers equipped with positioning units are placed in places with good RTK signals. After the base station and each positioning unit are powered on, the positioning environment of each positioning unit is determined based on the strength of the RTK and UWB signals, and initial values ​​are assigned to positioning variables. RTK provides satellite positioning signals, and UWB operates under the ranging model to provide distance information between each other.

[0008] The number of RTK observation satellites is used to determine whether the unit is indoors or outdoors. In the outdoor case, loose positioning is performed through RTK and IMU. In the indoor case, the precision factor between UWBs is used to determine whether UWBs can communicate with each other. If UWBs can communicate with each other, RTK is first combined to give UWB coordinates to the same unit, and then tight positioning is performed through IMU and UWB. If UWBs cannot communicate with each other, the coordinates are refreshed through the IMU navigation algorithm.

[0009] A further improvement of the technical solution of the present invention is that the positioning method specifically comprises the following steps:

[0010] Step 1: Update the attitude, speed and position of the measured point through IMU;

[0011] Step 2, determine the number of satellites observed by the RTK of the unit under test. When the number of satellites observed by the RTK of the unit under test is greater than 4, it means that the unit under test is moving outdoors. Loose combined positioning is performed through the RTK and IMU carried by the unit under test to obtain the position information of the unit under test. When the number of satellites observed by the RTK of the unit under test is less than 4, such as the unit under test enters the room, that is, the RTK signal of the unit under test is weak, go to step 3.

[0012] Step 3, determine whether the precision factor of the UWB device is greater than the preset precision threshold. If the precision factor of the UWB is greater than the preset precision threshold, that is, the unit under test entering the room cannot communicate with the UWB of any other unit, then go to step 4; if the precision factor of the UWB is less than the preset precision threshold, that is, there are the following two situations:

[0013] 3.1 When at least one of the UWB modules of the indoor unit under test and the UWB module of the outdoor unit can communicate, the outdoor RTK is used to provide the UWB position information tied to one module, and then the distance information is measured by the TWR algorithm through the outdoor UWB communication with the indoor unit under test, and then the distance information is measured by the IMU and the same outdoor UWB module, and the difference between the measured distance information of the two is used as the measurement input of the Kalman filter, and finally the output difference of the Kalman filter is used to correct the position of the IMU to obtain the position information of the unit under test;

[0014] 3.2 When none of the UWB modules of the indoor unit to be tested can communicate with the UWB modules of the outdoor unit, if the indoor unit to be tested cannot communicate with the UWB of any outdoor unit, consider allowing multiple units to enter the room for collaborative ranging, to ensure that the UWB of the assisting unit entering the room can communicate with at least four outdoor UWBs to obtain its own location information, and then the UWB of the indoor unit that obtains the location information communicates with the UWB of the unit to be tested to obtain the distance information, and then calculates the distance between the IMU and the indoor unit with the known position, and uses the difference between the distances as the input of the Kalman filter, and finally uses the output difference of the Kalman filter to correct the position of the IMU to obtain the location information of the unit to be tested;

[0015] Step 4: Refresh the coordinates using the position before signal loss and the IMU navigation algorithm to obtain more accurate positioning information in a short time.

[0016] The further improvement of the technical solution of the present invention is that in step 1, the IMU calculates the position, velocity and attitude information of the point to be measured at each update time based on the initial position, velocity and attitude information of the point to be measured, combined with the measurement data output by the accelerometer and the gyroscope, and the calculation formulas are as follows:

[0017] Let the quaternion be:

[0018] Q=q0+q1i+q2j+q3k

[0019] Among them, i, j, k are imaginary numbers, and their geometric meaning is understood as a rotation, and q0, q1, q2, q3 are all real numbers;

[0020] The updated differential equation is:

[0021]

[0022]

[0023] in, are the attitude angular rate and output angular rate, is the attitude matrix expressed as quaternion, are the projection of the Earth's rotation angular velocity under the navigation system and the angular velocity of the navigation system relative to the Earth, M′ w(t) is the attitude angular rate The antisymmetric matrix composed of;

[0024] The velocity update uses the specific force equation:

[0025]

[0026] in, is the output of the accelerometer, is the angular velocity component of the Earth's rotation, is the velocity of the carrier relative to the earth, g n is the gravitational acceleration vector;

[0027] The position of the unit under test is updated by integrating the velocity:

[0028]

[0029]

[0030]

[0031] Among them, λ, L, h are the longitude, latitude and height information of the unit to be tested, R N , R M are respectively the local meridian curve radius and the local meridian surface curvature radius, V n , V n Quantity.

[0032] A further improvement of the technical solution of the present invention is that in step 2, when the unit to be tested moves outdoors, the unit to be tested is loosely positioned by IMU and RTK to obtain the position information of the unit to be tested; the RTK / IMU loosely combined positioning algorithm includes:

[0033] The system state vector of the Kalman filter consists of 18 states:

[0034]

[0035] Among them, there are position error δP=[δL,δλ,δh], speed error δV=[V E ,V N ,V U ], attitude angle error Φ=[Φ E ,Φ N ,Φ U ], gyro bias Gyroscope first-order Markov error Accelerometer bias

[0036] The system observation vector of Kalman filtering is:

[0037]

[0038]

[0039] in, is the position measured by IMU, is the position measured by RTK, is the speed measured by IMU, is the speed measured by RTK, is Gaussian white noise;

[0040] H(k) is the measurement matrix, and the formula is as follows:

[0041]

[0042] A further improvement of the technical solution of the present invention is that in step 3, when the unit to be tested moves indoors and there is at least one unobstructed UWB of the indoor unit to be tested and the outdoor UWB, the UWB position information of the same unit is given by outdoor RTK, thereby realizing combined positioning of the unit to be tested by UWB and IMU, and the UWB / IMU tight combined positioning algorithm includes:

[0043] The outdoor RTK is used to provide the UWB position information tied to a module, and then the distance information is measured through the TWR algorithm through the outdoor UWB and the UWB communication of the indoor unit under test. The distance information is then measured through the IMU and the same outdoor UWB module mentioned above. The difference between the measured distance information of the two is used as the measurement input of the Kalman filter. Finally, the output difference of the Kalman filter is used to correct the position of the IMU to obtain the position information of the unit under test.

[0044] The system state vector of the Kalman filter consists of 15 states:

[0045]

[0046] Among them, the attitude angle error Φ=[Φ E ,Φ N ,Φ U ], position error δP=[δL,δλ,δh], speed error δV=[V E ,V N ,V U ], gyro bias error Accelerometer bias error

[0047] The system observation vector of the Kalman filter is:

[0048] Z=[Z1 Z2 Z3…Z n ] T

[0049]

[0050] in, Indicates that the coordinates measured by outdoor RTK are the coordinates of the same unit UWB. represents the current IMU position estimate, represents the distance to the ith UWB measurement base station, and n represents the number of indoor UWBs and outdoor UWBs that can communicate;

[0051] The system measurement equation is:

[0052] Z k+1 =H k+1 X k+1 +V r,k+1

[0053] H k+1 =[0 n×3 J F 0 n×3 0 n×3 0 n×3 ]

[0054]

[0055] Among them, V r represents the system measurement noise, that is, the UWB distance measurement noise, (x Ai y Ai z Ai ) is the coordinate of the same module UWB measured by RTK, (x IMU y IMU z IMU )Tag coordinates solved by the IMU.

[0056] A further improvement of the technical solution of the present invention is that in step 4, when the unit under test moves indoors and the UWB module of the unit under test completely loses communication function with other UWB modules, the coordinates are refreshed according to the position before the signal is lost and the IMU navigation algorithm, thereby obtaining more accurate positioning information in a short time.

[0057] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is:

[0058] 1. The present invention takes into account the entire process of the unit under test from outdoor to indoor.

[0059] 2. The present invention eliminates the limitation of building a UWB base station before using UWB through the combination of RTK and UWB, making UWB mobile instead of fixed, greatly improving the versatility of using UWB for positioning and making it more practical.

[0060] 3. The present invention does not rely on idealized assumptions about indoor conditions. By considering multiple indoor conditions, it achieves unconstrained continuous and precise positioning of indoor and outdoor environments.

[0061] 4. The present invention adopts a collaborative approach of multiple positioning units, thereby enhancing the ability to align the unit under test in complex situations. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 This is a composition diagram of the fusion positioning unit described in the example of the present invention;

[0063] Figure 2 This is a flow chart of the fusion positioning control method described in an example of the present invention;

[0064] Figure 3 It is a composition diagram of the basic units of the positioning system described in the example of the present invention;

[0065] Figure 4 It is an indoor positioning map when there is no obstruction between UWBs in the example of the present invention;

[0066] Figure 5 An indoor positioning map of multi-unit collaboration described in an example of the present invention;

[0067] Figure 6 This is the case in which the unit under test does not have UWB for communication and only relies on the positioning map of the IMU as described in the example of the present invention. DETAILED DESCRIPTION

[0068] The present invention is further described in detail below with reference to the accompanying drawings and embodiments:

[0069] like Figure 1 , 2 As shown in the figure, the indoor and outdoor positioning method based on RTK / UWB / IMU multi-unit collaborative indoor and outdoor positioning is a multi-positioning unit collaborative indoor and outdoor integrated positioning method based on RTK / UWB / IMU fusion.

[0070] like Figure 3As shown in the figure, the indoor and outdoor positioning system based on RTK / UWB / IMU multi-unit collaboration includes a base station and multiple positioning units (i.e., mobile stations), wherein the base station includes a running positioning monitoring processor, a communication base station, and an RTK base station, and each positioning unit (i.e., mobile station) includes RTK, UWB, IMU modules, and a communication radio station; the unit to be tested can be a variety of mobile bodies such as drones, mobile robots, and mechanical dogs, and each unit to be tested contains RTK, UWB, and IMU modules at the same time, and the three modules are installed together at the same position in the center of the unit to be tested, so that the origin of the UWB positioning coordinate system and the IMU sensor measurement coordinate system coincide, wherein the UWB system uses the DWM1000 TOF bilateral two-way ranging algorithm for three-dimensional positioning, and the IMU module is selected as the MPU6050 module. The experimental scene can be an empty factory building, a glass curtain high-rise building, and some buildings. Set the observation priority to: RTK>IMU. First determine the number of observation satellites of the RTK unit under test. When the number of observation satellites of the RTK unit under test is greater than 4, that is, in outdoor conditions, any unit can obtain more accurate positioning information through the combination of RTK and IMU.

[0071] Due to the three-dimensional positioning, the experimental scene can be Figure 4 As shown, when the number of observed satellites of the RTK of the unit under test is less than 4, that is, when the unit under test enters indoors; then determine whether the precision factor of the UWB device is greater than the preset precision threshold. If it is less than, it means that the indoor and outdoor UWB can communicate. The outdoor RTK is used to give the UWB position information bound to a module, and then the outdoor UWB communicates with the UWB of the indoor unit under test through the TWR algorithm to measure the distance information, and then the distance information is measured by the IMU and the same outdoor UWB module mentioned above, and the difference between the measured distance information of the two is used as the measurement input of the Kalman filter, and finally the output difference of the Kalman filter is used to correct the position of the IMU to obtain the position information of the unit under test.

[0072] like Figure 5 As shown, it is considered to allow multiple units to enter the room for collaborative ranging, to ensure that the UWB of the assisting unit entering the room can communicate with at least four outdoor UWBs to obtain its own location information, and then the UWB of the indoor unit that obtains the location information communicates with the UWB of the unit to be tested and obtains the distance information through the TWR ranging algorithm, and then calculates the distance between the IMU and the indoor unit with a known position, and uses the difference between the distances between the two as the input of the Kalman filter, and finally uses the output difference of the Kalman filter to correct the position of the IMU to obtain the location information of the unit to be tested.

[0073] like Figure 6As shown, if the UWB device precision factor is judged to be greater than the preset precision threshold, it means that the unit under test entering the room cannot communicate with any other unit UWB, and the coordinates are refreshed by the position before the signal is lost and the IMU navigation algorithm, so as to obtain more accurate positioning information in a short time.

[0074] The specific implementation steps are as follows:

[0075] Step 1: Use IMU to update the attitude, velocity, and position of the measured point, including:

[0076] Based on the initial position, velocity and attitude information of the test point, IMU combines the measurement data output by the accelerometer and gyroscope to calculate the position, velocity and attitude information of the test point at each update time. The calculation formulas are as follows:

[0077] Let the quaternion be:

[0078] Q=q0+q1i+q2j+q3k

[0079] Among them, i, j, k are imaginary numbers, and their geometric meaning can be understood as a rotation, and q0, q1, q2, q3 are all real numbers.

[0080] The updated differential equation is:

[0081]

[0082]

[0083] in are the attitude angular rate and output angular rate, is the attitude matrix expressed as quaternion, are the projection of the Earth's rotation angular velocity under the navigation system and the angular velocity of the navigation system relative to the Earth, M′ w(t) is the attitude angular rate The antisymmetric matrix.

[0084] The velocity update uses the specific force equation:

[0085]

[0086] in is the output of the accelerometer, is the angular velocity component of the Earth's rotation, is the velocity of the carrier relative to the earth, g n Gravity acceleration vector.

[0087] By integrating the velocity, the position of the unit under test can be updated:

[0088]

[0089]

[0090]

[0091] Among them, λ, L, h are the longitude, latitude and height information of the unit to be tested, R N , R M are respectively the local meridian curve radius and the local meridian surface curvature radius, V n , V n Quantity.

[0092] Step 2: RTK / IMU combined positioning algorithm

[0093] When the unit to be tested moves outdoors, the unit to be tested is loosely positioned by IMU and RTK, thereby obtaining the position information of the unit to be tested;

[0094] The system state vector of the Kalman filter consists of 18 states:

[0095]

[0096] Among them, there are position error δP=[δL,δλ,δh], velocity error (northeast celestial velocity) δV=[V E ,V N ,V U ]、Attitude angle error Φ=[Φ E ,Φ N ,Φ U ], gyro bias Gyroscope first-order Markov error Accelerometer bias

[0097] The system observation vector of the Kalman filter is:

[0098]

[0099]

[0100] in, is the position measured by IMU, is the position measured by RTK, is the speed measured by IMU, is the speed measured by RTK, is Gaussian white noise;

[0101] H(k) is the measurement matrix, and the formula is as follows:

[0102]

[0103] Step 3: UWB / IMU tight combination positioning algorithm

[0104] When the unit under test moves indoors and at least one of the UWB of the indoor unit under test and the outdoor UWB is unobstructed, the UWB position information of the same unit is given by outdoor RTK, thereby realizing combined positioning of the unit under test by UWB and IMU, including:

[0105] The outdoor RTK is used to provide the UWB position information tied to a module, and then the distance information is measured through the TWR algorithm through the outdoor UWB and the UWB communication of the indoor unit under test. The distance information is then measured through the IMU and the same outdoor UWB module mentioned above. The difference between the measured distance information of the two is used as the measurement input of the Kalman filter. Finally, the output difference of the Kalman filter is used to correct the position of the IMU to obtain the position information of the unit under test.

[0106] The system state vector of the Kalman filter consists of 15 states:

[0107]

[0108] Among them, the attitude angle error Φ=[Φ E ,Φ N ,Φ U ], position error δP=[δL,δλ,δh], speed error δV=[V E ,V N ,V U ], gyro bias error Accelerometer bias error

[0109] The system observation vector of the Kalman filter is:

[0110] Z=[Z1 Z2 Z3…Z n ] T

[0111]

[0112] in, Indicates that the coordinates measured by outdoor RTK are the coordinates of the same unit UWB. represents the current IMU position estimate, represents the distance to the ith UWB measurement base station, and n represents the number of indoor UWBs and outdoor UWBs that can communicate;

[0113] The system measurement equation is:

[0114] Zk+1 =H k+1 X k+1 +V r,k+1

[0115] H k+1 =[0 n×3 J F 0 n×3 0 n×3 0 n×3 ]

[0116]

[0117] Among them, V r represents the system measurement noise, that is, the UWB distance measurement noise, (x Ai y Ai z Ai ) is the coordinate of the same module UWB measured by RTK, (x IMU y IMU z IMU )Tag coordinates calculated by IMU:

[0118] Step 4: IMU navigation and positioning algorithm refreshes the position.

[0119] When the unit under test moves indoors and the UWB module of the unit under test completely loses communication function with other UWB modules, the coordinates are refreshed according to the position before the signal is lost and the IMU navigation algorithm, so as to obtain more accurate positioning information in a short time.

[0120] The embodiment of the present invention describes a complete process of the unit under test entering indoors from outdoors:

[0121] Initially, when the unit under test is in an outdoor environment, a loose combination method is used to perform Kalman filtering to improve accuracy, as follows: when the RTK is working normally, the difference between the IMU and its position and velocity is sent to the Kalman filter as measurement information, and then the IMU error is estimated and corrected by the filter.

[0122] When the unit under test enters the indoor environment when it is in the outdoor environment, if there is at least one indoor unit under test and outdoor unit under test that can communicate, the position information of the unit under test is obtained by using a tightly combined Kalman filter, specifically as follows: the UWB position information of the same unit is given through outdoor RTK, and then the outdoor UWB and the UWB of the unit under test are used to perform TWR ranging algorithm to obtain distance information, and the distance obtained between the UWBs is subtracted from the distance between the IMU of the unit under test and the same outdoor UWB that can communicate with it, and the difference is used as the measurement input of the Kalman filter, and the output value of the Kalman filter is used to correct the solution result of the IMU.

[0123] If the unit under test is indoors and the UWB of the unit under test cannot communicate with any outdoor UWB, the position information is refreshed through its own IMU integration.

[0124] In summary, the present invention comprehensively considers an integrated positioning method for the unit to be tested to enter indoors from outdoors. The existing UWB usage methods all require the construction of a UWB base station in advance, while this method eliminates the limitation of needing to build a UWB base station through the combination of RTK and UWB; and multiple indoor situations are discussed, thus achieving continuous and precise positioning to a greater extent without being constrained by indoor and outdoor environments.

[0125] The implementation examples described above are only preferred embodiments of the present invention and are not intended to limit the scope of implementation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made based on the shape and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. Based on RTK / UWB / IMU multi-unit collaborative indoor and outdoor positioning method, characterized by: The positioning system includes a base station and multiple positioning units, wherein the base station includes a positioning monitoring processor, a communication base station and an RTK base station, and each positioning unit includes an RTK, UWB, IMU module and a communication radio station. According to the various conditions of the unit under test outdoors or indoors, the multiple positioning units cooperate with each other to continuously provide appropriate positioning methods; At least four positioning carriers and cooperative positioning carriers equipped with positioning units are placed in places with good RTK signals. After the base station and each positioning unit are powered on, the positioning environment of each positioning unit is determined based on the strength of the RTK and UWB signals, and initial values ​​are assigned to positioning variables. RTK provides satellite positioning signals, and UWB operates under the ranging model to provide distance information between each other. The number of RTK observation satellites is used to determine whether the unit is indoors or outdoors. In the outdoor case, loose positioning is performed through RTK and IMU. In the indoor case, the precision factor between UWBs is used to determine whether UWBs can communicate with each other. If UWBs can communicate with each other, RTK is first combined to give UWB coordinates to the same unit, and then tight positioning is performed through IMU and UWB. If UWBs cannot communicate with each other, the coordinates are refreshed through the IMU navigation algorithm.

2. The RTK / UWB / IMU multi-unit collaborative indoor and outdoor positioning method according to claim 1, characterized in that: The positioning method specifically comprises the following steps: Step 1: Update the attitude, speed and position of the measured point through IMU; Step 2, determine the number of satellites observed by the RTK of the unit under test. When the number of satellites observed by the RTK of the unit under test is greater than 4, it means that the unit under test is moving outdoors. Loose combined positioning is performed through the RTK and IMU carried by the unit under test to obtain the position information of the unit under test. When the number of satellites observed by the RTK of the unit under test is less than 4, such as the unit under test enters the room, that is, the RTK signal of the unit under test is weak, go to step 3. Step 3, determine whether the precision factor of the UWB device is greater than the preset precision threshold. If the precision factor of the UWB is greater than the preset precision threshold, that is, the unit under test entering the room cannot communicate with the UWB of any other unit, then go to step 4; if the precision factor of the UWB is less than the preset precision threshold, that is, there are the following two situations: 3.1 When at least one of the UWB modules of the indoor unit under test and the UWB module of the outdoor unit can communicate, the outdoor RTK is used to provide the UWB position information tied to one module, and then the distance information is measured by the TWR algorithm through the outdoor UWB communication with the indoor unit under test, and then the distance information is measured by the IMU and the same outdoor UWB module, and the difference between the measured distance information of the two is used as the measurement input of the Kalman filter, and finally the output difference of the Kalman filter is used to correct the position of the IMU to obtain the position information of the unit under test; 3.2 When none of the UWB modules of the indoor unit to be tested can communicate with the UWB modules of the outdoor unit, if the indoor unit to be tested cannot communicate with the UWB of any outdoor unit, consider allowing multiple units to enter the room for collaborative ranging, to ensure that the UWB of the assisting unit entering the room can communicate with at least four outdoor UWBs to obtain its own location information, and then the UWB of the indoor unit that obtains the location information communicates with the UWB of the unit to be tested to obtain the distance information, and then calculates the distance between the IMU and the indoor unit with the known position, and uses the difference between the distances as the input of the Kalman filter, and finally uses the output difference of the Kalman filter to correct the position of the IMU to obtain the location information of the unit to be tested; Step 4: Refresh the coordinates using the position before signal loss and the IMU navigation algorithm to obtain more accurate positioning information in a short time.

3. The RTK / UWB / IMU multi-unit collaborative indoor and outdoor positioning method according to claim 2, characterized in that: In step 1, the IMU calculates the position, velocity and attitude information of the test point at each update time based on the initial position, velocity and attitude information of the test point, combined with the measurement data output by the accelerometer and gyroscope. The calculation formulas are as follows: Let the quaternion be: Q=q0+q1i+q2j+q3k Among them, i, j, k are imaginary numbers, and their geometric meaning is understood as a kind of rotation, and q0, q1, q2, q3 are all real numbers; The updated differential equation is: in, are the attitude angular rate and output angular rate, is the attitude matrix expressed as quaternion, are the projection of the Earth's rotation angular velocity under the navigation system and the angular velocity of the navigation system relative to the Earth, M′ w(t) is the attitude angular rate The antisymmetric matrix composed of The velocity update uses the specific force equation: in, is the output of the accelerometer, is the angular velocity component of the Earth's rotation, is the velocity of the carrier relative to the earth, g n is the gravitational acceleration vector; The position of the unit under test is updated by integrating the velocity: Among them, λ, L, h are the longitude, latitude and height information of the unit to be tested, R N , R M are respectively the local meridian curve radius and the local meridian surface curvature radius, V n , V n Quantity.

4. The RTK / UWB / IMU multi-unit collaborative indoor and outdoor positioning method according to claim 2, characterized in that: In step 2, when the unit under test moves outdoors, the unit under test is loosely positioned by IMU and RTK to obtain the position information of the unit under test; The RTK / IMU combined positioning algorithm includes: The system state vector of the Kalman filter consists of 18 states: Among them, there are position error δP=[δL,δλ,δh], speed error δV=[V E ,V N ,V U ], attitude angle error Φ=[Φ E ,Φ N ,Φ U ], gyro bias Gyroscope first-order Markov error Accelerometer bias The system observation vector of Kalman filtering is: in, is the position measured by IMU, is the position measured by RTK, is the speed measured by IMU, is the speed measured by RTK, is Gaussian white noise; H(k) is the measurement matrix, and the formula is as follows:

5. The RTK / UWB / IMU multi-unit collaborative indoor and outdoor positioning method according to claim 2, characterized in that: In step 3, when the unit under test moves indoors and there is at least one unobstructed UWB of the indoor unit under test and the outdoor UWB, the UWB position information of the same unit is given by outdoor RTK, thereby realizing combined positioning of the unit under test by UWB and IMU. The UWB / IMU tight combined positioning algorithm includes: The outdoor RTK is used to provide the UWB position information tied to a module, and then the distance information is measured through the TWR algorithm through the outdoor UWB and the UWB communication of the indoor unit under test. The distance information is then measured through the IMU and the same outdoor UWB module mentioned above. The difference between the measured distance information of the two is used as the measurement input of the Kalman filter. Finally, the output difference of the Kalman filter is used to correct the position of the IMU to obtain the position information of the unit under test. The system state vector of the Kalman filter consists of 15 states: Among them, the attitude angle error Φ=[Φ E ,Φ N ,Φ U ], position error δP=[δL,δλ,δh], speed error δV=[V E ,V N ,V U ], gyro bias error Accelerometer bias error The system observation vector of the Kalman filter is: Z=[Z1 Z2 Z3…Z n ] T in, Indicates that the coordinates measured by outdoor RTK are the coordinates of the same unit UWB. represents the current IMU position estimate, represents the distance to the ith UWB measurement base station, and n represents the number of indoor UWBs and outdoor UWBs that can communicate; The system measurement equation is: Z k+1 =H k+1 X k+1 +V r,k+1 H k+1 =[0 n×3 J F 0 n×3 0 n×3 0 n×3 ] Among them, V r represents the system measurement noise, that is, the UWB distance measurement noise, (x Ai y Ai z Ai ) is the coordinate of the same module UWB measured by RTK, (x IMU y IMU z IMU )Tag coordinates solved by the IMU.

6. The RTK / UWB / IMU multi-unit collaborative indoor and outdoor positioning method according to claim 2, characterized in that: In step 4, when the unit under test moves indoors and the UWB module of the unit under test completely loses communication function with other UWB modules, the coordinates are refreshed according to the position before the signal is lost and the IMU navigation algorithm, thereby obtaining more accurate positioning information in a short time.