A high-altitude obstacle avoidance method for power inspection robots

By constructing and processing the environmental point cloud map of the power inspection robot, converting it into a voxel grid and a voxel octree map, and filtering and calculating obstacle avoidance path points, the problem caused by measurement inaccuracies in the high-altitude environment of the power inspection robot is solved. It solves the path planning problem and improves the accuracy and safety of inspection.

CN118466525BActive Publication Date: 2024-10-22STATE GRID SHANDONG ELECTRIC POWER CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410931051.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-22
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

In the existing technology, due to inaccurate measurements and environmental factors in high-altitude environments, power inspection robots obtain inaccurate point cloud maps, which reduces the accuracy and safety of inspections.

Method used

By constructing an environmental point cloud map, perform downsampling and regional filtering, convert it into a voxel grid map and a voxel octree map, calculate the occupancy probability of the voxel unit, screen the target voxels in the spherical envelope area, and calculate With the Greek value and weight value, the obstacle avoidance path points are selected to generate the actual high-altitude obstacle avoidance path.

Benefits of technology

It improves the accuracy and safety of obstacle avoidance path planning, reduces map storage costs, enhances the robustness and flexibility of path selection, and ensures the safe work of power inspection robots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118466525B_ABST
    Figure CN118466525B_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent inspection of electric power system, and discloses a high-altitude obstacle avoidance method for an electric power inspection robot, comprising: downsampling and regional filtering an environmental point cloud map of an area to be inspected by the electric power inspection robot, converting the map into a voxel grid map after obtaining a local point cloud map, and converting the map into a voxel octree map based on the occupancy probability of each voxel unit; traversing a spherical envelope area inscribed in a preset envelope box to construct a target voxel set; calculating a heading angle, a pitch angle, and a hash value of each target voxel, binarizing the map to obtain a binarized hash value, and then obtaining a hash value polar coordinate histogram; sliding a sliding window with a voxel magnification coefficient as a side length on the hash value polar coordinate histogram to select an obstacle avoidance path point, and taking a path with a minimum weight sum as a current target obstacle avoidance path; obtaining the three-dimensional coordinates of a midpoint of the current target obstacle avoidance path, and obtaining an actual high-altitude obstacle avoidance path using a path generation method based on straight line path tracking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent inspection of electric power systems, and in particular to a high-altitude obstacle avoidance method for an electric power inspection robot. Background Art

[0002] In the flight inspection task mode of the power inspection robot for high-altitude inspection targets, the robot completes the inspection of various facilities, components and hardware in the designated transmission section in the air. However, when the robot is operating in the transmission section, its working altitude and the airflow disturbance in the air make it difficult for a ground operator to achieve real-time adjustment of the robot's posture and flight path through naked eye observation. Although the difficulty of single-person operation can be reduced by additionally configuring observers to use other observation equipment to assist the operator in observing the flight environment more accurately, this requires close cooperation between the observer and the operator.

[0003] Therefore, sensors are often installed on robots for autonomous environmental perception and autonomous obstacle avoidance. The common drone inspection method currently uses its own optical gimbal camera to assist the operator in flight operations using the surrounding images transmitted in real time by the camera. However, due to the camera's own field of view limitations and additional operation intensity, it brings additional workload to the operator, which has a certain impact on the efficiency of remote control operation of the robot. In addition, when the operator performs inspection operations based on the surrounding images collected by the camera in real time, due to the complex environment around the transmission tower, it may cause safety accidents due to untimely or incorrect operations.

[0004] In order to avoid safety accidents caused by misoperation when conducting inspections based on real-time collected surrounding images, path planning can be performed based on the point cloud map of the area to be inspected. However, since the robot uses lidar to measure the three-dimensional spatial distance from itself to surrounding objects to perceive various entity information in the robot's working environment, the measurement results will be affected by the measurement uncertainty of the sensor itself. At the same time, the presence of interference factors such as sunlight reflection and dynamic obstacles in the environment will cause errors in the laser measurement results or produce wrong measurement results. This means that there are still a small number of points in empty areas in the real environment, resulting in the constructed point cloud map being inaccurate, and the point cloud information in the point cloud map cannot be directly used in the robot's obstacle avoidance planning work, affecting the accuracy of the robot's path planning and unable to ensure the inspection safety of the inspection robot. Summary of the invention

[0005] To this end, the technical problem to be solved by the present invention is to overcome the problem in the prior art that the point cloud map obtained is inaccurate due to inaccurate measurements and the influence of environmental factors, thereby reducing the accuracy and safety of the power inspection robot's inspection.

[0006] In order to solve the above technical problems, the present invention provides a high-altitude obstacle avoidance method for a power inspection robot, comprising:

[0007] Construct an environmental point cloud map of the area to be inspected by the power inspection robot, and perform downsampling to obtain a sparse environmental point cloud map; perform regional filtering on the sparse environmental point cloud map to obtain a local point cloud map;

[0008] Converting the local point cloud map into a voxel grid map, and calculating the occupancy probability of the voxel unit represented by each grid in the voxel grid map;

[0009] Based on the occupancy probabilities of all voxel units in the voxel grid map, converting the voxel grid map into a voxel octree map, wherein each node in the voxel octree map represents a voxel unit with an occupancy probability;

[0010] On the voxel octree map, with the power inspection robot body as the origin, an envelope box of a preset size is constructed to obtain a spherical envelope area inscribed in the envelope box; the voxel octree map is traversed to remove voxels outside the spherical envelope area, to obtain all voxels within the spherical envelope area, and to construct a target voxel set;

[0011] Calculate the heading angle and pitch angle of each target voxel, convert all target voxels in the target voxel set from three-dimensional spatial coordinates to two-dimensional polar coordinates, and construct a two-dimensional polar coordinate histogram in the robot coordinate system;

[0012] Based on the occupancy probability, heading angle, pitch angle of each target voxel, and the minimum distance from the target voxel to the origin of the robot coordinate system, a hash value corresponding to each target voxel is obtained, and binarization is performed to obtain a binary hash value of each target voxel;

[0013] Based on the two-dimensional polar coordinates and binary hash values ​​of all target voxels, a hash value polar coordinate histogram is obtained; based on the maximum radius size of the electric cruise robot, a preset safety radius and a preset voxel size, a voxel magnification coefficient is obtained;

[0014] Using a sliding window with a voxel magnification factor as a side length, sliding on the hash value polar coordinate histogram; when the binary hash values ​​of all target voxels in the sliding window are 0, obtaining the target voxel at the center of the current sliding window as an obstacle avoidance path point;

[0015] For each obstacle avoidance path point, the weight of each obstacle avoidance path point is calculated based on the two-dimensional polar coordinates of the preset target path point, the current obstacle avoidance path point and its previous obstacle avoidance path point;

[0016] Based on the preset starting point and the preset target point, traverse all obstacle avoidance path points and select the path with the smallest weight as the current target obstacle avoidance path;

