A multi-mode fusion unmanned aerial vehicle positioning method, device and medium
Through the multi-mode fusion drone positioning method, point cloud data and ray tracing algorithms are used to divide open-air building areas, and the positioning method is dynamically switched by combining GNSS and UWB signals, which solves the problem of insufficient accuracy of traditional positioning methods in special buildings and achieves achieve higher positioning accuracy and reliability.
Patent Information
- Application Number
- CN202410968605.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-19
AI Technical Summary
The traditional single positioning method is difficult to meet the positioning accuracy requirements of open-air buildings and drones that frequently enter and exit buildings. It is especially difficult to ensure positioning accuracy when the GNSS signal strength changes in special buildings.
A multi-mode fusion UAV positioning method is used to obtain the point cloud data of the building, divide the open-air area based on the ray tracing algorithm, combine the GNSS and UWB signal strength to divide the area, and set up a UWB base station at the vertical height to dynamically switch the positioning method to adapt to regional changes.
It improves the accuracy and reliability of positioning drones in open-air buildings. By pre-dividing areas and adjusting positioning methods, it ensures the accurate positioning of drones in different areas and reduces the risk of frequent changes in positioning methods.
Smart Images

Figure CN118500385B
Abstract
Description
Technical Field
[0001] The present application relates to the field of drone positioning, and specifically to a multi-mode fusion drone positioning method, device and medium. Background Art
[0002] With the development of technology, drones are gradually used to perform various tasks, especially in some large buildings, helping users to perform tasks such as shooting and inspection.
[0003] Generally speaking, when a drone is performing a mission, whether it is through manual operation or automated operation with a pre-set work route, it is necessary to position the drone.
[0004] At present, for different buildings, corresponding positioning methods can be used to ensure the accuracy of drone positioning. For example, in some open-air areas, or when positioning the outer areas of buildings, the Global Navigation Satellite System (GNSS) is usually used for positioning. In indoor areas, Ultra Wide Band (UWB) positioning can be used for positioning.
[0005] However, for some special buildings (for example, open-air buildings), or situations where frequent entry and exit of buildings is required, it is difficult to meet the requirements for positioning accuracy through traditional single positioning methods. Summary of the invention
[0006] In order to solve the above problems, this application proposes a multi-mode fusion UAV positioning method, including:
[0007] Acquire point cloud data of a target building, wherein the target building is an open-air building, and the building area corresponding to the target building includes an open-air area and a non-open-air area, and the open-air area refers to a space area that is directly connected to the outside world;
[0008] Based on the point cloud data, the open-air area is divided into a first sub-area, a second sub-area, and a third sub-area according to the reception strength of the GNSS signal from high to low by using a ray tracing algorithm;
[0009] Based on the point cloud data, the target building is divided into a plurality of height levels in vertical height, and a UWB base station is set for each height level, wherein at least one UWB base station is set in a non-open-air area of each height level;
[0010] Based on the area where the UAV is located in the building area, a corresponding positioning method is selected to position the UAV, and when the area changes, the positioning method is switched; wherein the positioning method includes: GNSS positioning method and / or UWB positioning method.
[0011] On the other hand, the present application also proposes a multi-mode fusion UAV positioning device, including:
[0012] at least one processor; and,
[0013] a memory communicatively connected to the at least one processor; wherein,
[0014] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: the multi-mode fusion drone positioning method described in the above example.
[0015] On the other hand, the present application also proposes a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as: the multi-mode fusion drone positioning method described in the above example.
[0016] The multi-mode fusion UAV positioning method proposed in this application can bring the following beneficial effects:
[0017] For special buildings (for example, open-air buildings), the areas contained in them are divided according to the GNSS signal strength, so that different positioning methods can be used for different areas in a targeted manner, ensuring the requirements for positioning accuracy.
[0018] Moreover, compared with the process in which the drone temporarily determines the signal strength and thus changes its own positioning method, the positioning method can be changed in advance based on the area division, thereby further ensuring the positioning accuracy of the drone. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 This is a flow chart of a multi-mode fusion UAV positioning method in an embodiment of the present application;
[0021] Figure 2 This is a schematic diagram of a multi-mode fusion drone positioning device in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0023] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0024] like Figure 1 As shown, the embodiment of the present application provides a multi-mode fusion drone positioning method, including:
[0025] S101: Acquire point cloud data of a target building, wherein the target building is an open-air building, and the building area corresponding to the target building includes an open-air area and a non-open-air area, and the open-air area refers to a space area that is directly connected to the outside world.
[0026] Open-air buildings refer to buildings that are at least partially exposed to the outside environment and do not have completely enclosed exterior walls and roofs. For example, they can be open-air theaters, open-air stadiums, etc. The open-air area refers to a space area that is directly connected to the outside world, that is, a space area that can be directly reached from the outside of the target building without passing through obstacles (such as walls, doors, windows, pipes, etc.).
[0027] When collecting point cloud data, drones equipped with LiDAR can perform corresponding flight missions to collect corresponding data, and then process them with dedicated software to obtain point cloud data. After the collection is completed, since the amount of point cloud data is usually extremely high and a lot of computing power is consumed during processing, the point cloud data can also be reduced in dimension based on demand, for example, through principal component analysis (PCA), clustering, grid sampling, downsampling, etc. Taking grid sampling as an example, the size of the grid is defined, and the point cloud data is divided into three-dimensional grids. Each three-dimensional grid is replaced by a representative point (for example, the center point of the grid), thereby reducing the amount of data and achieving data dimensionality reduction.
[0028] S102: Based on the point cloud data, by using a ray tracing algorithm, the open-air area is divided into a first sub-area, a second sub-area, and a third sub-area according to the reception strength of the GNSS signal from high to low.
[0029] The reception strength of GNSS signals can be obtained by actually testing them in an open-air area using a drone. However, open-air areas are usually large in size, and actual testing using a drone is not only inefficient but also prone to missed tests.
[0030] Specifically, based on the point cloud data, 3D modeling is performed to obtain the 3D model corresponding to the target building, and the corresponding material properties are set for the 3D model. When performing 3D modeling, a surface model can be generated based on the point cloud data through Poisson surface reconstruction, and point cloud data can be converted into cubic elements through voxelization to generate a volume model, thereby realizing the construction of a 3D model.
[0031] Of course, based on the obtained 3D model, model optimization can also be performed, such as cleaning and repairing the geometry converted from the point cloud, filling holes and correcting surface irregularities.
[0032] The open-air area in the three-dimensional model is divided into multiple space blocks, the volume of the space blocks is fixed, and multiple rays are uniformly emitted outward for each space block, and an equal initial signal strength is set for each ray, for example, the initial signal strength can be quantized to 1. When emitting rays outward, the center point in the space block can be selected as the emission point of the ray, or a point on the surface of the space block that is perpendicular to the ray can be selected as the emission point.
[0033] After the spatial block emits a ray, the path of the ray in the three-dimensional model is tracked. If the ray hits an obstacle in the three-dimensional model, the ray is split into two rays, one ray penetrates the obstacle and continues to move forward, and the other ray continues to move forward after being reflected by the obstacle.
[0034] Among them, the direction of travel of the ray penetrating the obstacle can be determined based on the refraction direction of the obstacle (the refraction direction is determined by the refractive index of air and the obstacle), and the direction of travel of the ray reflected by the obstacle can be obtained based on the incident direction of the incident angle and the normal to obtain the direction of the reflection angle, as the direction of travel of the reflected ray.
[0035] For the ray, the energy loss of the ray is calculated based on the path loss model, the reflection loss model, and the penetration loss model to determine the residual signal strength of the ray.
[0036] Among them, the material properties include: signal absorption rate, signal reflection gain, and penetration loss coefficient.
[0037] The path loss model refers to the loss caused when the signal propagates in the air. The path loss model includes: ,in, is the path loss value of the GNSS signal, is the distance traveled by the ray, f is the frequency of the GNSS signal, and A is a constant. Generally speaking, A defaults to , c is the speed of light.
[0038] The reflection loss model refers to the loss caused by the reflection of rays on the surface of obstacles. The reflection loss model includes: ,in, is the reflection loss value of the GNSS signal, is the signal absorption rate at frequency f, and the signal absorption rate may change with the change of frequency, which can be obtained by Sure, For a known frequency Given the known signal absorption rate under Unknown frequency The unknown signal absorption rate under is the frequency dependence index, which is a positive number greater than 1; G is the signal reflection gain, and S is the residual signal strength when reaching the obstacle.
[0039] Among them, for the signal, when it reaches the obstacle, the remaining signal strength will be split into two parts, one part is absorbed and continues to penetrate the obstacle, which can be based on the signal absorption rate The remaining part of the signal is reflected on the surface of the obstacle. The reflection loss model is aimed at calculating the loss of the reflected signal.
[0040] The signal reflection gain can be obtained based on the surface reflection coefficient and frequency response. The surface reflection coefficient is affected by many factors, such as the surface roughness, the incident angle, etc. The surface roughness determines the degree of scattering of light on the surface. When the surface is smoother, the light is more likely to be reflected, and the surface reflection coefficient is higher. When the surface is rougher, the light is more likely to be scattered and absorbed, and the surface reflection coefficient is lower. The incident angle will also affect the surface reflection coefficient. When the light is incident vertically, the surface reflection coefficient is higher, and when the light is incident obliquely, the surface reflection coefficient is lower.
[0041] Frequency response means that the response of a material at different frequencies will affect the size of its signal reflection gain. Some materials may exhibit higher reflection capabilities in a specific frequency band, but may absorb more energy in other frequency bands. It is only set for some special materials.
[0042] In general, for most materials, the higher the surface reflection coefficient, the higher the signal reflection gain. At this time, the more signal energy is reflected, and the higher the reflection loss value is.
[0043] The penetration loss model refers to the loss of rays when they penetrate obstacles. The penetration loss model is aimed at calculating the loss of the part of the signal that continues to penetrate, which includes: ,in, is the penetration loss value of the GNSS signal, is the signal absorption rate at frequency f, S is the residual signal strength when reaching the obstacle, is the penetration loss coefficient, is the penetration thickness of the obstacle.
[0044] Among them, the penetration loss coefficient It can be obtained based on the complex dielectric constant of the material (including dielectric constant and conductivity). The dielectric constant determines the capacitance and polarization response of electromagnetic waves in the material, while the conductivity determines the material's ability to conduct current. Generally, the larger the dielectric constant, the slower the propagation speed of electromagnetic waves in the material and the higher the penetration loss. The higher the conductivity, the more conductive the material is, the stronger the signal absorption ability is, and the higher the penetration loss is.
[0045] It should be noted that the signal reflection gain, penetration loss coefficient, etc. of different materials can be obtained based on the corresponding scientific database or by conducting corresponding targeted experiments.
[0046] For a ray, after it leaves the space block, when it moves in the air, the signal loss is calculated based on the path loss model, and the initial signal strength is subtracted from the loss to obtain the residual signal strength. When it reaches the obstacle, it is split into two rays, one of which is a reflected ray with a loss calculated based on the reflection loss model, and the other is a penetrating ray with a loss calculated based on the penetration loss model. Based on the residual signal strength when it reaches the obstacle surface, it is split into two signal strengths, and the new residual signal strength is calculated based on the loss.
[0047] Of course, the signal strength calculation here is only a simulation of the signal and cannot represent the actual propagation of the signal. It is only through this calculation method that reverse deduction can be used to roughly judge the signal receiving capability of each space block, so as to divide the open-air area into sub-areas.
[0048] For each ray, if the remaining signal strength of the ray drops to the preset strength (for example, to 10%~30%), it is considered that the signal strength brought by the ray is difficult to achieve the positioning function, and the tracking of the ray is stopped. If the ray reaches the outer edge of the building area, it is considered that the ray has reached the end point and the tracking is also stopped.
[0049] At this time, for the space block, among all the rays reaching the outer edge, sort all the rays from high to low according to the residual signal strength, select the ray with the highest residual signal strength as the first ray, and traverse the remaining rays in order from high to low according to the residual signal strength, so as to select the ray that meets the angle interval requirement as the next ray, until the number of selected rays reaches the preset number; wherein the angle interval requirement means that the angle interval between the newly selected ray and the other selected rays is higher than the preset angle (for example, 5 degrees). Of course, if the ray is a ray obtained by reflection, the ray after reflection can be used as the comparison ray.
[0050] In this way, several rays with the highest remaining signal strength can be selected, and the angles between the rays have a certain difference, thereby simulating the scene in which multiple satellites locate the same target during actual GNSS positioning.
[0051] At this time, for the spatial block, the residual signal strength of the selected preset number of rays is averaged as the receiving strength of the GNSS signal corresponding to the spatial block, so that each spatial block can be divided into the first sub-area, the second sub-area, and the third sub-area according to the receiving strength from high to low based on the receiving strength. For example, the range of the receiving strength of each sub-area is preset as follows: taking the initial signal strength of 1 as an example, the receiving strength of the first sub-area is (0.8, 1), the receiving strength of the second sub-area is (0.5, 0.8), and the receiving strength of the third sub-area is (0, 0.5).
[0052] S103: Based on the point cloud data, the target building is divided into a plurality of height levels in vertical height, and a UWB base station is set for each height level, wherein at least one UWB base station is set in a non-open-air area of each height level.
[0053] If the target building has a corresponding height division (for example, it has been divided into floors), the height levels are divided according to the floor division method, and one floor corresponds to one height level. If there is no corresponding height division, a certain height (for example, 3~10 meters) can be used as a height level.
[0054] Generally speaking, UWB base stations are preferably set up in non-open-air areas to ensure the best positioning effect when using UWB positioning in non-open-air areas. Of course, if there are corresponding buildings in the open-air area, UWB base stations can also be set up in the open-air area.
[0055] Specifically, for each height level, determine the size of the space corresponding to the height level and the area ratio of the non-open-air area in the height level.
[0056] Based on the size of the space, determine the recommended number of UWB base stations corresponding to the height level. Generally speaking, the larger the space, the more UWB base stations are required, and the higher the recommended number is. The actual number of UWB base stations that need to be set can be modified based on expert experience and the actual situation of the building. For example, if there are many obstacles at this height level and the building pattern is complex, the number of UWB base stations can be increased from the recommended number.
[0057] The order of base station settings is determined based on the area ratio of the non-open-air area. Generally speaking, the larger the area ratio of the non-open-air area, the more it requires UWB positioning at this altitude level, so the higher the order of base station settings.
[0058] At this time, according to the order of base station setting, the UWB base stations are evenly set in the height level in the horizontal direction. The specific setting position here can be set manually, and the uniform setting refers to the uniform setting within the allowable error distance, and it is not required to be absolutely uniform. In addition, the distance between the newly set UWB base station and the already set UWB base station meets the preset distance range limit, that is, it will not be too far or too close to the already set UWB base station, which makes it difficult for UWB positioning to find the UWB base station or the UWB base station setting is redundant.
[0059] S104: Based on the area where the UAV is located in the building area, select a corresponding positioning method to position the UAV, and when the area changes, switch the positioning method; wherein the positioning method includes: GNSS positioning method and / or UWB positioning method.
[0060] When the drone is actually working, the starting point of the drone is usually known, so the initial location of the drone can be determined, and the corresponding method can be selected for positioning, and the positioning method can be switched as the location of the positioning result changes. The positioning method can be a single method or a combination of multiple modes.
[0061] Specifically, when the area where the drone is located is not an open-air area, it is generally believed that the GNSS signal strength is the worst at this time, so only the UWB positioning method is selected to locate the drone.
[0062] When the UAV is located in the third sub-area, considering that the GNSS signal strength is poor and the UWB signal strength is also slightly worse than that in the non-open-air area, the UWB positioning method is used as the main positioning method, and the GNSS positioning method is used as the secondary positioning method. The main positioning method is corrected by the secondary positioning method, so that the UAV can be positioned by combining the two positioning methods.
[0063] When the drone's area is the second sub-area, considering that the GNSS signal strength becomes stronger and the distance from the UWB base station is usually farther, making the UWB signal strength weaker, the GNSS positioning method is used as the main positioning method, and the UWB positioning method is used as the secondary positioning method. The main positioning method is corrected by the secondary positioning method to locate the drone.
[0064] When the drone is located in the first sub-area, considering that the GNSS signal strength is the strongest at this time and it is often the farthest away from the UWB base station, the UWB signal strength is the weakest, so only the GNSS positioning method is selected to locate the drone.
[0065] Among them, when selecting the UWB positioning method for positioning, the UWB base stations at the same altitude level can be given priority based on the altitude level of the drone. When the number of UWB base stations at the same altitude level is insufficient, the UWB base stations at the adjacent altitude level can be given priority, and so on, until a sufficient number (usually 3 to 5) of UWB base stations are selected. Of course, after determining the altitude level, the UWB base stations that are closer can be given priority for positioning.
[0066] Furthermore, when the main positioning method is corrected by the secondary positioning method, the first positioning result obtained by the main positioning method and the second positioning result obtained by the secondary positioning method can be obtained first.
[0067] At this time, if the difference between the second positioning result and the first positioning result is lower than a preset difference (which can be set based on actual conditions, for example, it can be set to 1 to 5 meters), it can be considered that the position error between the two is low. At this time, both positioning results can be trusted.
[0068] According to the weights corresponding to the first positioning result and the second positioning result, the first positioning result and the second positioning result are weighted and summed to obtain the final positioning result of the drone. Among them, since the signal strength corresponding to the main positioning method is stronger, the weight of the first positioning result is higher than the weight of the second positioning result. The weights of the two can be set to fixed values, for example, 0.7 and 0.3 respectively. Of course, it can also be set that the closer the first positioning result is to the boundary line between the second sub-area and the third sub-area, the closer the trust level of the first positioning result and the second positioning result is, that is, the lower the weight of the first positioning result, until the boundary line between the second sub-area and the third sub-area is reached, the weights of the two can be considered equal, both 0.5.
[0069] In addition, during weighted summation, the position information in the three directions of x, y, and z in the positioning result may be weighted summed respectively to obtain the final positioning result.
[0070] Of course, if the position error between the second positioning result and the first positioning result is higher than the preset difference, it is considered that there may be a positioning result with a larger position error. Due to the relationship between the signal strength, it can be considered that the position error of the second positioning result of the secondary positioning method is larger.
[0071] At this time, determine the specified time corresponding to the last position error lower than the preset difference, and obtain the first actual state vector corresponding to the specified time. The dimensions of the state vector (including the first actual state vector here, and the second actual state vector and the estimated state vector below) include the positioning result and the flight state, and the flight state includes: speed, acceleration, attitude, deviation (referring to the possible deviation value of speed, acceleration or attitude, which is obtained based on the test) at least one.
[0072] At this time, based on , taking the first actual state vector as input, we get the estimated state vector corresponding to the current moment. is the estimated state vector corresponding to the current moment, is the first actual state vector corresponding to the specified time, The control input at a specified time (the control input refers to the instruction to change the flight state of the drone at a specified time), is the preset aircraft motion equation. Among them, since the time from the specified moment to the current moment is usually short (because the acquisition cycle is usually short), the distance is also short. The aircraft motion equation can be set to a relatively simple uniform velocity equation (assuming that the aircraft is basically in uniform motion within this distance), acceleration equation (assuming that the aircraft is basically in fixed acceleration within this distance). Of course, it can also include other flight dynamics equations or multiple flight dynamics equations, such as the motion equation (describing the relationship between the position and velocity of the drone over time), the rotation equation (describing the relationship between the attitude and angular velocity of the drone over time), and the aerodynamic equation (describing the relationship between the force and torque distribution of the drone). Through the flight dynamics equation, the state vector at the specified moment can be used as input to estimate the state vector at the current moment.
[0073] Then, the second actual state vector corresponding to the current moment is obtained (which can be obtained through the corresponding sensor, the second positioning result, etc.), and based on , update the estimated state vector.
[0074] in, is the estimated state vector corresponding to the current moment, that is, through Got it. is the update value of the estimated state vector, K is the Kalman gain, is the second actual state vector, is a mapping function used to map the estimated state vector to the measurement space corresponding to the second actual state vector.
[0075] Although the second actual state vector can be directly mapped to the state space, in practical applications, due to the noise and error that the second actual state vector may contain and the possible nonlinear characteristics of the drone, the mapping function , the second actual state vector is mapped into the measurement space, and the measurement residual is converted into an updated value of the state space through the Kalman gain, so as to update and correct the estimated state vector, so that it can adapt to various complex practical situations and system characteristics while maintaining the theoretical advantages of the Kalman filter.
[0076] At this time, the third positioning result in the updated value of the estimated state vector (including multiple dimensions) is obtained and used as the updated value of the second positioning result, thereby reducing the problem of poor accuracy of the final positioning result caused by excessive position error of the second positioning result.
[0077] According to the weights corresponding to the first positioning result and the third positioning result, the first positioning result and the third positioning result are weighted and summed to obtain the final positioning result of the UAV. Among them, the third positioning result is used as the update value of the second positioning result, and its weight is the same as the weight of the second positioning result.
[0078] In addition, before updating the estimated state vector, the Kalman gain needs to be determined first.
[0079] Specifically, through the covariance matrix Describes the distribution shape of the position error in each dimension, where x, y, and z are the coordinate directions of the measurement space. , , are the error sizes in the x, y, and z directions respectively, , , They represent the covariance of the errors in the x- and y-directions, the x- and z-directions, and the y- and z-directions, respectively. When the covariance is positive or negative, it indicates that the two corresponding coordinate directions are positively correlated or negatively correlated. When the covariance is 0, it indicates that the two corresponding coordinate directions are uncorrelated.
[0080] In Kalman filtering, although the state vector contains multiple dimensions, since the most important thing at this time is the position information, we choose to only focus on the relevant dimensions of the position information to perform state estimation and update. Combined with the properties of Kalman filtering, the state and measurement information of other dimensions will still indirectly affect the update amount of the position information. That is, while mainly considering the position information, the impact of other dimensions on the position information is still taken into account.
[0081] At this time, for the second positioning result, determine its corresponding covariance matrix Defined and based on Get the Kalman gain, where is the Kalman gain, is the covariance matrix, is the Jacobian matrix corresponding to the current moment, for The transposed matrix of is the measurement noise covariance matrix at the current moment.
[0082] The initial value of the covariance matrix can be set based on expert experience and actual conditions on site. When the positioning accuracy of the positioning result is very certain and has a very high confidence, the initial covariance matrix can be set to a zero matrix. Of course, if the positioning result has a lower confidence, the initial value of the covariance matrix of the positioning result can be set to a diagonal matrix with a corresponding value, and the larger the initial value, the lower the confidence in the positioning result. Of course, after obtaining the Kalman gain, it can also be based on Update the covariance matrix, where is the updated value of the covariance matrix, and I is the identity matrix.
[0083] The Jacobian matrix can be formed into rows by calculating the partial derivatives of the state variables of each dimension in the second actual state vector. The measurement noise covariance matrix describes the characteristics of the uncertainty or noise that may exist in the measurement process of the second actual state vector. It is usually determined by the user through statistical methods based on the dynamic characteristics of the relevant system (for example, the positioning system corresponding to the secondary positioning method, the UAV control system, etc.) and the experience or measured data, historical data, etc. in actual applications.
[0084] For special buildings (for example, open-air buildings), the areas contained in them are divided according to the GNSS signal strength, so that different positioning methods can be used for different areas in a targeted manner, ensuring the requirements for positioning accuracy.
[0085] Moreover, compared with the process in which the drone temporarily determines the signal strength and thus changes its own positioning method, the positioning method can be changed in advance based on the area division, thereby further ensuring the positioning accuracy of the drone.
[0086] In one embodiment, when the area changes, the positioning mode needs to be switched. It can be changed directly after crossing the boundary line of the area. However, this method is relatively sudden, and there may be a need for a rainy work route. The drone shuttles back and forth across the boundary line, resulting in frequent changes in positioning methods.
[0087] Therefore, when switching the positioning mode, the current area where the drone is located is determined, and it is determined that the drone has reached the boundary range between the current area and other areas; the boundary range is the range within the first preset distance (for example, 10 to 50 meters) near the boundary line between the current area and other areas, and it is considered that the drone has the possibility of crossing the boundary line.
[0088] At this time, if the current area is a non-open-air area or the first sub-area, it is determined that the drone is positioned through a separate current positioning method (positioned through UWB positioning method and GNSS positioning method respectively), and another positioning method is started to position the drone.
[0089] Before the drone crosses the boundary and continues to be positioned for a preset time (for example, 5 to 10 seconds), it is still positioned using the current positioning method. After the drone crosses the boundary and continues to be positioned for a preset time, the current positioning method is used as the main positioning method, and the other positioning method is used as the secondary positioning method. The secondary positioning method is used to correct the main positioning method to position the drone, thereby reducing the frequent changes in positioning methods.
[0090] like Figure 2 As shown, the embodiment of the present application also proposes a multi-mode fusion drone positioning device, including:
[0091] at least one processor; and,
[0092] a memory communicatively connected to the at least one processor; wherein,
[0093] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: the multi-mode fusion drone positioning method described in any of the above embodiments.
[0094] The embodiment of the present application also proposes a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as: the multi-mode fusion drone positioning method described in any of the above embodiments.
[0095] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0096] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0097] The above is only the embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the present application.
Claims
1. A multi-mode fusion UAV positioning method, characterized in that: include: Acquire point cloud data of a target building, wherein the target building is an open-air building, and the building area corresponding to the target building includes an open-air area and a non-open-air area, and the open-air area refers to a space area that is directly connected to the outside world; Based on the point cloud data, the open-air area is divided into a first sub-area, a second sub-area, and a third sub-area according to the reception strength of the GNSS signal from high to low by using a ray tracing algorithm; Based on the point cloud data, the target building is divided into a plurality of height levels in vertical height, and a UWB base station is set for each height level, wherein at least one UWB base station is set in a non-open-air area of each height level; Based on the area where the UAV is located in the building area, a corresponding positioning method is selected to position the UAV, and when the area changes, the positioning method is switched; wherein the positioning method includes: a GNSS positioning method and / or a UWB positioning method; Based on the area where the UAV is located in the building area, a corresponding positioning method is selected to position the UAV, specifically including: When the area where the drone is located is not an open-air area, the UWB positioning method is selected to locate the drone; When the area where the UAV is located is the third sub-area, the UWB positioning method is used as the main positioning method, the GNSS positioning method is used as the secondary positioning method, and the main positioning method is corrected by the secondary positioning method to locate the UAV; When the area where the UAV is located is the second sub-area, the GNSS positioning method is used as the main positioning method, the UWB positioning method is used as the secondary positioning method, and the main positioning method is corrected by the secondary positioning method to locate the UAV; When the area where the UAV is located is the first sub-area, selecting the GNSS positioning method to position the UAV; When the area changes, the positioning mode is switched, specifically including: Determine the current area where the drone is located, and determine that the drone has reached the boundary range between the current area and other areas; wherein the boundary range is a range within a preset distance near the boundary line between the current area and the other areas; If the current area is the non-open-air area or the first sub-area, determining that the drone is positioned by a separate current positioning method, and starting another positioning method to position the drone; Before the UAV crosses the boundary line and remains there for a preset period of time, positioning is performed using the current positioning method; After the UAV crosses the boundary line and continues for a preset time, the current positioning method is used as the main positioning method, another positioning method is used as the secondary positioning method, and the main positioning method is corrected by the secondary positioning method to locate the UAV; The primary positioning method is corrected by the secondary positioning method to locate the UAV, specifically including: Obtaining a first positioning result obtained by the primary positioning method and a second positioning result obtained by the secondary positioning method; If the position error between the second positioning result and the first positioning result is higher than a preset difference, determining a specified time corresponding to a previous position error lower than the preset difference, and obtaining a first actual state vector corresponding to the specified time; Based on x k =f(x k-1 ,u k-1 ), taking the first actual state vector as input, and obtaining the estimated state vector corresponding to the current moment; wherein x k is the estimated state vector corresponding to the current moment, x k-1 is the first actual state vector corresponding to the specified time, u k-1 is the control input at a specified time, and f is the preset aircraft motion equation; Get the second actual state vector corresponding to the current moment, and based on x ′ k =x k +K(z k -g(k)), update the estimated state vector; where x k is the estimated state vector corresponding to the current moment, x ′ k is the updated value of the estimated state vector, K is the Kalman gain, z k is a second actual state vector, and g(k) is a mapping function used to map the estimated state vector to a measurement space corresponding to the second actual state vector; Obtain a third positioning result in the updated value of the estimated state vector, and perform weighted summation on the first positioning result and the third positioning result according to the weights corresponding to the first positioning result and the third positioning result, respectively, to obtain a final positioning result of the UAV.
2. The method according to claim 1, characterized in that Before updating the estimated state vector, the method further includes: Through the covariance matrix Describes the distribution shape of the position error in each dimension, where x, y, and z are the coordinate directions of the measurement space, and σ xx , σ yy , σ zz are the error sizes in the x, y, and z directions respectively, σ xy , σ xz , σ yz They represent the covariance of the errors in the x-direction and y-direction, the x-direction and z-direction, and the y-direction and z-direction, respectively. When the covariance is positive or negative, it means that the two corresponding coordinate directions are positively correlated or negatively correlated. When the covariance is equal to 0, it means that the two corresponding coordinate directions are uncorrelated. For the second positioning result, determine the corresponding covariance matrix C k Defined and based on Get the Kalman gain, where K is the Kalman gain, C k is the covariance matrix, H k is the Jacobian matrix corresponding to the current moment, H k The transposed matrix, R k is the measurement noise covariance matrix at the current moment.
3. The method according to claim 1, characterized in that The UWB base station is set up for each altitude level, including: For each height level, determine the size of the space corresponding to the height level and the area ratio of the non-open-air area in the height level; Based on the size of the space, determine the recommended number of UWB base stations corresponding to the altitude level, and determine the order of base station settings based on the area ratio of the non-open-air area; wherein the larger the size of the space, the higher the recommended number of settings; the larger the area ratio of the non-open-air area, the higher the order of base station settings; According to the base station setting sequence, the UWB base stations are uniformly set in the horizontal direction in the height layers, and the distance between the newly set UWB base station and the already set UWB base station meets the preset distance range limit; The method further comprises: When the UWB positioning method is selected for positioning, based on the altitude level at which the drone is located, UWB base stations at the same altitude level are preferentially selected, and when the number of UWB base stations at the same altitude level is insufficient, UWB base stations at adjacent altitude levels are preferentially selected.
4. The method according to claim 1, characterized in that: Based on the point cloud data, the open-air area is divided into a first sub-area, a second sub-area, and a third sub-area according to the reception strength of the GNSS signal from high to low by a ray tracing algorithm, specifically including: Based on the point cloud data, three-dimensional modeling is performed to obtain a three-dimensional model corresponding to the target building, and corresponding material properties are set for the three-dimensional model; The open-air area in the three-dimensional model is divided into a plurality of space blocks, and for each space block, a plurality of rays are uniformly emitted outward, and an equal initial signal strength is set for each ray; Tracking the path of the ray in the three-dimensional model, wherein if the ray hits an obstacle in the three-dimensional model, the ray is split into two rays, one ray penetrates the obstacle and continues to move forward, and the other ray is reflected by the obstacle and continues to move forward; For the ray, the energy loss of the ray is calculated based on a path loss model, a reflection loss model, and a penetration loss model to determine the residual signal strength of the ray, until the residual signal strength of the ray decreases to a preset strength, or the ray reaches the outer edge of the building area; For the spatial block, among all the rays reaching the outer edge, all the rays are sorted from high to low according to the residual signal strength, the ray with the highest residual signal strength is selected as the first ray, and among the remaining rays, the residual signal strength is traversed in sequence from high to low, so as to select the ray that meets the angle interval requirement as the next ray, until the number of selected rays reaches a preset number; wherein the angle interval requirement means that the angle between the newly selected ray and the other selected rays is greater than the preset angle; For the spatial block, average the residual signal strengths of the selected preset number of rays as the receiving strength of the GNSS signal corresponding to the spatial block; Based on the receiving intensity, each spatial block is divided into a first sub-area, a second sub-area, and a third sub-area according to the receiving intensity from high to low.
5. The method according to claim 4, characterized in that The material properties include: signal absorption rate, signal reflection gain, and penetration loss coefficient; The path loss model includes: L path =20log 10 d1+20log 10 f+A, where L path is the path loss value of the GNSS signal, d1 is the distance traveled by the ray, f is the frequency of the GNSS signal, and A is a constant; The reflection loss model includes: L reflection =(1-α)S*10log 10 G, where L reflection is the reflection loss value of the GNSS signal, α is the signal absorption rate at frequency f, α0 is the known signal absorption rate at the known frequency f0, α i is the unknown frequency f i The unknown signal absorption rate under , β is the frequency dependence index, which is a positive number greater than 1, G is the signal reflection gain, and S is the residual signal strength when reaching the obstacle; The penetration loss model includes: Among them, L penetrate is the penetration loss value of the GNSS signal, α is the signal absorption rate at frequency f, S is the residual signal strength when reaching the obstacle, δ is the penetration loss coefficient, and d2 is the penetration thickness of the obstacle.
6. A multi-mode fusion UAV positioning device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: the multi-mode fusion drone positioning method as described in any one of claims 1 to 5.
7. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured as: the multi-mode fusion drone positioning method as described in any one of claims 1 to 5.
