Airplane surface automatic detection layered coverage path planning method under photogrammetry constraint
Through cell decomposition and hierarchical path planning of the three-dimensional point cloud model of the aircraft surface, the problems of low efficiency and poor safety in the existing technology are solved, and an efficient and regular automatic detection path of the aircraft surface is realized, which meets the requirements of photogrammetry and Improved detection efficiency and safety.
Patent Information
- Application Number
- CN202410884968.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-29
AI Technical Summary
Existing aircraft surface automatic detection technology has low efficiency, poor safety, and cannot provide full coverage. It is especially difficult to apply detailed shape information on complex structures, resulting in long calculations and redundant viewpoints.
Using the hierarchical coverage path planning method under photogrammetry constraints, by cell decomposing the aircraft 3D point cloud model, calculating the initial coverage viewpoint, taking into account the safe distance and shooting space constraints, the traveling salesman problem is solved hierarchically, and collision detection and iteration are performed Optimize and generate regular and efficient coverage paths.
It achieves a viewpoint set that meets the requirements of photogrammetry, avoids redundant calculations, improves computing efficiency and the regularity and speed of path planning, and ensures full coverage and safety of aircraft surface detection.
Smart Images

Figure CN118857293A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of automatic detection of aircraft surfaces, and in particular relates to a layered coverage path planning method for automatic detection of aircraft surfaces under photogrammetry constraints. Background Art
[0002] In order to ensure the airworthiness of the aircraft, the surface of the aircraft needs to be inspected to identify possible anomalies, such as pits, cracks, or damaged or missing parts. At present, the field of automatic inspection of aircraft surfaces mainly relies on manual inspectors, supplemented by some handheld devices. During the inspection process, people have to walk around the aircraft, climb with ropes or use ladders to approach the target area, which is obviously inefficient, less safe, and cannot cover the entire area. In order to overcome the shortcomings of manual operation, automatic inspection of aircraft surfaces based on unmanned aerial vehicles (UAVs) has become a hot issue due to its flexibility and low energy consumption.
[0003] Coverage Path Planning (CPP) is one of the core technologies for automatic detection of aircraft surfaces. The goal of CPP is to calculate a feasible path, and the unmanned aerial vehicle (UAV) must completely cover the aircraft surface through camera shooting, which requires solving two NP-Complete problems, namely the set cover problem (SCP) and the traveling salesman problem (TSP). Existing studies on CPP for automatic detection of aircraft surfaces mainly use primitive sampling methods, resulting in a large number of redundant viewpoints. Therefore, each viewpoint needs to perform occlusion culling and frustum culling calculations, resulting in a long calculation time. In order to facilitate 3D reconstruction, many researchers have added overlap rate constraints to viewpoint planning. In 3D terrain reconstruction, the terrain is usually approximated as a plane, and overlapping design is easy to perform. However, for more complex structures, detailed shape information is usually ignored, and objects are usually simplified to cylinders or spheres, so they cannot be directly applied to complex 3D structures such as aircraft.
[0004] Different from the general CPP problem, more specific problems need to be solved for the aircraft surface inspection scenario. To ensure safety, a human operator is still required to monitor the completion of the task. In order to facilitate the interpretation of the drone path and post-processing of the collected images, the planned path should be highly regular and clear, such as the inspection order of key aircraft components. In addition, aircraft surface damage may span multiple images. In order to correctly assess the damage or the status of aircraft components, high-quality images are required for accurate image stitching and status recognition. Therefore, when planning viewpoints, photogrammetry requirements such as orthographic and equidistant should be considered. Summary of the invention
[0005] In order to solve the above problems, the object of the present invention is to provide a layered coverage path planning method for automatic detection of aircraft surface under photogrammetry constraints.
[0006] In order to achieve the above object, the present invention provides a method for automatically detecting and layering the path planning of aircraft surfaces under photogrammetry constraints, which comprises the following steps performed in sequence:
[0007] 1) Decompose each component of the aircraft 3D point cloud model into cells;
[0008] 2) Based on the decomposition results of the above cells, the initial coverage viewpoints corresponding to the cells are calculated according to the photogrammetry constraints, and all the initial coverage viewpoints constitute an initial coverage viewpoint set;
[0009] 3) Considering the constraints including safety distance, shooting space and coverage range, the viewpoint pose is checked and adjusted for the above initial coverage viewpoint set to obtain the final coverage viewpoint set;
[0010] 4) Based on the above-mentioned set of covered viewpoints, the traveling salesman problem is solved hierarchically to obtain the traversal order of the initial path points within and between the components of the aircraft; then, the hierarchical covering path is obtained by connecting the paths within each component and the paths between the components;
[0011] 5) Perform collision detection and replanning of the collision paths on the above-mentioned layered coverage paths;
[0012] 6) Iteratively optimize the replanned path to obtain the final hierarchical coverage path.
[0013] In step 1), the method of performing cell decomposition on each component of the aircraft three-dimensional point cloud model is:
[0014] For a given aircraft 3D point cloud model P, cell decomposition is performed based on the geometric characteristics of each aircraft component and the shooting overlap rate R, and all cells constitute a cell set C.
[0015] In step 2), the method of calculating the initial coverage viewpoints corresponding to the cells based on the decomposition results of the cells according to the photogrammetry constraints and forming the initial coverage viewpoint set from all the initial coverage viewpoints is:
[0016] According to the vertex coordinates of the cell, first search and record the point cloud within each cell; cells with less than the number of point clouds N are regarded as invalid cells and filtered out, and then the normal vector of each cell is calculated and the center point O ij , and then use the center point O ij , normal vector And the principle of front view and equidistance, calculate the initial coverage viewpoint corresponding to each cell:
[0017] C ij =O ij +d ij nij ,d ij =d0
[0018] Among them, C ij is the initial coverage viewpoint corresponding to each cell, d ij is the distance between the cell center and the camera optical center, d0 is the nominal shooting distance;
[0019] The initial covered viewpoint set is composed of all initial covered viewpoints.
[0020] In step 3), the method of checking and adjusting the viewpoint pose of the initial coverage viewpoint set by considering the constraints including the safety distance, the shooting space and the coverage range to obtain the final coverage viewpoint set is:
[0021] 3.1) First, the initial aircraft model is expanded using appropriate geometric structures and safety distance parameters to obtain an aircraft expansion model S; for each initial coverage viewpoint, determine whether the initial coverage viewpoint is inside the aircraft expansion model S, and if so, select a new viewpoint that satisfies the safety distance constraint;
[0022] 3.2) For the new viewpoint selected in step 3.1), further verify whether it is in the feasible shooting space; the feasible shooting space is surrounded by four planes representing shooting angle constraints and two spheres representing shooting distance constraints; the shooting angle constraint is calculated according to the edge and normal vector of the cell and the maximum allowed shooting angle, and the shooting angle represents the angle between the optical axis and the surface normal vector; the shooting distance constraint is calculated according to the center point of the cell and the maximum and minimum shooting distances; if the new viewpoint is not in the feasible shooting space, further search outside the aircraft expansion model S to generate a new viewpoint that meets the feasible shooting space constraints;
[0023] 3.3) Perform frustum culling and occlusion culling calculations to verify whether the new viewpoint obtained in step 3.2) can cover the specified cell, and generate the visible point cloud corresponding to each viewpoint; if the viewpoint can cover its specified cell without being occluded, it is the final feasible viewpoint, otherwise, resample and select a new viewpoint, and repeat steps 3.1)-3.3) until all constraints are met. After the above process, the final set of covered viewpoints is obtained.
[0024] In step 4), based on the above-mentioned covering viewpoint set, the traveling salesman problem is solved hierarchically to obtain the initial path point traversal sequence within and between each component of the aircraft; then, by connecting the path within each component and the path between the components, the method of obtaining the hierarchical covering path is:
[0025] Using the semantic information of the aircraft, the coverage viewpoints in the coverage viewpoint set are classified according to the components including the fuselage, wings, engines, vertical tail, and horizontal tail. Then, the LKH algorithm is used to solve the traveling salesman. The initial cost matrix required by the LKH algorithm is constructed based on the three-dimensional Euclidean distance between two coverage viewpoints. First, the traveling salesman is solved in each component, V k represents the path point set of the kth component, where the path point set is composed of the coverage viewpoint set obtained in step 3), c ij represents the cost of the local path between path point i and path point j, x ij represents a binary decision variable, and N represents the path point set V of the kth component. k The number of path points in the component, the traveling salesman in each component is expressed as:
[0026]
[0027] To eliminate sub-loop constraints using the Subtour-Elimination method; after solving the traveling salesman within each component, determine the starting point and the end point, then solve the traveling salesman between the components to obtain the initial path point traversal order within each component and between components; finally, by connecting the path within each component and the path between components, a hierarchical coverage path is obtained.
[0028] In step 5), the method of performing collision detection on the above-mentioned hierarchical coverage path and replanning the collision path is:
[0029] Based on the aircraft expansion model S constructed in step 3.1), whether a collision occurs is determined by whether there is an intersection between the hierarchical coverage path and the aircraft expansion model S, and then the collision path is replanned using a fast search random tree algorithm.
[0030] In step 6), the method of iteratively optimizing the replanned path to obtain the final hierarchical coverage path is:
[0031] After collision detection and collision path replanning, the cost matrix corresponding to the replanned path is updated, and then based on the updated cost matrix, the above steps 4)-5) are repeated for iterative optimization until the specified number of iterations is reached or the length of the hierarchical coverage path is not further reduced, and the final hierarchical coverage path is obtained.
[0032] The advantages of the aircraft surface automatic detection layered coverage path planning method under photogrammetry constraints provided by the present invention are as follows:
[0033] ① The viewpoint set generated by the present invention can meet the requirements of photogrammetry, such as equidistance, orthographic view and overlap rate;
[0034] ② Compared with the sampling-based method, the unit decomposition-based method of the present invention can avoid SCP and the frustum / occlusion culling calculation of a large number of random viewpoints, and has higher computational efficiency;
[0035] ③ The viewpoints generated by the present invention have good regularity. The planned path not only moves as straight as possible within each component, but also has the regularity of passing through the fuselage, wings, engines, tail and other components one by one;
[0036] ④ In addition to the regularity, the present invention can also significantly improve the speed of local path planning and TSP solution due to hierarchical calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a flow chart of a method for automatically detecting and layering coverage paths of aircraft surfaces under photogrammetry constraints provided by the present invention;
[0038] Figure 2 It is a schematic diagram of cell decomposition;
[0039] Figure 3 It is a schematic diagram of hierarchical coverage path planning;
[0040] Figure 4a It is a schematic diagram of collision detection results;
[0041] Figure 4b is the final coverage path diagram;
[0042] Figure 5a This is a schematic diagram of the coverage results of the greedy algorithm under the positioning error of the UAV;
[0043] Figure 5b This is a schematic diagram of the coverage results of the LP algorithm under the positioning error of the UAV;
[0044] Figure 5c It is a schematic diagram of the coverage result of the algorithm of the present invention under the positioning error of the UAV;
[0045] Figure 6a is a schematic diagram of the path planning result of the method of the present invention;
[0046] Figure 6b It is a schematic diagram of the path planning results of the global planning algorithm;
[0047] Figure 6c This is a schematic diagram of the path planning results of the LP algorithm;
[0048] Figure 6d This is a schematic diagram of the path planning results of the greedy algorithm. DETAILED DESCRIPTION
[0049] The method for automatic detection and layered coverage path planning of aircraft surface under photogrammetry constraints provided by the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0050] like Figure 1 As shown, the method for automatic detection and layered coverage path planning of aircraft surface under photogrammetry constraints provided by the present invention comprises the following steps performed in sequence:
[0051] 1) Decompose each component of the aircraft 3D point cloud model into cells;
[0052] For a given aircraft 3D point cloud model P, cell decomposition is performed based on the geometric characteristics of each aircraft component and the shooting overlap rate R, and all cells constitute a cell set C.
[0053] The schematic diagram of the cell decomposition is as follows Figure 2 As shown in the figure, in the fuselage part, the contour on the xy plane is approximated by a piecewise function composed of two different quadratic curves and a straight line segment, and the least squares method is used to calculate the parameters of the function; the contour on the xz plane is approximated as an arc, and the MSAC method is used to obtain the cylindrical fitting of the fuselage and calculate the arc parameters; then the cell decomposition is performed based on these contours; the decomposition method along the contour on the xz plane is: let (x i ,z i ) and (x i ′,z i ′) represent the starting point and end point of the i-th row respectively, and Use the following recursive formula to solve the starting point z of all rows covering the z direction: O and the end point z max :
[0054]
[0055] Where L w Indicates the width covered by a single image, σ w Indicates the shooting overlap rate in the width direction; the first row of equality constraints indicates that the distance between the start point and the end point is equal to the width covered by a single image, and the second row of equality constraints indicates that the shooting overlap rate requirement is met;
[0056] The wing part uses the region of interest (ROI) divided according to the range of coordinates and the MSAC method to fit the plane of the wing from the three-dimensional point cloud to obtain the wing plane model; then, according to the vertex coordinates of the wing, the vertex coordinates of the xy plane of the minimum circumscribed rectangular bounding box of the wing are calculated; according to the parameters of the wing plane model, the coordinate z in the z direction of the rectangular bounding box is calculated using the following formula rect :
[0057] z rect =(-axrect -by rect -d) / c
[0058] Among them, (a, b, c, d) are the parameters of the given wing plane model, x rect and rect are the vertex coordinates of the xy plane of the circumscribed rectangular bounding box; according to the vertex coordinates of the rectangular bounding box, determine the direction vectors of the short side and the long side, decompose according to the height h of the cell along the short side at a certain shooting overlap rate, and calculate the coordinates of each decomposition point; decompose according to the width w of the cell along the long side, and calculate the coordinates of each decomposition point; finally, obtain the coordinates of the four vertices of the cell decomposition of the wing part; according to the given wing point cloud data and the parameters of the wing plane model, first project the wing point cloud data onto the plane where the wing is located to obtain the coordinates of the projection point, and the coordinates of the projection point are calculated using the following formula:
[0059] t1=b / a
[0060] t2=-bv x / a+v y
[0061] t3=c / a
[0062] t4=-cv x / a+v z
[0063] x p =-(bt2+ct4+d) / (a+bt1+ct3)
[0064] y p =t1x p +t2
[0065] z p =t3x p +t4
[0066] Among them, (v x ,v y ,v z ) is the coordinate of the wing point cloud data, (x p ,y p ,z p) is the coordinate of the projection point, (a, b, c, d) is the parameter of the given wing plane model; for each combination of the width w and height h of the cell, calculate the coordinates of the four vertices of the rectangular bounding box, determine an edge for every two points, and calculate the distance from each projection point in the wing point cloud data to the four edges of the rectangular bounding box. If the sum of the distances from the projection point to the four edges is less than the sum of the width and height of the rectangular bounding box, then store the index of the point and treat it as a point cloud inside the cell, and finally get the index of the point that meets the conditions; the cell decomposition method of the vertical tail and horizontal tail is the same as that of the wing;
[0067] The geometric characteristics of the engine part are similar to the combination of a cylinder and a cone. In order to meet the constraints of photography, the minimum circumscribed rectangle of the engine is constructed, and the engine is decomposed into six minimum circumscribed rectangles according to the xy plane, xz plane, and yz plane. Under a certain shooting overlap rate, the minimum circumscribed rectangle of the xy plane is decomposed along the x-axis according to the height h of the cell, and the coordinates of each decomposition point are calculated; along the y-axis, it is decomposed according to the width w of the cell, and the coordinates of each decomposition point are calculated; the decomposition of the xz plane and the yz plane is similar; finally, the coordinates of the four vertices of the cell decomposition of the engine part are obtained;
[0068] The cell set C is composed of all cells.
[0069] 2) Based on the decomposition results of the above cells, the initial coverage viewpoints corresponding to the cells are calculated according to the photogrammetry constraints, and all the initial coverage viewpoints constitute an initial coverage viewpoint set;
[0070] According to the vertex coordinates of the cell, first search and record the point cloud within each cell; cells with less than the number of point clouds N are regarded as invalid cells and filtered out, and then the normal vector of each cell is calculated and the center point O ij , and then use the center point O ij , normal vector And the principle of front view and equidistance, calculate the initial coverage viewpoint corresponding to each cell:
[0071] C ij =O ij +d ij n ij ,d ij =d0
[0072] Among them, C ij is the initial coverage viewpoint corresponding to each cell, d ij is the distance between the cell center and the camera optical center, d0 is the nominal shooting distance;
[0073] The initial covered viewpoint set is composed of all initial covered viewpoints.
[0074] 3) Considering the constraints including safety distance, shooting space and coverage range, the viewpoint pose is checked and adjusted for the above initial coverage viewpoint set to obtain the final coverage viewpoint set;
[0075] The specific method is as follows:
[0076] 3.1) First, the initial aircraft model is expanded using appropriate geometric structures and safety distance parameters to obtain an aircraft expansion model S; for each initial coverage viewpoint, determine whether the initial coverage viewpoint is inside the aircraft expansion model S, and if so, select a new viewpoint that satisfies the safety distance constraint;
[0077] 3.2) For the new viewpoint selected in step 3.1), further verify whether it is in the feasible shooting space; the feasible shooting space is surrounded by four planes representing shooting angle constraints and two spheres representing shooting distance constraints; the shooting angle constraint is calculated according to the edge and normal vector of the cell and the maximum allowed shooting angle, and the shooting angle represents the angle between the optical axis and the surface normal vector; the shooting distance constraint is calculated according to the center point of the cell and the maximum and minimum shooting distances; if the new viewpoint is not in the feasible shooting space, further search outside the aircraft expansion model S to generate a new viewpoint that meets the feasible shooting space constraints;
[0078] 3.3) Perform frustum culling and occlusion culling calculations to verify whether the new viewpoint obtained in step 3.2) can cover the specified cell, and generate the visible point cloud corresponding to each viewpoint; if the viewpoint can cover its specified cell without being occluded, it is the final feasible viewpoint, otherwise, resample and select a new viewpoint, and repeat steps 3.1)-3.3) until all constraints are met. After the above process, the final set of covered viewpoints is obtained.
[0079] 4) Based on the above covered viewpoint set, the traveling salesman (TSP) problem is solved hierarchically to obtain the initial path point traversal order within and between each component of the aircraft; then the hierarchical covering path is obtained by connecting the path within each component and the path between components;
[0080] Due to symmetry, the aircraft is divided into a left half and a right half. In order to reduce the scale of the optimization problem, coverage path planning is performed only for half of the aircraft, and the planned path can be directly applied to the other half of the aircraft in the opposite order. In addition, using the semantic information of the aircraft, the coverage viewpoints in the coverage viewpoint set are classified according to the components including the fuselage, wings, engines, vertical tail, and horizontal tail, and then the LKH algorithm is used to solve the traveling salesman. The initial cost matrix required by the LKH algorithm is constructed based on the three-dimensional Euclidean distance between the two coverage viewpoints; first, the traveling salesman is solved in each component, V krepresents the path point set of the kth component, where the path point set is composed of the coverage viewpoint set obtained in step 3), c ij represents the cost of the local path between path point i and path point j, x ij represents a binary decision variable, and N represents the path point set V of the kth component. k The number of path points in the component, the traveling salesman in each component is expressed as:
[0081]
[0082] To eliminate sub-loop constraints using the Subtour-Elimination method. After solving the traveling salesman within each component, determine the starting point and the end point, then solve the traveling salesman between the components to obtain the initial path point traversal order within each component and between components; finally, by connecting the paths within each component and the paths between components, a hierarchical coverage path is obtained. The schematic diagram of hierarchical coverage path planning is shown in Figure 3 .
[0083] 5) Perform collision detection and replanning of the collision paths on the above-mentioned layered coverage paths;
[0084] In order to solve the traveling salesman problem, the cost between two coverage viewpoints should be the length of the non-collision path. However, planning non-collision paths for all coverage viewpoints is quite time-consuming. In order to improve the calculation speed, collision detection is performed on the generated hierarchical coverage path, and the collision path is replanned. Based on the aircraft expansion model S constructed in step 3.1), whether there is an intersection between the hierarchical coverage path and the aircraft expansion model S is used to determine whether a collision occurs, and then the collision path is replanned using the rapid search random tree (RRT) algorithm.
[0085] 6) Iteratively optimize the replanned path to obtain the final hierarchical coverage path;
[0086] In order to strike a balance between optimality and computational speed, an iterative strategy is used to further optimize the path. After collision detection and collision path replanning, the cost matrix corresponding to the replanned path needs to be updated, and then based on the updated cost matrix, the above steps 4) to 5) are repeated for iterative optimization until the specified number of iterations is reached or the length of the hierarchical coverage path is not further reduced, and the final hierarchical coverage path is obtained.
[0087] The effect of the hierarchical coverage path planning method for automatic detection of aircraft surface under photogrammetry constraints provided by the present invention can be further illustrated by the following experimental results.
[0088] The present invention uses a unified triangular mesh model of Boeing 737-300 for comparative experiments, which consists of 20,759 meshes. The algorithm is implemented in MATLAB 2021b, using an Intel(R) Core(TM) i5-8250U processor with 16GB of memory.
[0089] 1) Conclusion verification of the method of the present invention
[0090] The present invention verifies the coverage of each component under different cell sizes. In Table 1, it can be seen that full coverage is achieved under different cell sizes, proving the adaptability of the decomposition algorithm.
[0091] Table 1: Number of viewpoints and viewpoint coverage of each component under different cell sizes
[0092]
[0093] The collision detection results and the final coverage path are as follows: Figure 4a , Figure 4b As shown in . After local path replanning and iterative optimization, the final path safety distance can be guaranteed. Figure 4b As shown (in Figure 4b In the figure, edges are collision-free paths and points are path points. The paths obtained by solving the hierarchical CPP are regular, which helps to monitor the execution of the inspection task.
[0094] 2) Comparison of viewpoint generation algorithm with other methods
[0095] In the traditional viewpoint generation method, linear programming (LP) algorithm and greedy algorithm (Greedy) are commonly used to solve SCP, so the present invention adopts them as a comparison method. In the comparison method, each grid of the Boeing 737-300 model generates a viewpoint. Occlusion culling and frustum culling calculations are performed on each viewpoint. Then, the initial coverage viewpoint and the coverage area of each viewpoint are used as input, and the algorithm output is the minimum coverage viewpoint set.
[0096] Table 2 shows the comparison results of different methods in terms of the number of viewpoints and the total time required for viewpoint generation. It can be seen that the method of the present invention generates the least number of viewpoints, and its calculation time is only 0.3% of the other two methods. Compared with the LP algorithm and the greedy algorithm, the present invention can avoid SCP, as well as a large number of frustum and occlusion culling calculations, and significantly improves efficiency.
[0097] Table 2: Efficiency comparison of different viewpoint generation algorithms
[0098]
[0099] In addition to the efficiency of the algorithm, the present invention also conducts experiments to verify the robustness of the generated viewpoint set to positioning errors, which is inevitable in the actual movement of the UAV and may affect the coverage. Under a 5cm position error, the coverage results corresponding to the viewpoint sets generated by different algorithms are shown in Figure 5. Figure 5a , Figure 5b , Figure 5c They are the greedy algorithm, the LP algorithm and the method of the present invention. It can be seen that the unit decomposition method can almost eliminate the influence of positioning errors, with a coverage rate of 99.66%, which can be further improved to 100% by increasing the overlapping rate of shooting. In contrast, the coverage rates of the greedy algorithm and the LP algorithm are only 78.43% and 84.50%, which will result in many areas being missed during the inspection and endangering the airworthiness of the aircraft.
[0100] 3) Comparison of path planning algorithm with other methods
[0101] In order to demonstrate the advantages of hierarchical CPP, the present invention uses the viewpoints generated by LP and greedy algorithms for CPP as a comparison. It is also compared with the global CPP method, which uses the viewpoints generated by cell decomposition instead of the hierarchical strategy. The path planning results of different methods are shown in Figure 6. Figure 6a , Figure 6b , Figure 6c , Figure 6d They are the path planning results of the algorithm of the present invention, the global planning algorithm, the LP algorithm and the greedy algorithm. The calculation speed comparison of different algorithms is shown in Table 3. It can be seen that the TSP solution time of the hierarchical CPP is the shortest. This is because the number of viewpoints of the present invention is small and a large-scale TSP is divided into multiple small-scale TSPs. In addition, the comparison method generates many cross-component collision paths, so the re-planning based on RRT is quite time-consuming. In contrast, the hierarchical CPP can reduce the cross-component collision paths by planning local paths within each component. Although the cost of the hierarchical CPP is slightly higher than that of the global CPP, considering the improvement in calculation speed and regularity brought about by the hierarchical strategy, the increase in cost is worthwhile. The other two methods have slower calculation speeds and higher path costs due to the increase in viewpoints and collision paths.
Claims
1. A hierarchical coverage path planning method for automatic detection of aircraft surfaces under photogrammetry constraints, characterized by: The method for automatically detecting and layering the aircraft surface under photogrammetry constraints and planning the path comprises the following steps performed in sequence: 1) Decompose each component of the aircraft 3D point cloud model into cells; 2) Based on the decomposition results of the above cells, the initial coverage viewpoints corresponding to the cells are calculated according to the photogrammetry constraints, and all the initial coverage viewpoints constitute an initial coverage viewpoint set; 3) Considering the constraints including safety distance, shooting space and coverage range, the viewpoint pose is checked and adjusted for the above initial coverage viewpoint set to obtain the final coverage viewpoint set; 4) Based on the above-mentioned set of covered viewpoints, the traveling salesman problem is solved hierarchically to obtain the traversal order of the initial path points within and between the components of the aircraft; then, the hierarchical covering path is obtained by connecting the paths within each component and the paths between the components; 5) Perform collision detection and replanning of the collision paths on the above-mentioned layered coverage paths; 6) Iteratively optimize the replanned path to obtain the final hierarchical coverage path.
2. The hierarchical coverage path planning method for automatic detection of aircraft surface under photogrammetry constraints according to claim 1 is characterized by: In step 1), the method of performing cell decomposition on each component of the aircraft three-dimensional point cloud model is: For a given aircraft 3D point cloud model P, cell decomposition is performed based on the geometric characteristics of each aircraft component and the shooting overlap rate R, and all cells constitute a cell set C.
3. The hierarchical coverage path planning method for automatic detection of aircraft surface under photogrammetry constraints according to claim 1 is characterized by: In step 2), the method of calculating the initial coverage viewpoints corresponding to the cells based on the decomposition results of the cells according to the photogrammetry constraints and forming the initial coverage viewpoint set from all the initial coverage viewpoints is: According to the vertex coordinates of the cell, first search and record the point cloud within each cell; cells with less than the number of point clouds N are regarded as invalid cells and filtered out, and then the normal vector nr of each cell is calculated ij and the center point O ij , and then use the center point O ij , normal vector nr ij And the principle of front view and equidistance, calculate the initial coverage viewpoint corresponding to each cell: C ij =O ij +d ij n ij ,d ij =d0 Among them, C ij is the initial coverage viewpoint corresponding to each cell, d ij is the distance between the cell center and the camera optical center, d0 is the nominal shooting distance; The initial covered viewpoint set is composed of all initial covered viewpoints.
4. The hierarchical coverage path planning method for automatic detection of aircraft surface under photogrammetry constraints according to claim 1 is characterized by: In step 3), the method of checking and adjusting the viewpoint pose of the initial coverage viewpoint set by considering the constraints including the safety distance, the shooting space and the coverage range to obtain the final coverage viewpoint set is: 3.1) First, the initial aircraft model is expanded using appropriate geometric structures and safety distance parameters to obtain an aircraft expansion model S; for each initial coverage viewpoint, determine whether the initial coverage viewpoint is inside the aircraft expansion model S, and if so, select a new viewpoint that satisfies the safety distance constraint; 3.2) For the new viewpoint selected in step 3.1), further verify whether it is in the feasible shooting space; the feasible shooting space is surrounded by four planes representing shooting angle constraints and two spheres representing shooting distance constraints; the shooting angle constraint is calculated according to the edge and normal vector of the cell and the maximum allowed shooting angle, and the shooting angle represents the angle between the optical axis and the surface normal vector; the shooting distance constraint is calculated according to the center point of the cell and the maximum and minimum shooting distances; if the new viewpoint is not in the feasible shooting space, further search outside the aircraft expansion model S to generate a new viewpoint that meets the feasible shooting space constraints; 3.3) Perform frustum culling and occlusion culling calculations to verify whether the new viewpoint obtained in step 3.2) can cover the specified cell, and generate the visible point cloud corresponding to each viewpoint; if the viewpoint can cover its specified cell without being occluded, it is the final feasible viewpoint, otherwise, resample and select a new viewpoint, and repeat steps 3.1)-3.3) until all constraints are met. After the above process, the final set of covered viewpoints is obtained.
5. The hierarchical coverage path planning method for automatic detection of aircraft surface under photogrammetry constraints according to claim 1 is characterized by: In step 4), based on the above-mentioned set of covered viewpoints, the traveling salesman problem is solved hierarchically to obtain the initial path point traversal sequence within and between each component of the aircraft; then, by connecting the path within each component and the path between the components, the method of obtaining the hierarchical covered path is: Using the semantic information of the aircraft, the coverage viewpoints in the coverage viewpoint set are classified according to the components including the fuselage, wings, engines, vertical tail, and horizontal tail. Then, the LKH algorithm is used to solve the traveling salesman. The initial cost matrix required by the LKH algorithm is constructed based on the three-dimensional Euclidean distance between two coverage viewpoints. First, the traveling salesman is solved in each component, V k represents the path point set of the kth component, where the path point set is composed of the coverage viewpoint set obtained in step 3), c ij represents the cost of the local path between path point i and path point j, x ij represents a binary decision variable, and N represents the path point set V of the kth component. k The number of path points in the component, the traveling salesman in each component is expressed as: To eliminate sub-loop constraints using the Subtour-Elimination method; after solving the traveling salesman within each component, determine the starting point and the end point, then solve the traveling salesman between the components to obtain the initial path point traversal order within each component and between components; finally, by connecting the path within each component and the path between components, a hierarchical coverage path is obtained.
6. The hierarchical coverage path planning method for automatic detection of aircraft surface under photogrammetry constraints according to claim 1 is characterized by: In step 5), the method of performing collision detection on the above-mentioned hierarchical coverage path and replanning the collision path is: Based on the aircraft expansion model S constructed in step 3.1), whether there is an intersection between the hierarchical coverage path and the aircraft expansion model S is used to determine whether a collision occurs, and then the collision path is replanned using a fast search random tree algorithm.
7. The hierarchical coverage path planning method for automatic detection of aircraft surface under photogrammetry constraints according to claim 1 is characterized by: In step 6), the method of iteratively optimizing the replanned path to obtain the final hierarchical coverage path is: After collision detection and collision path replanning, the cost matrix corresponding to the replanned path is updated, and then based on the updated cost matrix, the above steps 4)-5) are repeated for iterative optimization until the specified number of iterations is reached or the length of the hierarchical coverage path is not further reduced, and the final hierarchical coverage path is obtained.
