A mining road mapping method based on trajectory and point cloud

By using methods based on trajectories and point clouds to extract the center lines and boundaries of mining area roads, combined with lane templates and geometric line translation, the problem of insufficient adaptability of road mapping in the complex environment of mining areas is solved, and high-precision mining area road maps are generated to support wireless Autonomous navigation and management of human-driven mine carts.

CN118587372BActive Publication Date: 2024-10-29LEIKE ZHITU (TAIAN) AUTOMOTIVE TECH CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies are difficult to adapt to the complex road environment in mining areas, resulting in insufficient adaptability and robustness of road mapping methods. They cannot accurately identify laneway boundaries and extract high-precision mining area road maps, making it difficult to meet the autonomous navigation needs of driverless mining trucks.

Method used

A mining area road mapping method based on trajectories and point clouds is used to extract the road centerline through trajectory processing. The road boundary and lane centerline are obtained by combining the preset lane template and geometric line translation. Data collection and processing are used to generate a high-precision mining area road map. Contains road geometry and attribute information.

Benefits of technology

It improves the adaptability and accuracy of the mining area road map, generates a map containing complete road network structure and attribute information, supports the autonomous navigation of driverless mine trucks and the management of mining area roads, and significantly improves the efficiency and accuracy of mapping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587372B_ABST
    Figure CN118587372B_ABST
Patent Text Reader

Abstract

The present application discloses a method for mapping a mining area road based on trajectory and point cloud, which relates to the field of surveying and mapping, including: collecting field data and unmanned mining car data; designing a mapping scheme based on the field data and in combination with vehicle-side path planning; planning a path based on the designed mapping scheme, obtaining vehicle trajectory lines and global point cloud data; extracting lane center lines based on the obtained outbound and return trajectory lines; obtaining lane boundary lines based on the extracted first lane center line and the preset lane width parameters; extracting road lines, dividing the road lines into different road segments based on the number of lanes, and setting road segment attribute assignments; obtaining the remaining road center lines based on the preset lane template and the extracted road lines; and drawing a mining area road map based on the vectorized data of the road lines, lane boundary lines, and lane center lines. In view of the poor adaptability of mining area road mapping to complex scenes in the prior art, the present application improves the adaptability of mining area road maps to complex scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of surveying and mapping, and in particular to a method for mapping mining roads based on trajectories and point clouds. Background Art

[0002] With the development of intelligent and unmanned mining, unmanned mining vehicles are increasingly used on mining roads. In order to achieve autonomous navigation and operation control of unmanned mining vehicles, accurate and real-time mining road maps are required as navigation references. Traditional mining road mapping mainly relies on manual surveying and editing, which has problems such as low efficiency, low accuracy, and long update cycle, making it difficult to meet the needs of unmanned mining vehicles for high-precision and high-efficiency maps.

[0003] At present, road mapping methods based on vehicle-mounted sensor data have attracted more and more attention. This type of method uses data collected by sensors such as vehicle-mounted lidar and global navigation satellite systems to generate a vector representation of the road through data processing and feature extraction. However, the road environment in mining areas is complex and changeable, with different scenes such as underground mines and open-pit mines, and the road morphology, structure and attributes are significantly different. Existing road mapping methods are mainly aimed at urban road environments and are not adaptable to complex scenes in mining areas. In underground mining environments, the narrow space of the tunnels, poor lighting conditions, and irregular rock walls pose challenges to road extraction and modeling. Existing methods are difficult to accurately identify the boundaries of the tunnels, the accuracy of the extracted road centerline is not high, and there is a lack of expression of the tunnel walls. In open-pit mine environments, most roads are unstructured roads with uneven road surfaces, large slope changes, and complex roadside environments, which brings difficulties to road identification and modeling. Existing methods are difficult to adapt to the irregular morphology of open-pit mine roads, the accuracy of road boundary extraction and lane division is not high, and there is a lack of description of road attributes such as slope and curvature. In addition, there are also complex situations in mining area roads, such as a mixture of structured and unstructured roads, and inconsistent number and width of lanes in different sections. Existing methods usually use a single road model and extraction strategy, which is difficult to cope with the diversity and complexity of mining area roads, resulting in insufficient accuracy and completeness of the generated road maps.

[0004] Therefore, how to improve the adaptability and robustness of road mapping methods in the complex road environment of mining areas, achieve accurate extraction and modeling of road geometry and attributes, and generate high-precision and high-efficiency mining road maps is a key technical problem that needs to be solved. This is of great significance for supporting the autonomous navigation and intelligent operation of unmanned mining vehicles and improving the safety and efficiency of mining. Summary of the invention

[0005] In response to the problem that mining road mapping in the prior art has poor adaptability to complex scenes, the present application provides a mining road mapping method based on trajectory and point cloud. It combines mining field data and mapping schemes, extracts road centerlines through trajectory processing, and uses preset lane templates and geometric line translation to obtain road boundaries and lane centerlines, etc., thereby improving the adaptability of mining road maps to complex scenes.

[0006] Technical solution, the purpose of this application is achieved through the following technical solution.

[0007] The present application provides a method for mapping mining roads based on trajectories and point clouds, including: S1, collecting field data and unmanned mining vehicle data; wherein the field data includes field terrain, specification parameters of unmanned mining trucks, mining production requirements and loader positions; the unmanned mining vehicle data includes vehicle trajectory lines and global point cloud data; wherein the mining area includes underground mines and open-pit mines; S2, designing a mapping scheme based on the collected field data and in combination with vehicle-side path planning; S3, planning a path based on the designed mapping scheme, collecting outbound and return data along the planned path, and obtaining vehicle trajectory lines and global point cloud data; S4, extracting the center line of the lane based on the obtained outbound and return trajectory lines ; S5, according to the first lane center line extracted in step S4 and the preset lane width parameter, the lane boundary line is obtained; S6, according to the first lane right boundary line obtained in step S5, the road line is extracted, and the road line is divided into different road segments according to the number of lanes, and the road segment attribute assignment is set; S7, according to the preset lane template and the road line extracted in step S6, the remaining road center lines except the first road center line are obtained; S8, all the road center lines obtained in step S7 are encrypted, the slope, curvature, heading and lane width values ​​on the center line points are calculated, and the vectorized data of the road line, lane boundary line and lane center line are combined to draw a mining area road map.

[0008] Specifically, all the road center lines obtained in step S7 are encrypted, and the accuracy of the center lines is improved by reducing the distance between the center line points and increasing the number and density of the center line points; the slope value of the road at each center line point is calculated by the angle calculation formula using the three-dimensional spatial coordinates and length information of the road line to characterize the longitudinal undulation change of the road; the curvature value of the road at each center line point is calculated by the geometric algorithm using the plane coordinates of the road center line to characterize the plane turning degree of the road; the heading angle perpendicular to the road direction at each center line point is calculated by the inverse tangent function according to the coordinate changes of adjacent center line points to characterize the azimuth and orientation of the road; the lane width value at each center line point is obtained by calculating the lateral distance between the lane boundary line and the center line. Characterize the change of road width; store the calculated centerline point slope, curvature, heading and lane width values ​​together with the coordinates of the centerline point as the attribute data of the centerline; on the mining area road map, draw the road line generated in step S6 with different colors or symbols, draw the lane boundary line generated in step S5 with solid lines, and draw the lane centerline generated in step S7 with dotted lines to form a mining area road map containing the road network structure and lane centerline; in the attribute table of the mining area road map, associate the road attributes generated in step S6 and the centerline point attributes calculated in this step to realize the attribute annotation and query of the mining area road map; when drawing the mining area road map, encrypt the road centerline obtained in step S7 to increase the accuracy of the centerline by reducing the point distance. Using the three-dimensional coordinate information of the centerline, the slope, curvature, heading and lane width attributes of the centerline point are obtained through angle calculation, geometric algorithm and distance calculation, respectively, to enrich the attribute data of the road centerline. When mapping, the road line, lane boundary line and lane centerline are drawn in different styles to intuitively express the spatial distribution and structure of the mining area roads. At the same time, the road attributes and centerline attributes are associated with the mine road map to facilitate attribute annotation and query. The above drawing method integrates the key vectorization results of mine road mapping. The generated mine road map contains a complete road network structure, centerline shape and attribute information, which can be used for mine road management, navigation and autonomous driving applications.

[0009] The present invention collects field data and unmanned mining vehicle data, combines it with mapping scheme design, uses trajectory lines to extract lane center lines, obtains lane boundary lines based on lane center lines and lane widths, and then extracts road lines and completes other lane vector elements in combination with lane templates. Finally, the road center lines are encrypted to achieve full process automation from data collection, data processing to data application, and efficiently complete the rapid mapping of mining area road maps.