[0017] The coordinates of all obstacle avoidance path points in the current target obstacle avoidance path are converted from two-dimensional polar coordinates to three-dimensional space coordinates, and a path generation method based on straight line path tracking is used to obtain the actual high-altitude obstacle avoidance path of the power inspection robot.

[0018] Preferably, laser radar is used to extract point cloud features of the area to be inspected, and an environmental point cloud map of the area to be inspected by the power inspection robot is constructed.

[0019] Preferably, downsampling the environmental point cloud map of the inspection area includes:

[0020] Calculate the environment point cloud map respectively The maximum and minimum coordinates in the x-axis, y-axis and z-axis directions, a total of six coordinate values, are expressed as:

[0021] Maximum value of x-axis: ; Minimum x-axis value: ;

[0022] Maximum value of y axis: ; Minimum value of y axis: ;

[0023] Maximum value of z axis: ; Minimum value of z axis: ;

[0024] Indicates the total number of points in the environment point cloud map; Indicates the environment point cloud map points, the coordinates are expressed as ;

[0025] The rectangular area surrounded by six coordinate values ​​is used as the downsampling envelope box;

[0026] Let the size of a single voxel grid be , calculate the number of voxel grids in the three axis directions of the downsampled envelope , and , respectively expressed as:

[0027] ; ; ;

[0028] Based on each point Coordinates , and the number of voxel grids in the three axis directions of the downsampled envelope, calculate the hash value of each point, expressed as:

[0029] ;

[0030] in, , and They represent the axial hash values ​​of the points in the three axial directions of the downsampling envelope box, respectively: , , ;

[0031] For each voxel grid, obtain the point with the largest hash value in the grid as the representative point of the voxel grid, and delete the remaining points in the voxel grid;

[0032] A sparse environment point cloud map is formed using representative points of all voxel grids in the environment point cloud map.

[0033] Preferably, performing regional filtering on the sparse environment point cloud map to obtain a local point cloud map includes:

[0034] Obtain a filter envelope box with a preset side length and centered at the center of the power inspection robot;

[0035] In the sparse environment point cloud map, all points located in the filtering envelope box are extracted to form a local point cloud map.

[0036] Preferably, the occupancy probability of a voxel unit is expressed as:

[0037] ;

[0038] in, represents the prior occupancy probability; when When , it indicates that the voxel unit is occupied; when , it indicates that the voxel unit is in an unoccupied state.

[0039] Preferably, the calculating of the heading angle and the pitch angle of each target voxel, and converting all target voxels in the target voxel set from three-dimensional space coordinates to two-dimensional polar coordinates, comprises:

[0040] The heading angle of the i-th target voxel: ;

[0041] The pitch angle of the i-th target voxel: ;

[0042] The two-dimensional polar coordinates of the i-th target voxel are expressed as: ;

[0043] in, Indicates the resolution of the 2D polar coordinate histogram; Represents the 3D space coordinates of the i-th target voxel.

[0044] Preferably, based on the occupancy probability, heading angle, pitch angle of each target voxel, and the minimum distance from the target voxel to the origin of the robot coordinate system, a hash value corresponding to each target voxel is obtained, which is expressed as:

[0045] ;

[0046] in, represents the hash value of the i-th target voxel; represents the i-th target voxel, represents the target voxel set; occupancy state Expressed as ; ; represents the prior occupancy probability; when When , it indicates that the voxel unit is occupied; when When , it indicates that the voxel unit is in a non-occupied state; the parameter and satisfy , Indicates the side length of the envelope box of the preset size; It represents the minimum distance from the i-th target voxel to the origin of the robot coordinate system, and its expression is ; It represents the Euclidean distance from the i-th target voxel to the origin of the robot coordinate system, and its expression is , represents the three-dimensional space coordinates of the i-th target voxel; represents the radius of the spherical envelope area; represents the voxel magnification factor of the i-th target voxel, and the expression is , represents the resolution of the 2D polar coordinate histogram, represents the two-dimensional voxel magnification factor, which is expressed as , Indicates the maximum radius size of the electric cruise robot, Indicates the preset safety radius. represents the voxel size; represents the 2D polar coordinates of the i-th target voxel.

[0047] Preferably, the binary hash value of the target voxel is expressed as:

[0048] ;

[0049] in, represents the binary hash value of the i-th target voxel, Indicates the preset upper threshold value, Indicates the preset lower threshold; Represents the binary hash value of the previous target voxel of the i-th target voxel.

[0050] Preferably, for each obstacle avoidance path point, the weight of each obstacle avoidance path point is calculated based on the two-dimensional polar coordinates of the preset target path point, the current obstacle avoidance path point and the previous obstacle avoidance path point, and is expressed as:

[0051] ;

[0052] in, Indicates the current obstacle avoidance path point The weight of All are normal numbers, which are preset specific gravity parameters;

[0053] Indicates the current obstacle avoidance path point With preset target waypoints The difference between ;

[0054] Indicates the current obstacle avoidance path point The difference between the heading angle and the horizontal rotation angle of the power inspection robot is expressed as ;

[0055] Indicates the current obstacle avoidance path point The difference between the pitch angle and the vertical rotation angle of the power inspection robot is expressed as ;

[0056] Indicates the current obstacle avoidance path point Its previous obstacle avoidance path point The difference between .

[0057] Preferably, the coordinates of all obstacle avoidance path points in the current target obstacle avoidance path are converted from two-dimensional polar coordinates to three-dimensional space coordinates, and a path generation method based on straight line path tracking is used to obtain the actual high-altitude obstacle avoidance path of the power inspection robot, including:

[0058] Each obstacle avoidance path point in the current target obstacle avoidance path The coordinates of the two-dimensional polar coordinates Convert to three-dimensional space coordinates , expressed as:

[0059] ;

[0060] Calculate the power inspection robot's path from the previous obstacle avoidance point Go to the next obstacle avoidance path point The expected path point , expressed as:

[0061] ;

[0062] in, Indicates the current path point of the power inspection robot; represents the saturation function, and the expression is ; Indicates from arrive The path weight, Indicates from arrive The path weight, Indicates the preset expected maximum path length;

[0063] Based on the expected path points between every two obstacle avoidance path points and the two obstacle avoidance path points, the actual high-altitude obstacle avoidance path of the power inspection robot is obtained.

[0064] The above technical solution of the present invention has the following beneficial effects compared with the prior art:

[0065] The high-altitude obstacle avoidance method for the power inspection robot described in the present invention converts the local point cloud map obtained after compression into a voxel grid map, and calculates the occupancy probability of the voxel unit represented by each grid in the voxel grid map, obtains the occupancy state of the voxel unit based on the occupancy probability, eliminates the potential uncertainty information in the point cloud map obtained by the above measurement, improves the accuracy of the converted voxel octree map, and further improves the accuracy and safety of obstacle avoidance path planning. The present invention converts the voxel grid map into a voxel octree map, avoids a large amount of redundant information brought by directly storing the voxel grid map, and reduces the map storage cost. The present invention utilizes the target voxels in the spherical envelope area to screen out the target voxels, calculates the hash values ​​of all the target voxels and performs binarization to select the obstacle avoidance path points, calculates the weights of the obstacle avoidance path points, and selects the path with the smallest weight and value as the current target obstacle avoidance path; based on the binary hash value, the obstacle area and the passable area are accurately distinguished, the selection of obstacle avoidance path points is accelerated, and the obstacle avoidance path planning is made more efficient; based on the weight and the selection of the best obstacle avoidance path, the robustness and flexibility of the path selection are improved, thereby making the planned best obstacle avoidance path more accurate and safe, thereby ensuring the safe operation of the power inspection robot. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein

