Map data generation method and device, related equipment and medium
By processing high-precision map data processing tasks in parallel and using the key-bit data package mechanism, the problem of poor timeliness of high-precision map data release in the existing technology is solved, ensuring the integrity and timeliness of data, and avoiding data silos and contradictions.
Patent Information
- Application Number
- CN202410851647.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-06-27
AI Technical Summary
When processing high-precision map data, the current technology has poor timeliness and cannot publish complete high-precision map data in a timely manner, resulting in road data silos and data contradictions.
By dividing the collected data into multiple processing tasks, each processing task includes multiple map data packages, determining key-bit data packages, processing non-key-bit data packages and processable key-bit data packages in parallel, improving concurrency and processing Efficiency to ensure the integrity and timeliness of map data.
It realizes the timely release of map data, avoids data islands and data contradictions, and improves the concurrency and timeliness of the processing process.
Smart Images

Figure CN118897869A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of map data production, and in particular to a method, device, computer equipment cluster and storage medium for generating map data. Background Art
[0002] With the development of technology, the application of high-precision maps has become increasingly widespread. The main use scenarios of high-precision maps can include intelligent driving, high-precision positioning, etc.
[0003] At present, after obtaining the collected data of the real roads, the collected data is processed to obtain the high-precision map data that can be published. The published high-precision map data needs to have the integrity of the map data. The integrity requires that the real roads corresponding to the published high-precision map data are connected and can reflect the continuous change characteristics of the road, rather than corresponding to an isolated road.
[0004] In order to ensure the integrity of map data, in existing solutions, the acquired complete road data is generally processed in sequence according to the extension direction of the road. After all the processing is completed, the high-precision map data corresponding to the entire road will be released. However, this processing method has poor timeliness and cannot realize the release of high-precision map data in a timely manner. Summary of the invention
[0005] In order to solve the above-mentioned problems existing in the prior art, the present application provides a method, apparatus, computer equipment cluster and storage medium for generating map data, which improve the timeliness while ensuring the integrity of map data, so that map data can be released in a timely manner.
[0006] In a first aspect, the present application provides a method for generating map data, the method comprising: determining multiple processing tasks and multiple map data packages corresponding to each processing task based on collected data, the road sections corresponding to each processing task are continuous, each processing task is used to generate map data for the corresponding road section, and each map data package includes part of the collected data of the corresponding processing task. According to the extension direction of the road section, at least one key position data package is determined from the multiple map data packages corresponding to each processing task. The key position data package is the first map data package of the corresponding processing task in the extension direction of the road section. When the key position data package is the first unprocessed map data package in the extension direction of the road section, the status is processable, otherwise the status is unprocessable. All non-key position data packages and the key position data packages in the processable status are processed in parallel.
[0007] The solution provided by the present application divides the acquired collected data into multiple processing tasks, each processing task includes multiple map data packages. Furthermore, map data packages at key positions are extracted from the multiple map data packages corresponding to each processing task as key position data packages. By processing all non-key position data packages and key position data packages in a processable state in parallel, the concurrency in the process of collecting data processing is improved. Compared with the solution in the prior art that processes the collected data sequentially according to the extension direction of the road, in the solution of the present application, the non-key position data packages in the middle processing tasks can be processed in advance, and then when the adjacent previous processing tasks are completed, the subsequent processing tasks may only have the key position data packages left unprocessed, or only have the key position data packages and a small number of non-key position data packages left unprocessed. Therefore, the subsequent processing tasks can be completed faster, and the map data can be released more timely.
[0008] The key position data package is the first map data package of the corresponding processing task in the extension direction of the road section. When the key position data package is the first unprocessed map data package in the extension direction of the road section, the status is processable. When the adjacent previous processing task is completed, it is switched to the processable status after accessing the map data of the previous processing task, avoiding the contradiction between the map data obtained by processing the key position data package first and the map data obtained by the previous processing task, thereby ensuring the integrity of the map data while ensuring concurrent processing.
[0009] In a second aspect, the present application also provides a map data generation device, which includes: a determination unit, a selection unit and a processing unit. The determination unit is used to determine multiple processing tasks and multiple map data packages corresponding to each processing task based on the collected data, the road sections corresponding to each processing task are continuous, each processing task is used to generate map data of the corresponding road section, and each map data package includes part of the collected data of the corresponding processing task. The selection unit is used to determine at least one key position data package from the multiple map data packages corresponding to each processing task based on the extension direction of the road section; when the key position data package is the first unprocessed map data package in the extension direction of the road section, the status is processable, otherwise the status is unprocessable. The processing unit is used to parallelly process all non-key position data packages and key position data packages in the processable status.
[0010] In a third aspect, the present application further provides a computer device cluster, the computer device cluster comprising at least one computer device. The at least one computer device comprises at least one processor and at least one memory, and the at least one memory stores computer-readable instructions. The at least one processor executes the computer-readable instructions so that the computer device cluster executes the method for generating map data provided in the first aspect above.
[0011] In a fourth aspect, the present application further provides a storage medium storing computer-readable instructions for implementing the method for generating map data provided in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 Scenario diagram provided for the embodiment of this application Figure 1 ;
[0013] Figure 2 Scenario diagram provided for the embodiment of this application Figure 2 ;
[0014] Figure 3 Scenario diagram provided for the embodiment of this application Figure 3 ;
[0015] Figure 4 Scenario diagram provided for the embodiment of this application Figure 4 ;
[0016] Figure 5 A flowchart of a method for generating map data provided in an embodiment of the present application;
[0017] Figure 6 Schematic diagram of the principle provided by the embodiment of this application Figure 1 ;
[0018] Figure 7 A flowchart of another method for generating map data provided in an embodiment of the present application;
[0019] Figure 8 A flowchart of another method for generating map data provided in an embodiment of the present application;
[0020] Fig. 9 Schematic diagram of the principle provided by the embodiment of this application Figure 2 ;
[0021] Fig.10 Schematic diagram of the principle provided by the embodiment of this application Figure 3 ;
[0022] Fig.11 A schematic diagram of a map data generating device provided in an embodiment of the present application;
[0023] Fig.12 A schematic diagram of a computing device provided in an embodiment of the present application;
[0024] Fig.13 A schematic diagram of a computing device cluster provided in an embodiment of the present application;
[0025] Fig.14 Schematic diagram of the connection method of the computing device cluster provided in the embodiment of the present application Figure 1 ;
[0026] Fig.15 Schematic diagram of the connection method of the computing device cluster provided in the embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0027] In order to enable persons skilled in the art to more clearly understand the present application scheme, the application scenario of the present application scheme is first described below.
[0028] See also Figure 1 , which is a schematic diagram of a scenario provided by an embodiment of the present application Figure 1 .
[0029] Assume that a new road L is opened between A and B. At this time, the starting point of road L is A and the end point is B. In actual applications, A and B are connected to other roads that already have high-precision map data.
[0030] In order to generate high-precision map data of the road, it is necessary to obtain the L collection data of the road through the collection device 10.
[0031] The acquisition device 10 in the embodiment of the present application may be a vehicle equipped with a laser radar and / or a camera. The laser radar may be used to acquire point cloud data of the vehicle's surroundings, and the camera may be used to acquire image data of the vehicle's surroundings. The point cloud data and the image data are collectively referred to as acquisition data of the acquisition device. During the data acquisition process of the acquisition device 10, the positioning device in the acquisition device 10 will record the spatial position information of the driving trajectory points of the acquisition device 10. The spatial position information includes: longitude, latitude and elevation information (for example, altitude information); and then the driving trajectory of the acquisition device may be determined based on the driving trajectory points. The driving trajectory may be understood as the acquisition trajectory of the acquisition device. Figure 1 Only a scene of a collection device 10 collecting data is shown.
[0032] Figure 1 After the acquisition device 10 in the vehicle acquires the acquisition data, the acquisition data can be uploaded to the map data processing server 20, which completes the data processing and acquires the high-precision map data. The map data processing server 20 can publish the high-precision map data to the navigation server 30. Thereafter, when the vehicle starts the navigation application on the road L for in-vehicle navigation, the navigation server 30 can provide the corresponding navigation data to the in-vehicle navigation application, and finally the road L and the map elements of the road L can be visualized on the navigation interface of the navigation application.
[0033] Map elements are elements used to construct high-precision maps, and may include but are not limited to ground elements and above-ground elements. Ground elements include but are not limited to direction arrows, lane lines, stop lines, ground text, etc. Ground elements include but are not limited to signs, traffic lights, speed guns, electronic eyes, intersections, toll booths, and pan bridges.
[0034] The data processing of the map data processing server 20 includes but is not limited to the processing of the collected data and the processing of other road data. After the map data processing server 20 generates high-precision map data through data processing, it can merge the generated high-precision map data with the mother database data to realize the entry of high-precision map data into the mother database.
[0035] The data processing process of high-precision map data needs to consider the integrity of map data, which is explained in detail below with reference to the accompanying drawings.
[0036] See also Figure 2 , which is a schematic diagram of a scenario provided by an embodiment of the present application Figure 2 .
[0037] At present, when the map data processing server 20 processes the collected data, the map data processing task needs to process all the collected data of road L. The collected data of the A-L1 section, L1-L2 section, L2-L3 section, L3-L4 section, and L4-B section can be treated as a sub-batch of collected data respectively.
[0038] A batch is the combined granularity of map data submitted to the data processing platform after collection. Usually, a batch will bring together geospatial data collected by multiple collection devices within a predetermined collection time period. A batch may usually cover a road length of hundreds of kilometers.
[0039] Sub-batches are the smallest granularity of map data integrity, which can be split according to algorithms and strategies based on actual conditions. Sub-batches are smaller tasks formed after splitting batches, and they have a corresponding association with batches. Sub-batches generally cover a road length of tens of kilometers. A sub-batch can be regarded as a processing task.
[0040] The integrity of map data requires that the presentation of high-precision map data should be complete and coherent. High-precision map data should be able to reflect the continuously changing characteristics of real roads, and no isolated road data can exist.
[0041] See also Figure 3 and Figure 4 .in, Figure 3 Scenario diagram provided for the embodiment of this application Figure 3 ; Figure 4 Scenario diagram provided for the embodiment of this application Figure 4 .
[0042] In order to ensure the integrity of high-precision map data, when scheduling map data processing tasks, they are generally processed in sequence according to the extension direction of the road, such as Figure 3 As shown, when the collected data processing of the A-L1 section is completed, the collected data processing of the L1-L2 section is started, and the processing result of the A-L1 section is connected to the L1-L2 section; when the collected data processing of the L1-L2 section is completed, the collected data processing of the L2-L3 section is started, and the processing result of the L1-L2 section is connected to the L2-L3 section, and so on, until all tasks are completed and the high-precision map data of the entire road is released uniformly.
[0043] This method of processing map data and publishing high-precision map data ensures the integrity of the high-precision map data, that is, the high-precision map data can reflect the characteristics of continuous real roads, avoiding the published high-precision map data from becoming data islands.
[0044] Data island means that the road reflected in the HD map data is an isolated road, that is, it is not connected to other road sections, so that the HD map data corresponding to this road is also not connected to the HD map data corresponding to other roads. Figure 4 In the process, if the task of L3-L4 is directly processed and the high-precision map data of L3-L4 is released separately, since the high-precision map data corresponding to the adjacent sections before and after L3-L4 are not released, the high-precision map data of L3-L4 will become a data island, which is meaningless in actual navigation and cannot reflect the continuous change characteristics of the actual road. In addition, the map data of L3-L4 may conflict with the map data of L2-L3 and L4-B obtained later at the connected endpoints, such as misalignment or overlap at the connected endpoints, resulting in a decrease in the quality of high-precision map data.
[0045] However, for Figure 3 In the processing method shown, during the data collection process, since the subsequent tasks need to be completed after the previous tasks are completed and the processing results of the previous tasks are connected to start processing, the scheduling of multiple processing tasks is serial, and the subsequent tasks need to wait in the queue for a long time before they can start execution. This results in poor timeliness of the above processing method and the failure to timely realize the release of high-precision map data.
[0046] In order to solve the above problems, the embodiments of the present application provide a method, device, computer equipment cluster and storage medium for generating map data. In this scheme, the acquired collected data is divided into multiple processing tasks, and each processing task includes multiple map data packages. And the first map data package of the processing task in the extension direction of the road section is determined as the key position data package. When the key position data package is the first unprocessed map data package in the extension direction of the road section, the status is processable, otherwise the status is unprocessable. By processing all non-key position data packages and key position data packages in the processable status in parallel, the concurrency in the process of collecting data processing is improved, and the contradiction between the map data obtained by first processing the key position data package and the map data obtained by the previous processing task is avoided, while ensuring concurrency, the integrity of the map data and the timeliness of the map data release are guaranteed.
[0047] In order to enable persons skilled in the art to more clearly understand the solution of the present application, the technical solution in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0048] The terms "first", "second", etc. in this application description are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0049] The embodiment of the present application provides a method for scheduling map data job tasks, which is described in detail below with reference to the accompanying drawings.
[0050] See also Figure 1 , which is a flowchart of a method for generating map data provided in an embodiment of the present application.
[0051] The method comprises the following steps:
[0052] S11: Determine multiple processing tasks and multiple map data packages corresponding to each processing task based on the collected data.
[0053] The collected data is the data of the real road collected by the collection device. The collected data in the embodiment of the present application may include point cloud data of the vehicle's surrounding environment collected by the lidar, and image data of the vehicle's surrounding environment collected by the camera.
[0054] In an embodiment of the present application, the collected data of a road can be taken as a batch. A batch is the combination granularity of the collected data submitted to the data processing platform. A batch of collected data can cover a road with a length of hundreds of kilometers.
[0055] See also Figure 6 , which is a schematic diagram of the principle provided by the embodiment of the present application Figure 1 .
[0056] The processing task is the minimum granularity of map data integrity, which can be split according to the algorithm and strategy according to the actual situation. The processing task is to split the batch into smaller tasks, and there is a corresponding association relationship with the batch. The processing task generally covers a road length of tens of kilometers. In the embodiment of the present application, the specific amount of data corresponding to the processing task is not limited and can be determined according to the actual road length. The road length covered by each processing task can be within a preset first length range. Figure 6 The division of collected data into processing tasks S1-S4 is used as an example for explanation.
[0057] Each processing task contains a certain amount of collected data and / or intermediate data after preprocessing of the collected data. The scheduling task can manage the operation order, priority, relationship between tasks, whether the task is operable, etc. of each processing task.
[0058] In the embodiment of the present application, after a batch of collected data is divided into multiple processing tasks, the collected data included in each processing task can be further divided into multiple map data packages, and each map data package includes collected data of a certain length of road. That is, each map data package includes part of the collected data of the corresponding processing task. Completing the processing of the collected data in a processing task means completing the processing of all map data packages. The map data package is the basic unit for manual processing or algorithmic processing by the map data processing platform. In the embodiment of the present application, the specific number of map data packages included in each processing task is not limited. In addition, the number of map data packages included in each processing task can be the same or different.
[0059] For the sake of convenience, Figure 6 In the example, the map data packages included in each processing task are the same and are 5, but it does not constitute a limitation on the technical solution of the present application.
[0060] In the embodiments of the present application, the length of roads covered by each map data package is not limited. Through a large number of experiments, the recommended range of the length of roads covered by the map data package given in the present application is 1-2 kilometers, but it does not constitute a limitation on the technical solution of the present application.
[0061] Since the actual roads corresponding to the collected data are continuous, the road sections corresponding to the divided processing tasks are also continuous, and the road sections corresponding to the various map data packages are also continuous.
[0062] Figure 6Take the processing task S1 corresponding to the road section A-L1, S2 corresponding to the road section L1-L2, S3 corresponding to the road section L2-L3, and S4 corresponding to the road section L3-L4 as an example. Then the map data packages S1-1 to S1-5 include the collected data of the road section A-L1, the map data packages S2-1 to S2-5 include the collected data of the road section L1-L2, the map data packages S3-1 to S3-5 include the collected data of the road section L2-L3, and the map data packages S4-1 to S4-5 include the collected data of the road section L3-L4.
[0063] In the embodiment of the present application, each processing task is used to generate map data of the corresponding road section, that is, after processing each map data package of the processing task through an algorithm, the map data of the corresponding road section can be obtained.
[0064] S12: According to the extension direction of the road section of the actual road, determine at least one key position data package from the multiple map data packages corresponding to each processing task.
[0065] The embodiment of the present application improves the concurrency of map data package processing and redesigns the scheduling scheme for processing tasks. Scheduling refers to starting or pausing the processing units on the map data processing platform through certain algorithms and strategies.
[0066] The key position data package in the embodiment of the present application is the first map data package of the corresponding processing task in the extension direction of the road section. Figure 6 In the example, the collected data in this batch covers roads from A to L4. The road segment shown in the figure extends from A to L4.
[0067] Figure 6 The key position data packages are S1-1, S2-1, S3-1 and S4-1.
[0068] When the key position data package is the first unfinished map data package in the extension direction of the road section, the status is processable, otherwise the status is unprocessable. This setting can ensure that the map data can reflect the continuous real road characteristics. When the key position data package is the first unfinished map data package in the extension direction of the road section, it means that the map data packages of the previous adjacent processing tasks have been processed, and the map data packages of the previous non-adjacent processing tasks have also been processed. That is, at this time, the previous adjacent tasks and the previous non-adjacent tasks have been processed, and the processing task where the key position data package is located is the first unfinished processing task in the extension direction of the road section.
[0069] Since the previous adjacent processing task has been completed, the processing result of the previous adjacent processing task can be accessed at this time, avoiding the contradiction between the processing result of the key position data package and the processing result of the previous processing task, and ensuring the continuity of the map data.
[0070] S13: Parallel processing is performed on all non-key position data packets and key position data packets in a processable state.
[0071] All non-key position data packages and key position data packages in the processable state are processed in parallel, which improves concurrency and thus shortens the overall time for data processing. The map data of the entire road can be obtained more quickly, thus improving the timeliness of map data release.
[0072] In a possible implementation, the map data of the road section corresponding to the completed processing task can be published in real time. That is, in the embodiment of the present application, the map data can be published in sections rather than the entire road section, so that the processed partial map data can be published faster, improving timeliness.
[0073] The key position data package is the first map data package of the corresponding processing task in the extension direction of the road section. The key position data package needs to be connected to the processing result of the adjacent previous task before the processing can be started. Therefore, the key position data package is used to realize the control of the processing task.
[0074] Specifically, for S1-1, since S1-1 is the first unprocessed map data package in the extension direction of the road section, the status of S1-1 is processable at this time. At the same time, S2-1, S3-1 and S4-1 are not the first unprocessed map data packages in the extension direction of the road section, so the status of S2-1, S3-1 and S4-1 is unprocessable. S1-1 to S1-5 can be processed in parallel with the non-key position data packages of other processing tasks at this time. Before S1-1 to S1-5 are completed, that is, before the processing task S1 is completed, other subsequent processing tasks cannot be completed because the key position data package is in an unprocessable state. Therefore, the map data of the road sections corresponding to other subsequent processing tasks will not be released, avoiding the published map data from becoming data islands.
[0075] When S1-1 to S1-5 are completed, processing task S1 is completed, and the map data of section A-L1 corresponding to processing task S1 is released. S2-1 is the first unprocessed map data package in the extension direction of the section, and the status of S2-1 is switched to processable. For processing task S2, since map data packages S2-2 to S2-5 have already started parallel processing in advance, at this time, processing task S2 may only have key position data package S2-1 left unprocessed, or only key position data package S2-1 and a small number of non-key position data packages left unprocessed. Therefore, the remaining processing time of processing task S2 can be greatly shortened, and processing task S2 can be completed quickly, so that the map data of section L1-L2 can be released faster.
[0076] After that, S3-1 is the first unprocessed map data package in the extension direction of the road section, and the status of S3-1 is switched to processable, and so on, until the map data of sections L2-L3 and L3-L4 are all released, at which time the processing of the entire batch of collected data is completed.
[0077] In summary, the solution provided by the embodiment of the present application can be used to publish the map data of the road sections corresponding to the completed processing tasks in segments in a timely manner, thereby improving timeliness, and by setting the key position data package, the integrity of the map data is guaranteed while ensuring concurrent processing of collected data.
[0078] The following is an explanation in conjunction with a specific implementation method.
[0079] A complete road L1 can be Figure 1 As shown in , it covers two points AB. The road can be a highway, and the entire length is long, and it can have more on and off highway exits, so that L1 can be connected with other roads to form a network. The starting position A and the ending position B of L1 are the endpoints of L1 connecting with other roads.
[0080] The road extension direction in the embodiment of the present application refers to the direction extending from the starting point of the road to the end point, or the direction extending from the end point to the starting point.
[0081] If all collected data between point A and point B are acquired, then the extension direction of the road section corresponding to the road L1 includes a first extension direction and a second extension direction.
[0082] The first extension direction extends from the first section of the actual road to the last section, that is, from the starting point to the end point. The second extension direction extends from the last section of the actual road to the first section, that is, from the end point to the starting point.
[0083] However, there may be a situation where the collected data of road L1 is not fully acquired. The reason for incomplete collected data may be that the road is not fully open to traffic but only partially open to traffic, or the data collection work of some sections has not been completed. For example, the collected data from A to L4 has been acquired, but the collected data of the L4-B section has not been acquired. Currently, the collected data from A to L4 can also be processed to obtain the map data from A to L4, but at this time, since the L4 end is not connected to other roads, the extension direction of the section only includes the first extension direction, that is, extending from the starting point to the end point.
[0084] The solution of the embodiment of the present application can be applied to the two scenarios of complete collected data and incomplete collected data mentioned above. The implementation method applied to the scenario of incomplete collected data is first described below.
[0085] See also Figure 7, which is a flowchart of another method for generating map data provided in an embodiment of the present application.
[0086] The method comprises the following steps:
[0087] S21: Determine multiple processing tasks based on the connectivity attributes of the roads and the collected data of the roads.
[0088] The connectivity properties of a road are used to indicate the ramps and intersections of the road. Among them, the ramp of a road usually refers to a small section of auxiliary lanes that provide vehicles with access to and from the main line. The main line can be a highway, an elevated road, a bridge, or a driving tunnel light. An intersection refers to the intersection of the current road and other roads. The connectivity properties of a road can characterize the spatial shape characteristics of the road. In one possible implementation, the collected data corresponding to a certain length of road can be divided into one processing task, and this section of road can include multiple sections, and can also include one or more ramps and intersections, or this section of road can include multiple sections, excluding ramps and intersections. It should be noted that in actual applications, the collected data of the same ramp or intersection should be divided into one processing task as much as possible to ensure the data integrity of the map elements.
[0089] The road length corresponding to each processing task is in the first length interval. The recommended value range of the first length interval given in the embodiment of the present application is 10km-25km, but it does not constitute a limitation on the first length interval.
[0090] The embodiment of the present application does not limit the specific number of processing tasks. The road lengths covered by the collected data of each processing task can be the same or different.
[0091] S22: Divide each processing task into a plurality of map data packages according to the map elements on the road section corresponding to each processing task.
[0092] Map elements are elements for constructing a map, and map elements include but are not limited to one or more of the following: intersections, ramps, and toll booths.
[0093] It should be noted that in actual applications, the collected data of the same map element should be divided into one map data package as much as possible to ensure the data integrity of the map element. This avoids the situation where the collected data of the same map element is divided into two map data packages for separate processing, which will lead to a decrease in the accuracy of the processing results of the map element.
[0094] The road length corresponding to each map data package is in the second length interval. The recommended value range of the second length interval given in the embodiment of the present application is 1km-2km, but it does not constitute a limitation on the first length interval.
[0095] It can be understood that the first length interval is greater than the second length interval, that is, the road length corresponding to the map data package is less than the road length corresponding to the processing task.
[0096] The embodiment of the present application does not limit the specific number of map data packages included in each processing task. The road lengths covered by the collected data of each map data package can be the same or different. The number of map data packages included in each processing task can be the same or different.
[0097] S23: According to the spatial continuity relationship of the road sections corresponding to the processing tasks, the processing tasks are sorted according to the extending direction of the road sections.
[0098] When sorting the processing tasks and the multiple map data packages corresponding to the processing tasks according to the extension direction of the road sections, because the road sections are continuous in space, the processing tasks can be sorted according to the extension direction of the road sections. Figure 6 .
[0099] The collected data of the A-L1 segment corresponds to processing task S1, the collected data of the L1-L2 segment corresponds to processing task S2, the collected data of the L2-L3 segment corresponds to processing task S3, and the collected data of the L3-L4 segment corresponds to processing task S4.
[0100] The order of sorting the processing tasks according to the extension direction of the road section is S1-S2-S3-S4.
[0101] S24: Based on the position data included in each map data package, the plurality of map data packages corresponding to each processing task are sorted according to the extension direction of the road section.
[0102] The location data includes at least longitude and latitude coordinates, and may further include altitude. For example, the location data includes both longitude and latitude coordinates and altitude. The location data may be represented as a coordinate point in the form of (X, Y, Z), where X represents the longitude coordinate, Y represents the latitude coordinate, and Z represents the altitude.
[0103] Since the distance between the coordinate points indicated by two adjacent position data is the shortest, the adjacent map data packages can be determined according to the first and last position data included in each map data package.
[0104] For example, for the same processing task, the last position data of a map data package is (X0, Y0, Z0), and the first spatial data of all other map data packages are (X1, Y1, Z1), (X2, Y2, Z2), ..., (X M , Y M , Z M ). M is a positive integer.
[0105] When the map data package adjacent to the map data package is determined, the distance Li between the spatial data (X0, Y0, Z0) and the coordinate point indicated by the other spatial data is calculated:
[0106] Li=√(X i -X0) 2 +(Y i -Y0) 2 +(Z0-Z1) 2 (1)
[0107] In the above formula (1), i = 1, 2, ..., M. When Li is the smallest, the map data packages corresponding to the two coordinate points are adjacent.
[0108] The order of sorting the map data packages according to the extension direction of the road sections is as follows Figure 6 , in order: S1-1, S1-2, S1-3, S1-4, S1-5, S2-1, S2-2, S2-3, S2-4, S2-5, S3-1, S3-2, S3-3, S3-4, S3-5, S4-1, S4-2, S4-3, S4-4, S4-5.
[0109] S25: Determine the first map data package corresponding to each processing task as the key position data package.
[0110] The key position data package is the first map data package of the corresponding processing task in the extension direction of the road segment. When the key position data package is also the first unprocessed map data package in the extension direction of the road segment, the status is processable, otherwise the status is unprocessable.
[0111] Figure 6 The key position data packages are S1-1, S2-1, S3-1 and S4-1.
[0112] S26: Parallel processing is performed on all non-key position data packets and key position data packets in a processable state.
[0113] In order to ensure the integrity of the map data, the map data reflected by each map data package needs to be connected with the map data reflected by the adjacent map data package, and can reflect the continuous change characteristics of the actual road, and cannot become a data island. The embodiment of the present application sets the key position data package, so that other adjacent or non-adjacent post-processing tasks cannot be completed before the previous processing task is completed, so the map data of the road sections corresponding to other post-processing tasks will not be published separately in advance, avoiding the published map data from becoming a data island.
[0114] For example, since S1 - 1 is the first unfinished map data package in the extension direction of the road segment, at this time, the status of S1 - 1 is processable, and the status of other key position data packages is unprocessable.
[0115] S1-1 is processed in parallel with all other non-key position data packages. Before processing task S1 is completed, other key position data packages are in an unprocessable state. When processing task S1 is completed, the state of key position data package S2-1 is switched to processable. Since map data packages S2-2 to S2-5 have already started parallel processing in advance, the remaining processing time of processing task S2 can be greatly shortened, and processing task S2 can be completed quickly. Other processing tasks are similar and will not be repeated here.
[0116] S27: Publish the map data of the road section corresponding to the completed processing task.
[0117] By publishing the map data of the road sections corresponding to the completed processing tasks in segments in a timely manner, the timeliness is improved, and the published map data will not have data islands.
[0118] The above embodiments describe an implementation method when the road section extending direction includes one direction. The following describes an implementation method when the road section extending direction includes a first extending direction and a second extending direction.
[0119] See also Figure 8 , which is a flowchart of another method for generating map data provided in an embodiment of the present application.
[0120] The method comprises the following steps:
[0121] S31: Determine multiple processing tasks according to the connectivity attributes of the roads and the collected data of the roads.
[0122] The method for determining the processing task can refer to the description in S21 above, which will not be repeated here.
[0123] S32: Divide each processing task into a plurality of map data packages according to the map elements on the road section corresponding to each processing task.
[0124] The method for determining the map data package can refer to the description in S22 above, which will not be repeated here.
[0125] S33: Sort the processing tasks according to the first extension direction according to the spatial continuity relationship of the road sections corresponding to the processing tasks.
[0126] The road section extension direction in this scenario includes a first extension direction and a second extension direction, so it can also be sorted according to the second extension direction. In actual applications, since the collected data of the road section remains unchanged, the results of sorting according to the first extension direction and the second extension direction should be the same.
[0127] The specific processing task sorting method can refer to the description in S23 and will not be repeated here.
[0128] S34: sorting the plurality of map data packages corresponding to the respective processing tasks according to the first extension direction according to the position data included in each map data package.
[0129] The road section extension direction in this scenario includes a first extension direction and a second extension direction, so it can also be sorted according to the second extension direction. In actual applications, since the collected data of the road section remains unchanged, the results of sorting according to the first extension direction and the second extension direction should be the same.
[0130] The specific map data package sorting method can be found in the description of S24, which will not be repeated here.
[0131] S35: Determine the key position data package of each processing task according to the number of processing tasks.
[0132] When the road segment extension direction includes a first extension direction and a second extension direction, in order to ensure the processing efficiency in the parallel processing state and the integrity of the map data obtained by each processing task, the number of key position data packages is related to the specific location and the number of processing tasks. The key position data package is the first map data package of the corresponding processing task in at least one road segment extension direction.
[0133] The following describes them respectively in conjunction with the accompanying drawings.
[0134] The number of processing tasks is N, and N is a positive integer greater than 2. It is understandable that when the number of processing tasks is less than 2, the key position data package may not be set; the first or last map data package of any processing task may also be determined as the key position data package, both of which can avoid the situation where data islands appear in the published map data.
[0135] The following first describes the case where N is an odd number.
[0136] See also Fig. 9 , which is a schematic diagram of the principle provided by the embodiment of the present application Figure 2 .
[0137] When N is an odd number, the result of rounding N / 2 downward is determined as M, the first map data package of the first M processing tasks is used as the key position data package, the last map data package of the last M processing tasks is used as the key position data package, and the first map data package and the last map data package of the M+1th processing task are used as the key position data package. The following takes N as 5 as an example for explanation.
[0138] Fig. 9 Take the processing task S1 corresponding to the section A-L1, S2 corresponding to the section L1-L2, S3 corresponding to the section L2-L3, S4 corresponding to the section L3-L4, and S5 corresponding to the section L4-B as an example.
[0139] The first extending direction shown in the figure is from A to B, and the second extending direction is from B to A.
[0140] When the value of N is 5, including five processing tasks, N / 2 is equal to 2.5, and the value of M after rounding down is 2.
[0141] At this time, the first map data package of the first two processing tasks is used as the key data package, the last map data package of the last two processing tasks is used as the key data package, and the first map data package and the last map data package of the third processing task are used as the key data package.
[0142] When the processing task of the key position data package is the first unfinished map data package in the extension direction of any road section, the status can be processable, otherwise the status is unprocessable.
[0143] When scheduling processing tasks, S1-1 is the first unprocessed map data package in the first extension direction, so the status of S1-1 is processable; at the same time, S5-3 is the first unprocessed map data package in the second extension direction, so the status of S5-3 is processable; the status of S2-1, S3-1, S3-3 and S4-3 is unprocessable.
[0144] When all non-key data packages and key data packages in the processable state are processed in parallel, processing tasks S1 and S5 can be completed first, and the map data of the A-L1 section and the L4-B section are released at this time. Since A and B are connected to other roads besides road L, the map data of the A-L1 section and the L4-B section will not become data islands.
[0145] After processing tasks S1 and S5 are completed, S2-1 is the first unprocessed map data package in the first extension direction, and its status is changed to processable; S4-3 is the first unprocessed map data package in the second extension direction, and its status is changed to processable; the status of S3-1 and S3-3 is unprocessable.
[0146] Since S2-2, S2-3 and S2-4 are processed in advance, processing task S2 can be completed faster; since S4-1 and S4-2 are processed in advance, processing task S4 can be completed faster. In the embodiment of the present application, since the number of data packets for processing task S4 is small, it is assumed that processing task S4 is completed before processing task S2. At this time, the map data of the L3-L4 segment is released. Since L4 is connected to the L4-B segment, the map data of the L3-L4 segment will not become isolated data.
[0147] Then the processing task S2 is completed, and the map data of the L1-L2 segment is released. Since L1 is connected to the A-L1 segment, the map data of the L1-L2 segment will not become isolated data.
[0148] When processing task S2 is completed, S2-1 is the first unprocessed map data package in the first extension direction, and its status is changed to processable; when processing task S4 is completed, S3-3 is the first unprocessed map data package in the second extension direction, and its status is changed to processable. At this time, processing task S3 can access the processing results of processing tasks S2 and S4. When processing task S3 is completed, the map data of the L2-L3 segment is released. Since L2 is connected to the L1-L2 segment, and L3 is connected to the L3-L4 segment, the map data of the L2-L3 segment will not become isolated data.
[0149] It should be noted that the reason why two key position data packages are set for the M+1th, or the third, processing task is: on the one hand, for the middle processing task, since there are two road section extension directions at this time, it is necessary to access the data in the two processing directions to ensure that the map data can reflect the continuous change characteristics of the actual road; on the other hand, since it is impossible to predict in advance the completion speed of the processing tasks in the two road section extension directions, the middle processing task is selected to set two key position data packages. Through the dichotomy method, the map data release speed in the two road section extension directions can be basically balanced, that is, the time interval before and after the states of S3-1 and S3-3 in the figure are switched to processable is relatively short, thereby improving the timeliness of map data release.
[0150] For ease of understanding, the following example is used to illustrate that, assuming that the current processing task S3 only selects S3-1 as the key position data package, and S3-3 is a non-key position data package, and S3-3 can be processed in parallel normally, then S3-3 and S4-1 can be processed in parallel, and S3-3 and S4-1 are adjacent map data packages, but S3-3 and S4-1 belong to different processing tasks. At this time, when processing S3-3, it is impossible to obtain the map data of the road section L3-L4 of the connected processing task S4 (because S4 has not been completed), which may cause the corresponding map data of S3-3 to be inconsistent or mutated with the map data of S4-1, and cannot reflect the continuous change characteristics of the actual road. Therefore, it is necessary to determine that both S3-1 and S3-3 are key position data packages.
[0151] For another example, if processing task S3 only selects S3-1 as the key position data package, but processing task S4 selects S4-1 and S4-3 as the key position data package, it will lead to an unbalanced speed of publishing map data in the two extension directions. Specifically, after processing task S5 is completed, the status of S4-3 becomes processable, but since processing tasks S2 and S3 may not be completed at this time, S4-1 is still in an unprocessable state, so processing task S4 can never be completed. This results in the map data of the second extension direction no longer being published, and S4 can only be completed after S2 and S3 of the first extension direction are completed in turn, which reduces the timeliness of map data release.
[0152] See also Fig.10 , which is a schematic diagram of the principle provided by the embodiment of the present application Figure 3 .
[0153] When N is an even number, the first map data package of the first N / 2-1 processing tasks is used as the key position data package, the last map data package of the last N / 2-1 processing tasks is used as the key position data package, and the first map data package and the last map data package of the N / 2th and N / 2+1th processing tasks are used as the key position data package. The following takes N as 4 as an example for explanation.
[0154] Fig.10 Take the processing task S1 corresponding to the section A-L1, S2 corresponding to the section L1-L2, S3 corresponding to the section L2-L3, and S4 corresponding to the section L3-B as an example.
[0155] The first extending direction shown in the figure is from A to B, and the second extending direction is from B to A.
[0156] When the value of N is 4, it includes 4 processing tasks, N / 2 is equal to 2, and N / 2-1 is equal to 1.
[0157] At this time, the first map data package of the first processing task is used as the key data package, the last map data package of the last processing task is used as the key data package, and the first map data package and the last map data package of the second and third processing tasks are used as the key data package. At this time, the key data packages are: S1-1, S2-1, S2-4, S3-1, S3-3, S4-3.
[0158] When scheduling processing tasks, S1-1 is the first unprocessed map data package in the first extension direction, so the status of S1-1 is processable; at the same time, S4-3 is the first unprocessed map data package in the second extension direction, so the status of S4-3 is processable; the status of S2-1, S2-4, S3-1 and S3-3 is unprocessable.
[0159] When all non-key data packages and key data packages in the processable state are processed in parallel, processing tasks S1 and S4 can be completed first, and the map data of the A-L1 section and the L3-B section are released at this time. Since A and B are connected to other roads besides road L, the map data of the A-L1 section and the L3-B section will not become data islands.
[0160] After processing tasks S1 and S4 are completed, S2-1 is the first unprocessed map data package in the first extension direction, and its status is changed to processable; S3-3 is the first unprocessed map data package in the second extension direction, and its status is changed to processable; the status of S2-4 and S3-1 is unprocessable.
[0161] In the embodiment of the present application, since the number of map data packages in the processing task S3 is small, it is assumed that the two map data packages S3-2 and S3-3 in the processing task S3 can be processed before the three map data packages S2-1, S2-2 and S2-3. At this time, S3-1 is the first unprocessed map data package in the second extension direction, and its status is changed to processable.
[0162] When S3-1 is processed, processing task S3 is completed. At this time, the map data of the L2-L3 section is released. Since L3 is connected to the road section L3-B, the map data of the L2-L3 section will not become a data island. And since S3-2 is processed in advance, processing task S3 can be completed faster.
[0163] At this time, S2-4 becomes the only unprocessed map data package in the two extension directions, and its status changes to processable. Since S2-2 and S2-3 are processed in advance, processing task S2 can be completed faster. When processing task S2 is completed, the map data of the L1-L2 segment is released. Since L1 is connected to the A-L1 segment and L2 is connected to the L2-L3 segment, the map data of the L1-L2 segment will not become isolated data.
[0164] It should be noted that the reason why two key position data packages are set for the N / 2th and N / 2+1th processing tasks, that is, the second processing task and the third processing task, is: on the one hand, for the middle processing task, since there are two road extension directions at this time, it is necessary to access the data in the two processing directions to ensure that the map data can reflect the continuous change characteristics of the actual road; on the other hand, selecting the two middle processing tasks to set two key position data packages can basically balance the map data release speed in the two road extension directions, thereby improving the timeliness of map data release.
[0165] S36: Parallel processing is performed on all non-key position data packets and key position data packets in a processable state.
[0166] S37: Publish the map data of the road section corresponding to the completed processing task.
[0167] In summary, by utilizing the solution provided in the embodiment of the present application, the map data of the road sections corresponding to the completed processing tasks can be published in sections and in a timely manner, thereby realizing the publication of map data in the extension directions of the two road sections, improving timeliness, and ensuring the integrity of the map data while ensuring concurrent processing by setting the key position data package.
[0168] Based on the method for generating map data provided in the above embodiments, the embodiment of the present application further provides a device for generating map data, which will be described in detail below with reference to the accompanying drawings.
[0169] See also Fig.11 , which is a schematic diagram of a map data generating device provided in an embodiment of the present application.
[0170] The device includes a determining unit 61 , a selecting unit 62 and a processing unit 63 .
[0171] The determination unit 61 is used to determine a plurality of processing tasks and a plurality of map data packages corresponding to each processing task according to the collected data.
[0172] The road sections corresponding to the various processing tasks are continuous, and each processing task is used to generate map data of the corresponding road section. Each of the map data packages includes part of the collected data of the corresponding processing task.
[0173] The selection unit 62 is used to determine at least one key position data package from a plurality of map data packages corresponding to each processing task according to the extending direction of the road section.
[0174] When the key position data package is the first unprocessed map data package in the extension direction of the road section, the status is processable, otherwise the status is unprocessable.
[0175] The processing unit 63 is used for processing all non-key position data packets and key position data packets in a processable state in parallel.
[0176] The processing unit 63 is further used to publish the map data of the road section corresponding to the completed processing task.
[0177] The specific functions of the above determination unit 61, selection unit 62 and processing unit 63 may correspond to the steps in the above method embodiment, which will not be described in detail here.
[0178] Exemplarily, the above-mentioned determination unit 61, selection unit 62, processing unit 63, etc. may be implemented by hardware, or may be implemented by software.
[0179] When implemented by software, the above units are applications running on computing devices, such as computing engines. Applications can be provided in the form of virtualization services. Virtualization services may include virtual machine (VM) services, bare metal server (BMS) services, and container services. Among them, VM services can be services that use virtualization technology to virtualize virtual machine resource pools on multiple physical hosts to provide users with VMs on demand for use. BMS services are services that virtualize BMS resource pools on multiple physical hosts to provide users with BMS on demand for use. Container services are services that virtualize container resource pools on multiple physical hosts to provide users with containers on demand for use. VM is a simulated virtual computer, that is, a logical computer. BMS is a high-performance computing service that can be elastically scalable, with computing performance that is no different from that of traditional physical machines, and has the characteristics of secure physical isolation. Containers are a kernel virtualization technology that can provide lightweight virtualization to achieve the purpose of isolating user space, processes, and resources. It should be understood that the VM service, BMS service and container service in the above-mentioned virtualization services are only specific examples. In actual applications, virtualization services can also be other lightweight or heavyweight virtualization services, which are not specifically limited here.
[0180] When implemented by hardware, the above units may include at least one computing device, such as a server, etc. Alternatively, the above units may also be devices implemented by using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), etc. The above PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0181] The present application also provides a computing device, which is described in detail below with reference to the accompanying drawings.
[0182] See also Fig.12 , which is a schematic diagram of a computing device provided in an embodiment of the present application.
[0183] Computing device 1000 includes a bus 1002 , a processor 1004 , a memory 1006 , and a communication interface 1008 .
[0184] The processor 1004, the memory 1006 and the communication interface 1008 communicate with each other via the bus 1002. The computing device 1000 may be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 1000.
[0185] The bus 1002 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. Fig.12 The bus 1002 may include a path for transmitting information between various components of the computing device 1000 (eg, the memory 1006, the processor 1004, and the communication interface 1008).
[0186] The processor 1004 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0187] The memory 1006 may include a volatile memory, such as a random access memory (RAM). The memory 1006 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0188] The memory 1006 stores executable program codes, and the processor 1004 executes the executable program codes to implement the aforementioned method for generating map data. Specifically, the memory 1006 stores instructions for executing and implementing the method for generating map data.
[0189] The communication interface 1008 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1000 and other devices or a communication network.
[0190] The embodiment of the present application also provides a computing device cluster, which is described in detail below with reference to the accompanying drawings.
[0191] See also Fig.13 , which is a schematic diagram of a computing device cluster provided in an embodiment of the present application.
[0192] The computing device cluster includes at least one computing device. The computing device may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0193] like Fig.13 As shown, the computing device cluster includes multiple computing devices 1000. The memory 1006 in the computing device 1000 in the computing device cluster may store the same instructions for executing the method for generating map data.
[0194] In some possible implementations, one or more computing devices 1000 in the computing device cluster may also be used to execute part of the instructions of the method for generating map data. In other words, a combination of one or more computing devices 1000 may jointly execute the instructions of the method for generating map data.
[0195] Fig.14 A possible implementation is shown. Fig.14 As shown, two computing devices 1000A and 1000B are connected via a communication interface 1008. The memory in the computing device 1000A stores instructions for executing the functions of the processing unit 63, that is, the computing device 1000A is used to process all non-key position data packets and key position data packets in a processable state in parallel, and can also publish map data of the road section corresponding to the completed processing task.
[0196] The memory in the computing device 1000B stores instructions for executing the functions of the determining unit 61 and the selecting unit 62. In other words, the memory 1006 of the computing devices 1000A and 1000B stores instructions for determining multiple processing tasks and multiple map data packages corresponding to each processing task according to the collected data, and determining at least one key position data package from the multiple map data packages corresponding to each processing task according to the extension direction of the road section of the actual road.
[0197] Further, the computing device 1000A may also store instructions for the functions of the determination unit 61 and the selection unit 62 , and the computing device 1000B may also store instructions for the functions of the processing unit 63 .
[0198] Fig.14The connection method between the computing device clusters shown may be based on the fact that the map data generation method provided in this application may involve a large amount of collected data, so it may require huge computing power as support, and therefore may involve more computing device nodes.
[0199] In another possible implementation, the functions implemented by the determination unit 61, the selection unit 62, and the processing unit 63 may be respectively executed by three different computing devices.
[0200] It should be understood that Fig.14 The functions of the computing device 1000A shown in FIG. 1000A may also be completed by multiple computing devices 1000. Similarly, the functions of the computing device 1000B may also be completed by multiple computing devices 1000.
[0201] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.15 A possible implementation is shown. Fig.15 As shown, two computing devices 1000C and 1000D are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 1006 in the computing device 1000C stores instructions for executing the function of the processing 63. At the same time, the memory 1006 in the computing device 1000D stores instructions for executing the functions of the determining unit 61 and the selecting unit 62.
[0202] It should be understood that Fig.15 The functions of the computing device 1000C shown in FIG. 1000A may also be completed by multiple computing devices 1000. Similarly, the functions of the computing device 1000D may also be completed by multiple computing devices 1000.
[0203] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state hard disk), etc. The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned method for generating map data. The embodiment of the present application also provides another computer-readable storage medium. The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned method for generating map data.
[0204] The embodiment of the present application also provides a computer program product containing instructions. The computer program product may be a software or program product containing instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the above-mentioned method for generating map data. The embodiment of the present application also provides a computer program product containing instructions. When the computer program product is run on at least one computing device, the at least one computing device executes the above-mentioned method for generating map data.
[0205] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items.
[0206] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The device embodiments described above are merely schematic, wherein the units and modules described as separate components may or may not be physically separated. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art can understand and implement it without paying creative work.
[0207] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for generating map data, characterized in that: The method comprises: Determine, according to the road collection data, a plurality of processing tasks and a plurality of map data packages corresponding to each of the processing tasks, the road sections corresponding to the processing tasks are continuous, each of the processing tasks is used to generate map data of the corresponding road section, and each of the map data packages includes part of the collection data corresponding to the processing task; According to the extension direction of the road section, at least one key position data package is determined from the multiple map data packages corresponding to each processing task; the key position data package is the first map data package of the corresponding processing task in the extension direction of the road section, and when the key position data package is the first unprocessed map data package in the extension direction of the road section, the state is processable, otherwise the state is unprocessable; All non-key position data packets and the key position data packets in a processable state are processed in parallel.
2. The method according to claim 1, characterized in that The extending direction of the road section is from the first road section to the last road section; The step of determining at least one key position data package from a plurality of map data packages corresponding to each of the processing tasks according to the extending direction of the road section includes: sorting the processing tasks and the multiple map data packages corresponding to the processing tasks according to the extending direction of the road section; The first map data package corresponding to each of the processing tasks is determined as the key position data package.
3. The method according to claim 2, characterized in that The step of sorting the processing tasks and the plurality of map data packages corresponding to the processing tasks according to the extension direction of the road section specifically includes: According to the spatial continuity relationship of the road sections corresponding to the processing tasks, the processing tasks are sorted according to the extension direction of the road sections; According to the position data included in each of the map data packages, the multiple map data packages corresponding to the processing tasks are sorted according to the extension direction of the road section.
4. The method according to claim 1, characterized in that: The road section extending direction includes a first extending direction and a second extending direction, the first extending direction extending from the first road section to the last road section, and the second extending direction extending from the last road section to the first road section; The number of the processing tasks is N, where N is a positive integer greater than 2. The determining of at least one key position data package from a plurality of map data packages corresponding to each of the processing tasks according to the extension direction of the road section includes: sorting the processing tasks and the multiple map data packages corresponding to the processing tasks according to the first extending direction; When N is an odd number, the result of rounding N / 2 downward is determined as M, the first map data package of the first M processing tasks is used as the key position data package, the last map data package of the last M processing tasks is used as the key position data package, and the first map data package and the last map data package of the M+1th processing task are used as the key position data package; When N is an even number, the first map data package of the first N / 2-1 processing tasks is used as the key position data package, the last map data package of the last N / 2-1 processing tasks is used as the key position data package, and the first map data package and the last map data package of the N / 2th and N / 2+1th processing tasks are used as the key position data package.
5. The method according to claim 4, characterized in that The step of sorting the processing tasks and the plurality of map data packages corresponding to the processing tasks according to the first extension direction specifically includes: According to the spatial continuity relationship of the road sections corresponding to the processing tasks, the processing tasks are sorted according to the first extension direction; According to the position data included in each of the map data packages, the plurality of map data packages corresponding to the processing tasks are sorted according to the first extension direction.
6. The method according to any one of claims 1 to 5, characterized in that Determining a plurality of processing tasks and a plurality of map data packages corresponding to each of the processing tasks according to the collected data includes: Determine a plurality of processing tasks according to the connectivity attribute of the road and the collected data of the road, wherein the road length corresponding to each processing task is in a first length interval, and the connectivity attribute is used to indicate a ramp and an intersection of the road; According to the map elements on the road section corresponding to each processing task, each processing task is divided into multiple map data packages, the road length corresponding to each map data package is in a second length interval, the first length interval is greater than the second length interval, and the map elements are one or more of the following: intersection, ramp, toll station.
7. The method according to claim 1, characterized in that The parallel processing of all non-key position data packets and the key position data packets in a processable state includes: Parallel processing is performed on all non-key position data packages and the collected data included in the key position data package in a processable state, wherein the key position data package in a processable state is specifically processed as follows: Determine the completed processing task adjacent to the key position data package as the first processing task; The key position data package is processed using the map data of the road section corresponding to the first processing task.
8. The method according to claim 1, characterized in that After the parallel processing of all non-key position data packets and the key position data packets in a processable state, the method further includes: Publish the map data of the road section corresponding to the completed processing task.
9. A map data generating device, characterized in that: The map data generating device comprises: a determining unit, a selecting unit and a processing unit; The determining unit is used to determine a plurality of processing tasks and a plurality of map data packages corresponding to each of the processing tasks according to the collected data, the road sections corresponding to the respective processing tasks are continuous, each of the processing tasks is used to generate map data of the corresponding road section, and each of the map data packages includes part of the collected data corresponding to the processing task; The selection unit is used to determine at least one key position data package from the multiple map data packages corresponding to each processing task according to the extension direction of the road section; when the key position data package is the first unprocessed map data package in the extension direction of the road section, the state is processable, otherwise the state is unprocessable; The processing unit is used to process all non-key position data packets and the key position data packets in a processable state in parallel.
10. A computer equipment cluster, characterized in that: The computer device cluster includes at least one computer device; The at least one computer device comprises at least one processor and at least one memory, wherein the at least one memory stores computer-readable instructions; The at least one processor executes the computer-readable instructions so that the computer device cluster executes the method for generating map data according to any one of claims 1 to 8.
11. A storage medium, characterized in that: storing computer readable instructions; The computer-readable instructions are used to implement the method for generating map data according to any one of claims 1 to 8.
Citation Information
Patent Citations
State driven mobile search
CN102696030A
Map path planning method and system based on network path choice algorithm
CN106197449A
Map making method, device and system
CN112632205A
Map data processing method, device and system, and storage medium
CN113918666A
Map data operation task processing method and device, medium and computer equipment
CN115827806A
