Vehicle driving route generation method, system, computer equipment and storage medium
Through the trajectory matching calculation of vehicle trajectory points and the identification of turning intersections, we can identify and delete segment clusters with drifting trajectory points on two-way roads, solve the problem of route matching errors and navigation detours when vehicles are driving on two-way roads, and improve the trajectory Match accuracy.
Patent Information
- Application Number
- CN202110865168.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-29
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-07-29
AI Technical Summary
When a vehicle is driving on a two-way road, trajectory point drift leads to route matching errors and navigation detours. It is difficult for existing technology to accurately handle this situation.
By performing trajectory matching calculation on all trajectory points of the vehicle, the initial driving route is generated, turning intersections are identified and target turning trajectory points are obtained to form a cluster of turning trajectory points. It is determined whether the trajectory point drift occurs in the road segment cluster, and if so, the road segment cluster is deleted. , adjust the remaining road segments to obtain the final driving route.
It improves the accuracy of trajectory matching, corrects wrong routes caused by trajectory point drift, and provides accurate vehicle trajectory and behavior analysis basis.
Smart Images

Figure CN113720341B
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle driving technology, and in particular to a vehicle driving route generation method, system, computer equipment and storage medium. Background Art
[0002] The on-board GPS records the relevant data information during the truck's driving process. By analyzing this data information, the vehicle's driving route and status can be obtained. However, due to the equipment, the various data recorded by the GPS data points have certain errors, especially the error of the position information, which makes it difficult to analyze the truck's driving trajectory when the roads are dense.
[0003] Track matching technology can be used to correct the location information of the truck's track points. Track matching usually combines electronic maps to search for roads around each recorded track point, and then selects the best matching road for each track point through some algorithms, matches all GPS track points to the road network on the electronic map, and obtains the corresponding optimal route, which can help with the subsequent analysis of the truck's driving track and behavior, so as to more accurately count the mileage of the truck and control the cost of the truck's patrol.
[0004] On the other hand, there are errors between map data and real roads, as well as errors between the map representation and real roads, which will affect the accuracy of the match. For example, real roads have a certain width, and electronic maps usually record the position of their center lines. This means that even if the GPS points recorded during the truck's driving are relatively accurate, there will be deviations from the roads on the electronic map.
[0005] Vehicle position navigation on a two-way road can be calculated in two directions. If the trajectory point drifts to the position space projection disorder, it will also cause errors in navigation and matching calculation. In reality, vehicles can turn around at any point on a two-way road, or leave and enter the road. If the trajectory point drifts, then when the navigation performs trajectory matching to calculate the route, these may cause the navigation calculation route to take a detour. Summary of the invention
[0006] The present application provides a vehicle driving route generation method, system, computer device and storage medium to solve the problem of route matching error and navigation detour at a two-way road intersection caused by the drift of the vehicle's trajectory point.
[0007] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a vehicle driving route generation method, including: performing trajectory matching calculations on all trajectory points of the vehicle to generate an initial driving route consisting of multiple road sections; marking the road sections with unique road IDs that match the roads; traversing the road sections to check out road section clusters formed by multiple road sections with the same road IDs; judging whether trajectory point drift occurs in the road section clusters; if so, deleting the road section clusters; adjusting the remaining road sections to obtain the final driving route.
[0008] As a further improvement of the present application, judging whether trajectory point drift occurs in a road segment cluster includes: when the driving directions of the first road segment and the last road segment in the road segment cluster are different, judging whether the distance between trajectory points within the entry end position and the exit end position of the road segment cluster meets preset conditions.
[0009] As a further improvement of the present application, the preset condition includes: the maximum distance between the entry end position and all trajectory points within the entry end and the exit end range is less than a preset threshold.
[0010] As a further improvement of the present application, turning intersections are identified for all trajectory points, and only one target turning trajectory point is taken for each turning intersection.
[0011] As a further improvement of the present application, at least one turning trajectory point is obtained in chronological order according to the change in the direction of the connection line between each trajectory point and the change in the driving direction angle; the last turning point in the chronological order is taken as the target turning trajectory point.
[0012] As a further improvement of the present application, the at least one turning trajectory point identified is used as a center point one by one, and the trajectory points before and after the turning trajectory point are expanded and traversed to identify the turning trajectory point cluster.
[0013] As a further improvement of the present application, the turning trajectory point cluster is obtained by expansion traversal identification, including: judging one by one whether the trajectory points before and after the turning trajectory point all meet the distance condition and the collection time interval condition, and marking the trajectory points that meet the conditions as new turning trajectory points until encountering those that do not meet the conditions.
[0014] In order to solve the above technical problems, another technical solution adopted by the present application is: to provide a vehicle driving route generation system, including: a matching module, which performs trajectory matching calculations on all trajectory points of the vehicle and generates an initial driving route consisting of multiple road sections; the road section is marked with a unique road ID of the matched road; an inspection module, which traverses the road section and checks out the road section clusters formed by multiple road sections with the same road ID; a judgment module, which judges whether the road section cluster has trajectory point drift; if so, deletes the road section cluster; a generation module, which adjusts the remaining road sections to obtain the final driving route.
[0015] In order to solve the above technical problems, another technical solution adopted in the present application is: to provide a computer device, the computer device includes a processor and a memory coupled to the processor, the memory stores program instructions, and when the program instructions are executed by the processor, the processor executes the steps of any one of the above-mentioned vehicle driving route generation methods.
[0016] In order to solve the above technical problems, another technical solution adopted by the present application is: providing a storage medium storing a program file capable of implementing any of the above vehicle driving route generation methods.
[0017] The beneficial effect of the present application is as follows: the vehicle driving route generation method of the present application generates initial driving routes of multiple road sections by performing trajectory matching calculations on all trajectory points of the vehicle, and obtains road section clusters formed by multiple road sections with the same road ID, and then performs trajectory point drift judgment on the road section clusters, thereby deleting the road section clusters corresponding to the trajectory points that produce drift, and obtaining the final accurate driving route, so that the erroneous route caused by trajectory point drift is deleted, the accuracy of trajectory matching is improved, and an accurate basis is provided for the subsequent analysis of vehicle driving trajectory and behavior. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a schematic flow chart of a method for generating a vehicle driving route according to an embodiment of the present invention;
[0019] Figure 2 is a schematic diagram of functional modules of a vehicle driving route generation system according to an embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of the structure of a computer device according to an embodiment of the present invention;
[0021] Figure 4 It is a schematic diagram of the structure of the storage medium of an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] The terms "first", "second", "third" in this application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the embodiments of this application, all directional indications (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the steps or units listed, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0024] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0025] Figure 1 FIG. 1 is a flow chart of a method for generating a vehicle driving route according to an embodiment of the present invention. It should be noted that if there are substantially the same results, the method of the present application is not limited to the method of generating a vehicle driving route according to an embodiment of the present invention. Figure 1 The process sequence shown is limited. Figure 1 As shown, the method includes:
[0026] Step S1: perform trajectory matching calculation on all trajectory points of the vehicle to generate an initial driving route consisting of multiple road segments; the road segment is marked with a unique road ID of the matched road.
[0027] It should be noted that a GPS device is generally installed on a vehicle, and the GPS device will periodically (about a few seconds) send the vehicle's trajectory to the server, that is, the trajectory point data sent, which includes the vehicle's speed at that time, the current time of obtaining the trajectory point, the vehicle's driving direction, longitude and latitude information, etc. The vehicle's GPS device collects the vehicle's trajectory point data during driving, and sends the trajectory point data to the server, which executes the vehicle driving route generation method to generate a driving route for the trajectory point data.
[0028] In this embodiment, after obtaining the vehicle trajectory point data, all trajectory point data are track matched and calculated to obtain the initial driving route of the vehicle. It can be known that the initial driving route includes the overall route of the vehicle in straight lines and turns. The intersection or map data compilation itself will cut the initial driving route into multiple sections, and the section is marked with a unique road ID of the matched road. The road ID is an attribute defined for each road in the electronic map. When the trajectory point matches the road, the road ID of the road can be known.
[0029] Before step S1, the method further includes: step S5: identifying turning intersections for all trajectory points, and taking only one target turning trajectory point for each turning intersection.
[0030] It should be noted that before all trajectory points are identified at turning intersections, all trajectory points are first pre-processed to remove points with too low speed and too close distance.
[0031] For example: check the speed of all trajectory points, and remove the trajectory points whose speed is less than the static trajectory point determination threshold. Preferably, the static trajectory point determination threshold is set to 0.5km / h; after filtering the static trajectory points, calculate the straight-line distance between two adjacent trajectory points and their driving direction angle difference. If the straight-line distance between adjacent trajectory points is less than the distance threshold, and the direction angle difference is less than the angle threshold, filter out the trajectory point that is later in the time sequence; preferably, the distance threshold and the angle threshold are set to 5m and 15° respectively; specifically, after arranging all trajectory points in time sequence, set the starting trajectory point (i.e., the first trajectory point) as the reference point p1, and determine whether the straight-line distance and driving direction angle relationship between the second trajectory point and p1 needs to be filtered. If the filtering conditions are met, filter out the second trajectory point, and continue to determine the subsequent trajectory points; if not, set the second trajectory point as the reference point p1, and continue to determine the subsequent trajectory points. The trajectory points at the turning point are identified and preprocessed through the trajectory point position information and driving direction information recorded by the vehicle, so as to reduce the calculation error rate during the subsequent trajectory matching calculation.
[0032] In this embodiment, since the vehicle travels slower on a curved road than on a straight road, the track points recorded by the vehicle's GPS device at the curve are denser than those on the straight road. If the track points at the curve are too dense, once the overall drift is large, it will have a great impact on the subsequent track matching calculation. In actual driving, since the road is a two-way road, there is a high probability that the track points will drift when the vehicle turns, so the impact of more track points is superimposed. Only one target turning track point is retained. When the matching calculation is performed, the logical relationship before and after is considered, so it is easy to match it to the real road, reducing the probability of errors in the matching calculation.
[0033] Furthermore, step S5 specifically includes: obtaining at least one turning trajectory point according to the change in the direction of the connection line between each trajectory point and the change in the driving direction angle in time sequence.
[0034] Specifically, starting from the second trajectory point, the direction change of the connection line between adjacent trajectory points and the angle change of the driving direction are calculated one by one until the penultimate trajectory point; the specific calculation process includes: when calculating the i-th trajectory point p i When , find the earliest point whose cumulative distance is within the preset threshold (for example, 30m) as the front-end reference trajectory point p prev If there is no track point within the preset threshold (e.g. 30m), then directly select the i-1th point; similarly, find the back-end reference track point p next , then calculate from p prev Point to p i The angle between the vector and the true north direction is θ1, and the angle between p i Point to p next The vector of the north direction has an angle θ2, and finally calculate their angle dθ1; then find the trajectory point p prev With trajectory point p next The recorded driving directions are calculated, and their included angle dθ2 is calculated: the change in the direction of the connecting line between each track point and the change in the driving direction angle are added according to the weights as the turning angle change value of the i-th track point. Preferably, the calculation formula of the turning angle change value in this embodiment is: dθ=0.6dθ1+0.4dθ2. If the calculated turning angle change value is greater than 60°, the i-th track point p i Marked as turning trajectory point.
[0035] Furthermore, at least one identified turning trajectory point is taken as the center point one by one, and the trajectory points before and after the turning trajectory point are expanded and traversed to identify the turning trajectory point cluster.
[0036] In this embodiment, the vehicle usually records multiple trajectory points near the turning trajectory point, but they may not be fully identified in the turning trajectory point identification in the above steps, so expansion calculation is required to identify the turning trajectory points adjacent to the previously identified turning trajectory points.
[0037] Furthermore, the expansion traversal identification to obtain the turning trajectory point cluster includes: determining one by one whether the trajectory points before and after the turning trajectory point all meet the distance condition and the collection time interval condition, and marking the trajectory points that meet the conditions as new turning trajectory points until encountering those that do not meet the conditions.
[0038] Specifically, traverse all trajectory points and for the trajectory point p marked as a turning trajectory point turn Do the following: Set the expansion distance threshold d expis 20 meters, first move towards the turning trajectory point p turn Before expansion: Set the turning trajectory point p turn is the current trajectory point p pres , and initialize the cumulative expansion distance d total = 0, calculate p pres The straight-line distance d from the previous trajectory point p and time difference Δt, if the straight-line distance d p +d total <d exp If the time difference Δt is less than a preset time interval threshold (e.g., 2s), the previous trajectory point is marked as a turning trajectory point, and the cumulative expansion distance d is updated. total is d total +d p , and set the previous trajectory point as the current trajectory point p pres , continue to expand forward until the judgment condition is not met or d total >d exp ; It should be noted that when d total >d exp When , it will no longer expand backwards for traversal recognition, otherwise it will continue to expand backwards for traversal recognition. Then expand backwards again: set the turning trajectory point p turn is the current trajectory point p pres , and initialize the cumulative driving distance d total is d total +d p That is, after expanding and traversing the trajectory point before the turning trajectory point, when continuing to expand and traverse the identification backward, the accumulated driving distance is not reset to 0, but continues to accumulate. The purpose is to ensure that the total expansion distance when expanding and traversing the turning trajectory point before and after does not exceed the preset expansion distance threshold. Calculate p pres The straight-line distance d to the next trajectory point p and time difference Δt, if the straight-line distance d p +d total <d exp If the time difference Δt is less than a preset time interval threshold (e.g., 2s), the next trajectory point is marked as a turning trajectory point, and the cumulative expansion distance d is updated. total is d total +d p , and set the next trajectory point as the current trajectory point p pres , continue to expand backward until the judgment condition is not met or d total >d exp It should be noted that when performing forward and backward expansion traversal recognition of turning trajectory points, there is no regulation on the order of forward or backward traversal recognition first, and recognition is performed according to actual conditions.
[0039] Furthermore, the last turning trajectory point in time sequence is taken as the target turning trajectory point.
[0040] In this embodiment, after the expansion traversal identification of all the trajectory points before and after the turning trajectory points is completed, all the identified turning trajectory points and the turning trajectory points identified by the expansion traversal are formed into a cluster of turning trajectory points. Since the speed of the vehicle on the turning road is slower than that on the straight road, the trajectory points recorded by the vehicle's GPS device at the turning are denser than those on the straight road. The trajectory points at the turning are too dense. Once the overall drift is large, it will have a great impact on the subsequent trajectory matching calculation. If the matching may be wrong in the future, the more such points, the greater the probability of matching errors. Therefore, only the last trajectory point of this class is retained, and other points are filtered out. When the matching calculation is considered, the logical relationship before and after can be matched to the real road, reducing the probability of errors in the matching calculation. In addition, only the last turning trajectory point in the time series of the turning trajectory point cluster is retained.
[0041] Step S2: traverse the road segments and check out the road segment clusters formed by multiple road segments with the same road ID.
[0042] It should be noted that the road ID of each section in the initial driving route can be obtained after performing trajectory matching calculation, and the section cluster formed by multiple sections with the same road ID can be obtained by checking the road ID of each section. For example, by performing route calculation on all trajectory points through the trajectory matching algorithm, the multiple sections in the initial driving route obtained are 2, 3, 4, 5, 5, 5, 5, 6, 7, 8, and the digital sequence represents the road ID of different sections, among which the four sections with road ID 5 are the section cluster.
[0043] Step S3: determine whether the road segment cluster has trajectory point drift; if so, delete the road segment cluster.
[0044] Specifically, according to the time sequence of vehicle travel, the driving directions of the first and last road segments in the road segment cluster are compared. If the driving directions are the same, no processing is done; if the driving directions are different, the vehicle enters from one end of this road segment and finally leaves from this end, and then it is determined whether the matching error is caused by the drift of the trajectory point at the turn; if it is the drift of the trajectory at the turn, all the road segments of this cluster are deleted from the initial driving route, otherwise the cluster data is retained. Subsequent analysis is performed on the matching route at the intersection of two-way roads to eliminate matching errors and detours caused by trajectory point drift, and improve the accuracy of trajectory matching.
[0045] It should be noted that the driving direction is the same and the same road section appears continuously in multiple sections. It may be that the driver is walking in one direction. Since the section is long, there will be more trajectory points. When calculating the trajectory matching, the sections between two trajectory points are added to multiple sections. This situation will occur, so it is a normal phenomenon. This application is to deal with inconsistent driving. If the driving direction is inconsistent, the vehicle must be turning around or turning at this time.
[0046] Further, judging whether trajectory point drift occurs in the road segment cluster includes: when the driving directions of the first road segment and the last road segment in the road segment cluster are different, judging whether the distance between trajectory points within the entry end position and the exit end position range of the road segment cluster meets a preset condition.
[0047] Specifically, when the vehicle is traveling in different directions, the distance between the trajectory points within the range of the entry end position and the exit end position of the road segment cluster is calculated. It should be noted that the entry end position and the exit end position of the road segment cluster are actually the area range of the turning point. The number of trajectory points within this range may be one or more, because the calculation of the previous turning trajectory point recognition retains one trajectory point, but it is not guaranteed that the trajectory points at other turns are perfectly filtered out. It may be due to errors in the trajectory point recording and the drift point is not completely filtered out, resulting in the retention of a turning trajectory point calculated in the turning trajectory point recognition, but in fact, there may be multiple turning trajectory points remaining. Therefore, when judging the distance between the trajectory points within the range of the entry end position and the exit end position of the road segment cluster, it is necessary to judge the distance of all the trajectory points within the area.
[0048] Furthermore, the preset condition includes: the maximum distance between the entry end position and all trajectory points within the range of the entry end and the exit end is less than a preset threshold.
[0049] Specifically, the distance between the entry position of the road segment cluster and all the trajectory points within the entry and exit ranges is calculated. It should be noted that the entry position is the actual geographical location of the first road segment of the road segment cluster entered by the vehicle, and the exit position is the actual geographical location of the last road segment of the road segment cluster left by the vehicle. If the calculated maximum distance value is less than the preset threshold value of 15m, it is determined that the road segment cluster has trajectory point drift, and all the road segments of the road segment cluster are deleted from the initial driving route, otherwise the road segment cluster is retained.
[0050] Step S4: adjust the remaining road sections to obtain the final driving route.
[0051] Specifically, the initial driving routes of multiple road sections are generated by performing trajectory matching calculations on all vehicle trajectory points, and a road section cluster formed by multiple road sections with the same road ID is obtained. Then, the road section cluster is subjected to trajectory point drift judgment, so that the road section cluster corresponding to the drifting trajectory point is deleted, and the remaining road sections are adjusted to obtain the final accurate driving route. It is used in the vehicle trajectory point matching calculation program to provide a more accurate reference for vehicle trajectory and mileage analysis and driver performance evaluation.
[0052] The vehicle driving route generation method of the embodiment of the present invention generates an initial driving route consisting of multiple road sections by performing trajectory matching calculations on all vehicle trajectory points; the road sections are marked with unique road IDs that match the roads; the road sections are traversed to check the road section clusters formed by multiple road sections with the same road ID; it is determined whether the road section clusters have drifted in the trajectory points; if so, the road section clusters are deleted; the remaining road sections are adjusted to obtain the final driving route. The present invention obtains the accurate driving route of the vehicle by determining whether the vehicle trajectory points at the intersection of two-way roads have drifted, and deleting the road section clusters where the vehicle trajectory points have drifted. The trajectory points at the turning point are identified and pre-processed through the trajectory point position information and driving direction information recorded by the vehicle, simplifying the complexity of the route selection at the road intersection in the subsequent trajectory matching calculation; the matching route at the intersection of two-way roads is subsequently analyzed to eliminate matching errors and detours caused by trajectory point drift, thereby improving the accuracy of trajectory matching.
[0053] Figure 2 Schematic diagram of the functional modules of the vehicle driving route generation system of the embodiment of the present application. Figure 2 As shown, the vehicle driving route generation system 2 includes a matching module 21 , a checking module 22 , a judging module 23 and a generating module 24 .
[0054] The matching module 21 performs trajectory matching calculation on all trajectory points of the vehicle to generate an initial driving route consisting of multiple road segments; the road segments are marked with unique road IDs of the matched roads;
[0055] A checking module 22 traverses the road segments and checks out a road segment cluster formed by multiple road segments with the same road ID;
[0056] The judging module 23 judges whether the road segment cluster has trajectory point drift; if so, the road segment cluster is deleted;
[0057] The generation module 24 adjusts the remaining road sections to obtain the final driving route.
[0058] Optionally, determining whether trajectory point drift occurs in the road segment cluster includes: when the driving directions of the first road segment and the last road segment in the road segment cluster are different, determining whether the distance between trajectory points within the entry end position and the exit end position range of the road segment cluster meets a preset condition.
[0059] Optionally, the preset condition includes: a maximum distance between the entry end position and all trajectory points within the entry end and the exit end is less than a preset threshold.
[0060] Optionally, turning intersections are identified for all trajectory points, and only one target turning trajectory point is taken for each turning intersection.
[0061] Optionally, at least one turning trajectory point is obtained according to the change in the direction of the connection line between the trajectory points and the change in the driving direction angle in a time sequence;
[0062] The last turning point in time sequence is taken as the target turning trajectory point.
[0063] Optionally, at least one identified turning trajectory point is taken as a center point one by one, and the trajectory points before and after the turning trajectory point are expanded and traversed to identify the turning trajectory point cluster.
[0064] Optionally, it is determined one by one whether the trajectory points before and after the turning trajectory point all meet the distance condition and the collection time interval condition, and the trajectory points that meet the conditions are marked as new turning trajectory points until a trajectory point that does not meet the conditions is encountered.
[0065] For other details about the technical solutions for implementing each module in the vehicle driving route generation system in the above embodiment, please refer to the description of the vehicle driving route generation method in the above embodiment, which will not be repeated here.
[0066] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0067] See also Figure 3 , Figure 3 Schematic diagram of the structure of the computer device of the embodiment of the present application. Figure 3 As shown, the computer device 30 includes a processor 31 and a memory 32 coupled to the processor 31 .
[0068] The memory 32 stores program instructions. When the program instructions are executed by the processor 31, the processor 31 executes the steps of the vehicle driving route generation method in the above embodiment.
[0069] The processor 31 may also be referred to as a CPU (Central Processing Unit). The processor 31 may be an integrated circuit chip having signal processing capabilities. The processor 31 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0070] See also Figure 4 , Figure 4 Schematic diagram of the structure of the storage medium of the embodiment of the present application. The storage medium of the embodiment of the present application stores a program file 41 that can implement all the above methods, wherein the program file 41 can be stored in the above storage medium in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, or a terminal device such as a computer, a server, a mobile phone, and a tablet.
[0071] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0072] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the description and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A method for generating a vehicle driving route, characterized in that: include: S1, performing trajectory matching calculation on the target turning trajectory point of the vehicle turning intersection and the trajectory point of the non-turning intersection to generate an initial driving route consisting of multiple road segments; the road segment is marked with a unique road ID of the matched road; S2, traversing the road segments, and checking out a road segment cluster formed by multiple road segments with the same road ID; S3, judging whether the road segment cluster has trajectory point drift; If yes, delete the road segment cluster; S4, adjusting the remaining road sections to obtain the final driving route; Before step S1, the method further includes: S5, identifying turning intersections for all trajectory points, and taking only one target turning trajectory point for each turning intersection; The step S3 of determining whether the road segment cluster has trajectory point drift includes: When the driving directions of the first road segment and the last road segment in the road segment cluster are different, it is determined whether the distance between the trajectory points within the entry end position and the exit end position range of the road segment cluster meets the preset conditions; The preset conditions include: The maximum distance between the entry end position and all trajectory points within the entry end and the exit end is less than a preset threshold.
2. The vehicle driving route generation method according to claim 1, characterized in that: The step S5 comprises: S51, obtaining at least one turning trajectory point according to the change in the direction of the connection line between the trajectory points and the change in the angle of the driving direction in a chronological order; S52, taking the last turning point in time sequence as the target turning trajectory point.
3. The vehicle driving route generation method according to claim 2, characterized in that: Before step S52 and after step S51, the steps include: S50, taking the at least one identified turning trajectory point as a center point one by one, and performing expansion traversal identification to trajectory points before and after the turning trajectory point to obtain a turning trajectory point cluster.
4. The vehicle driving route generation method according to claim 3, characterized in that: The expansion traversal identifies the turning trajectory point clusters, including: It is determined one by one whether the trajectory points before and after the turning trajectory point all meet the distance condition and the collection time interval condition, and the trajectory points that meet the conditions are marked as new turning trajectory points until a trajectory point that does not meet the conditions is encountered.
5. A vehicle driving route generation system, the system being used to implement the steps of the vehicle driving route generation method according to any one of claims 1 to 4, characterized in that: It includes: A matching module performs trajectory matching calculation on the target turning trajectory point of the turning intersection and the trajectory point of the non-turning intersection to generate an initial driving route consisting of multiple road sections; The road segment is marked with a unique road ID that matches the road; A checking module traverses the road segments and checks out a road segment cluster formed by multiple road segments with the same road ID; A judgment module determines whether the road cluster has trajectory point drift; If yes, delete the road segment cluster; Generate a module and adjust the remaining road segments to get the final driving route.
6. A computer device, characterized in that: The computer device includes a processor and a memory coupled to the processor, wherein program instructions are stored in the memory, and when the program instructions are executed by the processor, the processor executes the steps of the vehicle driving route generation method as described in any one of claims 1-4.
7. A storage medium, characterized in that: A program file capable of implementing the vehicle driving route generation method as described in any one of claims 1 to 4 is stored.