[0067] Figure 1 It is a flowchart of the steps of the high-altitude obstacle avoidance method of the power inspection robot provided by the present invention;

[0068] Figure 2 It is a schematic diagram of the algorithm framework of the self-positioning system;

[0069] Figure 3 is the obstacle avoidance path search flow chart provided by the present invention;

[0070] Figure 4 It is an environmental point cloud map of the area to be inspected by the power inspection robot provided by the present invention;

[0071] Figure 5 It is a schematic diagram of a pole tower voxel model in a simulation scene provided by the present invention;

[0072] Figure 6 It is a schematic diagram of the aerial obstacle avoidance simulation process of the power inspection robot provided by the present invention;

[0073] Figure 7 It is a simulation schematic diagram of the movement process of the electric power inspection robot provided by the present invention taking off from the ground to the target point in the air. DETAILED DESCRIPTION

[0074] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0075] Reference Figure 1 As shown, the flowchart of the high-altitude obstacle avoidance method of the power inspection robot of the present invention includes the following specific steps:

[0076] S101: constructing an environmental point cloud map of the area to be inspected by the power inspection robot, and performing downsampling to obtain a sparse environmental point cloud map; performing regional filtering on the sparse environmental point cloud map to obtain a local point cloud map;

[0077] S102: Convert the local point cloud map into a voxel grid map, and calculate the occupancy probability of the voxel unit represented by each grid in the voxel grid map, expressed as:

[0078] ;

[0079] in, represents the prior occupancy probability; when When , it indicates that the voxel unit is occupied; when , it indicates that the voxel unit is in an unoccupied state.

[0080] S103: based on the occupation probabilities of all voxel units in the voxel grid map, converting the voxel grid map into a voxel octree map; each node in the voxel octree map represents a voxel unit with an occupation probability;

[0081] S104: On the voxel octree map, with the power inspection robot body as the origin, construct an envelope box of a preset size, and obtain a spherical envelope area inscribed in the envelope box; traverse the voxel octree map, remove voxels outside the spherical envelope area, obtain all voxels in the spherical envelope area, and construct a target voxel set;

[0082] S105: Calculate the heading angle and pitch angle of each target voxel, convert all target voxels in the target voxel set from three-dimensional space coordinates to two-dimensional polar coordinates, and construct a two-dimensional polar coordinate histogram in the robot coordinate system;

[0083] The heading angle of the i-th target voxel: ;

[0084] The pitch angle of the i-th target voxel: ;

[0085] The two-dimensional polar coordinates of the i-th target voxel are expressed as: ;

[0086] in, Indicates the resolution of the 2D polar coordinate histogram; Represents the 3D space coordinates of the i-th target voxel.

[0087] S106: based on the occupancy probability, heading angle, pitch angle of each target voxel, and the minimum distance from the target voxel to the origin of the robot coordinate system, obtain a hash value corresponding to each target voxel, and perform binarization to obtain a binarized hash value of each target voxel;

[0088] S107: Based on the two-dimensional polar coordinates and the binary hash values ​​of all target voxels, a hash value polar coordinate histogram is obtained; based on the maximum radius size of the electric cruise robot, a preset safety radius and a preset voxel size, a voxel magnification coefficient is obtained;

[0089] S108: Using a sliding window with a voxel magnification coefficient as a side length, sliding on the hash value polar coordinate histogram; when the binary hash values ​​of all target voxels in the sliding window are 0, obtaining the target voxel at the center of the current sliding window as an obstacle avoidance path point;

[0090] S109: For each obstacle avoidance path point, a weight of each obstacle avoidance path point is calculated based on the two-dimensional polar coordinates of the preset target path point, the current obstacle avoidance path point and the previous obstacle avoidance path point;

[0091] S110: Based on the preset starting point and the preset target point, traverse all obstacle avoidance path points, and select the path with the smallest weight sum as the current target obstacle avoidance path;

[0092] S111: Convert the coordinates of all obstacle avoidance path points in the current target obstacle avoidance path from two-dimensional polar coordinates to three-dimensional space coordinates, and use a path generation method based on straight line path tracking to obtain the actual high-altitude obstacle avoidance path of the power inspection robot.

[0093] In an embodiment of the present invention, a laser radar is used to extract point cloud features of the area to be inspected, and an environmental point cloud map of the area to be inspected by the power inspection robot is constructed.

[0094] The scale of the environmental point cloud map of the area to be inspected by the power inspection robot directly constructed using laser radar is usually very large. The point cloud map of large data scale has a high time cost when performing related operations such as storage, reading, and subsequent path planning; at the same time, when constructing the point cloud map, if there is an error in the pose estimation, it will also cause obvious point cloud overlap in the constructed map, further expanding the scale of the data. For the obstacle avoidance task, the point cloud map contains too many and unnecessary point cloud details, so it is necessary to compress the point cloud data scale to improve the efficiency of the calculation. There are two common operations for point cloud compression: using regional filtering operations to directly extract point cloud information inside the specified area; using downsampling operations on point cloud information to eliminate redundant point cloud information. In the autonomous obstacle avoidance task of the high-altitude working drone inspection robot, the embodiment of the present invention will use two types of point cloud compression methods to process the point cloud map generated after positioning to obtain a local point cloud map.

[0095] Specifically, in step S101, downsampling the environmental point cloud map of the inspection area includes:

[0096] ① Calculate the environment point cloud map respectively The maximum and minimum coordinates in the x-axis, y-axis and z-axis directions, a total of six coordinate values, are expressed as:

[0097] Maximum value of x-axis: ; Minimum x-axis value: ;

[0098] Maximum value of y axis: ; Minimum value of y axis: ;

[0099] Maximum value of z axis: ; Minimum value of z axis: ;

[0100] Indicates the total number of points in the environment point cloud map; Indicates the environment point cloud map points, the coordinates are expressed as ;

[0101] The rectangular area surrounded by six coordinate values ​​is used as the downsampling envelope box;

[0102] ②Let the size of a single voxel grid be , calculate the number of voxel grids in the three axis directions of the downsampled envelope , and , respectively expressed as:

[0103] ; ; ;

[0104] ③Based on each point Coordinates , and the number of voxel grids in the three axis directions of the downsampled envelope, calculate the hash value of each point, expressed as:

[0105] ;

[0106] in, , and They represent the axial hash values ​​of the points in the three axial directions of the downsampling envelope box, respectively: , , ;