[0010] Further, S4, extracting the lane center line according to the acquired outbound and return trajectory lines, including: for the first preset scenario, overlapping the outbound and return center lines to the middle position of the lane, and the first preset scenario indicates that there is no oncoming scene in the single lane; for the second preset scenario, separating the outbound and return center lines, and the interval distance between the outbound center line and the return center line is set according to the lane width and the vehicle width, and the second preset scenario indicates that there is a oncoming scene in the single lane; for the third preset scenario, after extracting the lane center line according to the vehicle trajectory, the extracted center line is translated to the position of the first lane center line in the mapping scheme, and the third preset scenario indicates a one-way multi-lane scenario.

[0011] Specifically, corresponding strategies are adopted for different road scenarios: for single lanes without oncoming vehicles, the outbound and return centerlines are overlapped; for single lanes with oncoming vehicles, the outbound and return centerlines are separated and the spacing is controlled; for one-way multi-lanes, the extracted centerline is translated to the first lane. After extracting the lane centerline, the centerline is optimized through geometric shaping, attachment, smoothing, and attribute assignment. In addition, for scenes with curved roads and lane boundary lines of unequal lengths, the centerline is projected and split and the elevation value is smoothed to improve the adaptability of centerline extraction.

[0012] Further, S4, after extracting the lane centerline based on the acquired outbound and return trajectory lines, includes: geometrically shaping the extracted centerline to eliminate sharp points and self-intersection points on the centerline; connecting the shaped centerline to connect the disconnected centerline; smoothing the connected centerline, fitting the centerline with a Bezier curve, generating control points based on the position of the points on the centerline and the tangent direction to smooth the direction of the centerline, sampling the smoothed centerline, and controlling the sampling interval based on the direction of the road; assigning attributes to the smoothed centerline to identify the geometric features and semantic information of the centerline. Among them, connecting the shaped centerline to connect the disconnected centerline includes: calculating the distance and angle between the endpoints of the disconnected centerline, and connecting the disconnected centerline endpoints when the distance is less than a preset threshold and the angle change is less than the threshold; and locally smoothing the connected centerline to eliminate the mutation at the connection point.

[0013] Specifically, when extracting the lane centerline, a projection segmentation method is introduced to segment the centerline for scenes with curved roads and lane boundary lines of varying lengths. By calculating the ratio of boundary line lengths, the centerline is projected onto the boundary line and segmented accordingly, which can adapt to curved roads with unequal boundary line lengths. After segmentation, the centerline segment is smoothed, and a cubic spline curve fitting method is used to obtain a smooth centerline direction while ensuring the geometric accuracy of the centerline segment. The elevation information of the centerline segment is obtained by projecting and searching the point cloud data to ensure the accuracy of the centerline elevation value.

[0014] Furthermore, the extracted centerline is subjected to geometric reshaping processing to eliminate cusps and self-intersection points on the centerline, including: for cusps, calculating the angle between adjacent points on the centerline, and when the angle is less than a preset threshold, removing the cusp and reconnecting the centerlines on both sides of the cusp, wherein the cusp is a point on the centerline where the curvature suddenly changes; for self-intersection points, calculating the intersection points on the centerline, interrupting the centerline at the self-intersection points, removing the self-intersection points, and reconnecting the disconnected centerline, wherein the self-intersection points are points on the centerline that intersect with itself.

[0015] Further, S4, extracting the lane centerline based on the acquired outbound and return trajectory lines, also includes: for the fourth preset scenario, obtaining the lane boundary, calculating the length of the boundary lines on both sides of the road, and obtaining the length ratio of the left and right boundary lines; projecting the centerline onto the left and right boundary lines according to the length ratio to obtain the projection points of the centerline on the left and right boundary lines; dividing the centerline into multiple segments according to the positions of the projection points, with the division points being the points where the distance difference between the left and right projection points is the largest, to obtain multiple centerline segments; sampling at equal intervals on the centerline segments to obtain centerline segment sampling points; fitting the centerline segment sampling points with a cubic spline curve to obtain a smoothed centerline segment; calculating the tangent direction of the points on the smoothed centerline segment as the heading attribute of the points on the centerline segment. property; transform the global point cloud data according to the heading attribute of the point on the center line segment, and align the point cloud coordinate system with the road coordinate system; in the transformed point cloud data, project the point on the center line segment into the point cloud plane, set a search radius with the projection point as the center, and search for the laser points within the radius, wherein the laser points are three-dimensional points in the global point cloud data; perform elevation value statistics on the searched laser points, remove outliers whose elevation values ​​exceed the preset range, and calculate the average elevation value of the remaining points after removing the outliers as the projection point elevation value; use the projection point elevation value as the elevation value of the corresponding point on the center line segment; wherein the fourth preset scenario is that the trajectory line of some sections is missing or the length of the lane boundary line is unequal in the bend scenario.

[0016] Specifically, for scenes with curved roads and unequal boundary lengths, projection segmentation and local point cloud processing methods are introduced: first, the centerline projection is segmented into multiple segments according to the boundary length ratio to adapt to the curved road shape; then, the segmented centerline segments are smoothed by cubic spline fitting, and the heading attributes of the points on the centerline segments are calculated; the global point cloud is transformed according to the heading attributes and aligned with the road coordinate system; the laser points around the centerline segment projection points are searched in the transformed local point cloud, and the projection point elevation values ​​are obtained by elevation value statistics and outlier removal as the elevation attributes of the points on the centerline segment. The above method makes full use of multi-source information such as lane boundary length, centerline direction, and point cloud elevation, and improves the accuracy and reliability of lane centerline extraction in complex curved road scenes.

[0017] Further, S5, according to the first lane centerline extracted in step S4 and the preset lane width parameters, the lane boundary line is obtained, including: for the single lane scene in the well working condition: taking the centerline of the first lane obtained as the reference plane, in the global point cloud data obtained in step S1, cutting the point cloud within the preset thickness range perpendicular to the centerline as the tunnel wall point cloud; projecting the cut tunnel wall point cloud onto a vertical plane parallel to the centerline of the first lane, fitting the tunnel wall point cloud within the projection plane, and obtaining two tunnel wall contour lines parallel to the centerline; using the two fitted tunnel wall contour lines as the left and right boundary lines of the first lane respectively.

[0018] Further, S5, according to the first lane center line extracted in step S4 and the preset lane width parameters, the lane boundary line is obtained, and it also includes: for the open-pit mine scene: according to the direction of the first lane center line obtained and the preset lane width parameters, a geometric line translation method is used to generate two boundary lines parallel to the first lane center line and separated by a preset distance, respectively serving as the left and right boundary lines of the first lane; a spatial topological relationship detection algorithm is used to perform overlap detection on the generated left and right boundary lines of the first lane and the boundary lines of adjacent lanes; if there is an overlapping part, the midpoint of the overlapping part is used as the common boundary line of the two lanes, and the boundary line of the first lane and the boundary line of the adjacent lane are cropped and deduplicated.

[0019] Specifically, when obtaining lane boundary lines, different methods are used to generate lane boundary lines according to the different scene characteristics of underground mines and open-pit mines. For the single-lane scene of underground mines, lane boundary lines are directly extracted from the global point cloud data by point cloud cutting and tunnel wall fitting. For the open-pit mine scene, parallel lane boundary lines are first generated according to the lane centerline and width parameters, and then the problem of lane boundary line overlap is solved by spatial topological relationship detection and cutting and deduplication, ensuring that adjacent lanes share a boundary line.

[0020] Further, S6, according to the right boundary line of the first lane obtained in step S5, the road line is extracted, the road line is divided into different road segments according to the number of lanes, and the road segment attribute assignment is set, including: taking the right boundary line of the first lane obtained in step S5 as the initial road line; dividing the initial road line into multiple road segments according to the topological structure of the mining area road grid and the location of the road intersection; for each road segment after segmentation, according to the number of lanes contained in the road segment, the road segment is offset in a direction perpendicular to the direction of the road to generate a lane group corresponding to other lanes parallel to the first lane; specifically, after the initial road line is divided into multiple road segments, for each road segment, according to the number of lanes actually contained in the road segment, the road segment is offset in a direction perpendicular to the direction of the road segment, thereby generating a lane group corresponding to other lanes parallel to the first lane. For example, if a road segment contains three lanes, the road segment corresponding to the first lane is taken as a reference, and two translations are performed in the vertical direction according to the lane width to obtain the parallel lane group corresponding to the second lane and the third lane. In this way, lane groups corresponding to each lane can be automatically generated according to the actual number of lanes on the road, avoiding the tedious operation of manual drawing and improving the efficiency and accuracy of road line extraction. At the same time, the generated parallel lane group is consistent with the first lane in attributes and topological relationships, which is convenient for subsequent processing and application.

