UAV power automatic inspection control method based on MSDK technology
The automatic inspection control method for UAVs using MSDK technology addresses inefficient obstacle avoidance and path optimization in drone inspections by generating paths, setting warning ranges, and allowing for re-planning, thereby improving the efficiency and effectiveness of drone inspections in complex power grid environments.
Patent Information
- Application Number
- CN202411245195.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-09-06
AI Technical Summary
Existing drone inspection methods for power grids face challenges in effectively and efficiently navigating complex environments, leading to inefficient obstacle avoidance and suboptimal flight paths.
An automatic inspection control method for UAVs using MSDK technology, which generates an inspection path, analyzes obstacle avoidance levels, sets warning ranges, performs obstacle avoidance operations, and allows for re-planning of flight paths after encountering obstacles.
Enhances the efficiency and effectiveness of drone inspections by enabling quick obstacle avoidance and optimizing flight paths in power grid environments.
Smart Images

Figure CN118760212B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of unmanned aerial vehicles and relates to automatic inspection control technology, in particular to an automatic inspection control method for electric power of unmanned aerial vehicles based on MSDK technology. Background Art
[0002] Power Internet refers to the use of modern information, communication and control technologies to intelligently transform and upgrade traditional power systems to achieve intelligent management and optimization of power production, transmission, distribution and use. Power Internet is an important milestone in the evolution of traditional power grids to smart grids, aiming to improve the efficiency, reliability, safety and sustainability of power systems; and the inspection of power Internet is an important link in ensuring the normal operation and safety of smart grid systems. High-quality inspections can ensure the stable operation of the power Internet system, improve the reliability and safety of the system, and ensure the continuity and quality of power supply.
[0003] However, at present, when drones are inspecting power grids, the obstacle avoidance method for static objects on the power grid is relatively simple, especially when encountering a more complex environment, the obstacle avoidance operation cannot be completed effectively and quickly. At the same time, the path of the drone that has completed the obstacle avoidance cannot be optimized, resulting in low efficiency of drone inspection work;
[0004] To this end, we propose an automatic inspection control method for UAV power based on MSDK technology. Summary of the invention
[0005] The purpose of the present invention is to propose an automatic inspection control method for UAV power based on MSDK technology to solve the problems raised in the above background technology.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] The automatic inspection control method of UAV power based on MSDK technology is as follows:
[0008] Step S1, generating an automatic inspection path corresponding to the target UAV according to the power grid to be inspected, and dispatching the automatic inspection path to the target UAV;
[0009] Step S2, analyzing the obstacle avoidance level of the target UAV, and setting a corresponding obstacle avoidance warning range for the target UAV according to the obstacle avoidance level;
[0010] Step S3, the target UAV leaves the corresponding machine nest, executes the automatic inspection path at the obstacle avoidance height, and performs obstacle avoidance operation when encountering obstacles;
[0011] Step S4, the target drone that has completed obstacle avoidance replans its inspection path.
[0012] Furthermore, the step S1 includes the following sub-steps:
[0013] Step S11, obtaining a power grid map corresponding to the power grid to be inspected, and obtaining the power tower position coordinates (Xn, Yn) of the n power towers marked in the power grid map, where Xn is the horizontal coordinate of the power tower, Yn is the vertical coordinate of the power tower, and n is the number corresponding to the power tower;
[0014] Step S12, by formula Calculate the adjacent distance DXLx between two adjacent power towers; where t is the number of the adjacent power tower corresponding to power tower n, and x is the number of the adjacent distance between the power tower and the adjacent power tower;
[0015] In step S13, the power tower closest to the target UAV's corresponding machine nest is recorded as the initial element in the path set. Starting from the initial element, all adjacent power towers to the initial element are traversed, and the adjacent power tower closest to the initial element is recorded as the element to be selected.
[0016] Furthermore, the step S1 further includes the following sub-steps:
[0017] Step S14: if there is only one element to be selected, the corresponding adjacent power tower is recorded as the selected element and added to the path set; if there are multiple elements to be selected, the corresponding adjacent power towers are recorded as the selected elements and added to the path set in order from left to right;
[0018] Step S15, recording the adjacent distance between the initial element and the selected element as the selected path;
[0019] Step S16, then use the selected element as the next initial element, repeat steps S13 to S15 until all power towers are in the path set, and integrate the selected paths between adjacent elements in the path set as the automatic inspection path of the target drone.
[0020] Furthermore, the step S2 includes the following sub-steps:
[0021] Step S21, obtaining the real-time height of all power towers in the automatic inspection path, and the height of the power tower plus the climbing height is used as the obstacle avoidance height of the target UAV;
[0022] Step S22, obtaining the collision rate PZL of the target UAV, and then obtaining the UAV failure rate GZL of the UAV of the same model as the target UAV in the previous quarter;
[0023] Step S23, calculating the obstacle avoidance level value BDJ of the target UAV by the formula BDJ=A1×PZL+A2×GZL; wherein A1 and A2 are weight coefficients with fixed values;
[0024] Step S24, comparing the obstacle avoidance level value of the target UAV with the obstacle avoidance level threshold;
[0025] If the obstacle avoidance level value of the target UAV is less than or equal to the first obstacle avoidance level threshold, the obstacle avoidance level of the target UAV is recorded as level 1 obstacle avoidance, and the obstacle avoidance warning radius of the target UAV is set to R1;
[0026] If the obstacle avoidance level of the target UAV is greater than the first obstacle avoidance level threshold and less than or equal to the second obstacle avoidance level threshold, the obstacle avoidance level of the target UAV is recorded as level 2 obstacle avoidance, and the obstacle avoidance warning radius of the target UAV is set to R2;
[0027] If the obstacle avoidance level value of the target UAV is greater than the second obstacle avoidance level threshold, the obstacle avoidance level of the target UAV is recorded as level three obstacle avoidance, and the obstacle avoidance warning radius of the target UAV is set to R3.
[0028] Further, the first obstacle avoidance level threshold is less than the second obstacle avoidance level threshold, R1<R2<R3;
[0029] The obstacle avoidance difficulty of the target drone corresponding to the first-level obstacle avoidance is less than that of the drone corresponding to the second-level obstacle avoidance, and the obstacle avoidance difficulty of the target drone corresponding to the second-level obstacle avoidance is less than that of the drone corresponding to the third-level obstacle avoidance.
[0030] Furthermore, the step S3 includes the following sub-steps:
[0031] Step S31: If the target UAV detects that there is an unknown obstacle in front of the flight, the relative distance JLX between the target UAV P and the obstacle is obtained through radar, and the warning point Q corresponding to the obstacle and the coordinates of the warning point are obtained according to the relative distance;
[0032] Step S32: if the relative distance is greater than the obstacle avoidance warning radius, no operation is performed;
[0033] If the relative distance is less than or equal to the obstacle avoidance warning radius, a rectangular coordinate system is established with the direction corresponding to the relative distance as the X-axis and the direction perpendicular to the relative distance as the Y-axis;
[0034] Then, the coordinates of the first critical point M and the second critical point N corresponding to the obstacle are obtained; wherein the first critical point and the second critical point are the intersection points of the tangents between the target UAV and the obstacle;
[0035] Step S33, calculating a first critical slope between the first critical point M and the warning point Q, a second critical slope between the warning point Q and the second critical point N, and then calculating a critical distance JLL between the first critical point M and the second critical point N;
[0036] Step S34, if the first critical slope is the same as the second critical slope, the first critical point M, the warning point Q and the second critical point N are determined to be collinear, and the tangent value of the first characteristic angle α is calculated;
[0037] The calculation process of the tangent value corresponding to the first characteristic angle α is: tanα=JLL / (2×JLX), then α=arctan[JLL / (2×JLX)].
[0038] Furthermore, the step S3 also includes the following sub-steps:
[0039] Step S35: If the first critical slope is different from the second critical slope, a circumscribed obstacle circle of the obstacle is drawn:
[0040] Connect MQ and NQ, and then draw a perpendicular line to MQ with its foot at D, and a perpendicular line to NQ with its foot at E; the perpendicular lines MQ and NQ intersect at point O, which is the center of the circumscribed obstacle circle;
[0041] Calculate the slope XLod of OD and the slope XLoe of OE:
[0042] Among them, Xd=(Xm+Xq) / 2, Yd=(Ym+Yq) / 2; Xe=(Xn+Xq) / 2, Ye=(Yn+Yq) / 2;
[0043] Solved: The coordinates of the center of the circumscribed obstacle circle are: The radius R is:
[0044] Since OD is perpendicular to MQ and OE is perpendicular to NQ, we can know that the product of the slope corresponding to OD and the slope corresponding to MQ is negative one, and the product of the slope corresponding to OE and the slope corresponding to NQ is negative one, that is:
[0045] XLod=-1 / XLmq=-(Xm-Xq) / (Ym-Yq), XLoe=-1 / XLnq=-(Xn-Xq) / (Yn-Yq);
[0046] Among them, XLmq is the slope corresponding to MQ, and XLnq is the slope corresponding to NQ;
[0047] Step S36, for the triangle OPM, calculate the sine value of the first characteristic angle α sinα=R / (JLX+R), and then obtain α=arcsin[R / (JLX+R)];
[0048] Step S37, obtaining the instantaneous speed SDS corresponding to the target UAV and the angle between the corresponding traveling direction and the relative distance of the target UAV and recording them as the second characteristic angle β;
[0049] Step S38: if the second characteristic angle is greater than or equal to the first characteristic angle, the target UAV does not need to perform obstacle avoidance operation;
[0050] If the second characteristic angle is smaller than the first characteristic angle, the direction deviation angle is set according to the position of the target drone. In extreme cases, the target drone is infinitely close to the Q point of the obstacle. At this time, the target drone adjusts its direction vertically upward, that is, the direction deviation angle PYJ is 90 degrees;
[0051] If the target UAV is at point P at this time, the angle of the first characteristic angle is used as the direction offset angle of the target UAV.
[0052] Furthermore, the step S4 includes the following sub-steps:
[0053] Step S41, obtain the current location of the target drone and record it as the initial element P1 in the inspection sequence XJ, obtain the remaining automatic inspection path of the target drone, and mark the location of the uninspected power tower as the subsequent element Pj of the inspection sequence, j=1, 2, ..., i, j is the number of the element in the inspection sequence, and i is a positive integer;
[0054] Step S42, if the subsequent element is less than two, the original automatic inspection path is executed;
[0055] If the number of subsequent elements is greater than or equal to two, then each element in the inspection sequence is connected in turn;
[0056] Step S43, record the second element in the inspection sequence as the selected element, record the previous element of the selected element as the pre-element, record the next element of the selected element as the post-element, connect the pre-element and the post-element, and obtain the optimized straight line corresponding to the selected element;
[0057] Step S44, draw a perpendicular line from the position of the selected element to the optimized straight line, and measure the optimized perpendicular distance between the selected element and the optimized straight line.
[0058] Furthermore, the step S4 further includes the following sub-steps:
[0059] Step S45, if the optimized vertical distance is less than or equal to the vertical distance threshold, the selected element is discarded, and the optimized straight line is used as the subsequent inspection path of the target UAV, and then the next element of the current post-element is recorded as the selected element for the next calculation;
[0060] If the optimized vertical distance is greater than the vertical distance threshold, the selected element is retained and the post-positioned element is recorded as the selected element for the next calculation;
[0061] Step S46, repeating steps S44 to S45 until the last element in the inspection sequence is calculated to obtain an optimized inspection sequence;
[0062] Step S47, calculating the similarity between the original inspection sequence and the optimized inspection sequence, and selecting the best inspection sequence as the subsequent inspection path of the target UAV.
[0063] Furthermore, the step S47 includes the following sub-steps:
[0064] Step S471, calculate the Euclidean distance of the optimized inspection sequence by using the formula, the specific formula is as follows:
[0065] Among them, Xj is the horizontal coordinate of Pj, and Yj is the vertical coordinate of Pj;
[0066] Then the Euclidean distance of the original optimized inspection sequence is normalized to obtain the corresponding optimized sequence trajectory characteristic value GTZH=1 / (1+YHO);
[0067] Step S472, similarly, the Euclidean distance YSO of the original inspection sequence is calculated, and normalized to obtain the original sequence trajectory characteristic value GTZS=1 / (1+YSO) corresponding to the original inspection sequence;
[0068] Step S473, comparing the optimized sequence trajectory feature value with the original sequence trajectory feature value;
[0069] If the difference between the trajectory eigenvalue of the optimized sequence and the trajectory eigenvalue of the original sequence is less than or equal to the similarity threshold, the optimized inspection sequence will be used as the subsequent inspection task of the target UAV;
[0070] If the difference between the trajectory eigenvalue of the optimized sequence and the trajectory eigenvalue of the original sequence is greater than the similarity threshold, the original inspection sequence will be used as the subsequent inspection task of the target UAV.
[0071] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0072] The present invention generates an automatic inspection path corresponding to a target UAV according to the power grid to be inspected, distributes the automatic inspection path to the target UAV, and then analyzes the obstacle avoidance level of the target UAV, and sets a corresponding obstacle avoidance warning range for the target UAV according to the obstacle avoidance level. When the target UAV performs the inspection work and leaves the corresponding machine nest, the target UAV executes the automatic inspection path at an obstacle avoidance height, and performs obstacle avoidance operations when encountering obstacles. At the same time, the target UAV that has completed obstacle avoidance can also re-plan the inspection path. The present invention can not only quickly and effectively realize the obstacle avoidance operation of static objects in the power grid line, but also can re-optimize the flight path of the inspection UAV after avoiding obstacles. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0074] Figure 1 The figure is a flow chart of the method of the present invention.
[0075] Figure 2 This is a first schematic diagram of the target UAV avoiding obstacles in the present invention.
[0076] Figure 3 This is a second schematic diagram of the target UAV avoiding obstacles in the present invention.
[0077] Figure 4 This is a third schematic diagram of the target UAV avoiding obstacles in the present invention.
[0078] Figure 5 Schematic diagram of obstacle avoidance of target UAV under extreme conditions in the present invention.
[0079] Figure 6 It is a schematic diagram of route optimization in the present invention.
[0080] Figure 7 It is a schematic diagram of the structure of the electronic device in the present invention. DETAILED DESCRIPTION
[0081] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0082] Example 1: Please refer to Figure 1-Figure 6 As shown, the technical solution provided by the present invention is: a method for automatic inspection and control of UAV power based on msdk technology, wherein msdk technology is composed of the abbreviations of M30 (product model), DJI RC (remote controller), and AndroidSDK (software development kit), and the method is specifically as follows:
[0083] Step S1, generating an automatic inspection path corresponding to the target UAV according to the power grid to be inspected, and dispatching the automatic inspection path to the target UAV;
[0084] It should be noted that the automatic inspection path is stored in the drone route file in the form of the MQTT protocol. The MTQQ protocol is a message publish / subscribe transmission protocol based on the client (drone)-server. The MQTT protocol will build the underlying network transmission and establish a connection from the client (drone) to the server, providing an orderly, lossless, byte stream-based two-way transmission between the two.
[0085] In this embodiment, step S1 includes the following sub-steps:
[0086] Step S11, obtaining a power grid map corresponding to the power grid to be inspected, and obtaining the power tower position coordinates (Xn, Yn) of the n power towers marked in the power grid map, where Xn is the horizontal coordinate of the power tower, Yn is the vertical coordinate of the power tower, and n is the number corresponding to the power tower;
[0087] Step S12, calculating the adjacent distance DXLx between two adjacent power towers by a formula, the specific formula is as follows:
[0088] In the formula, t is the number of the adjacent power tower corresponding to power tower n, and x is the number of the adjacent spacing between the power tower and the adjacent power tower;
[0089] Wherein, adjacent power towers specifically refer to power towers connected by cables, and the number of adjacent spacing between power towers can be greater than the number of power towers;
[0090] Step S13, record the power tower closest to the target drone's corresponding nest as the initial element in the path set, and traverse all adjacent power towers to the initial element from the initial element, and record the adjacent power tower closest to the initial element as the element to be selected;
[0091] Step S14: if there is only one element to be selected, the corresponding adjacent power tower is recorded as the selected element and added to the path set; if there are multiple elements to be selected, the corresponding adjacent power towers are recorded as the selected elements and added to the path set in order from left to right;
[0092] Step S15, recording the adjacent distance between the initial element and the selected element as the selected path;
[0093] Step S16, then use the selected element as the next initial element, repeat steps S13 to S15 until all power towers are in the path set, and integrate the selected paths between adjacent elements in the path set as the automatic inspection path of the target drone.
[0094] Step S2, analyzing the obstacle avoidance level of the target UAV, and setting a corresponding obstacle avoidance warning range for the target UAV according to the obstacle avoidance level;
[0095] In this embodiment, step S2 includes the following sub-steps:
[0096] Step S21, obtaining the heights of all power towers in the automatic inspection path, and the height of the power tower plus the climbing height is used as the obstacle avoidance height of the target UAV;
[0097] Step S22, obtaining the collision rate PZL of the target UAV, and then obtaining the UAV failure rate GZL of the UAV of the same model as the target UAV in the previous quarter;
[0098] Step S23, calculating the obstacle avoidance level value BDJ of the target UAV by a formula, the specific formula is as follows:
[0099] BDJ=A1×PZL+A2×GZL; where A1 and A2 are weight coefficients with fixed values;
[0100] Step S24, comparing the obstacle avoidance level value of the target UAV with the obstacle avoidance level threshold;
[0101] If the obstacle avoidance level value of the target UAV is less than or equal to the first obstacle avoidance level threshold, the obstacle avoidance level of the target UAV is recorded as level 1 obstacle avoidance, and the obstacle avoidance warning radius of the target UAV is set to R1;
[0102] If the obstacle avoidance level of the target UAV is greater than the first obstacle avoidance level threshold and less than or equal to the second obstacle avoidance level threshold, the obstacle avoidance level of the target UAV is recorded as level 2 obstacle avoidance, and the obstacle avoidance warning radius of the target UAV is set to R2;
[0103] If the obstacle avoidance level value of the target UAV is greater than the second obstacle avoidance level threshold, the obstacle avoidance level of the target UAV is recorded as level 3 obstacle avoidance, and the obstacle avoidance warning radius of the target UAV is set to R3;
[0104] The first obstacle avoidance level threshold is less than the second obstacle avoidance level threshold, R1<R2<R3; the obstacle avoidance difficulty of the target drone corresponding to the first-level obstacle avoidance is less than the obstacle avoidance difficulty of the drone corresponding to the second-level obstacle avoidance, and the obstacle avoidance difficulty of the target drone corresponding to the second-level obstacle avoidance is less than the obstacle avoidance difficulty of the drone corresponding to the third-level obstacle avoidance.
[0105] Step S3, the target UAV leaves the corresponding machine nest, executes the automatic inspection path at the obstacle avoidance height, and performs obstacle avoidance operation when encountering obstacles;
[0106] In this embodiment, step S3 includes the following sub-steps:
[0107] Step S31, as Figure 2 As shown in the figure, if the target UAV detects that there is an unknown obstacle in front of the flight, the relative distance JLX between the target UAV P and the obstacle is obtained through the radar, and the warning point Q corresponding to the obstacle and the coordinates of the warning point are obtained according to the relative distance;
[0108] Step S32: if the relative distance is greater than the obstacle avoidance warning radius, no operation is performed;
[0109] If the relative distance is less than or equal to the obstacle avoidance warning radius, a rectangular coordinate system is established with the direction corresponding to the relative distance as the X-axis and the direction perpendicular to the relative distance as the Y-axis;
[0110] Then, the coordinates of the first critical point M and the second critical point N corresponding to the obstacle are obtained through the laser radar, where the first critical point and the second critical point are the intersection points of the tangents between the target UAV and the obstacle;
[0111] Step S33, calculating a first critical slope between the first critical point M and the warning point Q, a second critical slope between the warning point Q and the second critical point N, and then calculating a critical distance JLL between the first critical point M and the second critical point N;
[0112] Step S34, if the first critical slope is the same as the second critical slope, the first critical point M, the warning point Q and the second critical point N are determined to be collinear, and the tangent value of the first characteristic angle α is calculated;
[0113] The calculation process of the tangent value corresponding to the first characteristic angle α is: tanα=JLL / (2×JLX), then α=arctan[JLL / (2×JLX)];
[0114] Step S35, as Figure 3-Figure 4 As shown in , if the first critical slope is different from the second critical slope, then draw the circumscribed obstacle circle of the obstacle:
[0115] Connect MQ and NQ, and then draw a perpendicular line to MQ with its foot at D, and a perpendicular line to NQ with its foot at E; the perpendicular lines MQ and NQ intersect at point O, which is the center of the circumscribed obstacle circle;
[0116] Calculate the slope XLod of OD and the slope XLoe of OE:
[0117] Among them, Xd=(Xm+Xq) / 2, Yd=(Ym+Yq) / 2; Xe=(Xn+Xq) / 2, Ye=(Yn+Yq) / 2;
[0118] Solved: The coordinates of the center of the circumscribed obstacle circle are: The radius R is:
[0119] Since OD is perpendicular to MQ and OE is perpendicular to NQ, we can know that the product of the slope corresponding to OD and the slope corresponding to MQ is negative one, and the product of the slope corresponding to OE and the slope corresponding to NQ is negative one, that is:
[0120] XLod=-1 / XLmq=-(Xm-Xq) / (Ym-Yq), XLoe=-1 / XLnq=-(Xn-Xq) / (Yn-Yq);
[0121] Among them, XLmq is the slope corresponding to MQ, and XLnq is the slope corresponding to NQ;
[0122] Step S36, for the triangle OPM, calculate the sine value of the first characteristic angle α sinα=R / (JLX+R), and then obtain α=arcsin[R / (JLX+R)];
[0123] Step S37, obtaining the instantaneous speed SDS corresponding to the target UAV and the angle between the corresponding traveling direction and the relative distance of the target UAV and recording them as the second characteristic angle β;
[0124] Step S38: if the second characteristic angle is greater than or equal to the first characteristic angle, the target UAV does not need to perform obstacle avoidance operation;
[0125] If the second characteristic angle is smaller than the first characteristic angle, the direction deviation angle is set according to the position of the target drone. In extreme cases, the target drone is infinitely close to the Q point of the obstacle. At this time, the target drone adjusts its direction vertically upward, that is, the direction deviation angle PYJ is 90 degrees;
[0126] If the target UAV is at point P at this time, the angle of the first characteristic angle is used as the direction offset angle of the target UAV.
[0127] Step S4, the target drone that has completed obstacle avoidance replans its inspection path;
[0128] In this embodiment, step S4 specifically includes the following sub-steps:
[0129] Step S41, obtain the current location of the target drone and record it as the initial element P1 in the inspection sequence XJ, obtain the remaining automatic inspection path of the target drone, and mark the location of the uninspected power tower as the subsequent element Pj of the inspection sequence, j=1, 2, ..., i, j is the number of the element in the inspection sequence, and i is a positive integer;
[0130] Step S42, see Figure 6 As shown, if the subsequent element is less than two, the original automatic inspection path is executed, and if the subsequent element is greater than or equal to two, each element in the inspection sequence is connected in sequence;
[0131] Step S43, record the second element in the inspection sequence as the selected element, record the previous element of the selected element as the pre-element, record the next element of the selected element as the post-element, connect the pre-element and the post-element, and obtain the optimized straight line corresponding to the selected element;
[0132] Step S44, drawing a perpendicular line from the position of the selected element to the optimized straight line, and measuring the optimized perpendicular distance between the selected element and the optimized straight line;
[0133] Step S45, if the optimized vertical distance is less than or equal to the vertical distance threshold, the selected element is discarded, and the optimized straight line is used as the subsequent inspection path of the target UAV, and then the next element of the current post-element is recorded as the selected element for the next calculation;
[0134] If the optimized vertical distance is greater than the vertical distance threshold, the selected element is retained and the post-positioned element is recorded as the selected element for the next calculation;
[0135] Step S46, repeating steps S44 to S45 until the last element in the inspection sequence is calculated to obtain an optimized inspection sequence;
[0136] Step S47, calculating the similarity between the original inspection sequence and the optimized inspection sequence, and selecting the best inspection sequence as the subsequent inspection path of the target UAV.
[0137] In specific implementation, the step S47 includes the following sub-steps:
[0138] Step S471, calculate the Euclidean distance of the optimized inspection sequence by using the formula, the specific formula is as follows:
[0139] Among them, Xj is the horizontal coordinate of Pj, and Yj is the vertical coordinate of Pj;
[0140] Then the Euclidean distance of the original optimized inspection sequence is normalized to obtain the corresponding optimized sequence trajectory characteristic value GTZH=1 / (1+YHO);
[0141] Step S472, similarly, the Euclidean distance YSO of the original inspection sequence is calculated, and normalized to obtain the original sequence trajectory characteristic value GTZS=1 / (1+YSO) corresponding to the original inspection sequence;
[0142] Step S473, comparing the optimized sequence trajectory feature value with the original sequence trajectory feature value;
[0143] If the difference between the trajectory eigenvalue of the optimized sequence and the trajectory eigenvalue of the original sequence is less than or equal to the similarity threshold, the optimized inspection sequence will be used as the subsequent inspection task of the target UAV;
[0144] If the difference between the trajectory eigenvalue of the optimized sequence and the trajectory eigenvalue of the original sequence is greater than the similarity threshold, the original inspection sequence is used as the subsequent inspection task of the target UAV;
[0145] In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.
[0146] Embodiment 2: Figure 7 The following is a schematic diagram of the structure of a computer device, such as Figure 7 As shown, the computer device may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. The processor may call the logic instructions in the memory to execute the automatic inspection control method of the UAV power based on the MSDK technology, the method comprising: the automatic inspection control method of the UAV power based on the MSDK technology, the method is as follows: generate the automatic inspection path corresponding to the target UAV according to the power grid to be inspected, and dispatch the automatic inspection path to the target UAV; analyze the obstacle avoidance level of the target UAV, and set the corresponding obstacle avoidance warning range for the target UAV according to the obstacle avoidance level; the target UAV leaves the corresponding machine nest, executes the automatic inspection path at the obstacle avoidance height, and performs the obstacle avoidance operation when encountering obstacles; the target UAV that completes the obstacle avoidance replans the inspection path.
[0147] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0148] Embodiment 3: The present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the UAV power automatic inspection control method based on MSDK technology provided by the above methods, and the method includes: generating an automatic inspection path corresponding to the target UAV based on the power grid to be inspected, and dispatching the automatic inspection path to the target UAV; analyzing the obstacle avoidance level of the target UAV, and setting a corresponding obstacle avoidance warning range for the target UAV according to the obstacle avoidance level; the target UAV leaves the corresponding machine nest, executes the automatic inspection path at the obstacle avoidance height, and performs obstacle avoidance operations when encountering obstacles; the target UAV that completes obstacle avoidance replans the inspection path.
[0149] Embodiment 4: The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the above-mentioned UAV power automatic inspection control method based on MSDK technology, the method comprising: generating an automatic inspection path corresponding to the target UAV based on the power grid to be inspected, and dispatching the automatic inspection path to the target UAV; analyzing the obstacle avoidance level of the target UAV, and setting a corresponding obstacle avoidance warning range for the target UAV based on the obstacle avoidance level; the target UAV leaves the corresponding machine nest, executes the automatic inspection path at the obstacle avoidance height, and performs obstacle avoidance operations when encountering obstacles; the target UAV that has completed obstacle avoidance replans the inspection path.
[0150] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0151] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. The automatic inspection control method of UAV power based on MSDK technology is characterized by: The specific method is as follows: Step S1, generating an automatic inspection path corresponding to the target UAV according to the power grid to be inspected, and dispatching the automatic inspection path to the target UAV; Step S2, analyzing the obstacle avoidance level of the target UAV, and setting a corresponding obstacle avoidance warning range for the target UAV according to the obstacle avoidance level; The step S2 includes the following sub-steps: Step S21, obtaining the real-time height of all power towers in the automatic inspection path, and the height of the power tower plus the climbing height is used as the obstacle avoidance height of the target UAV; Step S22, obtaining the collision rate PZL of the target UAV, and then obtaining the UAV failure rate GZL of the UAV of the same model as the target UAV in the previous quarter; Step S23, calculating the obstacle avoidance level value BDJ of the target UAV by the formula BDJ=A1×PZL+A2×GZL; wherein A1 and A2 are weight coefficients with fixed values; Step S24, comparing the obstacle avoidance level value of the target UAV with the obstacle avoidance level threshold; If the obstacle avoidance level value of the target UAV is less than or equal to the first obstacle avoidance level threshold, the obstacle avoidance level of the target UAV is recorded as level 1 obstacle avoidance, and the obstacle avoidance warning radius of the target UAV is set to R1; If the obstacle avoidance level of the target UAV is greater than the first obstacle avoidance level threshold and less than or equal to the second obstacle avoidance level threshold, the obstacle avoidance level of the target UAV is recorded as level 2 obstacle avoidance, and the obstacle avoidance warning radius of the target UAV is set to R2; If the obstacle avoidance level value of the target UAV is greater than the second obstacle avoidance level threshold, the obstacle avoidance level of the target UAV is recorded as level 3 obstacle avoidance, and the obstacle avoidance warning radius of the target UAV is set to R3; Step S3, the target UAV leaves the corresponding machine nest, executes the automatic inspection path at the obstacle avoidance height, and performs obstacle avoidance operation when encountering obstacles; Step S4, the target drone that has completed obstacle avoidance replans its inspection path.
2. The automatic inspection control method for UAV power based on MSDK technology according to claim 1 is characterized in that: The step S1 includes the following sub-steps: Step S11, obtaining a power grid map corresponding to the power grid to be inspected, and obtaining the power tower position coordinates (Xn, Yn) of the n power towers marked in the power grid map, where Xn is the horizontal coordinate of the power tower, Yn is the vertical coordinate of the power tower, and n is the number corresponding to the power tower; Step S12, by formula Calculate the adjacent distance DXLx between two adjacent power towers; where t is the number of the adjacent power tower corresponding to power tower n, and x is the number of the adjacent distance between the power tower and the adjacent power tower; In step S13, the power tower closest to the target UAV's corresponding machine nest is recorded as the initial element in the path set. Starting from the initial element, all adjacent power towers to the initial element are traversed, and the adjacent power tower closest to the initial element is recorded as the element to be selected.
3. The automatic inspection control method for UAV power based on MSDK technology according to claim 2 is characterized in that: The step S1 further comprises the following sub-steps: Step S14: if there is only one element to be selected, the corresponding adjacent power tower is recorded as the selected element and added to the path set; if there are multiple elements to be selected, the corresponding adjacent power towers are recorded as the selected elements and added to the path set in order from left to right; Step S15, recording the adjacent distance between the initial element and the selected element as the selected path; Step S16, then use the selected element as the next initial element, repeat steps S13 to S15 until all power towers are in the path set, and integrate the selected paths between adjacent elements in the path set as the automatic inspection path of the target drone.
4. The automatic inspection control method for UAV power based on MSDK technology according to claim 1 is characterized in that: The first obstacle avoidance level threshold is less than the second obstacle avoidance level threshold, R1<R2<R3; The obstacle avoidance difficulty of the target drone corresponding to the first-level obstacle avoidance is less than that of the drone corresponding to the second-level obstacle avoidance, and the obstacle avoidance difficulty of the target drone corresponding to the second-level obstacle avoidance is less than that of the drone corresponding to the third-level obstacle avoidance.
5. The automatic inspection control method for UAV power based on MSDK technology according to claim 1 is characterized in that: The step S3 includes the following sub-steps: Step S31: If the target UAV detects that there is an unknown obstacle in front of the flight, the relative distance JLX between the target UAV P and the obstacle is obtained through radar, and the warning point Q corresponding to the obstacle and the coordinates of the warning point are obtained according to the relative distance; Step S32: if the relative distance is greater than the obstacle avoidance warning radius, no operation is performed; If the relative distance is less than or equal to the obstacle avoidance warning radius, a rectangular coordinate system is established with the direction corresponding to the relative distance as the X-axis and the direction perpendicular to the relative distance as the Y-axis; Then, the coordinates of the first critical point M and the second critical point N corresponding to the obstacle are obtained; wherein the first critical point and the second critical point are the intersection points of the tangents between the target UAV and the obstacle; Step S33, calculating a first critical slope between the first critical point M and the warning point Q, a second critical slope between the warning point Q and the second critical point N, and then calculating a critical distance JLL between the first critical point M and the second critical point N; Step S34, if the first critical slope is the same as the second critical slope, the first critical point M, the warning point Q and the second critical point N are determined to be collinear, and the tangent value of the first characteristic angle α is calculated; The calculation process of the tangent value corresponding to the first characteristic angle α is: tanα=JLL / (2×JLX), then α=arctan[JLL / (2×JLX)].
6. The automatic inspection control method for UAV power based on MSDK technology according to claim 5 is characterized in that: The step S3 further comprises the following sub-steps: Step S35: If the first critical slope is different from the second critical slope, a circumscribed obstacle circle of the obstacle is drawn: Connect MQ and NQ, and then draw a perpendicular line to MQ with its foot at D, and a perpendicular line to NQ with its foot at E; the perpendicular lines MQ and NQ intersect at point O, which is the center of the circumscribed obstacle circle; Calculate the slope XLod of OD and the slope XLoe of OE: Wherein, Xd=(Xm+Xq) / 2, Yd=(Ym+Yq) / 2; Xe=(Xn+Xq) / 2, Ye=(Yn+Yq) / 2; Solved: The coordinates of the center of the circumscribed obstacle circle are: The radius R is: Since OD is perpendicular to MQ and OE is perpendicular to NQ, we can know that the product of the slope corresponding to OD and the slope corresponding to MQ is negative one, and the product of the slope corresponding to OE and the slope corresponding to NQ is negative one, that is: XLod=-1 / XLmq=-(Xm-Xq) / (Ym-Yq), XLoe=-1 / XLnq=-(Xn-Xq) / (Yn-Yq); Among them, XLmq is the slope corresponding to MQ, and XLnq is the slope corresponding to NQ; Step S36, for the triangle OPM, calculate the sine value of the first characteristic angle α sinα=R / (JLX+R), and then obtain α=arcsin[R / (JLX+R)]; Step S37, obtaining the instantaneous speed SDS corresponding to the target UAV and the angle between the corresponding traveling direction and the relative distance of the target UAV and recording them as the second characteristic angle β; Step S38: if the second characteristic angle is greater than or equal to the first characteristic angle, the target UAV does not need to perform obstacle avoidance operation; If the second characteristic angle is smaller than the first characteristic angle, the direction deviation angle is set according to the position of the target drone. In extreme cases, the target drone is infinitely close to the Q point of the obstacle. At this time, the target drone adjusts its direction vertically upward, that is, the direction deviation angle PYJ is 90 degrees; If the target UAV is at point P at this time, the angle of the first characteristic angle is used as the direction offset angle of the target UAV.
7. The automatic inspection control method for UAV power based on MSDK technology according to claim 1 is characterized in that: The step S4 includes the following sub-steps: Step S41, obtain the current location of the target drone and record it as the initial element P1 in the inspection sequence XJ, obtain the remaining automatic inspection path of the target drone, and mark the location of the uninspected power tower as the subsequent element Pj of the inspection sequence, j=1, 2, ..., i, j is the number of the element in the inspection sequence, and i is a positive integer; Step S42, if the subsequent element is less than two, the original automatic inspection path is executed; If the number of subsequent elements is greater than or equal to two, then each element in the inspection sequence is connected in turn; Step S43, record the second element in the inspection sequence as the selected element, record the previous element of the selected element as the pre-element, record the next element of the selected element as the post-element, connect the pre-element and the post-element, and obtain the optimized straight line corresponding to the selected element; Step S44, draw a perpendicular line from the position of the selected element to the optimized straight line, and measure the optimized perpendicular distance between the selected element and the optimized straight line.
8. The automatic inspection control method for UAV power based on MSDK technology according to claim 7 is characterized in that: The step S4 further comprises the following sub-steps: Step S45, if the optimized vertical distance is less than or equal to the vertical distance threshold, the selected element is discarded, and the optimized straight line is used as the subsequent inspection path of the target UAV, and then the next element of the current post-element is recorded as the selected element for the next calculation; If the optimized vertical distance is greater than the vertical distance threshold, the selected element is retained and the post-positioned element is recorded as the selected element for the next calculation; Step S46, repeating steps S44 to S45 until the last element in the inspection sequence is calculated to obtain an optimized inspection sequence; Step S47, calculating the similarity between the original inspection sequence and the optimized inspection sequence, and selecting the best inspection sequence as the subsequent inspection path of the target UAV.
9. The automatic inspection control method for UAV power based on MSDK technology according to claim 8 is characterized in that: The step S47 includes the following sub-steps: Step S471, calculate the Euclidean distance of the optimized inspection sequence by using the formula, the specific formula is as follows: Among them, Xj is the horizontal coordinate of Pj, and Yj is the vertical coordinate of Pj; Then the Euclidean distance of the original optimized inspection sequence is normalized to obtain the corresponding optimized sequence trajectory characteristic value GTZH=1 / (1+YHO); Step S472, similarly, the Euclidean distance YSO of the original inspection sequence is calculated, and normalized to obtain the original sequence trajectory characteristic value GTZS=1 / (1+YSO) corresponding to the original inspection sequence; Step S473, comparing the optimized sequence trajectory feature value with the original sequence trajectory feature value; If the difference between the trajectory eigenvalue of the optimized sequence and the trajectory eigenvalue of the original sequence is less than or equal to the similarity threshold, the optimized inspection sequence will be used as the subsequent inspection task of the target UAV; If the difference between the trajectory eigenvalue of the optimized sequence and the trajectory eigenvalue of the original sequence is greater than the similarity threshold, the original inspection sequence will be used as the subsequent inspection task of the target UAV.
Citation Information
Patent Citations
Inspection route determination method and device for power transmission lines, equipment and storage medium
CN113050696A
Inspection system based on high-altitude line maintenance
CN115275870A
Unmanned aerial vehicle path planning algorithm for detecting power tower insulator
CN118034341A