[0107] ④ For each voxel grid, obtain the point with the largest hash value in the grid as the representative point of the voxel grid, and delete the remaining points in the voxel grid;

[0108] ⑤ Using the representative points of all voxel grids in the environmental point cloud map to form a sparse environmental point cloud map.

[0109] Specifically, in step S101, the sparse environment point cloud map is regionally filtered to obtain a local point cloud map, including: obtaining a filtering envelope box with a preset side length and centered on the center of the power inspection robot; in the sparse environment point cloud map, all points located in the filtering envelope box are extracted to form a local point cloud map.

[0110] Specifically, in step S106, based on the occupancy probability, heading angle, pitch angle of each target voxel, and the minimum distance from the target voxel to the origin of the robot coordinate system, a hash value corresponding to each target voxel is obtained and binarized to obtain a binary hash value of each target voxel, including:

[0111] S106-1: The hash value of the i-th target voxel is expressed as:

[0112] ;

[0113] S106-2: Binarized hash value of the i-th target voxel, expressed as:

[0114] ;

[0115] in, represents the i-th target voxel, represents the target voxel set; occupancy state Expressed as ; ; represents the prior occupancy probability; when When , it indicates that the voxel unit is occupied; when When , it indicates that the voxel unit is in a non-occupied state; the parameter and satisfy , Indicates the side length of the envelope box of the preset size; It represents the minimum distance from the i-th target voxel to the origin of the robot coordinate system, and its expression is ; It represents the Euclidean distance from the i-th target voxel to the origin of the robot coordinate system, and its expression is , represents the three-dimensional space coordinates of the i-th target voxel; represents the radius of the spherical envelope area; represents the voxel magnification factor of the i-th target voxel, and the expression is , represents the resolution of the 2D polar coordinate histogram, represents the two-dimensional voxel magnification factor, which is expressed as , Indicates the maximum radius size of the electric cruise robot, Indicates the preset safety radius. represents the voxel size; represents the two-dimensional polar coordinates of the i-th target voxel; Indicates the preset upper threshold value, Indicates the preset lower threshold; Represents the binary hash value of the previous target voxel of the i-th target voxel.

[0116] Specifically, in step S109, the weight of each obstacle avoidance path point is calculated, which is expressed as:

[0117] ;

[0118] in, Indicates the current obstacle avoidance path point The weight of All are normal numbers, which are preset specific gravity parameters;

[0119] Indicates the current obstacle avoidance path point With preset target waypoints The difference between ;

[0120] Indicates the current obstacle avoidance path point The difference between the heading angle and the horizontal rotation angle of the power inspection robot is expressed as ;

[0121] Indicates the current obstacle avoidance path point The difference between the pitch angle and the vertical rotation angle of the power inspection robot is expressed as ;

[0122] Indicates the current obstacle avoidance path point Its previous obstacle avoidance path point The difference between .

[0123] Specifically, in step S111, the acquisition of the actual high-altitude obstacle avoidance path of the power inspection robot includes:

[0124] S111-1: Each obstacle avoidance path point in the current target obstacle avoidance path The coordinates of the two-dimensional polar coordinates Convert to three-dimensional space coordinates , expressed as:

[0125] ;

[0126] S111-2: Calculate the power inspection robot's path from the last obstacle avoidance point Go to the next obstacle avoidance path point The expected path point , expressed as:

[0127] ;

[0128] in, Indicates the current path point of the power inspection robot; represents the saturation function, and the expression is ; Indicates from arrive The path weight, Indicates from arrive The path weight, Indicates the preset expected maximum path length;

[0129] S111-3: Based on every two obstacle avoidance path points and the expected path points between the two obstacle avoidance path points, the actual high-altitude obstacle avoidance path of the power inspection robot is obtained.

[0130] The high-altitude obstacle avoidance method for the power inspection robot described in the present invention converts the local point cloud map obtained after compression into a voxel grid map, and calculates the occupancy probability of the voxel unit represented by each grid in the voxel grid map, obtains the occupancy state of the voxel unit based on the occupancy probability, eliminates the potential uncertainty information in the point cloud map obtained by the above measurement, improves the accuracy of the converted voxel octree map, and further improves the accuracy and safety of obstacle avoidance path planning. The present invention converts the voxel grid map into a voxel octree map, avoids a large amount of redundant information brought by directly storing the voxel grid map, and reduces the map storage cost. The present invention utilizes the target voxels in the spherical envelope area to screen out the target voxels, calculates the hash values ​​of all the target voxels and performs binarization to select the obstacle avoidance path points, calculates the weights of the obstacle avoidance path points, and selects the path with the smallest weight and value as the current target obstacle avoidance path; based on the binary hash value, the obstacle area and the passable area are accurately distinguished, the selection of obstacle avoidance path points is accelerated, and the obstacle avoidance path planning is made more efficient; based on the weight and the selection of the best obstacle avoidance path, the robustness and flexibility of the path selection are improved, thereby making the planned best obstacle avoidance path more accurate and safe, thereby ensuring the safe operation of the power inspection robot.

[0131] Based on the above embodiment, in an embodiment of the present invention, specific parameters are set to use a power inspection robot to perform high-altitude autonomous obstacle avoidance inspection, specifically including:

[0132] S201: Use a 16-line laser radar to obtain an environmental point cloud map of the inspection robot's surroundings;

[0133] S202: Perform voxel downsampling compression processing on the point cloud scale;

[0134] During the positioning process of the robot's self-positioning system, the point cloud map of the robot's surrounding environment generated is usually very large. For example, during field tests, the map constructed by LiDAR usually contains nearly five orders of magnitude of three-dimensional space points. Such a large data point cloud map has a high time cost when storing, reading, and performing subsequent path planning and other related operations; at the same time, when constructing the point cloud map, if there is an error in the pose estimation, it will also cause obvious point cloud overlap in the constructed map, further expanding the size of the data. For obstacle avoidance tasks, the point cloud map contains too many and unnecessary point cloud details, so the point cloud data size needs to be compressed to improve the efficiency of calculation and meet real-time requirements.

[0135] Among them, refer to Figure 2 As shown in the figure, it is a schematic diagram of the algorithm framework of the self-positioning system. The fusion self-positioning system used for this type of robot is a self-positioning system composed of multiple sensors such as laser radar and IMU. The laser radar reflects all entity information within a radius of 20m around the robot by receiving its returned laser beam, and calculates the robot's position and posture in the map through a positioning and mapping algorithm based on feature points. Since the robot platform is often disturbed by airflow when flying in the air, the laser radar alone cannot fully meet the robot's positioning and mapping accuracy requirements. Therefore, the airborne IMU information is added to the framework of the self-positioning system, and the robot's inertial navigation posture information is obtained by integrating the three-degree-of-freedom acceleration information and the three-degree-of-freedom gyroscope angular velocity information. As shown in the figure, after the system estimates the current posture information of the robot based on the laser radar and IMU respectively, it fuses the posture information of the two types of sensors through the adaptive Kalman filter (AKF) algorithm to obtain the final fusion posture output.