[0021] For all road segments after segmentation and offset, number them and set road attributes, which include road ID, road name, latitude and longitude of the starting point, road length, road grade and speed limit; in the topological relationship of the road segment, set the connectivity relationship between adjacent road segments, and at the road intersection, set the order and orientation relationship of the intersecting road segments; perform topological check on all road segments after attribute setting to form a complete road line network; merge the road segments after topological check according to the road ID to generate the final road line.

[0022] Specifically, according to the network structure and intersection location of the mining area roads, the initial road line is divided into multiple road segments, and the road segments are offset according to the number of lanes to generate parallel road segments corresponding to different lanes, thereby obtaining a complete road network. All road segments are uniformly numbered, rich road attributes are set, and the topological relationship between road segments is maintained. Finally, the correctness of road line extraction is ensured by topological checking. The above method extracts road lines from lane boundary lines, constructs a road network by segmentation and offset, simplifies the process of road line extraction, and the generated road lines have complete attributes and topological information.

[0023] Further, S7, according to the preset lane template and the road line extracted in step S6, the remaining road center lines except the first road center line are obtained, including: judging whether the number of lanes corresponding to the road line extracted in step S6 matches the number of lanes in the preset lane template; if the number of lanes corresponding to the road line matches the lane template, then according to the lane width parameter in the lane template, a geometric line translation method is used, with the extracted road line as a reference, and the left and right boundary lines of the remaining lanes are translated in a direction perpendicular to the road line; if the number of lanes corresponding to the road line does not match the lane template, then according to the number of lanes in the lane template, the extracted road line is divided into a plurality of road segments, and then according to the lane width parameter corresponding to each road segment in the lane template, a geometric line translation method is used, with each road segment as a reference, and the left and right boundary lines of the remaining lanes of each road segment are translated in a direction perpendicular to the road segment; according to the generated remaining lane boundary lines, the lane center lines of the remaining lanes are obtained.

[0024] Specifically, when obtaining the road center lines of all lanes, the road lines extracted in step S6 and the preset lane template information are fully utilized. By judging the matching of the lane number corresponding to the road line and the lane template, different strategies are used to generate the boundary lines of the remaining lanes, and then the lane center lines are automatically generated by connecting the midpoints of the boundary lines or the midpoints of equidistant sampling points. This method combines the prior knowledge of road lines and lane templates, and realizes batch automatic generation of lane center lines through geometric operations, avoiding the workload of repeated editing and improving the efficiency of road mapping.

[0025] Furthermore, based on the generated remaining lane boundary lines, the lane center lines of the remaining lanes are obtained, including: for straight segments, by calculating the midpoint coordinates of corresponding points on the left and right lane boundary lines, connecting the midpoints to form the lane center line; for curved segments, by sampling the left and right lane boundary lines, obtaining the sampling points on the left and right lane boundary lines, calculating the center point of the line connecting the sampling points based on the correspondence between the sampling points, and connecting the center points to form the lane center line. Specifically, for the curve segment, a non-equidistant sampling method is adopted. When non-equidistant sampling is performed, the geometric characteristics of the curve are used, and the curvature value of each point on the curve segment is obtained through the curvature calculation formula. The sampling interval is determined according to the curvature value. The larger the curvature, the smaller the sampling interval, and the smaller the curvature, the larger the sampling interval, so as to achieve adaptive matching between the number of sampling points and the shape of the curve. Through non-equidistant sampling, the number of sampling points is automatically increased in the area where the curve changes greatly, and the number of sampling points is automatically reduced in the area where the curve changes gently. While ensuring the accuracy of the lane centerline, redundant sampling points are reduced, and the calculation efficiency is improved. The formed lane centerline corresponds to the left and right lane boundary lines. The points on the centerline are derived from the midpoints of the line connecting the sampling points on the boundary line, but the centerline points are no longer strictly one-to-one corresponding to the boundary line sampling points. The lateral distance between the centerline and the boundary line is close to half of the lane width, and there is a certain approximate error. The generated lane centerline is smoothed. Through mathematical methods such as Bezier curve fitting, the centerline is re-fitted on the basis of non-equidistant sampling points to optimize the shape of the centerline, eliminate the unevenness of the centerline caused by non-equidistant sampling, and make the centerline smoother and more natural.

[0026] Preferably, since the sampling points are no longer evenly distributed, the lane centerline and the boundary line are no longer strictly one-to-one corresponding, and there is a certain approximate error in the lateral distance between the centerline and the boundary line. In order to solve the problem of uneven centerline caused by non-equidistant sampling, after the centerline is generated, the centerline is smoothed using mathematical methods such as Bezier curve fitting, and a smoother and more natural centerline shape is refitted based on non-equidistant sampling points. By combining non-equidistant sampling and curve fitting, data redundancy can be reduced and calculation efficiency can be improved while ensuring the accuracy of the lane centerline, and a smooth centerline that better fits the actual shape of the road can be obtained.

[0027] Compared with the prior art, the advantages of this application are:

[0028] By introducing mining field data and mapping scheme design, and adopting corresponding data processing strategies and methods for different mining scenarios such as underground mines and open-pit mines, we can effectively adapt to the complex and changeable mining road environment and improve the applicability and flexibility of mapping methods.

[0029] The track data of the unmanned mining vehicle is used to automatically extract the centerline of the road by fusing the outbound and return track lines. Combined with the centerline's geometric shaping, hooking, smoothing and other processing, the centerline's sharp points, self-intersection points and breakpoints can be effectively eliminated, and the centerline's geometric quality and continuity can be improved.

[0030] By using the preset lane template and geometric line translation method, the boundary lines and center lines of other lanes can be quickly generated based on the road line and the center line of the first lane. Combined with spatial topological relationship detection and clipping and deduplication processing, the problem of lane boundary line overlap can be effectively solved, and the generation accuracy and quality of lane boundaries and center lines can be improved.

[0031] By segmenting and assigning attributes to road lines, the geometric features and semantic information of roads can be described in detail, including road ID, latitude and longitude of the starting point, road length, road grade and speed limit, etc. Combined with the encryption processing of the road centerline and the extraction of elevation information from point cloud data, detailed parameters such as the slope, curvature, heading and elevation of points on the road centerline can be obtained to fully express the spatial geometric features of the road.

[0032] By integrating the vectorized data of road lines, lane boundaries and lane centerlines, and combining the detailed parameter information on the road centerline, a high-precision, high-quality mining area road map can be automatically drawn. Compared with manual mapping, this method can significantly improve mapping efficiency, reduce the workload of manual editing, and shorten the production cycle of mining area road maps. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The present application will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:

[0034] Figure 1 An exemplary flow chart of a method for mapping mining roads based on trajectories and point clouds according to some embodiments of the present application;

[0035] Figure 2 A flow chart of generating a lane centerline for a non-passing single lane according to some embodiments of the present application;

[0036] Figure 3 A flow chart of generating a lane centerline for a single lane capable of meeting vehicles according to some embodiments of the present application;

[0037] Figure 4 A flow chart for automatically generating a centerline of a curved road according to some embodiments of the present application;

[0038] Figure 5 Deduplication of shared lane boundaries according to some embodiments of the present application;

[0039] Figure 6 The remaining lane boundaries are generated according to the lane template as shown in some embodiments of the present application. DETAILED DESCRIPTION

[0040] The method and system provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0041] Figure 1 According to an exemplary flow chart of a method for mapping mine roads based on trajectories and point clouds as shown in some embodiments of the present application, a method for mapping mine roads based on trajectories and point clouds includes: collecting field data and unmanned mine car data; wherein the field data includes field terrain, specification parameters of unmanned mine trucks, mine production requirements and loader locations; the unmanned mine car data includes vehicle trajectory lines and global point cloud data; wherein the mining area includes underground mines and open-pit mines; according to the collected field data, combined with vehicle-side path planning, a mapping scheme is designed; according to the designed mapping scheme, a path is planned, and outbound and return data are collected along the planned path to obtain vehicle trajectory lines and global point cloud data. Point cloud data; extract lane center lines based on the acquired outbound and return trajectory lines; obtain lane boundary lines based on the extracted first lane center line and the preset lane width parameters; extract road lines based on the acquired first lane right boundary line, divide the road lines into different road segments according to the number of lanes, and set the road segment attribute assignment; obtain the remaining road center lines except the first road center line based on the preset lane template and the extracted road lines; encrypt all the acquired road center lines, calculate the slope, curvature, heading and lane width values ​​on the center line points, and draw a mining area road map by combining the vectorized data of road lines, lane boundary lines and lane center lines.

