Mountain scanning coverage unmanned aerial vehicle path planning method based on DH model
Through the path planning method based on DH model, the problem of large amount of calculation and low efficiency of UAV path planning in complex mountainous environments is solved, efficient mountain terrain scanning coverage is achieved, the shortest and reasonable path is generated, and the scanning quality is improved. efficiency.
Patent Information
- Application Number
- CN202410837941.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-11-05
AI Technical Summary
The existing drone path planning algorithms are difficult to collect the detailed features of the landform at the foot of the mountain or valley area with high quality in complex mountainous environments, and the calculation volume is large and the calculation efficiency is low, which cannot meet the scanning quality and efficiency requirements of the mountainous environment.
The route planning method of mountain scanning covering drone is adopted based on DH model. By acquiring elevation models, modeling and processing mountain peaks, acquiring terrain models, voxel map processing and sub-region division, the safe path connection of drone is planned in combination with greedy algorithms. , adopt equally spaced spiral and ring line path planning to achieve three-dimensional path generation.
This method can quickly and efficiently generate the shortest and reasonable paths, ensuring that the drone can efficiently perform scanning coverage operations in complex mountainous environments, and improve scanning quality and efficiency.
Smart Images

Figure CN118897558A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of unmanned aerial vehicle path planning, and in particular relates to a mountain scanning and covering unmanned aerial vehicle path planning method based on a DH model. Background Art
[0002] With the rapid development of UAV technology, its application in military reconnaissance, geographic mapping, disaster monitoring and environmental protection has become more and more extensive. In complex mountainous environments, the landform features are often composed of undulating peaks and connecting areas between mountains. These complex mountainous landform features put forward higher requirements for the path planning algorithm of the scanning coverage operation of UAVs. On the one hand, the existing UAV path planning algorithm often ignores the complexity of mountainous landforms. By raising the scanning plane to a safe height, the influence of the peaks can be ignored at this height, so that the conventional plane-based UAV path planning algorithm can be used for scanning coverage operations. However, the problem with this method is that due to the increase in the height of the scanning layer, the detailed landform features of the foot of the mountain or the bottom of the valley cannot be collected with high quality. On the other hand, the path planning for complex mountainous landform features containing peaks has problems such as large amount of calculation and low calculation efficiency, which makes it difficult to meet the scanning quality and scanning efficiency requirements of UAV scanning coverage operations in mountainous environments. Therefore, there is an urgent need for a UAV scanning coverage path planning method that is adapted to complex mountainous environments to improve the scanning quality and scanning efficiency requirements of UAV operations in mountainous environments. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes a mountain scanning coverage UAV path planning method based on the DH model.
[0004] The mountain scanning coverage UAV path planning method based on the DH model of the present invention comprises the following steps:
[0005] S1. Obtaining the elevation model of the target mountain area;
[0006] S2. Under the elevation model, the peak is modeled using a DH model;
[0007] S3. Acquire a terrain model containing DH model features of the target mountain;
[0008] S4. Obtain the two-dimensional plane contour that needs to be scanned and covered according to the terrain model, and obtain a voxel map;
[0009] S5. dividing the voxel map into sub-regions;
[0010] S6. Scan and cover the mountain surface and the flat land under the mountain and plan the path;
[0011] S7. A method for planning safe path connections for UAVs to scan and cover the surface of a mountain and the flat land under the mountain based on a greedy algorithm.
[0012] The DH model in step S2 is to treat each mountain peak as a truncated cone structure superimposed on a cone structure, and describe it with diameter and height information.
[0013] The two-dimensional plane contour in step S4 is a quadrilateral area, and the quadrilateral is voxelized to obtain a voxel map.
[0014] The sub-region division of the voxel map in step S5 is to divide the voxel map into sub-regions according to the parameters of the DH model, so as to ensure that the voxels in each sub-region are closest to the corresponding DH projection region.
[0015] The sub-region division method comprises the following steps:
[0016] S501. Calculate the difference between the distance from the voxel to the center of each DH projection circle and the radius of the current DH projection circle, and determine the position of the voxel based on the difference;
[0017] S502. Classify all voxels in the voxel map that are outside the projection circle according to the positions of the voxels, and each class is a sub-region.
[0018] The scanning coverage path planning for the mountain surface and the flat land under the mountain in step S6 includes scanning coverage path planning for the mountain surface and scanning coverage path planning for the flat land under the mountain.
[0019] The path planning for scanning and covering the surface of the mountain adopts a path planning method of equally spaced spiral lines to scan and cover the sides of the mountain DH model; the path planning for scanning and covering the flat land under the mountain adopts a path planning method of equally spaced circular lines to scan and cover the flat land under the mountain.
[0020] According to the path planning method of the equally spaced spiral line, the three-dimensional path when the drone scans the side of the truncated cone and the three-dimensional path when the drone scans the side of the cone are obtained; wherein,
[0021] The three-dimensional path of the drone when scanning the side of the frustum is:
[0022]
[0023] The 3D path of the drone when scanning the side of the cone is:
[0024]
[0025] In the formula, the height of the truncated cone is h1, the height of the cone is h2, the diameter of the lower base of the truncated cone is d1, the diameter of the upper base, i.e. the diameter of the bottom of the cone, is d2, and the distance between the projection point of the three-dimensional path point when scanning the side of the truncated cone and the center of the circle is r 圆台 , the distance between the projection point of the three-dimensional path point when scanning the side of the cone and the center of the circle is r 圆锥 .
[0026] The method for planning a safe path connection for scanning and covering the mountain surface and the flat land under the mountain by a UAV based on a greedy algorithm in step S7 includes the following steps:
[0027] S701. Any point on the circular closed path in each sub-area is used as the starting point and end point of the UAV flying along this path, and the two end points on the non-closed path are used as the starting point and end point of the UAV flying along this path respectively;
[0028] S702. The starting point and the end point of each obtained path constitute an element. The starting point and the end point of the drone flying around the mountain are the same point, which also constitutes an element. All elements are formed into a set S. At the same time, a set A is introduced. A contains the elements of the calculated shortest path connection.
[0029] S703. Connect all elements in the set S to obtain a set A containing the shortest path;
[0030] S704. If the line connecting the starting point and the end point of an element in set A does not intersect the mountain, directly connect the two points as the flight path; otherwise, raise the drone to a certain height, and obtain a circle projected by the mountain at the height on the plane, and calculate the distance from the center of the circle to the line connecting the two points of an element in set A;
[0031] S705. Determine the projection path of the UAV's flight according to the relationship between the distance and the radius of the projection circle;
[0032] S706. Connect the flight routes generated by the path points in each element of set A to obtain a complete, shortest and safe traversal path.
[0033] The beneficial effect of the present invention is that the present invention simplifies the modeling problem of complex landform features in mountainous areas through the DH model, and the proposed mountain scanning coverage path planning method based on the DH model can quickly and efficiently realize the path generation of mountain terrain, while ensuring the shortest total length of the generated path and the rationality of the path. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is the DH model of the present invention.
[0035] Figure 2 It is a terrain model of the present invention that contains the characteristics of the mountain DH model.
[0036] Figure 3 It is the sub-region division result of the present invention.
[0037] Figure 4 This is the drone scanning coverage scene of the present invention.
[0038] Figure 5 It is the three-dimensional path of the unmanned aerial vehicle scanning the mountain.
[0039] Figure 6 This is the flat ground scanning coverage path under the mountain of the present invention.
[0040] Figure 7 It is the three-dimensional path for scanning mountain areas of the present invention.
[0041] Figure 8 It is a three-dimensional continuous path that fully covers the mountainous area of the present invention.
[0042] Fig. 9 It is a three-dimensional rendering of the present invention that fully covers the mountain area. DETAILED DESCRIPTION
[0043] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and intended to be used to explain the present invention, but should not be understood as limiting the present invention.
[0044] The mountain scanning coverage UAV path planning method based on the DH model of the present invention comprises the following steps:
[0045] S1. Obtaining the elevation model of the target mountain area;
[0046] For mountain areas that require drone scanning and coverage operations, obtain the corresponding elevation map of the area, and obtain the elevation model of the current area from the elevation map.
[0047] S2. Under the elevation model, the mountain is modeled using a DH (Diameter-Height) model;
[0048] The DH model treats each mountain peak as a truncated cone structure superimposed on a cone structure, and describes it with diameter and height information. Assume that the height of the truncated cone is h1, the height of the cone is h2, the diameter of the lower bottom surface of the truncated cone is d1, and the diameter of the upper bottom surface (i.e. the diameter of the cone bottom surface) is d2. Figure 1 shown.
[0049] S3. Acquire a terrain model containing DH model features of the target mountain;
[0050] After step S2, the complex mountain landform features can be transformed into a terrain model containing the mountain DH model features, such as Figure 2 shown.
[0051] S4. Obtain the two-dimensional plane contour that needs to be scanned and covered according to the terrain model, and obtain a voxel map;
[0052] According to the terrain model obtained in step S3, the model is projected on the horizontal plane to obtain the two-dimensional plane contour required for scanning and coverage, such as Figure 3 , the obtained outline is a quadrilateral area. The quadrilateral is voxelized, that is, the quadrilateral is divided into small squares of equal size. Each square is called a voxel, which is similar to a pixel in a picture. The voxelized polygonal area is called a "voxel map".
[0053] S5. dividing the voxel map into sub-regions;
[0054] According to the DH model parameters, the voxel map is divided into sub-regions to ensure that the voxels in each region are closest to the corresponding DH projection region, such as Figure 3 As shown, the projection of each DH model on the voxel map is a yellow circle, called the "DH projection circle", with O as the center and R as the radius. Obviously, R = d1 / 2.
[0055] Define the distance calculation method in the voxel map: Given two voxels with coordinates (a1, a2) and (b1, b2), the distance between the two voxels is calculated using Euclidean distance d, as follows:
[0056]
[0057] The above sub-area division method is as follows:
[0058] Traverse each voxel in the voxel map and do the following:
[0059] S501. Calculate the current voxel V i To each DH j Projection center O j minus the radius R of the current DH projection circle j The difference M is calculated and the following processing is performed on the difference M:
[0060] If the difference M is negative, and the negative value M corresponds to DH j Projection circle, then the current voxel V i Distance from DH j The projection circle is closest and is located inside the projection circle.
[0061] If all the differences M are positive, then select the smallest difference M among all the differences, which corresponds to DH jProjection circle, then the current voxel V i Distance from DH j The projected circle is closest and is outside the projected circle.
[0062] S502. Classify all voxels in the voxel map that are outside the projection circle, and merge each category into a sub-region, such as Figure 3 As shown, and in different colors (such as Figure 3 The red area, blue area and green area in the figure are used as the basis for dividing different sub-areas Z.
[0063] S6. Scan and cover the mountain surface and the flat land under the mountain and plan the path;
[0064] In order to better scan and cover the mountainous environment, on the one hand, it is necessary to plan the scanning coverage path for the mountain surface, that is, the frustum side and cone side in the DH model; on the other hand, it is also necessary to plan the scanning coverage path for the flat land under the mountain, that is, each sub-area in step S5. Assuming that the width of the scanning area during the movement of the drone is L, the above two scanning coverage scenarios are as follows Figure 4 shown.
[0065] S601. Path planning method based on equally spaced spirals
[0066] To solve the scanning coverage path problem on the side of the mountain DH model, the path planning method of equally spaced spiral lines is adopted. The steps are as follows:
[0067] 1. According to the width of the scanning area L during the movement of the drone, determine the number of circles n1 required when the drone scans the side of the frustum and the number of circles n2 required when scanning the side of the cone. The formula is as follows:
[0068]
[0069] 2. Determine the distribution of the scanning path on the two-dimensional plane:
[0070] Taking the center Oj as the reference point, determine the voxel Q so that the distance between Q and Oj is d1 / 2 and the angle is 0°. Starting from Q, the angle θ with Oj is continuously increased in the counterclockwise direction while the distance r between the voxel and Oj is reduced. The formula is as follows:
[0071]
[0072] The voxels that satisfy formula (4) are the projection path points when the drone scans the side of the cone, and the voxels that satisfy formula (5) are the projection path points when the drone scans the side of the cone. Figure 6 shown.
[0073] 3. Calculate the height h corresponding to the two-dimensional path point determined in step 2 to obtain the three-dimensional spiral path around the mountain. The formula is as follows:
[0074]
[0075] In the formula, the distance between the projection point of the three-dimensional path point when scanning the side of the frustum and the center of the circle is r 圆台 , the distance between the projection point of the three-dimensional path point when scanning the side of the cone and the center of the circle is r 圆锥 .
[0076] The coordinate points that satisfy equation (6) are the three-dimensional path points when the drone scans the side of the cone, and the coordinate points that satisfy equation (7) are the three-dimensional path points when the drone scans the side of the cone. The final path is as follows: Figure 5 shown.
[0077] S602. Path planning method based on equally spaced circular lines
[0078] To solve the scanning coverage path problem on flat ground, a planning method of equally spaced circular lines in sub-areas is adopted.
[0079] Traverse the voxels in the sub-area, and determine the scanning path points according to the difference M obtained in step S5 and the width L of the scanning area during the movement of the drone:
[0080]
[0081] The voxels that satisfy equation (8) are taken as the circular path points in the sub-region, that is, the difference of the voxels of the first circular ring is M = L / 2, and the width between the circular rings is L. The final flat ground scanning coverage path is as follows: Figure 6 shown.
[0082] The final three-dimensional path is as follows Figure 7 shown.
[0083] S7. A method for planning safe path connections for UAVs to scan and cover the surface of a mountain and the flat land under the mountain based on a greedy algorithm.
[0084] It is necessary to connect the paths of the above sub-areas. A safe path connection method based on a greedy algorithm is proposed to ensure that the total length of the planned path after connection is the minimum, while avoiding the interference between the connecting straight line and the mountain DH model, thereby ensuring the safety of the planned path. The implementation steps of the proposed safe path connection method based on a greedy algorithm are as follows:
[0085] S701. The ground circular paths in each sub-area are discontinuous, and the circular paths are divided into two categories: one is a circular closed path, and the other is a non-closed path (arc path) formed due to boundary restrictions. Any point on the circular closed path is used as the starting point and end point of the drone's flight along this path, and the two end points on the non-closed path are used as the starting point and end point of the drone's flight along this path;
[0086] S702. The starting point and the end point of each path obtained in step S701 constitute an element. In addition, the starting point and the end point of the drone flying around the mountain are the same point, which also constitutes an element. All the above elements form a set S, and a set A is introduced at the same time. A contains the elements of the calculated shortest path connection;
[0087] S703. Connect all elements in set S to obtain set A containing the shortest path:
[0088] Starting from a point s1 in an element in the set S, find the path point b1 that is closest to another point s2 in the element and the unvisited element, and take s2 and b1 as an element in the set M, with s2 as the starting point and b1 as the end point;
[0089] Take another path point b2 in the element where the coordinate point b1 is located as the starting point s1, and repeat the above steps until all elements in the set S are visited and the set A containing the shortest path is obtained;
[0090] S704. If the line connecting the starting point and the end point of an element in set A does not intersect the mountain, directly connect the two points as the flight path; otherwise, raise the drone to a certain height, and obtain a circle projected by the mountain at the height on the plane, and calculate the distance from the center of the circle, i.e., the center point of the mountain, to the line connecting the two points of an element in set A;
[0091] S705. Determine the projection path of the UAV's flight according to the relationship between the distance and the radius of the projection circle in S704;
[0092] If the distance is greater than the radius of the projected circle, the drone will be lifted to a certain height and then fly along the line connecting the two points on the ground. When the projection point coincides with the end point, it will begin to descend to the ground.
[0093] If the distance is less than the radius of a certain projected circle, calculate the intersection of the line connecting the two points and the projected circle. Then, calculate the distance from the center of the circle to the intersection, and superimpose a safety distance e on this distance (to prevent the drone from flying close to the mountain) as the radius r of another circle C, whose center is the same as the center of the projected circle. Get the intersection of circle C and the line connecting the starting point and the end point, as well as the corresponding minor arc. Use the line segment connecting the starting point, the end point and the intersection, as well as the minor arc in the middle, as the projection path of the drone after it rises to a certain height. When the flight reaches the point where its projection point coincides with the end point, it begins to descend to the ground.
[0094] S706. Connect the flight paths generated by the path points in each element of set A to obtain a complete shortest traversal path, while ensuring the safety of the path. The final effect is as follows: Figure 8 shown.
[0095] The final effect is as follows Fig. 9 shown.
[0096] Although the above embodiments have been shown and described, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. Changes, modifications, substitutions and variations of the above embodiments by those of ordinary skill in the art are all within the scope of protection of the present invention.
Claims
1. A path planning method for mountain scanning and coverage UAV based on DH model, It is characterized in that The following steps are involved: S1. Obtaining the elevation model of the target mountain area; S2. Under the elevation model, the peak is modeled using a DH model; S3. Acquire a terrain model containing DH model features of the target mountain; S4. Obtain the two-dimensional plane contour that needs to be scanned and covered according to the terrain model, and obtain a voxel map; S5. dividing the voxel map into sub-regions; S6. Scan and cover the mountain surface and the flat land under the mountain and plan the path; S7. A method for planning safe path connections for UAVs to scan and cover the surface of a mountain and the flat land under the mountain based on a greedy algorithm.
2. According to the DH model-based mountain scanning coverage UAV path planning method of claim 1, It is characterized in that The DH model in step S2 is to treat each mountain peak as a truncated cone structure superimposed on a cone structure, and describe it with diameter and height information.
3. According to the DH model-based mountain scanning coverage UAV path planning method of claim 1, It is characterized in that The two-dimensional plane contour in step S4 is a quadrilateral area, and the quadrilateral is voxelized to obtain a voxel map.
4. According to the DH model-based mountain scanning coverage UAV path planning method of claim 1, It is characterized in that The sub-region division of the voxel map in step S5 is to divide the voxel map into sub-regions according to the parameters of the DH model, so as to ensure that the voxels in each sub-region are closest to the corresponding DH projection region.
5. According to the DH model-based mountain scanning coverage UAV path planning method of claim 4, It is characterized in that The sub-region division method comprises the following steps: S501. Calculate the difference between the distance from the voxel to the center of each DH projection circle and the radius of the current DH projection circle, and determine the position of the voxel based on the difference; S502. Classify all voxels in the voxel map that are outside the projection circle according to the positions of the voxels, and each class is a sub-region.
6. The mountain scanning coverage UAV path planning method based on the DH model according to claim 1, It is characterized in that The scanning coverage path planning for the mountain surface and the flat land under the mountain in step S6 includes scanning coverage path planning for the mountain surface and scanning coverage path planning for the flat land under the mountain.
7. The mountain scanning coverage UAV path planning method based on the DH model according to claim 1, It is characterized in that The path planning for scanning and covering the surface of the mountain adopts a path planning method of equally spaced spiral lines to scan and cover the sides of the mountain DH model; the path planning for scanning and covering the flat land under the mountain adopts a path planning method of equally spaced circular lines to scan and cover the flat land under the mountain.
8. The mountain scanning coverage UAV path planning method based on the DH model according to claim 7, It is characterized in that According to the path planning method of the equally spaced spiral line, the three-dimensional path when the drone scans the side of the truncated cone and the three-dimensional path when the drone scans the side of the cone are obtained; wherein the three-dimensional path when the drone scans the side of the truncated cone is The 3D path of the drone when scanning the side of the cone is: In the formula, the height of the cone is h 1 , the height of the cone is h 2 , the diameter of the bottom surface of the cone is d 1 , the diameter of the upper base is d 2 , the distance between the projection point of the three-dimensional path point when scanning the side of the frustum and the center of the circle is r 圆台 , the distance between the projection point of the three-dimensional path point when scanning the side of the cone and the center of the circle is r 圆锥 .
9. The mountain scanning coverage UAV path planning method based on the DH model according to claim 1, It is characterized in that The method for planning a safe path connection for scanning and covering the mountain surface and the flat land under the mountain by a UAV based on a greedy algorithm in step S7 includes the following steps: S701. Any point on the circular closed path in each sub-area is used as the starting point and end point of the UAV flying along this path, and the two end points on the non-closed path are used as the starting point and end point of the UAV flying along this path respectively; S702. The starting point and the end point of each obtained path constitute an element. The starting point and the end point of the drone flying around the mountain are the same point, which also constitutes an element. All elements are formed into a set S. At the same time, a set A is introduced. A contains the elements of the calculated shortest path connection. S703. Connect all elements in the set S to obtain a set A containing the shortest path; S704. If the line connecting the starting point and the end point of an element in set A does not intersect the mountain, directly connect the two points as the flight path; otherwise, raise the drone to a certain height, and obtain a circle projected by the mountain at the height on the plane, and calculate the distance from the center of the circle to the line connecting the two points of an element in set A; S705. Determine the projection path of the UAV's flight according to the relationship between the distance and the radius of the projection circle; S706. Connect the flight routes generated by the path points in each element of set A to obtain a complete, shortest and safe traversal path.