[0136] Among them, there are two common compression operations for point clouds, including:

[0137] ①Use regional filtering operation to directly extract point cloud information inside the specified area;

[0138] ② Use downsampling operation on point cloud information to remove redundant point cloud information;

[0139] In the autonomous obstacle avoidance mission of the aerial work drone inspection robot, two types of point cloud compression methods will be used simultaneously to process the point cloud map generated after positioning.

[0140] Perform voxel downsampling on the point cloud map constructed by the self-positioning system; voxel downsampling can compress the number of points in the point cloud while maintaining the basic shape characteristics of the point cloud;

[0141] This method first calculates the point cloud map The maximum and minimum coordinates in the x, y, and z axes, namely:

[0142] ; ;

[0143] ; ;

[0144] ; ;

[0145] Indicates the total number of points in the environment point cloud map; Indicates the environment point cloud map points, the coordinates are expressed as ;

[0146] Based on the above information, the size and position of the downsampled envelope can be determined; let the size of a single voxel unit be r, and calculate the number of voxel grids in each direction of the three degrees of freedom, expressed as:

[0147] ; ; ;

[0148] Calculate the hash value of each point in the voxel grid, expressed as:

[0149] ; ; ;

[0150] ;

[0151] The hash value also represents the specific grid position of the point.

[0152] S203: extracting point cloud information around the robot by means of regional filtering;

[0153] After determining the grid to which each point belongs, there are two methods to select the representative point of each voxel unit: one is to use the center method, using the mean of all points in the voxel unit as the unit representative point; the other is to use random selection, arbitrarily selecting points in the unit as the unit representative point. The center method has the advantage of high accuracy, but the mean calculation method is relatively slow; the random selection method sacrifices accuracy in exchange for increased selection speed.

[0154] The size of the point cloud map after downsampling has been compressed to a certain extent. However, for autonomous obstacle avoidance, the information around the robot is more important, so the data can be further compressed according to the position information of the voxel unit. After selecting the representative points of each voxel unit, the sparse point cloud after downsampling is further extracted to extract the surrounding point cloud information with the robot as the origin. First, a 20m×20m×20m envelope box is established, and the center of the envelope box coincides with the center of the robot; then, all points that meet the conditions in the input point cloud information are extracted in the robot coordinate system. , , point Extract into the envelope box to form a local point cloud map .

[0155] S204: extracting point cloud information in the area to construct an octree map;

[0156] After preprocessing, the number of points in the point cloud map has been compressed to a certain extent. However, the point cloud information in these maps cannot be directly used in the robot's obstacle avoidance planning work. The reason is that although the robot can use the laser radar to measure the three-dimensional space distance between itself and the surrounding objects to perceive various entity information in the robot's working environment, these measurement results are still affected by the measurement uncertainty of the sensor itself. This uncertainty is not only caused by the error caused by the sensor's own measurement principle, but also by interference factors such as sunlight reflection and dynamic obstacles in the environment, which will cause errors in the laser measurement results or produce wrong measurement results. This makes it possible to have a small number of points in empty areas in the real environment.

[0157] In order to establish a relatively accurate environmental model for the robot's obstacle avoidance path planning in the real measurement information full of noise signals and errors, a probabilistic model is needed to eliminate the potential uncertainty information in the sensor measurement. At the same time, for the embedded devices carried by the robot, a more efficient map format is also needed to facilitate various operations of the algorithm on the map during the obstacle avoidance process. Maps with smaller data sizes are more conducive to use on embedded platforms commonly used by robots.

[0158] For the above reasons, in the robot's autonomous obstacle avoidance task, the local point cloud map generated after preprocessing is further processed into a voxel grid map to facilitate the use of subsequent obstacle avoidance algorithms. Compared with the point cloud map, the voxel grid map determines whether the position on the voxel is occupied by calculating the number of points in each voxel, that is, whether there are enough points in the area contained in the voxel. Generally speaking, whether a voxel is occupied can be determined by calculating the occupancy probability of the voxel. For a voxel in the map, the occupancy probability calculation formula is expressed as:

[0159] ;

[0160] in, represents the prior occupancy probability.

[0161] Usually, when the occupancy probability of a voxel is greater than 0.5, it can be regarded as "occupied", otherwise it is "unoccupied". By calculating the occupancy probability of the point cloud in each voxel, the position of the occupied voxel can be established, thereby establishing the information of obstacles in the point cloud map and the navigable open areas in the map. By converting the point cloud map into a voxel map, the size of the map can be further compressed. However, for sparse point cloud information, the converted voxel map will contain a large number of open areas. If these areas are directly stored, there will inevitably be a large amount of redundant information in the map. By using an octree to store the voxel map, each node in this special tree data structure can represent a voxel in the map, that is, each node can be regarded as a cube area of ​​a specified size in three-dimensional space. Each node can have up to eight child nodes, that is, it can be divided into sub-voxels represented by its child nodes, and each voxel has its corresponding occupancy probability. Processing the local point cloud map around the robot into a voxel octree map will be beneficial to the subsequent implementation of the autonomous obstacle avoidance algorithm.

[0162] S205: Design an obstacle avoidance path planning method based on the improved 3DVFH model;

[0163] When the point cloud map is processed into a voxel octree map, the obstacles around the robot will be represented in the form of occupied voxels. Therefore, the robot's obstacle avoidance path planning based on the improved 3DVFH algorithm is implemented in the voxel octree map. Figure 3 As shown, it is an obstacle avoidance path search flow chart;

[0164] First, we need to define an envelope box with a specific size and the robot body as the origin based on the robot's physical information such as the size and running speed, and then further establish a spherical envelope area S inscribed in the envelope box. The center of the cube envelope coincides with the center of the robot. Here, the radius of the spherical envelope area is established as Traverse the voxel map to determine the voxel blocks contained in the spherical envelope area, and remove the voxels outside the envelope area to form a target voxel set;

[0165] After selecting the target voxel, a two-dimensional polar coordinate histogram in the robot coordinate system is constructed based on the voxels in the envelope sphere, and the three-dimensional spatial position information of the voxel is converted into two-dimensional polar coordinate information. The method is to first calculate the Euclidean distance from each voxel contained in the envelope sphere to the origin of the coordinate system, and then calculate the heading angle and pitch angle of each voxel relative to the origin in combination with the coordinates of each voxel.

[0166] For a certain voxel i, its heading angle in the robot coordinate system is and pitch angle , respectively expressed as:

[0167] Heading Angle: ;

[0168] Pitch Angle: ;

[0169] in, is the coordinate of any voxel in the robot's rectangular coordinate system; is the resolution of the polar coordinate histogram, which indicates the unit angle corresponding to each area in the polar coordinate histogram in the longitude and latitude directions. The information of each voxel in the two-dimensional polar coordinate histogram will be further combined with its own occupancy probability to calculate the hash value corresponding to a voxel, expressed as:

[0170] ;

[0171] ;

[0172] ;