[0042] Before drawing a high-precision map, it is necessary to design a mapping scheme based on the following input conditions: On-site terrain conditions: Through on-site surveys or existing terrain data, understand the terrain characteristics, road directions, slope changes and other information of the mining area to provide basic data for the mapping scheme. Specifications of unmanned mining trucks: According to the models of unmanned mining trucks used in the mining area, obtain the specifications of the mining trucks such as size, dynamic characteristics, turning radius, etc., and determine the constraints of road design. Field production requirements of the mining area: Combined with the actual needs of the mining area such as production process, operation intensity, and transportation efficiency, determine the layout plan and technical indicators of the road network.

[0043] Loader location: According to the mining plan of the mining area, determine the operating location and loading point distribution of the loader, and optimize the connection between the road network and the loading point. When designing the mapping plan, comprehensively consider the cloud platform scheduling algorithm and the vehicle-side path planning logic, so that the generated high-precision map can support efficient scheduling decisions and optimal path planning. Through reasonable road direction design, lane width division, meeting area layout, etc., the waiting time and empty mileage of vehicles can be reduced, and the production efficiency of the mining area can be improved.

[0044] According to the mapping plan, the collection vehicle is arranged to collect data along the planned route. The collection process is divided into two directions: outbound and return: Outbound collection: The collection vehicle starts from the starting point and drives along the planned route, using the on-board sensors to collect data on the road and surrounding environment, mainly including lidar point clouds, panoramic images, high-precision GNSS trajectories, etc. Return collection: After the collection vehicle reaches the end point, it returns along the original route and collects data on the same route again. By integrating the outbound and return data, the accuracy and integrity of the collected data are improved.

[0045] During actual data collection, the data collection strategy is flexibly adjusted according to the on-site road conditions: Multi-lane data collection: If there are multiple lanes on the road and the lane boundaries are obvious, the data collection vehicle is required to collect in the first lane (the rightmost lane) to ensure the consistency and repeatability of the collected data. Single-lane data collection: If there are no obvious lane boundaries on the on-site road, a path that is convenient for the vehicle to drive stably is selected for data collection according to the terrain conditions, and the continuity and smoothness of the collection path are maintained as much as possible.

[0046] After the vehicle collection completes data collection, the vehicle trajectory and global point cloud data are sent back to the cloud server. The collected data is preprocessed and fused on the server: Trajectory data preprocessing: Filter and smooth the GNSS trajectory data to remove abnormal points and improve trajectory accuracy; use inertial navigation data to interpolate trajectories in areas blocked by GNSS signals. Point cloud data preprocessing: Perform distortion correction, noise filtering and other preprocessing on the lidar point cloud data to improve the point cloud quality; use GNSS trajectory to register the point cloud data with geographic coordinates. Data fusion: Align and fuse the trajectory data and point cloud data collected on the outbound and return trips to generate a complete road point cloud model and vehicle trajectory.

[0047] Select the centerline extraction method according to the preset scenario. Figure 2According to the flow chart of generating lane centerline for a single lane without passing vehicles shown in some embodiments of the present application, the first preset scenario (no passing vehicles in the single lane), data preparation: obtain the trajectory data collected by the collection vehicle in the outbound and return directions, each trajectory line consists of a series of time-series sampling points, and each sampling point contains GNSS coordinates, heading angle, speed and other information. Centerline extraction: extract the centerline of the outbound and return trajectory lines respectively, use the sliding window method to divide the trajectory line into several windows, fit the sampling points in each window into a straight line segment, the midpoint of the straight line segment is used as the point on the centerline, and connect the midpoints of all windows to form the centerline. Centerline overlap: overlap the centerlines extracted from the outbound and return journeys, calculate the average coordinates of the corresponding points on the two centerlines, use the average coordinates as the points on the lane centerline, and connect all points to form the final lane centerline. Centerline optimization: smooth the overlapped lane centerline, remove the sharp change points on the centerline, and make the centerline smoother. At the same time, sample the points on the centerline at equal intervals to ensure that the centerline points are evenly distributed.

[0048] Figure 3 According to the flow chart of generating lane centerline for a single lane with passing vehicles shown in some embodiments of the present application, the second preset scenario (there is passing in a single lane), data preparation: in addition to the outbound and return trajectory data, lane width and vehicle width parameters need to be obtained. The lane width is determined according to the mining area road design standard, and the vehicle width is obtained according to the actual specifications of the unmanned mining truck. Centerline extraction: As in the first preset scenario, the centerline of the outbound and return trajectory lines are extracted respectively to obtain two independent centerlines. Centerline separation: According to the lane width and vehicle width, the interval distance between the two centerlines is calculated, and the interval distance = (lane width-vehicle width) / 2. The outbound centerline is translated to the left by half the interval distance, and the return centerline is translated to the right by half the interval distance to form a separated two-way traffic centerline. Centerline optimization: The separated two-way centerlines are smoothed and sampled at equal intervals to ensure the smoothness of the centerline and the uniformity of point distribution.

[0049] The third preset scenario (one-way multi-lane), data preparation: obtain the vehicle trajectory data of the collection vehicle on multiple lanes, and the centerline position of each lane specified in the mapping scheme. Centerline extraction: extract the centerline of the vehicle trajectory of each lane separately to obtain the initial centerline of each lane. Centerline translation: according to the mapping scheme, translate the initial centerline of each lane to the specified position of the corresponding lane. Taking the rightmost lane as the reference, the centerlines of other lanes are translated to the left in turn, and the translation distance is the interval between the centerlines of adjacent lanes. The interval distance is determined according to the lane width. Centerline optimization: smooth and equidistantly sample the centerlines of each lane after translation, eliminate the centerline mutation caused by translation, and ensure the smoothness of the centerline and the consistency of point distribution. According to different road scenarios, the corresponding centerline extraction and processing methods are used to obtain accurate, smooth and standardized lane centerlines. In the first preset scenario, the centerline overlaps to ensure that the centerline is located in the middle of the lane, which is suitable for one-way traffic and no oncoming vehicles. In the second preset scenario, the centerline is separated to form a two-way centerline to ensure a safe distance when meeting other vehicles. This is suitable for one-way traffic with oncoming vehicles. In the third preset scenario, the centerlines of multiple lanes are adjusted to the positions specified in the mapping scheme through centerline translation. This is suitable for one-way multi-lane situations. Finally, through centerline optimization, the smoothness of the centerline and the uniformity of point distribution are improved, providing high-quality navigation reference lines for unmanned mining trucks.

[0050] Perform geometric shaping on the extracted centerline to eliminate sharp points and self-intersection points on the centerline and improve the smoothness and continuity of the centerline. Sharp point processing, angle calculation: For each point on the centerline, calculate the angle between it and the two adjacent points. Let the current point be P(i), the previous point be P(i-1), and the next point be P(i+1), then the angle α is calculated as: cos(α) = [(P(i)-P(i-1))·(P(i+1)-P(i))] / [|P(i)-P(i-1)| × |P(i+1)-P(i)|], where "·" represents the vector dot product and "|" represents the vector modulus. Sharp point judgment: Let the preset angle threshold be θ. When the angle α is less than θ, the point P(i) is considered to be a sharp point. The value of θ is determined according to the road smoothness requirements, and the general value range is 10°~30°. Sharp point removal: For a point P(i) that is judged to be a sharp point, it is removed from the center line, and its adjacent points P(i-1) and P(i+1) are directly connected to form a new center line segment.

[0051] Self-intersection judgment: For each point on the centerline, determine whether it intersects with other line segments on the centerline. You can use a scanning line algorithm or an intersection judgment algorithm, such as the SAT (Separating Axis Theorem) algorithm. Self-intersection removal: For points that are judged to be self-intersection points, remove them from the centerline and break the centerline at the self-intersection points to form multiple independent centerline segments. Centerline reorganization: For the broken centerline segments, reassemble them to form a complete centerline based on the connection relationship between their endpoints. The specific method can use the connectivity algorithm in graph theory, such as depth-first search (DFS) or breadth-first search (BFS).

