METHOD FOR DRIVABLE AREA DETECTION AND AUTONOMOUS OBSTACLE AVOIDANCE OF UNMANNED HAULAGE EQUIPMENT IN DEEP CONFINED SPACES
20230305572 · 2023-09-28
Inventors
- Chunyu YANG (Jiangsu, CN)
- Zhencai Zhu (Jiangsu, CN)
- Yidong ZHANG (Jiangsu, CN)
- Xin ZHANG (Jiangsu, CN)
- Zhen GU (Jiangsu, CN)
Cpc classification
G06V20/70
PHYSICS
G06V20/58
PHYSICS
G05D1/0214
PHYSICS
G06V20/588
PHYSICS
G05D1/0251
PHYSICS
G06V20/41
PHYSICS
International classification
G06V20/56
PHYSICS
G06V20/70
PHYSICS
Abstract
A method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces is disclosed, which includes the following steps: acquiring 3D point cloud data of a roadway; computing a 2D image drivable area of the coal mine roadway; acquiring a 3D point cloud drivable area of the coal mine roadway; establishing a 2D grid map and a risk map, and performing autonomous obstacle avoidance path planning by using an improved particle swarm path planning method designed for deep confined roadways; and acquiring an optimal end point to be selected of a driving path by using a greedy strategy, and enabling an unmanned auxiliary haulage vehicle to drive according to the optimal end point and an optimal path. According to the present disclosure, images of a coal mine roadway are acquired actively by use of a single-camera sensor device, a 3D spatial drivable area of an auxiliary haulage vehicle in a deep underground space can be computed stably, accurately and rapidly, and the autonomous obstacle avoidance driving of the unmanned auxiliary haulage vehicle in a deep confined roadway is completed according to the drivable area detection and safety assessment information, and therefore, the method of the present disclosure is of great significance to the implementation of an automatic driving technology for an auxiliary haulage vehicle for coal mines.
Claims
1. A method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces, comprising the following steps: S1— performing environmental perception by use of binocular vision, and detecting a drivable area of an unmanned auxiliary haulage vehicle in a deep coal mine roadway; specifically comprising: S11: collecting, by a binocular camera, a video image of the auxiliary haulage vehicle driving in the coal mine roadway, and preprocessing a coal mine roadway image; S12: for a preprocessed coal mine roadway image obtained in step S11, designing a stereo matching algorithm specific to a stereo matching task of the coal mine roadway to implement the generation of a depth map of the coal mine roadway and the computation of 3D point cloud data; specifically comprising: S121: constructing an atrous convolution window with a specification of 5*5, and assigning different weights to different positions of the window according to a 2D Gaussian distribution function, where the weights in a sequence from left to right and top to bottom are respectively 3, 0, 21, 0, 3, 0, 0, 0, 0, 0, 21, 0, 1, 0, 21, 0, 0, 0, 0, 0, 3, 0, 21, 0, 3; S122: covering a left view of the coal mine roadway image with the convolution window constructed in step S121, and selecting pixel points in all coverage areas; S123: covering a right view of the coal mine roadway image with the convolution window constructed in step S121, and selecting pixel points in all coverage areas; S124: finding an absolute value of a gray value difference of all corresponding pixel points in the convolution window coverage areas of the left and right coal mine roadway views in step S122 and step S123, and according to the weights of the different positions of the window in step S121, performing weighted summation on the weights as a matching cost by using a formula as follows:
2. The method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces according to claim 1, wherein in step S11, the process of collecting, by a binocular camera, a video image of the auxiliary haulage vehicle driving in the coal mine roadway, and preprocessing a coal mine roadway image comprises the following steps: S111: performing coal mine roadway image correction processing by using a Hartley image correction algorithm; S112: performing coal mine roadway image enhancement processing on a corrected image obtained in step S111 by using an image enhancement algorithm based on logarithmic Log transformation; and S113: performing image filtering processing on an enhanced image obtained in step S112 by using an image filtering algorithm based on bilateral filtering.
3. The method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces according to claim 2, wherein in step S111, the process of performing coal mine roadway image correction processing by using a Hartley image correction algorithm comprises the following steps: S1111: obtaining an epipolar constraint relationship of the left and right coal mine roadway images obtained according to a camera calibration algorithm, and finding epipolar points p and p′ in the left and right coal mine roadway images; S1112: computing a transformation matrix H′ mapping p′ to an infinity point (1, 0, 0).sup.T; S1113: computing a photographic transformation matrix H matched with the transformation matrix H′, and satisfying a least square constraint, so as to minimize the following formula:
4. The method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces according to claim 2, wherein in step S112, the process of performing coal mine roadway image enhancement processing on the corrected image obtained in step S111 by using an image enhancement algorithm based on logarithmic Log transformation comprises the following steps: S1121: based on an image logarithmic transformation formula, transforming the corrected coal mine roadway image obtained in step S111 by using a formula as follows:
5. The method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces according to claim 2, wherein in step S113, the process of performing image filtering processing on an enhanced image obtained in step S112 by using an image filtering algorithm based on bilateral filtering comprises the following steps: S1131: for the enhanced coal mine roadway image obtained in step S112, constructing an n*n convolution template to carry out a convolution operation; S1132: based on a spatial area and a range area, performing weight assignment on the convolution template in step S1131 according to the following formula:
6. The method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces according to claim 1, wherein in step S24, said using an improved particle swarm path planning method designed for the deep confined roadway comprises the following steps: S241: performing grid encoding and decoding on the grid map established based on drivable area detection in step S21 and the risk grid map established based on the projection of the drivable area of step S1 in step S22; where according to the features of the grid map, an encoding method of a collision-free local optimal path is: X.sub.i is defined to be an obstacle-free path from a current location of a coal mine robot to a specified target point, which may be represented by all grids that constitute the path, i.e.,
7. The method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces according to claim 6, wherein in step S243, the velocity inertia weight ω is:
8. The method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces according to claim 6, wherein in step S243, for the drivable area detection information of the deep confined roadway established in step S1, a fitness function of a particle solution is established by taking the minimization of the total line length and the minimization of risk values as optimization objectives, where a relational expression of each solution in a search space and an objective function is:
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098]
[0099] Reference numerals in
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0100] The present disclosure will now be further described in detail with reference to the accompanying drawings.
[0101] It should be noted that the terms such as “upper”, “lower”, “left”, “right”, “front”, “rear” and the like referred to in the present disclosure are used only for the clarity of description and are not intended to limit the scope of the present disclosure, and any changes and adjustments to the relative relations thereof should also be deemed to fall within the implementable scope of the present disclosure without substantially changing the technical content.
[0102]
[0103] The present disclosure provides a method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces, which, in combination with
[0104] step 1: environmental perception is performed by use of binocular vision, and a drivable area of an unmanned auxiliary haulage vehicle in a deep coal mine roadway is detected.
[0105] Exemplarily, in combination with
[0106] step 1-1: a binocular camera collects a video image of the auxiliary haulage vehicle driving in the coal mine roadway, and a coal mine roadway image is preprocessed.
[0107] Exemplarily, in step 1-1, the process of preprocessing a coal mine roadway image includes the following substeps: [0108] step 1-1-1: coal mine roadway image correction processing is performed by using a Hartley image correction algorithm; [0109] step 1-1-2: image enhancement processing is performed on a corrected image obtained in step 1-1-1 by using an image enhancement algorithm based on logarithmic Log transformation; and [0110] step 1-1-3: image filtering processing is performed on an enhanced image obtained in step 1-1-2 by using an image filtering algorithm based on bilateral filtering.
[0111] Each substep of step 1-1 is described below.
(I) Coal Mine Roadway Image Correction Processing
[0112] The Hartley image correction algorithm used in step 1-1-1 specifically includes: [0113] step 1-1-1-1: an epipolar constraint relationship of the left and right coal mine roadway images is obtained according to a camera calibration algorithm, and epipolar points p and p′ in the left and right coal mine roadway images are found; [0114] step 1-1-1-2: a transformation matrix H′ mapping p′ to an infinity point (1, 0, 0) .sup.T is computed; [0115] step 1-1-1-3: a photographic transformation H matched with the transformation matrix H′ is computed, and a least square constraint is satisfied so as to minimize the following formula: where, m.sub.1i = (u1, v1,1), m.sub.2i = (u.sub.2, v.sub.2,1), and J represents a cost function error, and (u.sub.1, v.sub.1) and (u.sub.2, v.sub.2) are a pair of matching points on original left and right images; and [0116] step 1-1-1-4: the transformation matrix H′ in step 1-1-1-2 and the transformation matrix H in step 1-1-1-3 respectively act on the left and right coal mine roadway images to obtain a corrected coal mine roadway image.
(II) Image Enhancement Processing
[0117] The image enhancement algorithm in step 1-1-2 specifically includes: [0118] step 1-1-2-1: based on an image logarithmic Log transformation formula, the corrected coal mine roadway image obtained in step 1-1-1 is transformed by using a formula as follows: where, r is an input grayscale of the image, r ∈ [0, 1], s is an output grayscale of the image, c is a constant, and v is a logarithmic Log transformation intensity adjustment factor; and [0119] step 1-1-2-2: a logarithmically transformed coal mine roadway image obtained in step 1-1-2-1 is normalized to 0-255 for transformation by using a formula as follows: where, s is an unnormalized input grayscale, g is a normalized output grayscale, S.sub.max is a maximum grayscale of the image, and S.sub.min is a minimum grayscale of the image.
(III) Image Filtering Processing
[0120] The image filtering algorithm in step 1-1-3 specifically includes: [0121] step 1-1-3-1: for the enhanced coal mine roadway image obtained in step 1-1-2, an n*n convolution template is constructed to carry out a convolution operation; [0122] step 1-1-3-2: based on a spatial area and a range area, weight assignment is performed on the convolution template in step 1-1-3-1 by using a formula as follows: where, G.sub.α is a weight of the spatial area, G.sub.β is a weight of the range area, (x.sub.i, yi), (x.sub.j, y.sub.j) are respectively central pixel coordinates of the convolution template and pixel coordinates of the convolution template in step 1-1-3-1, σ is a smoothing parameter, gray () is a pixel gray value of the image, i is a center pixel of the convolution template, and j is a pixel of the convolution template; and [0123] step 1-1-3-3: according to the convolution template in step 1-1-3-1 and the weights in step 1-1-3-2, traversal computation of the left and right coal mine roadway images is performed by using the following formula to obtain a filtered image: where, S is the convolution template in step 1-1-3-1, I.sub.j is an original input image, I.sub.i is the filtered image, and W.sub.i is a normalization factor.
[0124] Step 1-2: for a preprocessed coal mine roadway image obtained in step 1, a stereo matching algorithm specific to a stereo matching task of the coal mine roadway is designed to implement the generation of a depth map of the coal mine roadway and the computation of 3D point cloud data.
[0125] The process of the generation of a depth map of the coal mine roadway and the computation of 3D point cloud data in step 1-2 specifically includes the following substeps: [0126] step 1-2-1: an atrous convolution window with a specification of 5*5 is constructed, and different weights are assigned to different positions of the window according to a 2D Gaussian distribution function, where the weights in a sequence from left to right and top to bottom are respectively 3, 0, 21, 0, 3, 0, 0, 0, 0, 0, 21, 0, 1, 0, 21, 0, 0, 0, 0, 0, 3, 0, 21, 0, 3; [0127] step 1-2-2: a left view of the coal mine roadway image is covered with the convolution window constructed in step 1-2-1, and pixel points in all coverage areas are selected; [0128] step 1-2-3: a right view of the coal mine roadway image is covered with the convolution window constructed in step 1-2-1, and pixel points in all coverage areas are selected; [0129] step 1-2-4: an absolute value of a gray value difference of all corresponding pixel points in the convolution window coverage areas of the left and right coal mine roadway views in step 1-2-2 and step 1-2-3 is found, and according to the weights of the different positions of the window in step 1-2-1, weighted summation is performed on the weights as a matching cost by using a formula as follows: where, p is a pixel of the coal mine roadway image, d is a disparity of the coal mine roadway image, I.sup.L (q) and I.sup.R (qd) are window elements taking q and qd as image centers on the left and right coal mine roadway images respectively, w.sub.q is the weight of the different positions of the convolution window, and N.sub.p is a 5*5 Gaussian atrous convolution window; [0130] step 1-2-5: matching cost aggregation is performed according to a matching cost computation method in step 1-2-4, where a matching cost aggregation step size d.sub.step is adaptively changed according to a pixel luminance of the coal mine roadway image by using a formula as follows: where, D.sub.max is a maximum disparity of a binocular image of the coal mine roadway, G.sub.max and G.sub.min are a maximum gray value and a minimum gray value of a gray image of the coal mine roadway respectively, and g is a gray value of the gray image of the coal mine roadway; [0131] step 1-2-6, based on matching costs in an adaptive matching cost aggregation step size d.sub.step range obtained in step 1-2-5, a window with a minimum matching cost value is found as a disparity by using a winner-take-all (WTA) algorithm, and cyclic computation is performed to obtain disparity maps of the coal mine roadway; [0132] step 1-2-7: based on the disparity maps of the coal mine roadway obtained in step 1-2-6, disparity image optimization is performed in accordance with a left-right consistency constraint criterion by using a formula as follows: where, D.sub.l is a left disparity map, D.sub.r is a right disparity map, and D.sub.invalid is an occlusion point where no disparity exists; and [0133] step 1-2-8, based on a disparity optimization image of the coal mine roadway obtained in step 1-2-7, disparity-map to 3D-data computation is performed according to a binocular stereo vision principle, and 3D point cloud information (X.sub.w, Y.sub.w, Z.sub.w) of the coal mine roadway in the advancing direction of the unmanned haulage vehicle is obtained by using a formula as follows: where, b is a distance between left and right optical centers of a binocular camera, f is a focal distance of the camera, d is a disparity of the coal mine roadway image, (x, y) indicates pixel coordinates of coal mine roadway image, (u, v) indicates coordinates of an origin of an image coordinate system in a pixel coordinate system, and α and β are the focal distances of a pixel in the x and y directions of an image plane respectively.
[0134] Step 1-3, for the preprocessed coal mine roadway image obtained in step 1-1, a deep learning model for a semantic segmentation task of the coal mine roadway is designed to implement the drivable area semantic segmentation of a 2D image of the coal mine roadway.
[0135] The process of drivable area semantic segmentation of a 2D image of the coal mine roadway in step 1-3 specifically includes: [0136] step 1-3-1: a semantic segmentation data set of the coal mine roadway is made, which specifically includes: [0137] step 1-3-1-1: marking is performed by using labelme image marking software, and the labelme software is started; [0138] step 1-3-1-2: a coal mine roadway image folder is opened, and an image is selected; [0139] step 1-3-1-3: only the drivable area of the coal mine roadway is selected with a frame, and the drivable area is named drivable_area; and [0140] step 1-3-1-4: steps 1-3-1-2 and 1-3-1-3 are repeated to finally complete the making of the drivable area semantic segmentation data set of the 2D image of the coal mine roadway.
[0141] Step 1-3-2: a semantic segmentation model deeplabv3+model is pre-trained based on a PASCAL VOC data set. The PASCAL VOC data set used in this embodiment contains a total of 11,530 images in 20 types.
[0142] Step 1-3-3: the transfer learning and fine-tuning training of the deeplabv3+ semantic segmentation model is performed according to a pre-trained semantic segmentation model obtained in step 1-3-2 and the drivable area semantic segmentation data set of the coal mine roadway obtained in step 1-3-1.
[0143] Step 1-3-4, real-time drivable area semantic segmentation of the 2D image of the coal mine roadway is performed according to the deep learning model fine-tuned with the data set of the coal mine roadway obtained in step 1-3-3 to obtain a 2D image drivable area.
[0144] Step 1-4: according to the 3D point cloud data of the coal mine roadway obtained in step 1-2 and a 2D drivable area segmentation image of the coal mine roadway obtained in step 1-3, a 2D-image to 3D-point-cloud mapping method is designed to implement the semantic segmentation of a 3D point cloud of the coal mine roadway.
[0145] The process of semantic segmentation of a 3D point cloud of the coal mine roadway in step 1-4 specifically includes: [0146] step 1-4-1, according to the 2D image drivable area obtained in step 1-3-4, drivable area image processing is performed based on morphological opening operation, which specifically includes: [0147] step 1-4-1-1: a morphological erosion operation is performed according to the drivable area image of the coal mine roadway obtained in step 1-3-4; and [0148] step 1-4-1-2: a morphological dilation operation is performed according to a morphological erosion image obtained in step 1-4-1-1.
[0149] Step 1-4-2: according to a left coal mine roadway view of the unmanned auxiliary haulage vehicle, segmentation for mapping the 2D image drivable area obtained in step 1-3-4 to the 3D point cloud is performed to obtain a 3D point cloud drivable area of the coal mine roadway by using a formula as follows:
where, P (x, y, z) is the 3D point cloud data of the coal mine roadway obtained in step 1-2-8, I (x, y) is a drivable area image of the coal mine roadway obtained after morphological processing is performed in step 1-4-1, and (x, y) is pixel coordinates of the left coal mine roadway view collected by the binocular camera.
[0150] Step 2: a drivable area of a deep confined roadway is determined according to drivable area detection information in step 1, and the safe driving of the unmanned auxiliary haulage vehicle in the deep confined roadway is performed by using an autonomous obstacle avoidance algorithm based on an improved particle swarm optimization algorithm.
[0151] Exemplarily, in step 2, four modules of establishing an environment map, initializing basic data, planning autonomous obstacle avoidance, and outputting an optimal route are included, which specifically includes the following substeps:
[0152] Step 2-1, a 2D workspace grid map of the unmanned auxiliary haulage vehicle is established based on the drivable area detection information in step 1.
[0153] The deep confined roadway is affected by deformation energy, kinetic energy and driving stress of coal mining for a long time, so part of the roadway shows an overall convergence trend, and has situations of roof leakage at the top of the roadway, hanging-down of blanket nets, damage, leakage and cracking on both sides of the roadway, deformation of support materials, and more water puddles on the ground surface of the roadway, and the like. The 2D grid map is obtained based on the projection of scene reconstruction information in step 1, and includes deformation and roof leakage of blanket nets and support materials at the top of the roadway, deformation, destruction, leakage and cracking on both sides of the deep roadway, and water puddles and other obstacles on the ground surface of the roadway.
[0154] Step 2-2: a risk grid map is established according to the projection of the drivable area in step 1.
[0155] The map obtained by performing safety assessment on the deep confined roadway by using an image segmentation technology in step 1 contains a safety area, a partial safety area and a complete risk area; the safety area is a part of the drivable area in step 1, in which the unmanned auxiliary haulage vehicle is allowed to drive directly; the complete risk area is an undrivable area, in which the unmanned auxiliary haulage vehicle is completely not allowed to drive; the partial safety area is a drivable area obtained by segmenting in step 1 between the safety area and the undrivable area, in which there is a risk when the unmanned auxiliary haulage vehicle drives; and in autonomous obstacle avoidance planning, a driving route of the vehicle should be planned in the safety area as much as possible, and cannot be planned in a safety risk area, and under a certain condition, the driving route of the vehicle can be planned in the partial safety area, but should be far away from the complete risk area as much as possible; and a rule of establishment among the three kinds of areas is as follows: [0156] rule 2-2-1: area risk levels are established according to the drivable area of the vehicle obtained by segmenting in step 1: the undrivable area itself is at a highest level 5; eight neighbor grids of a current grid are set to be at a risk level 4 by taking a grid where the undrivable area is located as a reference point; repeating is performed in a similar fashion until a risk level 1 reaches; the risk levels of other grids that are not at risk are still 0, that is, they are fully passable; [0157] rule 2-2-2: if there is a conflict in the risk level of a grid, the grid with the conflict is assessed with the highest risk level; and [0158] rule 2-2-3: the undrivable area itself is an absolute complete risk area, in which vehicles are not allowed to drive, and the safety area and the partial safety area (risk levels 1-4) are both drivable areas, where a grid with the risk level of 0 is a safety area;
[0159] Step 2-3: maps with an appropriate length are intercepted, and a temporary table of end points to be selected is established based on the map established based on the drivable area detection information.
[0160] To ensure the real-time performance of autonomous obstacle avoidance, maps with an appropriate length needs to be continuously intercepted for planning so as to update an autonomous obstacle avoidance path during vehicle driving. After the map is intercepted, a grid allowed to serve as a local end point is selected in the map by taking the unmanned auxiliary haulage vehicle as a start point of the current map, and recorded into a table of end points to be selected in accordance with a rule as follows: [0161] rule 2-3-1: an end point to be selected must be in the last column of a local grid map; [0162] rule 2-3-2: the grid is not an obstacle grid; [0163] rule 2-3-3: the neighbor grids of the end point to be selected at least comprise one passable grid; and [0164] rule 2-3-4: the grid is not surrounded by obstacles.
[0165] Step 2-4: autonomous obstacle avoidance path planning is performed by using an improved particle swarm path planning method designed for the deep confined roadway.
[0166] The improved particle swarm path planning method designed for the deep confined roadway in step 2-4 specifically includes:
[0167] step 2-4-1: grid encoding and decoding is performed on the grid map established based on drivable area detection in step 2-1 and the risk grid map established based on the projection of the drivable area of step 1 in step 2-2; where in consideration of the particularity of path planning in the deep confined space, according to the features of the grid map, an encoding method of a collision-free local optimal path is: X.sub.i is defined to be an obstacle-free path from a current location of a coal mine robot to a specified target point, which may be represented by all grids that constitute the path, i.e.,
where, V.sub.1,V.sub.2,...V.sub.n represents the serial numbers of all the grids through which the path X.sub.i passes, there is no complete risk grid with a risk level of 5, and the serial numbers are not repeated mutually. The serial numbers of the grids are continuously arranged from top to bottom and left to right by taking the first grid at the upper left corner of the grid map as 1 until the last grid at the lower right corner reaches, that is,
where, v.sub.n,1 and v.sub.n,2 represent a x-coordinate and a y-coordinate of a current grid, which are the coordinates of a center point of the grid but not the coordinates of a vertex of the grid; d is a side length of the grid; G.sub.row is the number of one row of grids in the current grid map.
[0168] After path points are computed, the following formula is used during inverse solving:
so as to complete the grid encoding and decoding.
[0169] step 2-4-2: obstacle information is processed according to the drivable area detection information in step 1 and the grid map established in step 2-1, and a particle swarm population is initialized, which includes the following steps: [0170] step 2-4-2-1: a square matrix of which the numbers of rows and columns are both the total number V.sub.overall of the grid is initially established, and a grid connection matrix M.sub.link is established; [0171] step 2-4-2-1-1: whether the current grid is adjacent to all other grids by use of cyclic traversal is computed, and whether the adjacent grids are obstacles is judged; [0172] step 2-4-2-1-2: if the current grid is not adjacent to all other grids or the adjacent grids are obstacles, a corresponding matrix element is set to 0; and if the current grid is adjacent to all other grids and the adjacent grids are not obstacles, a distance between the adjacent grids is computed by using a formula as follows: where, Vd.sub.n,.sub.i is a grid distance between the grid n and the grid i, and v.sub.1 and v.sub.2 represent a x-coordinate and y-coordinate of the current grid; [0173] step 2-4-2-2: a start point Vs of the coal mine robot and a final target point V.sub.E thereof are determined, and placed at the head and tail nodes of an initial route X.sub.0 through the encoding method in step 2-4-1; [0174] step 2-4-2-3: a next grid connected to the start point is randomly selected starting from a starting node Vs according to the connection matrix M.sub.link established in step 1; and [0175] step 2-4-2-4: step 2-4-2-3 is repeated according to the connection matrix M.sub.link until an encoding combination of a complete path connecting Vs to V.sub.E is completed, and an initial path is output.
[0176] step 2-4-3: based on the grid decoding/encoding methods in step 2-4-1 and the initialized population in step 2-4-2, the velocity and location of particles in a particle swarm are updated by using a formula as follows:
an improved particle velocity consists of three replacement sets. In the formula, Φ.sub.1, Φ.sub.2 and Φ.sub.3 represent three parts of the particle velocity: a self-velocity term, a cognitive term and a social term, and the last two terms are determined by a cognitive factor c.sub.1, an individual historical optimal solution
a social factor c.sub.2, and a global optimal solution gbest.sup.t, which is specifically as follows:
where, the self-velocity term is recorded by using random distribution to calculate grid coordinates and using the encoding method in step 2-4-1 to calculate corresponding grids. G.sub.col is the number of one column of grids in the current grid map. The cognitive term is recorded using the serial numbers of same positions in a set of paths X.sub.i represented by a current particle i in the individual historical optimal solution
and part of the serial numbers are set to 0 according to a certain probability. The social term is updated by using the same strategy to obtain part of the serial numbers ofthe same positions in a set of paths X.sub.i represented by the current particle i and the global optimal solution gbest.sup.t.
[0177] ω is a velocity inertia weight. In order to balance global and local search capabilities and allow the algorithm to jump out of local optimum as much as possible, an inertia weight ω is introduced into the self-velocity term of a particle update formula, and the value range thereof is between 0 and 1. The greater the inertia weight is, the stronger the global search capability is, and the weaker the local search capability is; otherwise, the global search capability is weakened, and the local search capability is enhanced. The inertia weight is designed herein as follows:
where, ω.sub.min and ω.sub.max are a minimum inertia weight and a maximum inertia weight. t is a current number of iterations. T is a maximum number of iterations.
[0178] R.sub.i represents a replacement rate.
[0179] A position update item is a fitness value of a set of paths X.sub.i represented by the current particle i. The path Xi represented by the current particle i is subjected to position replacement based on the three replacement sets in the particle velocity. comb(.Math.) is a permutation & combination function. replace(.Math.) is a replace function, indicating a replacement made between the current path X.sub.i and the particle velocity
is a fitness function.
[0180] The convergence of the particle swarm optimization algorithm requires the fitness function as a determination criterion, a greater fitness value of an optimization result indicates that a set of solutions represented by the particle is more preferred. Therefore, for the drivable area detection information of the deep confined roadway established in step S1, a fitness function of a particle solution is established by taking the minimization of the total line length and the minimization of risk values as optimization objectives. A relational expression of each solution in a search space thereof and an objective function is:
where, f represents a fitness function,
represents a total length of a set of paths represented by the current particle i,
represents a risk degree of the path, V.sub.j is a j-th composition grid between a start point Vs and end point V.sub.E of the path, Vr.sub.j represents the risk degree of the j-th grid, and W.sub.R represents a risk factor; and a method of computing the fitness function f is made by weighting the length and risk value of each grid in a path solution set X.sub.i according to risk degree indexes, adding obtained values, and taking a reciprocal of the obtained sum.
[0181] step 2-4-4: whether a maximum number of iterations is reached is determined, if so, an optimal autonomous obstacle avoidance path corresponding to a current end point is output, otherwise, step 2-4-3 is returned to continue iteration.
[0182] Step 2-5: an optimal end point to be selected of a driving path is obtained by using a greedy strategy, and the unmanned auxiliary haulage vehicle is enabled to drive according to the optimal end point and an optimal path.
[0183] Step 2-6: steps 2-1 to 2-5 are repeated to complete the autonomous obstacle avoidance of the unmanned auxiliary haulage vehicle in the deep confined roadway until the unmanned auxiliary haulage vehicle arrives at a task destination.
[0184] In summary, the present disclosure provides a method for drivable area detection and autonomous obstacle avoidance of unmanned haulage equipment in deep confined spaces, which can effectively utilize the information of a deep confined roadway collected by a binocular camera and a drivable area based on safety state assessment to perform autonomous obstacle avoidance in combination with a particle swarm optimization algorithm improved for path planning, so as to realize the unmanned driving of an auxiliary haulage vehicle for coal mines in a deep confined space; a method for drivable area detection of a deep confined space based on binocular vision performs coal mine roadway image preprocessing by using a Hartley image correction algorithm, an image enhancement algorithm based on logarithmic Log transformation, and an image filtering algorithm based on bilateral filtering, so that the problems such as dim environment and large salt & pepper noise of the deep underground coal mine roadway are solved; a SAD stereo matching algorithm based on Gaussian atrous convolution with an adaptive aggregation step size is used, which improves the matching precision and matching efficiency of the left and right coal mine roadway images; a model transfer-based method for training the semantic segmentation model of the drivable area of the coal mine roadway is used, which solves the problem of lack of data sets of the coal mine roadway, thereby improving the robustness and generalization of the semantic segmentation model; a semantic segmentation method of the point cloud of the coal mine roadway based on 2D-image to 3D-point-cloud mapping is used, which solves a problem of expensiveness caused by radar equipment, improves the semantic segmentation accuracy and efficiency of the 3D point cloud, and can obtain rich texture information of the coal mine roadway; and the method for autonomous obstacle avoidance of the unmanned auxiliary haulage vehicle based on the improved particle swarm optimization algorithm can effectively utilize the drivable area detection information, and quickly and autonomously perform the autonomous obstacle avoidance of the unmanned auxiliary haulage vehicle, thereby improving the security and intelligence of local path planning of the vehicle.
[0185] The above is only a preferred embodiment of the present disclosure, the scope of protection of the present disclosure is not limited to the above embodiment, and all technical solutions of the present disclosure under the thought of the present disclosure fall within the scope of protection of the present disclosure. It should be noted that, for a person of ordinary skill in the art, any improvements and modifications made without departing from the principle of the present disclosure should be considered to be within the scope of protection of the present disclosure.