[0173] in, Represents the magnification factor of the voxel, which is determined by the maximum radius of the robot , Safety radius And the voxel size Determine, the calculation formula is expressed as: ; a, b are to satisfy the formula Any constant of ; It represents the minimum distance from voxel i to the origin of the coordinate system, expressed as: .

[0174] Obstacles in the power inspection environment are mainly static objects. The original path planning algorithm needs to use the voxel occupancy probability when calculating the hash value of each voxel. The establishment of the voxel map improves the real-time performance of the algorithm. Here, the voxel occupancy probability in the hash value calculation is simplified. The direct call of will be discretized based on its occupancy state, expressed as:

[0175] ;

[0176] When the robot executes the planned obstacle avoidance path, due to its own motion characteristics, such as turning radius, climbing speed, etc., it may not be able to reach some open areas in the planned path that are not occupied by obstacles. If the turning radius or the maximum climbing angle path point exceeds a certain speed, it is necessary to determine the areas that the robot cannot reach during the turning and climbing movements. During the robot's turning process, it is necessary to determine whether there are occupied voxels in the motion trajectory. Assuming that the robot's turning radius is , the rotation angle on the xy plane of the robot coordinate system needs to be When the rotational motion is in progress, the coordinates of the center of the rotation circle when it turns left or right by a corresponding angle are expressed as:

[0177] The coordinates of the center of the left-turn circle are expressed as: ;

[0178] The coordinates of the center of the right-turn circle are expressed as: ;

[0179] For any voxel, its distance to the centers of the two rotation circles is expressed as:

[0180] ;

[0181] ;

[0182] As long as the distance meets and , it will not affect the movement of the robot;

[0183] To determine the impact of obstacles on the path during the robot's climbing process, it is necessary to traverse all the climbing angles in the voxels that have met the robot's turning radius, and for a heading angle that meets the requirements , calculate the corresponding pitch constant c, expressed as: ;in, ;

[0184] Based on the calculated pitch constant c, the robot's unreachable height in azimuth It is expressed as: ;in ;

[0185] Finally, we learned that the height was unreachable. Based on the above, calculate the robot's maximum climbing angle on the map , expressed as: ;in ;

[0186] After establishing the above information, the hash values ​​of all voxels in the current polar coordinate histogram are binarized and expressed as:

[0187] ;

[0188] in and For two self-set thresholds, ; If the binary hash value of a voxel is 1, it means that the voxel is occupied, otherwise it is unoccupied. In and When between , the binary hash value of the previous voxel is used As the binary hash value of the voxel. After calculating the binary weights of all voxels in the map, the system will pass a 2D binary polar coordinate histogram with an edge length of A square sliding window is used to detect the feasible directions in the image. When all elements in the sliding window are equal to 0, it means that the robot can pass through this window, and the voxel in the center of the window is the obstacle avoidance path point. When , the weight of the path point , expressed as:

[0189] ;

[0190] in, Indicates the current obstacle avoidance path point The weight of All of them are positive numbers and are preset weight parameters. By adjusting these four parameters, the weight of each item in the robot's obstacle avoidance path point weight calculation can be controlled to achieve the turning tendency and climbing tendency of the obstacle avoidance path. For this purpose, the height difference threshold with the target point is set. ,when When the value is , the parameters of the turning tendency are used; otherwise, the parameters of the climbing tendency are used. , rotation inclination parameter group ; Parameter group for climb tendency Finally, traverse the pre-selected path points and select the path point with the smallest weight as the current optimal obstacle avoidance path point as the result output.

[0191] Indicates the current obstacle avoidance path point With preset target waypoints The difference between them, that is, the sum of the azimuth difference and the elevation difference, is expressed as:

[0192] ;

[0193] Indicates the current obstacle avoidance path point The difference between the heading angle and the horizontal rotation angle of the power inspection robot is expressed as ;

[0194] Indicates the current obstacle avoidance path point The difference between the pitch angle and the vertical rotation angle of the power inspection robot is expressed as ;

[0195] Indicates the current obstacle avoidance path point Its previous obstacle avoidance path point The difference between .

[0196] S206: planning a smooth obstacle avoidance path using a cubic polynomial trajectory;

[0197] Since the best obstacle avoidance path point obtained by polar coordinate histogram search is a polar coordinate group consisting of azimuth and pitch angles and cannot be directly used for path planning, it still needs to be converted into three-dimensional space coordinates before generating the obstacle avoidance path. , its three-dimensional coordinate form for:

[0198] ;

[0199] Assume that the coordinates of the previous three-dimensional space point are known to be , the current position of the robot is , using a path generation method based on straight line path tracking, from to The robot's real-time expected path point , the calculation expression is:

[0200] ;

[0201] in is a saturation function, for any , ;

[0202] The calculated Can be input to the PD controller to achieve to A straight line path is represented by:

[0203] ;

[0204] in is the speed of the robot at the i-1th moment, is the control input at the i-th moment. In the embodiment of the present invention, , , , .

[0205] Based on the above embodiments, this embodiment verifies and analyzes the high-altitude obstacle avoidance method of the electric power inspection robot proposed in the present invention; this embodiment uses the PX4 open source flight control simulation kit and the MAVROS that goes with it to carry out simulation experiments. The kit uses the same node communication method as the ROS system, so that various sensor simulation information can be input into the algorithm node to verify the feasibility of the algorithm. The results of the simulation experiment, including point cloud maps, pose estimation, etc., are simulated using the Gazebo environment, and the positioning and mapping results are visualized under RViz. Figure 4 Shown is the environmental point cloud map of the area to be inspected by the power inspection robot. A simplified transmission section model built in the 3D modeling software SolidWorks is imported into the simulation environment. Through the drone equipped with the lidar sensor simulation model, the working condition of the system in the simulation experimental environment can be verified.

[0206] In the simulated inspection environment, the drone will perform four-sided flight around the pole tower model. During the flight process, it can reconstruct the pole tower model and the line model mounted on it in the inspection simulation environment in the input point cloud map. At the same time, it can output a relatively smooth motion path composed of a series of pose estimates, which demonstrates the feasibility of the high-altitude obstacle avoidance method for the power inspection robot proposed in the present invention.

[0207] Reference Figure 5 The figure shows a schematic diagram of the pole tower voxel model in the simulation scenario. The model is obtained by collecting the point cloud map through the self-positioning system and processing it with voxel downsampling. The processed map will be stored in octree format for offline call during simulation. In the simulation experiment, ROS is used to publish the topic and voxel map information of the target point location. The target point is set above the two pole tower models in the transmission area map. This position is also the position that the hybrid inspection robot needs to fly to before implementing online inspection in the real inspection environment. The simulation obstacle avoidance system subscribes to the published target point and map information, and uses the designed obstacle avoidance algorithm to reach the set target point according to the starting point information in the configuration file.

[0208] Two types of flight experiments are set up in this simulation environment according to different starting points, namely, the movement process of the simulation robot approaching the lightning conductor in the air during transfer, and the movement process of the robot taking off from the ground and approaching the lightning conductor.