[0052] Endpoint connection, distance calculation: For the modified centerline segment, calculate the distance between its endpoint and the endpoints of other centerline segments. Let the two endpoints be P(i) and P(j), then the calculation formula for the distance d is: d = |P(i)-P(j)|. Angle calculation: For endpoint pairs whose distance is less than the preset threshold, calculate the angle between their connection vector and the tangent vector of the centerline segment. Let the tangent vector of the centerline segment where the endpoint P(i) is located be v(i), and the tangent vector of the centerline segment where the endpoint P(j) is located be v(j), then the calculation formula for the angle β is: cos(β) = [v(i)·v(j)] / [|v(i)| × |v(j)|], Endpoint connection: For endpoint pairs whose distance is less than the preset threshold and whose angle change is less than the preset threshold, connect them to form a new centerline segment.

[0053] Local smoothing, curve fitting: For the connected center line segments, a polynomial curve is used to perform local fitting to obtain a smooth transition curve. Common fitting methods include least squares method, spline curve, etc. Transition point generation: Based on the fitting curve, several transition points are generated and inserted into the connection of the center line segments to make the center line transition smoothly at the connection. The number of transition points is determined according to the smoothness requirements of the curve.

[0054] Bezier curve fitting, control point generation: Automatically generate control points of Bezier curve according to the position of the point on the center line and the direction of the tangent. By adjusting the position and number of control points, change the shape of the curve to match the direction of the center line. Curve fitting: Take the points on the center line as the starting point and end point, and the generated control points as the middle point to fit and generate Bezier curves. The order of the Bezier curve is determined according to the complexity of the road, and 3rd or 4th degree Bezier curves are usually used. Curve optimization: By adjusting the position and number of control points, optimize the shape of the Bezier curve to make it smoother and more natural, and match the direction of the road. Optimization algorithms such as the least squares method can be used to minimize the distance error between the curve and the center line.

[0055] Sampling control, curvature calculation: For the smoothed centerline, calculate the curvature at each point on it. The curvature reflects the degree of curvature of the curve at that point. The greater the curvature, the more curved the curve. Sampling interval determination: Adaptively adjust the sampling interval of the centerline according to the curvature. In straight sections with smaller curvature, the sampling interval can be appropriately increased to reduce redundant points; in curved sections with larger curvature, the sampling interval needs to be reduced to improve the accuracy of the centerline. Point coordinate calculation: According to the determined sampling interval, the smoothed centerline is resampled, and the coordinates of each sampling point are calculated to form the final lane centerline point sequence.

[0056] Through the above-mentioned geometric shaping, attachment and smoothing, the sharp points, self-intersection points and other abnormal points on the center line can be effectively eliminated, and the smoothness and continuity of the center line can be improved; through endpoint connection and local smoothing, the seamless attachment of the center line can be achieved to ensure the integrity of the center line; through Bezier curve fitting and sampling control, the shape of the center line can be further optimized to make it smoother and more natural, consistent with the direction of the road. The final lane center line has high precision, high smoothness and high adaptability, which can meet the navigation and control needs of unmanned mining trucks.

[0057] Assign attributes to the smoothed centerline, and calculate the length: For the smoothed centerline, calculate its total length. Assume that the centerline consists of n sampling points, and the distance between adjacent sampling points is d(i). The total length L of the centerline is calculated as follows: L = Σ(i=1 to n-1)d(i), where d(i) is calculated as follows: d(i) = |P(i+1)-P(i)|P(i) and P(i+1) are the coordinates of two adjacent sampling points on the centerline. Length identification: The calculated total length L of the centerline is used as the length attribute of the centerline and is identified in the attribute information of the centerline. Curvature calculation: For each sampling point on the centerline, calculate the curvature at that point. The curvature reflects the degree of curvature of the curve at that point. The greater the curvature, the more curved the curve. Assume that the curvature at the sampling point P(i) is K(i), then the calculation formula of K(i) is: K(i) = |P(i-1)- 2P(i)+ P(i+1)| / |P(i+1)- P(i-1)|^2, where P(i-1), P(i), and P(i+1) are the coordinates of three consecutive sampling points on the center line.

[0058] Curvature identification: The calculated curvature value K(i) of each sampling point is used as the curvature attribute of the centerline and is marked in the attribute information of the corresponding sampling point. Slope calculation: For each sampling point on the centerline, the slope is calculated. The slope reflects the inclination of the road at that point. The larger the slope, the steeper the road. Let the slope at the sampling point P(i) be S(i), then the calculation formula of S(i) is: S(i) = arctan[(Z(i+1)- Z(i)) / d(i)] × 100%, where Z(i) and Z(i+1) are the elevation values ​​of the sampling points P(i) and P(i+1), respectively, and d(i) is the horizontal distance between the two points. Slope identification: The calculated slope value S(i) of each sampling point is used as the slope attribute of the centerline and is marked in the attribute information of the corresponding sampling point. Lane number extraction: According to the lane layout and mapping specifications of the road, a unique number is assigned to the centerline of each lane. For example, for a two-way four-lane road, the lanes may be numbered from left to right as L2, L1, R1, R2, where L represents the left lane and R represents the right lane.

[0059] Lane number identification: The extracted lane number is used as the lane number attribute of the center line and is identified in the attribute information of the center line. Road grade extraction: According to the function, traffic volume, design speed and other indicators of the road, the grade of the road is determined with reference to relevant standards and specifications. For example, roads can be divided into different grades such as expressways, national roads, provincial roads, and county roads. Road grade identification: The extracted road grade is used as the road grade attribute of the center line and is identified in the attribute information of the center line. Speed ​​limit value extraction: According to the grade, line shape, sight distance and other conditions of the road, the speed limit value of the road is determined with reference to relevant standards and specifications. For example, the speed limit value of the expressway can be set to 120km / h, and the speed limit value of the urban road can be set to 60km / h.

[0060] Speed ​​limit value identification: The extracted speed limit value is used as the speed limit attribute of the centerline and is identified in the attribute information of the centerline. Through the extraction and identification of the above geometric attributes and semantic attributes, the shape, direction, logical relationship and use requirements of the lane centerline after smoothing can be fully characterized, providing rich attribute data support for subsequent map applications. Geometric attributes such as length, curvature, slope, etc. reflect the geometric shape and spatial distribution characteristics of the centerline, which can be used for vehicle driving state estimation, speed planning, safe distance control, etc.; semantic attributes such as lane number, road grade, speed limit, etc. reflect the logical association and use constraints of the centerline, which can be used for lane keeping, navigation decision-making, traffic rules constraints, etc. After the attribute assignment, the lane centerline not only has accurate spatial location information, but also has rich attribute descriptions, making it an intelligent and semantic map data, which can directly serve the automatic navigation and control of unmanned mining trucks, and improve the efficiency and reliability of their environmental perception and decision-making planning.

[0061] Extract the lane centerline in the fourth preset scenario (a scenario where the road is curved and the lane boundary line lengths are unequal), calculate the boundary line length ratio, and calculate the length: for the boundary lines on both sides of the road, calculate their total lengths respectively. Assume that the left boundary line consists of m sampling points, the right boundary line consists of n sampling points, and the distance between adjacent sampling points is d(i). The total length L_left of the left boundary line and the total length L_right of the right boundary line are calculated as follows: L_left = Σ(i=1 to m-1)d(i), L_right = Σ(i=1 to n-1)d(i). Calculate the length ratio: According to the total length of the left and right boundary lines, calculate their length ratio r, and the calculation formula is: r = L_left / L_right.

[0062] Centerline projection, projection point calculation: According to the length ratio r, each point P(i) on the centerline is projected onto the left and right boundary lines to obtain the corresponding left projection point P_left(i) and right projection point P_right(i). The projection point calculation method is: P_left(i) = P(i) - r × [P(i) - P_left_nearest(i)], P_right(i) = P(i) + (1-r) × [P_right_nearest(i) - P(i)], where P_left_nearest(i) and P_right_nearest(i) are the nearest points of P(i) on the left and right boundary lines, respectively.

[0063] Centerline segmentation, distance difference calculation: For each pair of left and right projection points P_left(i) and P_right(i), calculate the distance difference d(i), the calculation formula is: d(i) = |P_left(i) - P_right(i)|, segmentation point determination: find the point pair with the largest distance difference d(i), use it as the segmentation point of the centerline, and segment the centerline into multiple centerline segments.

[0064] Centerline sampling, equidistant sampling: For each centerline segment, sample at equal distances on it to obtain a series of sampling points. Assume that the sampling interval is s, then the calculation formula for the jth sampling point P(i,j) is: P(i,j) = P(i) + j × s × [P(i+1)- P(i)] / |P(i+1)- P(i)|, where P(i) and P(i+1) are the starting point and end point of the centerline segment.

[0065] Centerline smoothing, cubic spline curve fitting: For each sampling point on the centerline segment, a cubic spline curve is used for fitting to obtain a smoothed centerline segment. The cubic spline curve can ensure that the curve is continuous and smooth at the sampling point, and has local adjustability, which can well fit the shape of the road centerline.

