A coal mine terrain perception and layered path planning method and system
By generating an initial mask for passable road areas, calculating Euclidean distance and center bias map, and combining cost gradient to generate a cost map, the safety hazards and local planning failures in mining area path planning are solved, and the safety and accessibility of global paths are achieved.
Patent Information
- Application Number
- CN202611353721.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing mining route planning methods pose safety risks in unstructured environments, and local planning is prone to failure, making it difficult to balance traffic safety and route accessibility.
By acquiring 3D point cloud data, an initial mask for passable road areas is generated, Euclidean distance and center bias map are calculated, a cost map is generated by combining cost gradient, and global optimal path planning is performed. Complex segments are selected for multi-objective optimization.
It improves the safety and success rate of path planning, ensures that the path naturally leans towards the road center at the global level, reduces the computational burden of local planning, and avoids path planning failure.
Smart Images

Figure CN123175276A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of intelligent mining technology, and more specifically, it relates to a method and system for coal mine terrain perception and hierarchical path planning. Background Technology
[0002] In recent years, unmanned mining trucks have become an important carrier for open-pit mining of mineral materials. Their working areas include unstructured areas such as loading areas, unloading areas, and spoil heaps. Road boundaries are blurred, lane markings are lacking, the terrain is undulating and slopes are varied, and the elevation data of lidar point clouds is incomplete due to obstruction.
[0003] Existing mining path planning methods mostly rely on global grid maps, generating a global path through a single optimization objective and then handing it over to a local planner for tracking. However, the cost map in these methods fails to adequately reflect the safety risks at road boundaries, resulting in potential safety hazards in the planned path. In addition, the global path has a low degree of matching with the actual kinematic characteristics of vehicles in areas with large corners or dramatic terrain changes, requiring the local planner to make complex adjustments in these areas. Limited by the local search space, path planning is prone to failure. Summary of the Invention
[0004] This application provides a coal mine terrain perception and hierarchical path planning method and system to solve the technical problems of safety hazards in path planning in unstructured mining environments and the easy failure of local planning in complex road sections, and to achieve hierarchical path planning that takes into account both traffic safety and path accessibility.
[0005] To achieve the above objectives, the technical solutions provided in this application are as follows: Firstly, a method for coal mine terrain perception and hierarchical path planning is provided, including: Acquire 3D point cloud data of the target mining area, project the 3D point cloud data onto a horizontal grid, determine the initial passable mask based on the elevation value of each horizontal grid, perform morphological processing on the initial passable mask, and obtain the passable road area. For each cell within the passable road area, calculate the Euclidean distance from that cell to the nearest boundary of the passable road area; Determine the center deviation diagram based on each Euclidean distance; Obtain the intensity scaling factor and penalty influence radius of the boundary cost. Based on the intensity scaling factor and penalty influence radius, determine the cost gradient that decreases from the boundary to the center through a truncation operation. Determine the cost map based on the center bias map and cost gradient; Based on the cost map, and through neighborhood expansion, a globally optimal path is generated, and several target complex segments are selected from the globally optimal path; For each objective complex segment, multi-objective optimization is performed on the objective complex segment to obtain the optimal path, and continuous paths are determined based on each optimal path.
[0006] Secondly, a coal mine terrain perception and hierarchical path planning system is provided, including: The accessible road area determination module is used to acquire three-dimensional point cloud data of the target mining area, project the three-dimensional point cloud data onto a horizontal grid, determine the initial accessible mask based on the elevation value of each horizontal grid, perform morphological processing on the initial accessible mask, and obtain the accessible road area. The Euclidean distance determination module is used to calculate the Euclidean distance from each grid cell within the accessible road area to the nearest boundary of the accessible road area. The center bias map determination module is used to determine the center bias map based on various Euclidean distances; The cost gradient determination module is used to obtain the intensity scaling factor and penalty influence radius of the boundary cost, and determine the cost gradient decreasing from the boundary to the center through a truncation operation based on the intensity scaling factor and penalty influence radius. The cost map determination module is used to determine the cost map based on the center bias map and the cost gradient. The target complex segment determination module is used to generate a globally optimal path based on the cost map and through a neighborhood expansion method, and then select several target complex segments from the globally optimal path. The continuous path determination module is used to perform multi-objective optimization on each objective complex segment to obtain the optimal path, and determine the continuous path based on each optimal path.
[0007] Thirdly, embodiments of this application also provide an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the coal mine terrain perception and hierarchical path planning method provided in the first aspect.
[0008] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the coal mine terrain perception and hierarchical path planning method provided in the first aspect.
[0009] The beneficial effects of the technical solution provided in this application are as follows: The coal mine terrain perception and hierarchical path planning method and system provided in this application, compared with related technologies, extracts passable road areas from 3D point clouds through slope thresholding and morphological processing. This overcomes the problem of regional misjudgment caused by missing elevation data in unstructured terrain of mining areas, ensuring the basic reliability of the cost map. Furthermore, this application calculates the Euclidean distance from the raster to the region boundary and combines it with a truncated cost gradient to determine a cost map that decreases from the boundary to the center. This ensures that the planned path naturally biases towards the road center at the global level, solving the deficiency of insufficient boundary safety risk representation in traditional cost maps.
[0010] Furthermore, the embodiments of this application adopt a global optimal path generation and complex segment screening strategy, which only performs multi-objective optimization on the selected target complex segments. This avoids the computational explosion problem of global optimization and achieves accurate matching between the path and the actual kinematic characteristics of the vehicle in areas with large corners or dramatic terrain changes. This reduces the burden on the local planner to make complex adjustments in these areas and makes up for the lack of local search space. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.
[0012] Figure 1 A flowchart illustrating the coal mine terrain perception and hierarchical path planning method provided in this application embodiment; Figure 2 A flowchart for determining a passable road area provided in this application embodiment; Figure 3 A schematic diagram illustrating the global search of 8 neighboring nodes provided in this application embodiment; Figure 4 This is a schematic diagram illustrating the complexity scoring and ranking in an embodiment of this application. Figure 5 A schematic diagram illustrating the results of path segmentation based on complexity scoring, provided as an embodiment of this application. Figure 6 This is a schematic diagram of the internal point offset of NSGA-II provided in the embodiments of this application; Figure 7 A schematic diagram illustrating the Pareto trade-offs provided in this application embodiment; Figure 8 A schematic diagram of corridor constraints provided for an embodiment of this application; Figure 9 This is a schematic diagram of the gradient descent loss convergence process provided in an embodiment of this application; Figure 10 This is a structural block diagram of a coal mine terrain perception and hierarchical path planning system provided in an embodiment of this application; Figure 11 A schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0013] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.
[0014] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” can be implemented as “A,” or as “B,” or as “A and B.” When describing multiple (two or more) items, if the relationship between the multiple items is not explicitly defined, the multiple items can refer to one, several or all of the multiple items. For example, the description of "parameter A includes A1, A2, A3" can be implemented as parameter A includes A1 or A2 or A3, or it can be implemented as parameter A includes at least two of the three items A1, A2 and A3.
[0015] This application provides a method for coal mine terrain perception and hierarchical path planning, which can be executed by electronic devices, such as... Figure 1 As shown, the method may include: S101: Acquire the 3D point cloud data of the target mining area, project the 3D point cloud data onto a horizontal grid, determine the initial passable mask based on the elevation value of each horizontal grid, perform morphological processing on the initial passable mask, and obtain the passable road area.
[0016] In this embodiment, the horizontal grid is a basic unit obtained by dividing the three-dimensional space into grids along the XOY plane. Each horizontal grid has a fixed horizontal size. For example, in this embodiment, the resolution of the horizontal grid can be set to 0.8m.
[0017] In this embodiment, the vehicle is in continuous motion when the lidar acquires 3D point clouds, and each frame of point clouds is located in a different sensor local coordinate system. To further achieve complete coverage of the large-scale terrain of the mining area, this embodiment needs to transform all 3D point clouds to the world coordinate system. Specifically, this embodiment uses the vehicle's attitude information (e.g., vehicle position and orientation) provided by the onboard odometer at each moment. Based on the timestamp of each 3D point cloud, binary positioning is performed in the odometer data sequence. Linear interpolation is used for the translation component, and spherical linear interpolation is used for the rotation component to obtain the rigid body transformation matrix corresponding to that frame. Combined with the extrinsic parameter matrix from the offline calibrated lidar to the IMU, each frame of point cloud is transformed to the world coordinate system to obtain the cumulative point cloud in a unified coordinate system. The transformation method in this embodiment can be: ,in, Represents the original point cloud coordinates. This indicates the external parameters for LiDAR-IMU calibration. Let represent the rigid body transformation matrix from the IMU to the world coordinate system in the k-th frame. This represents the output point cloud coordinates in the world coordinate system.
[0018] The transformed cumulative point cloud is projected onto a horizontal grid with a resolution of 0.8m according to the horizontal coordinates. Due to the presence of non-ground disturbances such as dust, rock face, and vegetation in the mining environment, multiple echo points from different sources will fall within each grid. In this embodiment, the elevation values of all three-dimensional points falling within the same grid are counted, and the lowest value is taken as the elevation value of that horizontal grid, thereby filtering out non-ground echoes.
[0019] In this embodiment, for each horizontal grid, the number of times it is observed by the point cloud during the entire cumulative time period is counted. If the number of observations is lower than a preset observation threshold (for example, the preset observation threshold is 3 times), the statistical data of the horizontal grid is determined to be unreliable, and it is marked as an invalid grid and not included in subsequent calculations.
[0020] In this embodiment, due to the limitations of the vertical field of view of the lidar and the local obstruction caused by the undulating terrain of the mining area, some grid cells in the horizontal grid may have missing elevation values (i.e., invalid grid cells). This embodiment uses a nearest neighbor elevation completion method based on distance transformation to fill in the missing grid cells. Specifically, for each horizontal grid cell with missing elevation, the search neighborhood is expanded layer by layer outward from the horizontal grid cell until a valid elevation grid cell is found. The elevation value of the nearest valid grid cell is taken as the filling value of the missing grid cell. If multiple nearest valid grid cells with equal distances exist, their average elevation value is taken.
[0021] In one embodiment of this application, determining an initial passability mask based on the elevation values of each horizontal grid includes: For each horizontal grid cell, the slope of the horizontal grid cell is determined based on its elevation value and the elevation values of its neighboring grid cells. Mark horizontal grid cells with a slope less than or equal to a preset slope threshold as passable grid cells; The initial passability mask is determined based on each passable grid.
[0022] In this embodiment, the elevation value refers to the lowest value of all three-dimensional point clouds within the horizontal grid in the Z-axis direction (i.e., the vertical direction), representing the ground elevation at that location. The preset slope threshold refers to the critical slope value used to determine whether the horizontal grid is suitable for vehicle passage. In this embodiment, the preset slope threshold can be set according to the maximum climbing ability of the unmanned mining truck; for example, the preset slope threshold can be set to 30°.
[0023] In this embodiment, after completing the missing horizontal grid, a grayscale opening operation is performed on the grid map to remove residual isolated low-value noise points. A 3×3 structuring element can be used to perform an erosion followed by a dilation operation to obtain a digital elevation model of the horizontal grid. Here, a 3×3 structuring element refers to a square window centered on the current grid and containing eight neighboring grids.
[0024] In this embodiment, the slope of each horizontal grid cell is calculated using a neighborhood difference method. See also Figure 2 This is a flowchart illustrating the process of determining a passable road area in this embodiment. Specifically, each horizontal grid is traversed. For the current horizontal grid, the slope angle in each direction is determined based on the difference between the elevation value of the current horizontal grid and the elevation values of its neighboring horizontal grids, combined with the grid resolution. The largest slope angle in each direction is taken as the slope value of the horizontal grid. The slope value of the horizontal grid is compared with a preset slope threshold. If the slope value of the horizontal grid is less than or equal to the preset slope threshold, the horizontal grid is determined to meet the vehicle passability requirements and is marked as a passable grid; if the slope value of the horizontal grid is greater than the preset slope threshold, the horizontal grid is determined to be an impassable grid.
[0025] In this embodiment, the marker positions of each passable grid are set to 1, and the marker positions of all impassable grids are set to 0, thereby determining the initial passable mask.
[0026] In this embodiment, after determining the initial passable mask, a binary morphological closing operation is performed on the initial passable mask to repair it. For example, a 7×7 structuring element (i.e., a square window centered on the current grid and expanding to a total of 49 surrounding grids) can be used for dilation followed by erosion to obtain the repaired passable mask. Connectivity analysis is then performed on the repaired passable mask, grouping all passable grids connected by their four neighboring regions (i.e., sharing edges, not just corners) into the same connected region. The number of grids contained in each connected region is counted, and the connected region with the largest area is extracted as the main road area. Small passable patches due to sporadic noise or distance from the main road (e.g., isolated platforms or the top of material storage areas) are filtered out.
[0027] Within the extracted main road area, a binary hole-filling technique is used. Specifically, all impassable grids within the main road area are traversed. If all four neighboring grids of an impassable grid are passable grids, or if it is determined to be a closed hole completely surrounded by passable areas, then the impassable grid is modified to a passable grid. After filling, all closed holes within the main road area are filled, and a complete passable road area is output.
[0028] In this embodiment, slope features, local roughness features, and height variance features can be extracted from the DEM to characterize the accessibility of passable road areas. Slope features reflect the overall terrain tilt trend, roughness features respond significantly to small-scale undulations such as meter-level gravel and potholes, while height variance features effectively capture large-scale elevation abrupt changes such as gullies and steep slopes. These three features complement each other, together forming a multi-dimensional description of terrain accessibility.
[0029] Specifically, the slope characteristics can be determined by calculating the elevation gradient using the central difference method to obtain the slope characteristics. The calculation method can be as follows: ,in, This represents the slope magnitude of the grid (i,j). This represents the central difference gradient of elevation in the x-direction. represents the central difference gradient of elevation in the y-direction, and r represents the DEM raster resolution. In this embodiment, slope directly affects driving force requirements, rollover risk, and energy consumption of electric mining trucks, and is a fundamental indicator for terrain accessibility assessment.
[0030] The determination of local roughness characteristics can be achieved by calculating the local elevation standard deviation using a 3×3 sliding window to characterize the degree of surface undulation at the meter level. High roughness areas typically correspond to gravel roads or irregular surfaces. This calculation method can be... ,in, This represents the local roughness calculated using a window at grid (i,j). Representing the neighborhood Elevation values of each grid cell.
[0031] The height variance characteristic can be determined by calculating the local elevation standard deviation using a 5×5 sliding window. The window size matches the mine card axis spacing, enabling the identification of large-scale elevation abrupt changes such as gullies and steep slopes. This calculation method can be... ,in, This indicates the position at grid (i,j). The standard deviation of elevation calculated using a sliding window. Representing the neighborhood Elevation values of each grid cell.
[0032] S102: For each cell within the passable road area, calculate the Euclidean distance from that cell to the nearest boundary of the passable road area.
[0033] S103: Determine the center deviation diagram based on each Euclidean distance.
[0034] In one embodiment of this application, for each grid cell within a passable road area, a center bias map is determined based on each Euclidean distance, including: For each grid cell within the passable road area, obtain the distance value corresponding to that grid cell based on the Euclidean distance of that grid cell; Select the largest distance value from all distance values; Calculate the ratio of the distance value corresponding to each grid cell to the maximum distance value, and use it as the center offset value corresponding to that grid cell; The center bias map is determined based on the center bias values.
[0035] In this embodiment, the center bias value refers to the degree of centralization of each grid cell within the passable road area after normalization, and the value ranges from 0 to 1. A center bias value of 1 indicates that the grid cell is located at the road centerline and has the maximum lateral safety redundancy; a center bias value of 0 indicates that the grid cell is located on the road boundary and has the lowest safety redundancy.
[0036] See Figure 3 This is a schematic diagram of the 8-neighborhood node expansion provided in this embodiment. In this embodiment, a corresponding binary mask is determined based on the passable road area. The grids of the passable road area are traversed according to the binary mask. For each passable grid, the passability status of the passable grid in its four neighboring areas (adjacent grids in the four directions of top, bottom, left, and right) is determined. If all four neighboring areas of the current passable grid are passable grids, then the passable grid is determined to be an internal grid of the road; if at least one impassable grid (with a value of 0) exists in the four neighboring areas of the current passable grid, then the passable grid is determined to be a road boundary grid.
[0037] For each accessible grid cell, calculate the Euclidean distance between that accessible grid cell and all boundary grid cells. Specifically, first check if there is a boundary grid cell in the neighborhood of distance 1. If not, expand to the neighborhood of distance 2, and so on, until the first boundary grid cell is found. The search radius at this point is the Euclidean distance from the accessible grid cell to the nearest boundary.
[0038] The largest distance value is selected from the multiple Euclidean distances corresponding to each accessible grid cell. The ratio of the distance value corresponding to the accessible grid cell to the largest distance value is used as the center bias value for that grid cell. ,in, Represents grid ( i,j The center bias value, B A value of 1 indicates the center of the corresponding road. B A value of 0 indicates the corresponding road boundary. Represents grid ( i,j Euclidean distance to the nearest boundary This represents the maximum distance value.
[0039] The center bias values of each grid are organized according to the spatial position of the grid to generate a center bias map with the same size as the original binary mask. In this map, the value at each position corresponds to the center bias value of the current grid, and the value range is [0,1].
[0040] As can be seen from the above, the embodiment of this application determines the center bias map through geometric distance transformation, which has significant adaptability advantages in unstructured environments with blurred road boundaries and no lane markings in mining areas, avoiding the dilemma of being unable to establish lateral safety constraints due to visual perception failure. This embodiment also calculates the Euclidean distance from each grid to the nearest boundary through four-neighbor boundary determination and layer-by-layer expansion search, and then normalizes it based on the global maximum distance, so that the center bias value is uniformly mapped to the [0,1] interval, eliminating the influence of road width differences on the measurement standard, and providing a unified quantitative scale of center preference for different mining areas and different road sections; the center bias map has the road center as the highest preference point and the boundary as the lowest preference point, forming a smooth and decreasing continuous distribution along the lateral side of the road, reducing the probability of falling into the boundary slip risk zone.
[0041] S104: Obtain the intensity scaling factor and penalty influence radius of the boundary cost. Based on the intensity scaling factor and penalty influence radius, determine the cost gradient that decreases from the boundary to the center through a truncation operation.
[0042] In this embodiment, the intensity scaling factor is used to control the amplification factor of the maximum boundary penalty cost. For example, in this embodiment, the intensity scaling factor γ is set to 4, and this value is determined based on the relative importance of the basic terrain cost and the boundary risk. The penalty influence radius refers to the maximum range of effect of the boundary penalty extending from the boundary into the road interior. In this embodiment, the penalty influence radius can be 60 grids, which can be determined based on statistics of typical road widths in the mining area.
[0043] In one embodiment of this application, determining the cost gradient decreasing from the boundary to the center based on the intensity scaling factor and the penalty influence radius, and through a truncation operation, includes: For each grid cell in the passable road area, the penalty influence radius is subtracted from the Euclidean distance of that grid cell to obtain the corresponding difference value; By limiting each difference to the range between 0 and the penalty influence radius, we obtain the truncated difference for each grid cell. The ratio of the difference after each truncation to the radius of influence of the penalty is used as the normalized distance penalty factor; The product of the normalized distance penalty factor and the intensity scaling factor is used as the boundary penalty value of the raster. Obtain the base terrain value for this grid; The fusion cost of the raster is obtained by adding the boundary penalty value to the base terrain cost. The cost gradient is determined based on the value of each fusion generation.
[0044] In this embodiment, the basic terrain cost represents the passage cost of a grid in the non-boundary safety dimension. It can be determined based on the mining area digital elevation model through slope calculation, obstacle expansion, etc. A higher basic terrain cost indicates greater passage difficulty or risk. The amplitude truncation operation refers to a mathematical operation that restricts values to a specified closed interval. It involves mapping the value of each grid cell point by point. In this embodiment, the stage interval is from 0 to the penalty influence radius.
[0045] For each grid cell in the passable road area, the difference between the penalty influence radius and the corresponding Euclidean distance of that grid cell is used to obtain the difference value for that grid cell. ,in, Indicates the radius of the penalty's effect. Represents grid The Euclidean distance to the nearest boundary.
[0046] When the grid is on the boundary The difference is positive. This indicates that the area receives the maximum penalty; when the grid spacing boundary is equal to When the difference is 0, it means that the point has just entered the no-penalty region; when the grid distance exceeds the boundary... When the difference is negative, it indicates that the location is within the central exemption zone. Traverse all grids within the passable road area and calculate the difference for each grid.
[0047] This embodiment performs a thresholding and truncation operation on each difference value, limiting its value range to [0, ...]. Dmax Within ], obtain the truncated difference. . Specifically, if If it is less than 0, then Set to zero so that the subsequent boundary penalty obtained by this raster is 0; if 0 ≤ ≤ Then keep The value remains unchanged; if Greater than Then Set the value to .
[0048] For each truncated difference, divide the truncated difference by the penalty influence radius to obtain the normalized distance penalty factor. ,in, This represents the normalized distance penalty factor, which can range from [0,1]. When the grid is located on the boundary, the normalized distance penalty factor is 1, representing the maximum penalty ratio at the boundary; when the grid is greater than or equal to the boundary, the penalty factor is 1. Dmax When the normalized distance penalty factor is 0, it indicates that the raster is completely unaffected by the boundary penalty (i.e., center exemption); when the raster is between the boundary and the center, the normalized distance penalty factor is 0. Dmax When the distance is between 0 and 1, the normalized distance penalty factor decreases linearly with increasing distance from the boundary in the interval (0,1), forming a continuous distribution that monotonically decreases from the boundary to the center.
[0049] In this embodiment, the product of the normalized distance penalty factor and the intensity scaling factor is used as the boundary penalty value of the raster. ,in, Represents a grid The boundary penalty value is calculated by adding the boundary penalty value to the base terrain value, thus obtaining the fusion value of the raster. ,in, This indicates the value of the basic terrain.
[0050] In this embodiment, for grids outside the passable road area, their fusion cost is kept at a maximum value to ensure that subsequent path searches do not exceed the road area. After traversing all grids within the passable road area, a complete comprehensive passage cost map is formed, where the cost of each grid reflects both the basic passage difficulty and the boundary safety risk, naturally forming a smoothly decreasing cost gradient from the boundary to the center.
[0051] As can be seen from the above, this embodiment achieves exemption from boundary penalties for the central area of the road through the amplitude-limiting truncation operation, thus exempting all areas exceeding the boundary from the boundary. Dmax The grid boundary penalty cost is zero, and all grids in the passable area are completely preserved, avoiding the loss of map information due to numerical processing and ensuring the free passage characteristics of the central area. On this basis, this embodiment superimposes the boundary penalty cost and the basic terrain cost on a unified dimension by multiplying the normalized distance penalty factor and the intensity scaling factor γ, realizing a quantitative balance between boundary safety and passage efficiency, and improving the safety, terrain adaptability and planning success rate of unmanned mining truck path planning.
[0052] S105: Determine the cost map based on the center bias map and cost gradient.
[0053] In one embodiment of this application, determining a cost map based on a center bias map and a cost gradient includes: Based on the center bias map and cost gradient, determine the comprehensive cost value corresponding to each grid cell; Based on the comprehensive value of each factor, determine the cost map.
[0054] In this embodiment, the cost map refers to a two-dimensional grid map formed by combining the comprehensive cost of all grids within the passable road area according to their spatial location.
[0055] In the cost gradient, each grid cell within the passable road area has a corresponding fusion cost. For each grid cell, the center preference weight corresponding to that grid cell is obtained. Based on the center bias value and the center preference weight, the center preference cost of that grid cell is determined. ,in, Represents a grid The cost of central preference This represents the center preference weight, which can have a value of 2.0. This indicates a non-central bias value.
[0056] The center preference cost term is added to the fusion cost term to obtain the comprehensive cost of the raster. .
[0057] The comprehensive cost value of each grid cell is organized according to the grid cell's spatial coordinates to generate a cost map with the same two-dimensional size as the horizontal grid cells. In this cost map, each location... Store the comprehensive cost of the corresponding raster For grid cells outside the passable road area, their comprehensive cost value is consistently maintained at its maximum value to ensure that subsequent path search algorithms do not select these areas as waypoints when expanding nodes. After traversing all grid cells within the passable road area, a complete cost map is formed.
[0058] From the above, it can be concluded that this embodiment integrates the center bias map with the cost gradient, and combines dimensions such as boundary safety risk and center guidance preference. The boundary penalty cost forms a significant cost barrier in the near-boundary region, while the center preference term continuously provides a smooth guiding force towards the center throughout the entire road cross-section. The combined effect of these two factors ensures a complete, continuous, and monotonically decreasing cost gradient from the boundary to the center within the passable area. Based on this, the comprehensive cost value is integrated with multiple cost factors using a unified dimension, making A... When the global search algorithm expands nodes, it naturally tends to select the central area grid, without relying on the local planner to initiate the avoidance response when the vehicle is near the boundary, thus improving the safety orientation and search efficiency of global path planning.
[0059] S106: Based on the cost map and through neighborhood expansion, generate the globally optimal path, and select several target complex segments from the globally optimal path.
[0060] In one embodiment of this application, a globally optimal path is generated based on a cost map and through a neighborhood expansion method. Several target complex segments are then selected from the globally optimal path, including: Using the cost map as input, a globally optimal path is generated through neighborhood expansion; the globally optimal path includes multiple monitoring points. Each monitoring point is extracted from the global optimal path, and the local turning angle and local cost change of each monitoring point are calculated. For each monitoring point, the local turning angle of the monitoring point is the geometric turning angle formed by N consecutive monitoring points, and the local cost change is determined by the average terrain cost. The N consecutive monitoring points include the monitoring point, the monitoring points before the monitoring point, and / or the monitoring points after the monitoring point, where N is a natural number and N≥3. Monitoring points where the local turning angle exceeds a preset turning angle threshold are identified as candidate key points, or monitoring points where the local cost change exceeds a preset change threshold are identified as candidate key points. The starting and ending points of the globally optimal path are used as fixed key points, and the globally optimal path is divided into several sub-segments based on every two adjacent candidate key points. For each sub-segment, obtain the maximum local turning angle and length normalization factor corresponding to that sub-segment; determine the complexity score of that sub-segment based on the maximum local turning angle, average terrain cost, and length normalization factor. Sort the complexity scores of each sub-segment in descending order and select the top K sub-segments as optimization candidates. Each objective complex segment is determined based on the maximum local turning angle and average terrain cost corresponding to each optimization candidate segment.
[0061] In this embodiment, a two-layer progressive fusion path planning strategy of "coarse planning - fine optimization" is adopted. The globally optimal path serves as the global guide, with local kinematic optimization performed only on a few high-complexity segments as needed. Finally, global refinement achieves the continuity of the entire path. This path planning strategy, through the idea of "optimization on demand," concentrates computational resources on the local regions that most significantly improve path quality, achieving an efficient balance between global search efficiency and local path feasibility.
[0062] The quality of the global guided path directly affects the rationality of subsequent segmentation strategies and the spatial constraints of local optimization. This embodiment uses the cost map enhanced with road center preference as the search space and runs a standard global graph search algorithm to generate the globally cost-optimal path from the starting point to the destination.
[0063] In this embodiment, a local turning angle refers to the geometric turning angle formed by N (e.g., 3) consecutive monitoring points, including the monitoring point itself, the monitoring points preceding it, and / or the monitoring points following it, for a given monitoring point on the path. It reflects the degree of drastic change in the path's direction at that point. Local cost change refers to the absolute difference between the basic terrain cost of a monitoring point itself and the average basic terrain cost within the window, within a certain range (sliding window) before and after it on the path. It reflects the degree of abrupt change in terrain conditions when the path passes through that location. Candidate key points refer to monitoring points that satisfy either a local turning angle exceeding a preset turning angle threshold or a local cost change exceeding a preset change threshold.
[0064] A preset turning angle threshold is used to determine whether a monitoring point is a local turning angle critical value of a geometric key point. In this embodiment, the preset turning angle threshold can be 35°. The value of this preset turning angle threshold is determined based on the maximum turning capability of a typical unmanned mining truck. A preset change threshold is used to determine whether a monitoring point is a local cost change critical value of a terrain key point. In this embodiment, the preset change threshold can be 0.45. The value of this preset change threshold is determined by statistical analysis of cost changes in typical terrain transition areas of the mining area. Road sections with cost changes exceeding 0.45 typically correspond to areas with abrupt slope changes, changes in road surface material, or significant changes in obstacle density.
[0065] In this embodiment, a global search algorithm is employed, based on a cost map, to generate a globally optimal path from the starting point to the ending point through an eight-neighborhood node expansion method. During the search process, for the current expanded node (target point), its eight surrounding neighboring grid nodes (i.e., horizontal, vertical, and diagonal neighboring grids) are evaluated, the comprehensive cost of each neighboring grid node is calculated, and Euclidean distance is used as a heuristic function to evaluate the estimated cost from each grid node to the target point. After the search is completed, the globally optimal path composed of the monitoring points in sequence is obtained.
[0066] For each non-starting and non-ending monitoring point on the globally optimal path (1≤k≤N), taking the monitoring point itself and the two adjacent monitoring points before and after it as examples. , Three continuous monitoring points are established. The local turning angle at each monitoring point is calculated. This local turning angle reflects the degree of drastic change in the path's direction at that point, and the local cost change at that monitoring point is also calculated. For the current monitoring point on the path... Obtain the base terrain cost corresponding to it in the cost map. The average cost of the basic terrain cost for all monitoring points is calculated within a sliding window around the monitoring point. The absolute difference between the current point's own cost value and the window's average cost value is taken as the local cost change of that monitoring point. The larger the value of this local cost change, the more significant the topographical abrupt change at the current monitoring point relative to its surrounding area.
[0067] This embodiment determines candidate key points based on local corners and local cost changes, and through a two-condition judgment rule, wherein the two-condition judgment rule is as follows: If the local turning angle of the monitoring point is greater than the preset turning angle threshold, or the local cost change of the monitoring point is greater than the preset change threshold, then the monitoring point is determined as a candidate key point.
[0068] In this embodiment, the starting point and ending point of the globally optimal path are used as fixed key points. Then, candidate key points are traversed according to the path order. For the current candidate key point, the index distance between the candidate key point and the previous key point in the path sequence is calculated. If the index distance is greater than or equal to the preset minimum distance constraint, the key point is considered to be selected. (In this embodiment, the preset minimum spacing constraint can be 25 grids), then the candidate key point is determined to be a valid key point; if the index spacing is less than the preset minimum spacing constraint, then the candidate key point is determined not to be a valid key point and the candidate key point is skipped.
[0069] All valid key points are arranged in the order of the path. Two adjacent key points are selected in turn as the start and end boundaries of a sub-segment. Based on this, the global optimal path is divided into several sub-segments. Each sub-segment includes all continuous monitoring points from the start key point to the end key point.
[0070] For each path segment Obtain all monitoring points and their corresponding path index lengths within this sub-segment. (i.e., the number of monitoring points contained in the sub-segment). Traverse all non-endpoint monitoring points within the sub-segment and find the largest local turning angle. And calculate the average base terrain cost for all monitoring points within this sub-segment. .
[0071] The length normalization factor of the sub-segment is determined based on the path index length. ,in, This represents the length normalization factor of the k-th sub-segment.
[0072] Based on the segment's length normalization factor, maximum local turning angle, and average basic terrain cost, the complexity score for that segment is calculated using the complexity score calculation formula. The complexity score calculation formula can be... ,in, This represents the complexity score of the sub-segment. This represents the weighting coefficient.
[0073] Sort all sub-segments by complexity score in descending order, and select the top K segments with the highest scores as optimization candidates. See also Figure 4 This is a schematic diagram illustrating the complexity scoring and ranking in this embodiment.
[0074] For each of the selected candidate segments, a secondary confirmation threshold determination is performed. Specifically, for each candidate segment, if the maximum local turning angle corresponding to that candidate segment is... >35 or average terrain cost If the value is greater than 0.45, the candidate segment is identified as the target complex segment; if neither condition is met, the candidate segment does not enter the local optimization process, and its original path is directly preserved. See also Figure 5 This is a schematic diagram of the result of segmenting the path based on complexity scoring in this embodiment.
[0075] As can be seen from the above, this embodiment generates a globally optimal path on the cost map through eight-neighborhood search. Then, it uses a dual-condition "OR" logic of geometric turning angle and terrain cost change to extract candidate key points. This ensures that the kinematic difficulties caused by sharp curves and the passage risks caused by abrupt terrain changes can be independently captured, avoiding missed detections due to single features. This embodiment also prevents excessive density of key points in curve-concentrated areas through minimum spacing constraints, ensuring that each sub-segment has sufficient length to support subsequent local deformations. This embodiment improves the overall efficiency of hierarchical path planning through dual screening using complexity scoring and ranking, and a secondary confirmation threshold.
[0076] S107: For each objective complex segment, perform multi-objective optimization on the objective complex segment to obtain the optimal path, and determine the continuous path based on each optimal path.
[0077] In this embodiment, the target complex segment includes a discrete point sequence, which includes a start point, an end point, and internal points located between the start point and the end point.
[0078] In one embodiment of this application, for each target complex segment, multi-objective optimization is performed on the target complex segment to obtain the optimal path, including: Obtain the offset range of each internal point; the offset range is used to determine the position search interval of each internal point during the iterative optimization process. The discrete point sequence of the target complex segment is used as an individual in the initial population, and random perturbations are applied to each internal point of the target complex segment to generate other individuals in the initial population. Based on the offset range, the initial population is subjected to multi-objective iterative optimization to generate candidate paths; Candidate paths that meet the preset smoothness requirements are selected from all candidate paths to form a candidate set. The length and terrain cost of each candidate path in the candidate set are weighted and scored, and the candidate path with the lowest score is determined as the optimal path.
[0079] In this embodiment, for each target complex segment, a discrete point sequence of that target complex segment is obtained. ,in, This indicates the starting point of the complex segment of the target. This indicates the endpoint of the complex segment of the objective. to This represents the internal points of the target complex segment. In order to further maintain the connection between the sub-segment and the preceding and following path segments, when optimizing the path, the starting point and ending point of each target complex segment are fixed, and the position search interval, i.e. the offset range, is determined for each internal point in the iterative optimization process.
[0080] Using the original discrete point sequence P of the target complex segment as an individual in the initial population (i.e., a zero-offset individual), random perturbations are applied to the coordinates of each internal point of the target complex segment to generate the remaining individuals in the initial population. In this embodiment, the magnitude of the random perturbation is limited by the offset range, and this initial population constitutes the starting solution set for multi-objective iterative optimization.
[0081] See Figure 6 This diagram illustrates the internal point offset of NSGA-II in this embodiment, which utilizes NSGA-II's local multi-objective path optimization. Specifically, multi-objective iterative optimization is performed on the initial population based on the offset range. During the optimization process, the anchor points at both ends are fixed, i.e., the start and end points are fixed, allowing only internal points to be offset. to A two-dimensional translation occurs within the offset range. Through iterative evolution, candidate paths that meet the multi-objective optimization requirements are generated. The search space of the optimization process is constrained to the vicinity of the original guiding path, thereby reducing the search difficulty while maintaining the global topological relationship.
[0082] This embodiment employs a length-cost-priority trade-off strategy, selecting candidate paths from among the candidate paths that meet preset smoothness requirements as a candidate set. See [link to relevant documentation]. Figure 7 This diagram illustrates the Pareto trade-off selection provided in this embodiment. Specifically, firstly, a candidate set with curvature close to the optimal curvature is found on the Pareto front, and solutions with a maximum curvature not exceeding the allowable range of the optimal curvature are retained. Subsequently, the path length and average terrain cost of each candidate path in the candidate set are normalized and weighted, and the candidate path with the lowest score is selected as the optimal path.
[0083] After determining the optimal path, this embodiment also includes quality verification of the determined optimal path. If the optimal path passes the verification, it is adopted; if the optimal path fails the consistency verification of length, curvature, and heading, the sub-segment enters the next stage of discrete kinematics search backtracking search; if the backtracking search still fails the consistency verification or the search fails, the guiding sub-segment is retained, and the optimization results of each target complex segment are spliced together according to the path order to form a complete continuous path.
[0084] The specific steps of the backoff search are as follows: When the multi-objective iterative optimization fails to return a valid Pareto solution, or when its optimal candidate path fails the consistency verification of length, curvature, and heading, a corridor-constrained guided discrete kinematics search is used as a backoff mechanism. A strip-shaped corridor is constructed along the original guiding segment, and the node expansion of the discrete kinematics search is restricted to within this corridor. This local corridor is obtained by morphological dilation of the original segment and intersects with the road region mask. Based on this, the search space can be compressed from a complete two-dimensional map to a narrow strip region near the reference path. See also Figure 8 This is a schematic diagram of corridor constraints provided in this embodiment.
[0085] The heuristic function uses a weighted form of Euclidean distance and local terrain cost, which, while maintaining convergence toward the target, appropriately considers the impact of the current terrain cost on the travel distance. The path obtained by the backtracking search also needs to undergo quality verification consistent with the multi-objective optimization output. If the discrete kinematics search result satisfies the constraints of length, curvature, and heading, it is taken as the optimization result of that complex sub-segment; if it still does not meet the requirements or the search fails, the original guiding sub-segment is retained.
[0086] Since both the global guidance path and the local search path are represented as discrete grid points, even after local optimization, the complete path may still exhibit small-scale directional jitter, inter-segment discontinuities, and gridded polyline characteristics. Therefore, multi-objective gradient descent refinement is applied to the path results that have passed quality verification. During the iteration process, the path points, under the combined effect of the smoothing term, the terrain cost reduction term, and the road center attraction term, can quickly correct local polyline jitter, reduce the influence of high-cost areas, and move closer to the road center area, resulting in a rapid decrease in loss. As the number of iterations increases, the overall loss of multi-objective gradient descent shows a rapid decrease and gradually tends to stabilize. The improvement margin of subsequent iterations gradually decreases until convergence, generating a continuous path suitable for unmanned mining truck tracking. The optimal paths optimized for each objective's complex segment are then sequentially stitched together to form a complete continuous path output. See also Figure 9 This is a schematic diagram of the gradient descent loss convergence process provided in this embodiment.
[0087] As can be seen from the above, by fixing the first and last anchor points and applying offset constraints only to internal points, the continuous optimization space is compressed to the vicinity of the original guiding path while maintaining the connection between sub-segments and the preceding and following path segments, thus reducing the search difficulty and computational cost of local multi-objective optimization. This embodiment also generates an initial population by preserving individuals with zero offset and generating Gaussian perturbations, taking into account both the inheritance of the original path structure and the diversity of candidate solutions. On this basis, a multi-objective trade-off between path smoothness and traffic efficiency is achieved through Pareto front curvature screening and length-terrain cost normalization weighted scoring. Furthermore, this embodiment forms a cascaded robust architecture of "optimization first, search fallback, and original path protection" through quality verification and corridor-constrained discrete kinematic search backoff mechanism. Finally, multi-objective gradient descent refinement is used to eliminate small-scale jitter and rasterized polyline features, so that the path converges to a smooth, continuous state that conforms to kinematic constraints.
[0088] In summary, this embodiment improves the kinematic feasibility and smoothness of complex path segments, thereby enhancing the stability and safety of unmanned mining trucks in complex terrain areas.
[0089] Based on the same principles as the coal mine terrain perception and hierarchical path planning method provided in the embodiments of this application, the embodiments of this application also provide a coal mine terrain perception and hierarchical path planning system, such as... Figure 10 As shown, the coal mine terrain perception and hierarchical path planning system 200 may specifically include: a passable road area determination module 201, an Euclidean distance determination module 202, a center bias map determination module 203, a cost gradient determination module 204, a cost map determination module 205, a target complex segment determination module 206, and a continuous path determination module 207.
[0090] Among them, the passable road area determination module 201 is used to acquire three-dimensional point cloud data of the target mining area, project the three-dimensional point cloud data onto a horizontal grid, determine the initial passable mask according to the slope of the horizontal grid and the preset slope threshold, perform morphological processing on the initial passable mask, and obtain the passable road area. Euclidean distance determination module 202 is used to calculate the Euclidean distance from each grid cell within the accessible road area to the nearest boundary of the accessible road area; The center bias map determination module 203 is used to determine the center bias map based on each Euclidean distance; The cost gradient determination module 204 is used to obtain the intensity scaling factor and the penalty influence radius of the boundary cost, and determine the cost gradient decreasing from the boundary to the center by means of the intensity scaling factor and the penalty influence radius and through a truncation operation. The cost map determination module 205 is used to determine the cost map based on the center bias map and the cost gradient. The target complex segment determination module 206 is used to generate a globally optimal path based on the cost map and through a neighborhood expansion method, and to select a number of target complex segments from the globally optimal path. The continuous path determination module 207 is used to perform multi-objective optimization on each target complex segment to obtain the optimal path, and determine the continuous path based on each optimal path.
[0091] In one embodiment of this application, when determining the initial passable mask based on the elevation values of each horizontal grid, the passable road area determination module 201 is specifically used for: For each horizontal grid cell, the slope of the horizontal grid cell is determined based on its elevation value and the elevation values of its neighboring grid cells. Mark horizontal grid cells with a slope less than or equal to a preset slope threshold as passable grid cells; The initial passability mask is determined based on each passable grid.
[0092] In one embodiment of this application, when determining the center bias map based on each Euclidean distance, the center bias map determination module 203 is specifically used for: For each grid cell within the passable road area, obtain the distance value corresponding to that grid cell based on the Euclidean distance of that grid cell; Select the largest distance value from all distance values; Calculate the ratio of the distance value corresponding to each grid cell to the maximum distance value, and use it as the center offset value corresponding to that grid cell; The center bias map is determined based on the center bias values.
[0093] In one embodiment of this application, when determining the cost gradient decreasing from the boundary to the center based on the intensity scaling factor and the penalty influence radius through a truncation operation, the cost gradient determination module 204 is specifically used for: For each grid cell in the passable road area, the penalty influence radius is subtracted from the Euclidean distance of that grid cell to obtain the corresponding difference value; By limiting each difference to the range between 0 and the penalty influence radius, we obtain the truncated difference for each grid cell. The ratio of the difference after each truncation to the radius of influence of the penalty is used as the normalized distance penalty factor; The product of the normalized distance penalty factor and the intensity scaling factor is used as the boundary penalty value of the raster. Obtain the base terrain value for this grid; The fusion cost of the raster is obtained by adding the boundary penalty value to the base terrain cost. The cost gradient is determined based on the value of each fusion generation.
[0094] In one embodiment of this application, when determining the cost map based on the center bias map and the cost gradient, the cost map determination module 205 is specifically used for: Based on the center bias map and cost gradient, determine the comprehensive cost value corresponding to each grid cell; Based on the comprehensive value of each factor, determine the cost map.
[0095] In one embodiment of this application, when generating a globally optimal path based on a cost map and through neighborhood expansion, and selecting several target complex segments from the globally optimal path, the target complex segment determination module 206 is specifically used for: Using the cost map as input, a globally optimal path is generated through neighborhood expansion; the globally optimal path includes multiple monitoring points. Each monitoring point is extracted from the global optimal path, and the local turning angle and local cost change of each monitoring point are calculated. For each monitoring point, the local turning angle of the monitoring point is the geometric turning angle formed by N consecutive monitoring points, and the local cost change is determined by the average terrain cost. Among them, the N consecutive monitoring points include the monitoring point, the monitoring points before the monitoring point, and / or the monitoring points after the monitoring point, where N is a natural number and N≥3. Monitoring points where the local turning angle exceeds a preset turning angle threshold are identified as candidate key points, or monitoring points where the local cost change exceeds a preset change threshold are identified as candidate key points. The starting and ending points of the globally optimal path are used as fixed key points, and the globally optimal path is divided into several sub-segments based on every two adjacent candidate key points. For each sub-segment, obtain the maximum local turning angle and length normalization factor corresponding to that sub-segment; determine the complexity score of that sub-segment based on the maximum local turning angle, average terrain cost, and length normalization factor. Sort the complexity scores of each sub-segment in descending order and select the top K sub-segments as optimization candidates. Each objective complex segment is determined based on the maximum local turning angle and average terrain cost corresponding to each optimization candidate segment.
[0096] In one embodiment of this application, when performing multi-objective optimization on each target complex segment to obtain the optimal path, the continuous path determination module 207 is specifically used for: Obtain the offset range of each internal point; the offset range is used to determine the position search interval of each internal point during the iterative optimization process. The discrete point sequence of the target complex segment is used as an individual in the initial population, and random perturbations are applied to each internal point of the target complex segment to generate other individuals in the initial population. Based on the offset range, the initial population is subjected to multi-objective iterative optimization to generate candidate paths; Candidate paths that meet the preset smoothness requirements are selected from all candidate paths to form a candidate set. The length and terrain cost of each candidate path in the candidate set are weighted and scored, and the candidate path with the lowest score is determined as the optimal path.
[0097] The system of this application embodiment can execute the method provided in this application embodiment. The implementation principle is similar. The actions performed by each module in the system of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the system, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.
[0098] Figure 11 A schematic diagram of the structure of an electronic device to which this application embodiment applies is shown, such as... Figure 11 As shown, the electronic device can be used to implement the methods provided in any embodiment of this application.
[0099] like Figure 11 As shown, the electronic device 300 may primarily include at least one processor 301. Figure 11 The diagram shows components such as a memory 302, a communication module 303, and an input / output interface 304. Optionally, these components can be connected and communicate with each other via a bus 305. It should be noted that... Figure 11 The structure of the electronic device 300 shown is merely illustrative and does not constitute a limitation on the electronic devices to which the methods provided in the embodiments of this application are applicable.
[0100] The memory 302 can be used to store operating systems and applications, etc. The applications can include computer programs that implement the methods shown in the embodiments of this application when invoked by the processor 301, and can also include programs for implementing other functions or services. The memory 302 can be ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices that can store information and computer programs, or it can be EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
[0101] Processor 301 is connected to memory 302 via bus 305 and implements corresponding functions by calling the application programs stored in memory 302. Processor 301 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 301 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0102] Electronic device 300 can connect to a network via communication module 303 (which may include, but is not limited to, components such as a network interface) to communicate with other devices (such as user terminals or servers) through the network and achieve data interaction, such as sending data to or receiving data from other devices. Communication module 303 may include wired network interfaces and / or wireless network interfaces, meaning the communication module may include at least one of wired or wireless communication modules.
[0103] The electronic device 300 can connect to necessary input / output devices, such as a keyboard or display device, via the input / output interface 304. The electronic device 300 itself may have a display device, and other external display devices can also be connected via the input / output interface 304. Optionally, a storage device, such as a hard drive, can also be connected via the input / output interface 304. Data from the electronic device 300 can be stored in the storage device, or data can be retrieved from the storage device. Data from the storage device can also be stored in the memory 302. It is understood that the input / output interface 304 can be a wired interface or a wireless interface. Depending on the actual application scenario, the device connected to the input / output interface 304 can be a component of the electronic device 300 or an external device connected to the electronic device 300 when needed.
[0104] The bus 305 used to connect the components may include a path for transmitting information between the components. The bus 305 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Depending on its function, the bus 305 may be divided into an address bus, a data bus, a control bus, etc.
[0105] Optionally, for the solution provided in the embodiments of this application, the memory 302 can be used to store a computer program that executes the solution of this application, and the processor 301 runs the computer program. When the processor 301 runs the computer program, it implements the operation of the method or system provided in the embodiments of this application.
[0106] Based on the same principle as the method provided in the embodiments of this application, the embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the corresponding content of the aforementioned method embodiments.
[0107] It should be noted that the terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the figures or text descriptions.
[0108] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0109] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.
[0110] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.
Claims
1. A method for terrain perception and hierarchical path planning in coal mines, characterized in that, include: Acquire three-dimensional point cloud data of the target mining area, project the three-dimensional point cloud data onto a horizontal grid, determine an initial passable mask based on the elevation value of each horizontal grid, perform morphological processing on the initial passable mask, and obtain a passable road area. For each grid cell within the accessible road area, calculate the Euclidean distance from that grid cell to the nearest boundary of the accessible road area; Determine the center offset diagram based on the Euclidean distances described above; Obtain the intensity scaling factor and penalty influence radius of the boundary cost, and determine the cost gradient decreasing from the boundary to the center by means of the intensity scaling factor and the penalty influence radius and a truncation operation. Based on the center bias map and the cost gradient, determine the cost map; Based on the cost map, and through neighborhood expansion, a globally optimal path is generated, and several target complex segments are selected from the globally optimal path; For each objective complex segment, multi-objective optimization is performed on the objective complex segment to obtain the optimal path, and continuous paths are determined based on the optimal paths.
2. The method as described in claim 1, characterized in that, The step of determining the initial passable mask based on the elevation values of each of the horizontal grids includes: For each horizontal grid cell, the slope of the horizontal grid cell is determined based on its elevation value and the elevation values of its neighboring grid cells. Horizontal grids with a slope less than or equal to a preset slope threshold are marked as passable grids; The initial passability mask is determined based on each of the passable grids.
3. The method as described in claim 1, characterized in that, The determination of the center bias map based on the Euclidean distances includes: For each grid cell within the passable road area, the distance value corresponding to that grid cell is obtained based on the Euclidean distance of that grid cell; Select the largest distance value from among the stated distance values; Calculate the ratio of the distance value corresponding to each grid cell to the maximum distance value, and use it as the center offset value corresponding to that grid cell; The center bias map is determined based on each of the stated center bias values.
4. The method as described in claim 1, characterized in that, The step of determining the cost gradient decreasing from the boundary to the center based on the intensity scaling factor and the penalty influence radius through a truncation operation includes: For each grid cell in the passable road area, the penalty influence radius is subtracted from the Euclidean distance of that grid cell to obtain the difference value corresponding to that grid cell; By limiting each of the aforementioned differences to the range between 0 and the penalty influence radius, the truncated difference value corresponding to each grid is obtained; The ratio of each truncated difference to the penalty influence radius is used as the normalized distance penalty factor; The product of the normalized distance penalty factor and the intensity scaling factor is used as the boundary penalty value of the grid. Obtain the base terrain value for this grid; The boundary penalty value is added to the base terrain cost value to obtain the fusion cost value of the grid. The cost gradient is determined based on the fusion cost of each fusion.
5. The method as described in claim 1, characterized in that, The step of determining the cost map based on the center bias map and the cost gradient includes: Based on the center bias map and the cost gradient, determine the comprehensive cost value corresponding to each of the grids; The cost map is determined based on the comprehensive cost value of each item.
6. The method as described in claim 1, characterized in that, The step involves generating a globally optimal path based on the cost map and through a neighborhood expansion method, and then selecting several target complex segments from the globally optimal path, including: Using the cost map as input, a globally optimal path is generated through a neighborhood expansion method; the globally optimal path includes multiple monitoring points. Each monitoring point is extracted from the globally optimal path, and the local turning angle and local cost change of each monitoring point are calculated. For each monitoring point, the local turning angle is the geometric turning angle formed by N consecutive monitoring points, and the local cost change is determined by the average terrain cost. The N consecutive monitoring points include the monitoring point, the monitoring points before the monitoring point, and / or the monitoring points after the monitoring point, where N is a natural number and N≥3. The monitoring points where the local turning angle exceeds a preset turning angle threshold are determined as candidate key points, or the monitoring points where the local cost change exceeds a preset change threshold are determined as candidate key points; The starting point and ending point of the global optimal path are used as fixed key points, and the global optimal path is divided into several sub-segments according to every two adjacent candidate key points. For each sub-segment, obtain the maximum local turning angle and length normalization factor corresponding to that sub-segment; determine the complexity score of that sub-segment based on the maximum local turning angle, the average terrain cost, and the length normalization factor; Sort the complexity scores of each sub-segment in descending order and select the top K sub-segments as optimization candidates. Each target complex segment is determined based on the maximum local turning angle and average terrain cost corresponding to each of the aforementioned optimization candidate segments.
7. The method as described in claim 1, characterized in that, The target complex segment includes a discrete point sequence, which includes a start point, an end point, and internal points located between the start point and the end point. For each complex segment, multi-objective optimization is performed to obtain the optimal path, including: Obtain the offset range of each of the internal points; the offset range is used to determine the position search interval of each of the internal points during the iterative optimization process. The discrete point sequence of the target complex segment is used as an individual in the initial population, and random perturbations are applied to each of the internal points of the target complex segment to generate other individuals in the initial population. Based on the offset range, the initial population is subjected to multi-objective iterative optimization to generate candidate paths; Candidate paths that meet the preset smoothness requirements are selected from the candidate paths to form a candidate set. The length and terrain cost of each candidate path in the candidate set are weighted and scored, and the candidate path with the lowest score is determined as the optimal path.
8. A coal mine terrain perception and hierarchical path planning system, characterized in that, include: The accessible road area determination module is used to acquire three-dimensional point cloud data of the target mining area, project the three-dimensional point cloud data onto a horizontal grid, determine an initial accessible mask based on the slope of the horizontal grid and a preset slope threshold, and perform morphological processing on the initial accessible mask to obtain the accessible road area. The Euclidean distance determination module is used to calculate the Euclidean distance from each grid cell within the accessible road area to the nearest boundary of the accessible road area. A center bias map determination module is used to determine the center bias map based on the Euclidean distances described above; The cost gradient determination module is used to obtain the intensity scaling factor and the penalty influence radius of the boundary cost, and determine the cost gradient that decreases from the boundary to the center by means of the intensity scaling factor and the penalty influence radius and through a truncation operation. The cost map determination module is used to determine the cost map based on the center bias map and the cost gradient; The target complex segment determination module is used to generate a globally optimal path based on the cost map and through a neighborhood expansion method, and to select a number of target complex segments from the globally optimal path. The continuous path determination module is used to perform multi-objective optimization on each target complex segment to obtain the optimal path, and determine the continuous path based on each optimal path.
9. An electronic device, characterized in that, The electronic device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the coal mine terrain perception and hierarchical path planning method according to any one of claims 1 to 7 when running the computer program.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the coal mine terrain perception and hierarchical path planning method according to any one of claims 1 to 7.