[0209] Reference Figure 6The figure shows a schematic diagram of the aerial obstacle avoidance simulation process of the power inspection robot. In this environment, the robot starts from the aerial starting point outside the transmission zone and flies to the target position in the transmission zone. The real-time position of the simulated robot is represented by a pairwise orthogonal coordinate system, the target position is represented by an arrow, and the white hollow point cloud sphere represents the two-dimensional polar coordinate histogram around the robot. The movement path of the robot during the entire flight process is represented by a spatial curve. During the entire motion simulation process, the robot can plan the obstacle avoidance path points from the aerial starting point to the target point through the obstacle avoidance algorithm, so that the robot can bypass the upper end of the transmission tower and fly to the transmission zone where the arrow position is located.

[0210] Reference Figure 7 The figure shows a simulation diagram of the motion process of the power inspection robot taking off from the ground to the target point in the air. In this environment, the robot starts from the ground starting point outside the transmission zone and flies to the target position in the transmission zone. Since the height difference between the target point and the starting point satisfies the path using the climbing tendency, the best path point is searched in the two-dimensional polar coordinate histogram during the entire motion simulation process. The obstacle avoidance algorithm plans a fast climb from the ground starting point to the target point, and avoids the obstacle avoidance path of the wire during the ascent, successfully guiding the robot to the air above the middle area of ​​the transmission zone.

[0211] Reference Figure 6 and Figure 7 These two types of simulations preliminarily verified the feasibility of the obstacle avoidance algorithm in the power inspection simulation environment, proving that the obstacle avoidance algorithm can guide high-altitude inspection robots such as drones to safely reach the given target point in the simulation environment and avoid possible obstacles on the path. The high-altitude autonomous obstacle avoidance method for a power inspection robot proposed in an embodiment of the present invention solves the problem of autonomous obstacle avoidance of the power inspection robot in a high-altitude power inspection environment without prior information, meets the autonomous obstacle avoidance path planning requirements for obstacles during the robot's high-altitude inspection operation, has high obstacle detection accuracy and good robustness, and helps to improve the operating efficiency of the inspection robot.

[0212] The high-altitude obstacle avoidance method for the power inspection robot described in the present invention converts the local point cloud map obtained after compression into a voxel grid map, and calculates the occupancy probability of the voxel unit represented by each grid in the voxel grid map, obtains the occupancy state of the voxel unit based on the occupancy probability, eliminates the potential uncertainty information in the point cloud map obtained by the above measurement, improves the accuracy of the converted voxel octree map, and further improves the accuracy and safety of obstacle avoidance path planning. The present invention converts the voxel grid map into a voxel octree map, avoids a large amount of redundant information brought by directly storing the voxel grid map, and reduces the map storage cost. The present invention utilizes the target voxels in the spherical envelope area to screen out the target voxels, calculates the hash values ​​of all the target voxels and performs binarization to select the obstacle avoidance path points, calculates the weights of the obstacle avoidance path points, and selects the path with the smallest weight and value as the current target obstacle avoidance path; based on the binary hash value, the obstacle area and the passable area are accurately distinguished, the selection of obstacle avoidance path points is accelerated, and the obstacle avoidance path planning is made more efficient; based on the weight and the selection of the best obstacle avoidance path, the robustness and flexibility of the path selection are improved, thereby making the planned best obstacle avoidance path more accurate and safe, thereby ensuring the safe operation of the power inspection robot.

[0213] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0214] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0215] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0216] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0217] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A high-altitude obstacle avoidance method for a power inspection robot, characterized in that: include: Construct an environmental point cloud map of the area to be inspected by the power inspection robot, and perform downsampling to obtain a sparse environmental point cloud map; Performing regional filtering on the sparse environment point cloud map to obtain a local point cloud map; Converting the local point cloud map into a voxel grid map, and calculating the occupancy probability of the voxel unit represented by each grid in the voxel grid map; Based on the occupancy probabilities of all voxel units in the voxel grid map, converting the voxel grid map into a voxel octree map; Each node in the voxel octree map represents a voxel unit with an occupancy probability; On the voxel octree map, with the power inspection robot body as the origin, an envelope box of a preset size is constructed to obtain a spherical envelope area inscribed in the envelope box; the voxel octree map is traversed to remove voxels outside the spherical envelope area, to obtain all voxels within the spherical envelope area, and to construct a target voxel set; Calculate the heading angle and pitch angle of each target voxel, convert all target voxels in the target voxel set from three-dimensional spatial coordinates to two-dimensional polar coordinates, and construct a two-dimensional polar coordinate histogram in the robot coordinate system; Based on the occupancy probability, heading angle, pitch angle of each target voxel, and the minimum distance from the target voxel to the origin of the robot coordinate system, a hash value corresponding to each target voxel is obtained, and binarization is performed to obtain a binary hash value of each target voxel; Based on the two-dimensional polar coordinates and the binary hash values ​​of all target voxels, a hash value polar coordinate histogram is obtained; Based on the maximum radius size of the electric cruise robot, the preset safety radius and the preset voxel size, a voxel magnification factor is obtained; Using a sliding window with a voxel magnification factor as a side length, sliding on the hash value polar coordinate histogram; When the binary hash values ​​of all target voxels in the sliding window are 0, the target voxel at the center of the current sliding window is obtained as the obstacle avoidance path point; For each obstacle avoidance path point, the weight of each obstacle avoidance path point is calculated based on the two-dimensional polar coordinates of the preset target path point, the current obstacle avoidance path point and its previous obstacle avoidance path point; Based on the preset starting point and the preset target point, traverse all obstacle avoidance path points and select the path with the smallest weight as the current target obstacle avoidance path; The coordinates of all obstacle avoidance path points in the current target obstacle avoidance path are converted from two-dimensional polar coordinates to three-dimensional space coordinates, and a path generation method based on straight line path tracking is used to obtain the actual high-altitude obstacle avoidance path of the power inspection robot.

2. The high-altitude obstacle avoidance method for a power inspection robot according to claim 1, characterized in that: LiDAR is used to extract point cloud features of the area to be inspected, and an environmental point cloud map of the area to be inspected by the power inspection robot is constructed.