[0066] Heading attribute calculation, tangent direction calculation: For each point on the smoothed center line segment, calculate its tangent direction as the heading attribute of the point. Let the tangent direction at point P(i) be v(i), then the calculation formula of v(i) is: v(i) = [P(i+1)-P(i-1)] / |P(i+1)-P(i-1)|, where P(i-1) and P(i+1) are the adjacent points before and after point P(i) on the center line segment.

[0067] Point cloud coordinate system transformation, coordinate system alignment: According to the heading attribute of the point on the center line segment, the global point cloud data is transformed to align the point cloud coordinate system with the road coordinate system. Assume that the heading angle at point P(i) is α(i), then the transformation matrix T(i) from the point cloud coordinate system to the road coordinate system is: T(i) = [cosα(i), -sinα(i), 0, P(i).x; sinα(i), cosα(i), 0, P(i).y; 0, 0, 1, P(i).z; 0, 0, 0, 1], and each point P_cloud(j) in the global point cloud data is transformed to obtain the transformed point P_cloud_aligned(j): P_cloud_aligned(j) = T(i) × P_cloud(j).

[0068] Point cloud elevation extraction, projection point calculation: For each point P(i) on the center line segment, project it into the transformed point cloud plane to obtain the projection point P_proj(i). Laser point search: With the projection point P_proj(i) as the center, set the search radius r, and search for laser points within the radius r in the transformed point cloud data. Elevation value statistics: Count the elevation values ​​of the searched laser points, remove outliers whose elevation values ​​exceed the preset range [h_min, h_max], and calculate the average elevation value h_avg(i) of the remaining points after removing the outliers as the elevation value of the projection point P_proj(i).

[0069] Elevation value assignment: Assign the elevation value h_avg(i) of the projection point to the corresponding point P(i) on the center line segment as the elevation attribute value of point P(i). Through the above implementation, the center line of the lane can be accurately extracted, smoothed and assigned attributes in a scene where the road is curved and the lengths of the lane boundary lines are unequal. First, by calculating the length ratio of the boundary lines on both sides of the road, the center line is projected onto the left and right boundary lines to obtain the projection points of the center line on the boundary lines; then, according to the positional relationship of the projection points, the center line is divided into multiple segments, and equidistant sampling and cubic spline curve fitting are performed on each center line segment to obtain the smoothed center line segment; then, the tangent direction of the point on the center line segment is calculated as the heading attribute, and the heading attribute is used to transform the global point cloud data to align the point cloud coordinate system with the road coordinate system; finally, the points on the center line segment are projected into the transformed point cloud plane, and the elevation attributes of the center line points are extracted by searching for nearby laser points and counting their elevation values.

[0070] This implementation method fully considers the special cases of curved roads and unequal lane boundary lengths. Through boundary length ratio calculation and centerline projection, a more accurate centerline position can be obtained; through centerline segmentation and local processing, it can better adapt to local shape changes of the road; through point cloud coordinate transformation and elevation extraction, it can obtain the elevation information of the centerline points and enrich the attribute dimensions of the centerline. The resulting lane centerline is smooth, accurate, and has rich attributes, which can well meet the navigation and control requirements of unmanned mining trucks.

[0071] The road line is extracted according to the right boundary line of the first lane, and road segment division, attribute assignment and topology check are performed: Initial road line extraction, the right boundary line of the first lane obtained in step S5 is used as the initial road line as the basis for subsequent road segment division and attribute assignment. Road segment division, according to the topological structure of the mining area road grid and the location of the road intersection, the initial road line is divided into multiple road segments. The location of the road intersection can be determined by analyzing the geometric features of the road line (such as sharp changes in direction, convergence of multiple road lines, etc.) or referring to the mining area road grid map. The initial road line is divided at the road intersection to obtain multiple independent road segments.

[0072] Road segment offset: for each road segment after segmentation, according to the number of lanes contained in the road segment, the road segment is offset in the direction perpendicular to the road direction to generate a lane group corresponding to other lanes parallel to the first lane. The offset distance is calculated based on the standard lane width and the number of lanes. For example, the offset distance of the second lane is one lane width, the offset distance of the third lane is two lane widths, and so on. The offset direction is the direction perpendicular to the road direction, which can be determined by calculating the tangent direction of the point on the road line. Road segment attribute assignment: for all road segments after segmentation and offset, number them and set road attributes. Road attributes include information such as road ID, road name, latitude and longitude of the starting point, road length, road grade and speed limit. Road ID can be numbered according to the location and topological relationship of the road segment in the road network to ensure uniqueness and continuity. Road names can refer to the mining area road naming rules or be manually specified. The latitude and longitude of the starting point can be obtained by extracting the coordinates of the starting point of the road segment and converting them into latitude and longitude coordinates. The road length can be obtained by calculating the cumulative distance between points on the road segment. Road grade and speed limit can be set according to road function, geometric characteristics and mining area traffic rules.

[0073] Topological relationship setting: in the topological relationship of the road segment, the connectivity relationship of adjacent road segments is set. For adjacent road segments, the connectivity between them is determined based on the distance and direction relationship of their endpoint coordinates. At the road intersection, the order and orientation relationship of the intersecting road segments are set. The order of the intersecting road segments can be determined based on the direction of the road segments and the intersection angle, for example, clockwise or counterclockwise sorting. The orientation relationship of the intersecting road segments can be described based on the relative positions between the road segments, for example, east-west roads and north-south roads. Topological check: perform a topological check on all road segments after setting the attributes to form a complete road line network. The purpose of the topological check is to ensure the connectivity and consistency between road segments and eliminate topological errors such as dangling lines, broken lines, and overlapping lines. Graph theory algorithms (such as depth-first search, minimum spanning tree, etc.) can be used to traverse and check the road line network and correct the topological errors found.

[0074] Road line merging: merge the road segments after topology check according to the road ID to generate the final road line. For road segments with the same road ID, connect them in spatial order to form a complete road line. The merged road line inherits the properties of the original road segment and updates the properties such as road length. For the case where some sections are missing trajectory lines, you can manually draw lane boundary lines and then automatically generate lane center lines. The specific steps are as follows: On the sections where trajectory lines are missing, manually draw the left and right lane boundary lines according to the actual road conditions and remote sensing images. Smooth the manually drawn lane boundary lines to eliminate noise such as jagged edges and sharp corners. Automatically generate lane center lines based on the smoothed left and right lane boundary lines. Splice the generated lane center lines with the existing road lines to form a complete road line network.

[0075] Figure 4 According to the automatic generation flow chart of the center line of the bend shown in some embodiments of the present application, for the bend scene, due to the different lengths of the left and right boundary lines, it is necessary to segment the boundary lines on both sides according to a certain proportional relationship to ensure that the length ratio of the segmented line segments in the entire boundary line is equal. The specific steps are as follows: Calculate the total length of the left and right boundary lines respectively, denoted as L_left and L_right. According to the preset segmentation ratio (such as 1:1:1:1), the left and right boundary lines are divided into several segments respectively. For the segmentation point P_i on the left boundary line, its position satisfies: L_i / L_left = L_(i-1) / L_right, where L_i is the length of the line segment from P_0 to P_i, and L_(i-1) is the length of the line segment from P_0 to P_(i-1). Similarly, the right boundary line is segmented to obtain the right segmentation point Q_i. Connect the corresponding left and right segmentation points P_i and Q_i to obtain a series of horizontal segmentation lines. Calculate the midpoint of each horizontal segmentation line, denoted as M_i. Connect the midpoints M_0, M_1, M_2, etc. in sequence to get the initial position of the centerline. Smooth the initial centerline and extract the elevation value (z value) of the point on the centerline through the point cloud data. Through the above steps, a more accurate lane centerline can be obtained by dividing the length ratio of the left and right boundary lines in the curved road scene. Combined with the steps of road line extraction, road segment division, attribute assignment and topology check, a complete, continuous and topologically correct road line network is finally generated, providing a reliable reference for the navigation and control of unmanned mining trucks.

[0076] After the first lane centerline is extracted, the left and right boundary lines corresponding to the first lane boundary are generated according to the lane centerline position and lane width. In the underground mining scene, most of them are single lanes, and the left and right boundaries of the lane are physically separated by the tunnel wall. The center lines of the outbound and return lanes share a set of lane boundaries. Given the outbound lane centerline and point cloud data, the specific implementation steps are as follows: Point cloud clipping, clip the original point cloud data, and extract the ground point cloud and top point cloud. The ground point cloud and top point cloud can be segmented by setting a height threshold or using a local plane fitting method. Two-dimensional projection, the clipped ground point cloud and top point cloud are projected in two dimensions to obtain the point cloud distribution on the two-dimensional plane. The projection method can be selected as orthogonal projection or perspective projection, depending on specific needs. Tunnel wall point cloud extraction, the tunnel wall point cloud has a higher height value on the two-dimensional projection plane. According to the trend of the lane centerline, search for point cloud points that are as parallel to its trend as possible and have higher height values. Extract the inner point set of the tunnel wall close to the lane centerline as candidate boundary points. Lane boundary line fitting: perform line fitting on the extracted set of points on the inner side of the lane wall to generate lane boundary lines. Line fitting can be performed using algorithms such as the least squares method and RANSAC to obtain smooth boundary lines. The fitted boundary line is the lane boundary corresponding to the outbound centerline. The return lane boundary is shared, and the return lane centerline and the outbound centerline share the same set of lane boundaries. The outbound lane boundary can be directly used as the return lane boundary without repeated extraction. Lane boundary attribute assignment: assign attributes to the generated lane boundary line, including boundary type, lane, geometric features, etc. Attribute assignment can be based on features such as the position, length, and curvature of the boundary line.

[0077] Figure 5According to the shared lane boundary deduplication shown in some embodiments of the present application, the leaky mine scene, in the leaky mine scene, most of the up and down lanes are separated. If there is no obvious physical isolation boundary line, it is necessary to generate a virtual lane boundary according to the theoretical lane width. The center line of the first lane and the theoretical value of the lane width are known. The specific implementation steps are as follows: the lane center line is translated. According to the theoretical value of the lane width, the center line of the first lane is translated to generate left and right side boundary lines. The translation distance is half of the lane width, and the translation direction is the positive and negative direction of the center line normal vector. It can be calculated by calculating the normal vector of the point on the center line and translating according to the normal vector direction and lane width. The up and down lane boundaries are shared, the left boundary of the first up and down lanes is shared, and the right boundary is independent. For the shared left boundary, it only needs to be generated once. For the independent right boundary, it is necessary to generate the up and down boundary lines respectively. Physical separator boundary drawing, if there is an obvious physical separator (such as a guardrail, isolation belt, etc.) between the up and down lanes, it is necessary to draw the lane boundary according to the boundary of the physical separator. The boundary line can be obtained by manually drawing or automatically extracting the boundary of the physical separator. The extracted physical barrier boundary is used as the lane boundary line to replace the previously generated virtual boundary line. Lane width configuration: The lane width can be configured according to different vehicle specifications to adapt to different mining environments. The default lane width value can be set, and the user can also customize the lane width parameters. Boundary sharing scene processing: For scenes with shared lane boundaries, the generated boundary lines need to be deduplicated. A certain buffer distance can be set to merge boundary lines with a distance less than the buffer threshold. The merged boundary lines are used as shared boundaries to avoid repeated drawing. Geometry processing and attribute assignment: The generated lane boundary lines are geometrically processed, such as smoothing and simplification, to optimize the quality of the boundary lines. Attributes are assigned to the processed lane boundary lines, including boundary type, lane, geometric features, etc. Attribute assignment can be based on the location, length, curvature and other features of the boundary line.

[0078] According to the preset lane template and the extracted road line, the remaining road center lines except the first road center line are obtained: whether the number of lanes matches is determined by comparing the number of lanes corresponding to the road line extracted in step S6 with the number of lanes in the preset lane template. If the number of lanes matches, the lane width parameter in the lane template is directly used for subsequent processing. If the number of lanes does not match, the road line needs to be segmented and then the lane template is applied.

[0079] Figure 6The processing is based on the generation of the remaining lane boundaries according to the lane template shown in some embodiments of the present application. If the lane number corresponding to the road line matches the lane template, the left and right boundary lines of the remaining lanes are generated by the geometric line translation method. Taking the extracted road line as the reference, according to the lane width parameter in the lane template, the translation is performed in the direction perpendicular to the road line. The translation distance is an integer multiple of the lane width, and the positive and negative directions correspond to the left and right lane boundary lines respectively. Through the translation operation, the remaining lane boundary lines parallel to the road line are generated.

[0080] Handling of lane number mismatch: If the number of lanes corresponding to the road line does not match the lane template, determine the number of road line segments according to the number of lanes in the lane template. Divide the road line into road segments equal to the number of lanes. Calculate the start and end coordinates of each road segment. For each road segment, use the geometric line translation method to generate the left and right boundary lines of the remaining lanes according to the lane width parameter corresponding to it in the lane template. Take each road segment as the reference and translate in the direction perpendicular to the road segment. The translation distance is an integer multiple of the corresponding lane width, and the positive and negative directions correspond to the left and right lane boundaries respectively. Generate the boundary lines of the remaining lanes of each road segment through translation operations. For straight segments, obtain the points on the lane centerline by calculating the midpoint coordinates of the corresponding points on the left and right lane boundaries. Connect the calculated midpoint coordinates in sequence to form the lane centerline of the straight segment. For curved segments, use the sampling method to obtain the sampling points on the left and right lane boundaries.

[0081] According to the corresponding relationship of the sampling points, calculate the center point of the line connecting the sampling points. Connect the calculated center points in order to form the lane centerline of the curve segment. Smooth the generated lane centerline to eliminate jagged edges and sharp corners. You can use Bezier curves, spline interpolation and other methods to smooth the lane centerline. Assign attributes to the generated lane boundary lines and centerlines. Attributes may include lanes, geometric features, associations, etc. Associate the attributes with the corresponding lane boundary lines and centerlines.

[0082] For underground mining scenes, most of them are single lanes, and the probability of using lane templates is small. Directly use the extracted road line as the lane centerline, without lane template matching and generating other lanes. Assign attributes to the lane centerline based on the geometric features of the road line, such as length, curvature, etc. Associate the lane centerline with other map elements to build complete underground mining map data. For open-pit mining scenes, there are many multi-lane scenes, and the frequency of using lane template automatic vectorization is high. According to the map design plan, set the number of lanes and lane width values ​​in the lane template. Match the extracted road line with the lane template to determine the lane template to which the road line belongs. Based on the matched lane template, the method of geometric line translation is used to automatically fill in the remaining lane boundaries and lane centerlines.

[0083] Assign attributes to the generated lane boundaries and lane centerlines, including lane type, lane width, association, etc. Integrate the generated lane data with other map elements to build complete open pit mine map data. After the geometry and attributes of all road data are completed, encrypt all lane centerlines. Perform equidistant sampling on the lane centerlines to obtain the point set on the centerline.

[0084] For each sampling point, the following parameters are calculated: Slope: reflects the vertical slope change of the road, obtained by calculating the height difference and distance between adjacent points. Curvature: reflects the planar curvature change of the road, obtained by calculating the direction change rate between adjacent points. Heading: reflects the direction information of the road, obtained by calculating the tangent direction of the point. Lane width: reflects the lateral width of the road, obtained by querying the lane width attribute of the corresponding position. The calculated slope, curvature, heading and lane width values ​​are assigned to the corresponding sampling points on the centerline. The sampling points are interpolated to obtain the parameter information of each point on the centerline. The parameter information is associated with the centerline points to form detailed road parameter data. The generated road data is quality checked to check for geometric errors, missing attributes and other problems. The problems found are corrected and optimized to ensure the integrity and accuracy of the data. The road data is topologically checked to ensure the connectivity and consistency of the road network. The road data is smoothed to eliminate jagged edges and sharp corners to improve the aesthetics of the data.

[0085] Through the above implementation methods, road data in different mining scenarios can be automatically generated and processed. In the underground mining scenario, the extracted road line is directly used as the lane centerline without the need to use a lane template. In the open-pit mine scenario, the remaining lane boundaries and centerlines are automatically generated based on the lane template, and attribute values ​​are assigned. Finally, all road data are encrypted, key parameters are calculated, and detailed road parameter information is formed.

Claims