3. The high-altitude obstacle avoidance method for a power inspection robot according to claim 1, characterized in that: Downsampling the environmental point cloud map of the inspection area includes: Calculate the environment point cloud map M = {p1, p2, ..., p n ,…,p N The maximum and minimum coordinates in the x-axis, y-axis and z-axis directions, a total of six coordinate values, are expressed as: Maximum value of x axis: x max =max{x1,x2,x3,…,x n ,…,x N }; Minimum x-axis value: x min =min{x1,x2,x3,…,x n ,…,x N }; Maximum value of y axis: y max =max{y1,y2,y3,…,y n ,…,y N }; Minimum value of y axis: <h2 style=";text-align:left;direction:ltr">y<h2 style=";text-align:left;direction:ltr"> min <h2 style=";text-align:left;direction:ltr"> = min{y1,y2,y3,…,y<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> ,…,y<h2 style=";text-align:left;direction:ltr"> N <h2 style=";text-align:left;direction:ltr">}; Maximum value of z axis: z max =max{z1,z2,z3,…,z n ,…,z N }; Minimum value of z axis: With min =min{z1,z2,z3,…,z n ,…,With N }; N represents the total number of points in the environment point cloud map; p n Represents the nth point in the environment point cloud map, and the coordinates are expressed as (x n ,y n ,z n ); The rectangular area surrounded by the six coordinate values ​​is used as the downsampling envelope box; Let the size of a single voxel grid be r voxel , calculate the number of voxel grids D in the three axis directions of the downsampled envelope x , D y With D z , respectively expressed as: Based on each point p n The coordinates (x n ,y n ,z n ), and the number of voxel grids in the three axis directions of the downsampled envelope, calculate the hash value of each point, expressed as: h=h x +D x ·h y +D x D y ·h z ; Among them, h x 、h y With h z They represent the axial hash values ​​of the points in the three axial directions of the downsampling envelope box, respectively: For each voxel grid, obtain the point with the largest hash value in the grid as the representative point of the voxel grid, and delete the remaining points in the voxel grid; A sparse environment point cloud map is formed using representative points of all voxel grids in the environment point cloud map.

4. The high-altitude obstacle avoidance method for a power inspection robot according to claim 1, characterized in that: The performing regional filtering on the sparse environment point cloud map to obtain a local point cloud map includes: Obtain a filter envelope box with a preset side length and centered at the center of the power inspection robot; In the sparse environment point cloud map, all points located in the filtering envelope box are extracted to form a local point cloud map.

5. The high-altitude obstacle avoidance method for a power inspection robot according to claim 1, characterized in that: The occupancy probability of a voxel unit is expressed as: Among them, P(i) represents the prior occupancy probability; when P occupied When (i)>0.5, it means that the voxel unit is occupied; when P occupied When (i)≤0.5, it indicates that the voxel unit is in an unoccupied state.

6. The high-altitude obstacle avoidance method for a power inspection robot according to claim 1, characterized in that: The calculating of the heading angle and the pitch angle of each target voxel and converting all the target voxels in the target voxel set from three-dimensional space coordinates to two-dimensional polar coordinates includes: The heading angle of the i-th target voxel: The pitch angle of the i-th target voxel: The two-dimensional polar coordinates of the i-th target voxel are expressed as: (θ a,i ,θ e,i ); Among them, α represents the resolution of the two-dimensional polar coordinate histogram; (x i ,y i ,z i ) represents the three-dimensional space coordinates of the i-th target voxel.

7. The high-altitude obstacle avoidance method for a power inspection robot according to claim 1, characterized in that: Based on the occupancy probability, heading angle, pitch angle of each target voxel, and the minimum distance from the target voxel to the origin of the robot coordinate system, the hash value corresponding to each target voxel is obtained, which is expressed as: in, represents the hash value of the i-th target voxel; v i represents the i-th target voxel, S represents the target voxel set; occupancy state o i Expressed as P(i) represents the prior occupancy probability; when P occupied When (i)>0.5, it means that the voxel unit is occupied; when P occupied When (i)≤0.5, it means that the voxel unit is in an unoccupied state; parameters a and b satisfy w c Indicates the side length of the envelope box of the preset size; l i It represents the minimum distance from the i-th target voxel to the origin of the robot coordinate system, expressed as l i =d i -r i ;d i It represents the Euclidean distance from the i-th target voxel to the origin of the robot coordinate system, and its expression is (x i ,y i ,z i ) represents the three-dimensional space coordinates of the i-th target voxel; r i represents the radius of the spherical envelope area; λ i represents the voxel magnification factor of the i-th target voxel, and the expression is α represents the resolution of the two-dimensional polar coordinate histogram, r E Represents the two-dimensional voxel magnification factor, expressed as r E =r robot +r safety +r voxel , r robot Indicates the maximum radius size of the electric cruise robot, r safety Represents the preset safety radius, r voxel represents the voxel size; (θ a,i ,θ e,i ) represents the two-dimensional polar coordinates of the i-th target voxel.

8. The high-altitude obstacle avoidance method for a power inspection robot according to claim 7, characterized in that: The binary hash value of the target voxel is expressed as: in, represents the binary hash value of the i-th target voxel, τ high represents the preset upper threshold, τ low Indicates the preset lower threshold; Represents the binary hash value of the previous target voxel of the i-th target voxel.

9. The high-altitude obstacle avoidance method for a power inspection robot according to claim 8, characterized in that: For each obstacle avoidance path point, the weight of each obstacle avoidance path point is calculated based on the preset target path point, the current obstacle avoidance path point and the two-dimensional polar coordinates of the previous obstacle avoidance path point, expressed as: Among them, k i Represents the current obstacle avoidance path point p i The weight of; μ1, μ2, μ3, μ4 are all positive constants, which are preset weight parameters; Δ1(p i ,p t ) represents the current obstacle avoidance path point p i (θ a,i ,θ e,i ) and the preset target path point p t (θ a,t ,θ e,t ), the expression is Δ1(p i ,p t )=(θ a,i -θ a,t )+(θ e,i -θ e,t ); Represents the current obstacle avoidance path point p i (θ a,i ,θ e,i ) and the horizontal rotation angle of the power inspection robot, the expression is Represents the current obstacle avoidance path point p i (θ a,i ,θ e,i ) and the vertical rotation angle of the power inspection robot, the expression is Δ1(p i ,p i-1 ) represents the current obstacle avoidance path point p i (θ a,i ,θ e,i ) and its previous obstacle avoidance path point p i-1 (θ a,i-1 ,θ e,i-1 ), the expression is Δ1(p i ,p i-1 )=(θ a,i -θ a,i-1 )+(θ e,i -θ e,i-1 ).

10. The high-altitude obstacle avoidance method for a power inspection robot according to claim 1, characterized in that: The coordinates of all obstacle avoidance path points in the current target obstacle avoidance path are converted from two-dimensional polar coordinates to three-dimensional space coordinates, and a path generation method based on straight line path tracking is used to obtain the actual high-altitude obstacle avoidance path of the power inspection robot, including: Each obstacle avoidance path point P in the current target obstacle avoidance path i The coordinates of the two-dimensional polar coordinates P i (θ a,i ,θ e,i ) is converted into three-dimensional space coordinates P i (X i ,Y i ,Z i ), expressed as: Calculate the power inspection robot from the previous obstacle avoidance path point P i-1 Go to the next obstacle avoidance path point P i The expected path point P desire , expressed as: P desire =P+sat gd (k0(P i -P)+k1(P i-1 -P),a0); Where P represents the current path point of the power inspection robot; sat gd represents the saturation function, and the expression is k0 represents the distance from P to P i The path weight, k1 represents the path from P i-1 The path weight to P, a0 represents the preset expected maximum path length; Based on the expected path points between every two obstacle avoidance path points and the two obstacle avoidance path points, the actual high-altitude obstacle avoidance path of the power inspection robot is obtained.