1. A mining area road mapping method based on trajectory and point cloud, comprising: S1, collects field data and unmanned mining vehicle data; the field data includes field topography, unmanned mining vehicle specifications, mining area production requirements and loader locations; the unmanned mining vehicle data includes vehicle trajectory lines and global point cloud data; the mining area includes underground mines and open-pit mines; S2, design a mapping scheme based on the collected on-site data and combined with the vehicle-side path planning; S3, plan the route according to the designed mapping scheme, collect outbound and return data along the planned route, and obtain the vehicle trajectory line and global point cloud data; S4, extracting the lane centerline according to the obtained outbound and return trajectory lines; S5, obtaining a lane boundary line according to the first lane center line extracted in step S4 and a preset lane width parameter; S6, extracting road lines according to the right boundary line of the first lane obtained in step S5, dividing the road lines into different road segments according to the number of lanes, and setting road segment attribute values; S7, obtaining the remaining lane center lines except the first lane center line according to the preset lane template and the road line extracted in step S6; S8, encrypting all lane center lines obtained in step S7, calculating the slope, curvature, heading and lane width values ​​at the center line points, and drawing a mining area road map by combining the vectorized data of the road line, lane boundary line and lane center line; S6, extracting road lines according to the right boundary line of the first lane obtained in step S5, dividing the road lines into different road segments according to the number of lanes, and setting road segment attribute values, including: The first lane right boundary line obtained in step S5 is used as the initial road line; According to the topological structure of the mining area road grid and the location of road intersections, the initial road line is divided into multiple road segments; For each road segment after segmentation, according to the number of lanes contained in the road segment, the road segment is offset in a direction perpendicular to the road direction to generate a lane group corresponding to other lanes parallel to the first lane; For all road segments after segmentation and offset, number them and set road attributes, which include road ID, road name, latitude and longitude of starting point, road length, road grade and speed limit; In the topological relationship of the road segments, the connectivity relationship of adjacent road segments is set, and at the road intersection, the order and orientation relationship of the intersecting road segments is set; Perform topological checks on all road segments after attribute setting to form a complete road line network; Merge the road segments after topology check according to the road ID to generate the final road line; S7, according to the preset lane template and the road line extracted in step S6, obtaining the remaining lane center lines except the first lane center line, including: Determine whether the number of lanes corresponding to the road line extracted in step S6 matches the number of lanes in the preset lane template; If the number of lanes corresponding to the road line matches the lane template, the left and right boundary lines of the remaining lanes are generated by translating the extracted road line in a direction perpendicular to the road line based on the lane width parameter in the lane template and using the geometric line translation method. If the number of lanes corresponding to the road line does not match the lane template, the extracted road line is divided into multiple road segments according to the number of lanes in the lane template. Then, according to the lane width parameter corresponding to each road segment in the lane template, the geometric line translation method is used to translate the left and right boundary lines of the remaining lanes of each road segment in the direction perpendicular to the road segment with each road segment as the reference. According to the generated remaining lane boundary lines, the lane center lines of the remaining lanes are obtained.

2. The method for mapping mining roads based on trajectory and point cloud according to claim 1, characterized in that: S4, extracting the lane centerline based on the acquired outbound and return trajectory lines, including: For the first preset scenario, the outbound and return center lines are overlapped to the middle of the lane. The first preset scenario indicates that there is no oncoming vehicle scene in a single lane. For the second preset scenario, the outbound and return center lines are separated, and the distance between the outbound center line and the return center line is set according to the lane width and the vehicle width. The second preset scenario indicates that there is a passing scene in a single lane; For the third preset scenario, after the lane centerline is extracted according to the vehicle trajectory, the extracted centerline is translated to the position of the first lane centerline in the mapping scheme. The third preset scenario represents a one-way multi-lane scenario.

3. The method for mapping mining roads based on trajectory and point cloud according to claim 2, characterized in that: S4, after extracting the lane centerline based on the acquired outbound and return trajectory lines, includes: Perform geometric modification on the extracted center line to eliminate sharp points and self-intersection points on the center line; The modified center line is connected to connect the disconnected center line; Smooth the center line after the connection, fit the center line with Bezier curve, generate control points according to the position of the point on the center line and the tangent direction to smooth the direction of the center line, sample the smoothed center line, and control the sampling interval according to the direction of the road; Assign attributes to the smoothed centerline to identify the geometric features and semantic information of the centerline; Among them, the modified center line is connected to connect the disconnected center line, including: Calculate the distance and angle between the endpoints of the disconnected center lines, and connect the disconnected center line endpoints when the distance is less than a preset threshold and the angle change is less than the threshold; The connected center lines are locally smoothed to eliminate the abrupt changes at the connection points.

4. The method for mapping mining roads based on trajectory and point cloud according to claim 3, characterized in that: Perform geometric modification on the extracted centerline to eliminate sharp points and self-intersection points on the centerline, including: For a cusp, the angle between adjacent points on the center line is calculated. When the angle is less than a preset threshold, the cusp is removed and the center lines on both sides of the cusp are reconnected. The cusp is a point on the center line where the curvature suddenly changes. For self-intersection points, calculate the intersection points on the centerline, break the centerline at the self-intersection points, remove the self-intersection points, and reconnect the broken centerline, where the self-intersection points are the points on the centerline that intersect with itself.

5. The method for mapping mining roads based on trajectory and point cloud according to claim 3, characterized in that: S4, extracting the lane centerline according to the acquired outbound and return trajectory lines, further comprising: For the fourth preset scenario, the lane boundary is obtained, the length of the boundary lines on both sides of the road is calculated, and the ratio of the lengths of the left and right boundary lines is obtained; Project the center line onto the left and right boundary lines according to the length ratio to obtain the projection points of the center line on the left and right boundary lines; The center line is divided into multiple segments according to the position of the projection point. The division point is the point where the distance difference between the left and right projection points is the largest, and multiple center line segments are obtained. Sampling is performed at equal distances on the center line segment to obtain the center line segment sampling points; Use cubic spline curve to fit the center line segment sampling points to obtain the smoothed center line segment; Calculate the tangent direction of the point on the smoothed center line segment as the heading attribute of the point on the center line segment; According to the heading attributes of the points on the center line segment, the global point cloud data is transformed to align the point cloud coordinate system with the road coordinate system; In the transformed point cloud data, the point on the center line segment is projected into the point cloud plane, a search radius is set with the projection point as the center, and a laser point within the radius is searched, wherein the laser point is a three-dimensional point in the global point cloud data; The elevation values ​​of the laser points obtained by the search are counted, outliers whose elevation values ​​exceed the preset range are eliminated, and the average elevation value of the remaining points after eliminating the outliers is calculated as the elevation value of the projection point; The elevation value of the projection point is used as the elevation value of the corresponding point on the center line segment; Among them, the fourth preset scenario is that the trajectory line of some sections is missing or the length of the lane boundary lines is unequal in the curved road scenario.

6. The method for mapping mining roads based on trajectory and point cloud according to any one of claims 1 to 5, characterized in that: S5, obtaining a lane boundary line according to the first lane center line extracted in step S4 and a preset lane width parameter, including: For the well condition single lane scenario: Taking the center line of the first lane obtained as a reference plane, in the global point cloud data obtained in step S1, cutting the point cloud within a preset thickness range perpendicular to the center line as the lane wall point cloud; The cut tunnel wall point cloud is projected into a vertical plane parallel to the center line of the first lane, and the tunnel wall point cloud is fitted in the projection plane to obtain two tunnel wall contour lines parallel to the center line; The two fitted lane wall contour lines are used as the left and right boundary lines of the first lane respectively.

7. The method for mapping mining roads based on trajectory and point cloud according to claim 6, characterized in that: S5, obtaining a lane boundary line according to the first lane center line extracted in step S4 and a preset lane width parameter, further comprising: For open pit mine scenario: According to the direction of the center line of the first lane and the preset lane width parameters, a geometric line translation method is used to generate two boundary lines parallel to the center line of the first lane and separated by a preset distance, which serve as the left and right boundary lines of the first lane respectively; Using the spatial topological relationship detection algorithm, the left and right boundary lines of the first lane generated are detected to overlap with the boundary lines of the adjacent lanes; If there is an overlapping part, the midpoint of the overlapping part is used as the common boundary line of the two lanes, and the boundary line of the first lane and the boundary line of the adjacent lane are clipped and deduplicated.

8. The method for mapping mining roads based on trajectory and point cloud according to claim 1, characterized in that: According to the generated remaining lane boundary lines, the lane center lines of the remaining lanes are obtained, including: For straight line segments, the midpoint coordinates of the corresponding points on the left and right lane boundary lines are calculated and connected to form the lane centerline; For the curved segment, the sampling points on the left and right lane boundary lines are obtained by sampling the left and right lane boundary lines. According to the corresponding relationship between the sampling points, the center point of the line connecting the sampling points is calculated, and the center points are connected to form the lane centerline.

Citation Information

Patent Citations

  • Automatic road drawing method and system for mining area map and electronic equipment

    CN112150632A

  • Cage access control system and method based on well mining scene perception fusion technology

    CN117201567A

  • High-precision map making method for automatic driving of well mining vehicle

    CN118093761A

  • Method, apparatus, and system for creating doubly-digitised maps

    EP4001843A1