Global road network planning method, device, vehicle and storage medium for vehicles
By preprocessing the map and determining functional scenario working conditions, the frequency of calling the Floyd algorithm is reduced, the efficiency of vehicle path planning is improved, the problem of limited computing power of on-board hardware is solved, and the global road network planning of the low-speed autonomous driving system is realized.
Patent Information
- Application Number
- CN202210998367.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-19
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-08-19
AI Technical Summary
The computing power limitations of vehicle-mounted embedded hardware lead to multiple calls to the Floyd algorithm, which increases the complexity of path planning and reduces operating efficiency.
Record the target site map through the preset recording path and perform preprocessing to determine the actual starting point and end point of the vehicle, and select appropriate planning strategies based on different functional scenario working conditions to reduce the frequency of complex algorithm calls and improve algorithm operation efficiency.
It achieves point-to-point global road network planning for low-speed autonomous driving systems within a limited map range, improves the efficiency and accuracy of path planning, and reduces operating costs.
Smart Images

Figure CN115435803B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a global road network planning method, device, vehicle and storage medium for a vehicle. Background Art
[0002] In recent years, intelligent networked vehicles have been listed as one of the strategic development targets for a strong manufacturing country. It is clear that intelligent networked vehicles have information sharing, complex environment perception, intelligent decision-making, automated collaboration and other control functions through on-board sensor data fusion technology and multi-party network communication technology, and combined with ITS to achieve "efficient, safe, comfortable and energy-saving" intelligent travel. At present, L4 autonomous driving vehicles still face challenges such as high technical difficulty, high manufacturing cost, imperfect laws and regulations, insufficient mass production verification and market model to be explored. In contrast, low-speed smart vehicles such as autonomous driving shuttles within the region (such as park shuttles), autonomous driving transport vehicles in fixed scenarios (such as port transport vehicles) and automatic valet parking (such as parking lot AVP (Auto Valet Parking)) are easier to mass produce.
[0003] Based on the above low-speed area, the intelligent vehicle path planning in the scene includes global path planning and local path planning. Global path planning is to plan the optimal drivable path that meets the driving constraints of the intelligent vehicle based on environmental information (such as maps, obstacles, road boundaries), and has navigation capabilities; local path planning refers to the safe and drivable path that the intelligent vehicle quickly plans to avoid obstacles based on the global path. The following focuses on the global path planning algorithm.
[0004] In the related art, there are many mature algorithms for global path planning through several fixed nodes, such as Dijkstra algorithm and Floyd algorithm. Since Dijkstra algorithm is applicable to the shortest path of a single node, the calculation is invalid and the calculation is redundant. Therefore, the Floyd algorithm is introduced below. Floyd algorithm is used to find the shortest path between nodes in a given weighted graph. It solves the shortest path problem for any two points, mixed graphs, and graphs with negative weights. The essence of this algorithm is based on the iterative operation of the adjacency matrix of the graph. By setting the distance matrix and path matrix between any pair of points, the path search of a known graph is realized. It is an algorithm for solving the shortest path problem between any pair of points. The global distance matrix and the optimal path matrix are iteratively calculated by the Floyd algorithm, and the waypoint sequence in the path matrix is read to achieve fast and efficient global path planning.
[0005] However, in practical applications, due to the limitation of computing power of vehicle embedded hardware, the time complexity of Floyd algorithm is a challenge. Therefore, the improvement idea to be considered should be a more streamlined and reasonable planning path. Summary of the invention
[0006] The present application provides a global road network planning method, device, vehicle and storage medium for a vehicle to solve the problem that due to the limitation of the computing power of the on-board embedded hardware, the Floyd algorithm needs to be called multiple times, which increases the complexity of path planning and reduces the operating efficiency.
[0007] The first aspect of the present application provides a global road network planning method for a vehicle, comprising the following steps: recording a target site map according to a preset recorded path, and preprocessing the preset recorded path to obtain multiple path points; selecting multiple target nodes from the multiple path points, and extracting the coordinates of the multiple target nodes, and generating multiple paths according to the coordinates of the multiple target nodes based on a preset node distance matrix; and determining a first section where the actual starting point of the vehicle is located and a second section where the actual end point is located, and determining the current functional scenario working condition based on the actual starting point, the first section, the actual end point and the second section, and planning the global road network of the vehicle according to the planning strategy corresponding to the current functional scenario working condition, so that the path between the actual starting point and the actual end point is the shortest.
[0008] According to the above technical means, map information is used to classify and process the same working conditions to reduce the frequency of calling complex algorithms, save storage space, and improve the actual operating efficiency of the algorithm, thereby realizing point-to-point global road network planning of low-speed autonomous driving systems within a limited map range.
[0009] Furthermore, in one embodiment of the present application, the determining of the first road section where the actual starting point of the vehicle is located and the second road section where the actual end point is located includes: obtaining first position information of the actual starting point, second position information of the actual end point and third position information of the multiple path points, the third position information including a mapping relationship between the path points and the belonging road sections; based on the first position information, the second position information and the third position information, obtaining from the multiple path points a first path point with the shortest distance from the actual starting point and a second path point with the shortest distance from the actual end point; determining the first road section where the actual starting point of the vehicle is located according to the first path point, and determining the second road section where the actual end point of the vehicle is located according to the second path point.
[0010] According to the above technical means, flexible point-to-point path planning is achieved by determining the shortest path between each location information.
[0011] Further, in one embodiment of the present application, determining the current functional scenario operating condition based on the actual starting point, the first road section, the actual end point and the second road section includes: if the first road section and the second road section coincide, calculating the first difference between the first path point and the end node of the first road section, and the second difference between the second path point and the end node of the first road section; when the absolute value of the first difference is greater than the absolute value of the second difference, determining that the current functional scenario operating condition is the first functional scenario operating condition; when the absolute value of the first difference is equal to the absolute value of the second difference, determining that the current functional scenario operating condition is the second functional scenario operating condition; when the absolute value of the first difference is less than the absolute value of the second difference, determining that the current functional scenario operating condition is the third functional scenario operating condition.
[0012] According to the above technical means, different scenario conditions are determined through the relationship between the starting section and the end section and the difference between the starting point and the end point, which can prepare for calculating the shortest path.
[0013] Further, in one embodiment of the present application, determining the current functional scenario operating condition based on the actual starting point, the first road section, the actual end point and the second road section also includes: if the first road section and the second road section do not overlap, then when the end node of the first road section is equal to the start node of the second road section, determining that the current functional scenario operating condition is the fourth functional scenario operating condition; when the end node of the first road section is not equal to the start node of the second road section, determining that the current functional scenario operating condition is the fifth functional scenario operating condition.
[0014] According to the above technical means, different scenario conditions are determined through the relationship between the starting section and the end section and the difference between the starting point and the end point, which can prepare for calculating the shortest path.
[0015] Furthermore, in one embodiment of the present application, the global road network of the vehicle is planned according to the planning strategy corresponding to the current functional scenario working condition, including: when the current functional scenario working condition is the first functional scenario working condition, the preset node distance matrix information and the path segment name matrix information are updated according to preset values, and the global road network of the vehicle is planned according to the updated preset node distance matrix information and the path segment name matrix information; when the current functional scenario working condition is the second functional scenario working condition, an error message for planning the global road network of the vehicle is generated; when the current functional scenario working condition is the third functional scenario working condition or the fifth functional scenario working condition, the first difference value is updated. , the second difference, the end node of the first road section and the start node of the second road section are input into the preset Floyd algorithm function to obtain new preset node-to-node distance matrix information and new path segment name matrix information, and the global road network of the vehicle is planned according to the new preset node-to-node distance matrix information and the new path segment name matrix information; when the current functional scenario working condition is the fourth functional scenario working condition, the preset node-to-node distance matrix information is updated according to the end node of the first road section, the path segment name matrix information is updated according to the preset value, and the global road network of the vehicle is planned according to the updated preset node-to-node distance matrix information and path segment name matrix information.
[0016] According to the above technical means, the distance between each road section and the node is updated according to different scene conditions, which improves the operating efficiency of the algorithm and reduces the operating cost.
[0017] Furthermore, in one embodiment of the present application, the preset inter-node distance matrix is constructed based on a real map.
[0018] According to the above technical means, the distance between nodes of each path is obtained through the real map, which improves the accuracy of the path distance.
[0019] The second aspect of the present application provides a global road network planning device for a vehicle, including: a preprocessing module, used to record a target site map according to a preset recording path, and preprocess the preset recording path to obtain multiple path points; a generation module, used to select multiple target nodes from the multiple path points, and extract the coordinates of the multiple target nodes, and generate multiple paths according to the coordinates of the multiple target nodes based on a preset node distance matrix; and a planning module, used to determine a first section where the actual starting point of the vehicle is located and a second section where the actual end point is located, and determine the current functional scenario working condition based on the actual starting point, the first section, the actual end point and the second section, and plan the global road network of the vehicle according to the planning strategy corresponding to the current functional scenario working condition, so that the path between the actual starting point and the actual end point is the shortest.
[0020] Furthermore, in one embodiment of the present application, the planning module includes: a first acquisition unit, used to acquire first position information of the actual starting point, second position information of the actual end point and third position information of the multiple path points, the third position information including a mapping relationship between the path points and the belonging road sections; a second acquisition unit, used to acquire the first path point with the shortest distance from the actual starting point and the second path point with the shortest distance from the actual end point from the multiple path points based on the first position information, the second position information and the third position information; a first determination unit, used to determine the first road section where the actual starting point of the vehicle is located according to the first path point, and determine the second road section where the actual end point of the vehicle is located according to the second path point.
[0021] Further, in one embodiment of the present application, the planning module includes: a calculation unit, used to calculate the first difference between the first path point and the end node of the first section, and the second difference between the second path point and the end node of the first section if the first road section and the second road section coincide with each other; a second determination unit, used to determine that the current functional scenario operating condition is the first functional scenario operating condition when the absolute value of the first difference is greater than the absolute value of the second difference; determine that the current functional scenario operating condition is the second functional scenario operating condition when the absolute value of the first difference is equal to the absolute value of the second difference; and determine that the current functional scenario operating condition is the third functional scenario operating condition when the absolute value of the first difference is less than the absolute value of the second difference.
[0022] Furthermore, in one embodiment of the present application, the planning module also includes: a judgment unit, which is used to determine that the current functional scenario operating condition is the fourth functional scenario operating condition when the end node of the first section is equal to the start node of the second section if the first section and the second section do not overlap; and determine that the current functional scenario operating condition is the fifth functional scenario operating condition when the end node of the first section is not equal to the start node of the second section.
[0023] Furthermore, in one embodiment of the present application, the planning module includes: a first planning unit, which is used to update the preset node distance matrix information and the path segment name matrix information according to preset values when the current functional scenario working condition is the first functional scenario working condition, and plan the global road network of the vehicle according to the updated preset node distance matrix information and path segment name matrix information; a generation unit, which is used to generate error information for planning the global road network of the vehicle when the current functional scenario working condition is the second functional scenario working condition; and a second planning unit, which is used to update the first difference value, the second difference value and the error information for planning the global road network of the vehicle when the current functional scenario working condition is the third functional scenario working condition or the fifth functional scenario working condition. The value, the end node of the first road section and the starting node of the second road section are input into the preset Floyd algorithm function to obtain new preset node-to-node distance matrix information and new path segment name matrix information, and the global road network of the vehicle is planned according to the new preset node-to-node distance matrix information and the new path segment name matrix information; the third planning unit is used to update the preset node-to-node distance matrix information according to the end node of the first road section when the current functional scenario working condition is the fourth functional scenario working condition, update the path segment name matrix information according to the preset value, and plan the global road network of the vehicle according to the updated preset node-to-node distance matrix information and path segment name matrix information.
[0024] Furthermore, in one embodiment of the present application, the preset inter-node distance matrix is constructed based on a real map.
[0025] The third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the global road network planning method for the vehicle as described in the above embodiment.
[0026] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the global road network planning method for a vehicle as described in the above embodiment.
[0027] The embodiment of the present application records the target site map by pre-processing the preset recording path, obtains multiple path points, selects multiple target nodes and extracts multiple coordinates respectively, generates multiple paths based on the coordinates of multiple target nodes based on the preset node distance matrix, and then determines the first section where the actual starting point of the vehicle is located and the second section where the actual end point is located, and determines the current functional scenario working condition based on the actual starting point, the first section, the actual end point and the second section, and plans the global road network of the vehicle according to its corresponding planning strategy, so that the path between the actual starting point and the actual end point is the shortest, and classifies and processes the same working conditions through map information and stores them with labels to reduce the frequency of calling complex algorithms, save storage space, and improve the actual operation efficiency of the algorithm, thereby realizing point-to-point global road network planning of a low-speed automatic driving system within a limited map range. In this way, the problem of multiple calls to the Floyd algorithm due to the limitation of the computing power of the on-board embedded hardware is solved, which increases the complexity of path planning and reduces the operation efficiency.
[0028] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0030] Figure 1 A flowchart of a global road network planning method for a vehicle provided according to an embodiment of the present application;
[0031] Figure 2 This is an example diagram of a pre-recorded target site according to an embodiment of the present application;
[0032] Figure 3 is an example diagram of a distance matrix between nodes according to an embodiment of the present application;
[0033] Figure 4 This is an example diagram of the coordinates of each node according to an embodiment of the present application;
[0034] Figure 5 This is an example diagram of a matrix for identifying the road names of various road sections according to an embodiment of the present application;
[0035] Figure 6 This is an example diagram of different scenario working condition analysis according to an embodiment of the present application;
[0036] Figure 7 This is an example diagram of a global road network planning device for a vehicle according to an embodiment of the present application;
[0037] Figure 8It is a schematic diagram of the structure of a vehicle according to an embodiment of the present application.
[0038] Explanation of the reference numerals: 10 - global road network planning device for a vehicle; 100 - preprocessing module, 200 - generation module, 300 - planning module. DETAILED DESCRIPTION
[0039] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0040] The following describes the global road network planning method, device, vehicle and storage medium of the vehicle of the embodiment of the present application with reference to the accompanying drawings. In view of the limitation of the computing power of the on-board embedded hardware mentioned in the above background technology, the Floyd algorithm needs to be called multiple times, which increases the complexity of path planning and reduces the operating efficiency. The present application provides a global road network planning method for a vehicle, in which a target site map is recorded by a preset recording path and preprocessed to obtain multiple path points, multiple target nodes are selected and multiple coordinates are extracted respectively, based on a preset inter-node distance matrix, multiple paths are generated according to the coordinates of the multiple target nodes, and then the first section where the actual starting point of the vehicle is located and the second section where the actual end point is located are determined, and the current functional scenario working condition is determined according to the actual starting point, the first section, the actual end point and the second section, and the global road network of the vehicle is planned according to the corresponding planning strategy, so that the path of the actual starting point and the actual end point is the shortest, and the same working condition is classified and processed by map information and stored with labels to reduce the frequency of calling complex algorithms, save storage space, and improve the actual operating efficiency of the algorithm, thereby realizing point-to-point global road network planning of a low-speed automatic driving system within a limited map range. This solves the problem that due to the limited computing power of the on-board embedded hardware, the Floyd algorithm needs to be called multiple times, which increases the complexity of path planning and reduces operating efficiency.
[0041] Specifically, Figure 1 A schematic flow chart of a global road network planning method for a vehicle provided in an embodiment of the present application.
[0042] like Figure 1 As shown, the global road network planning method for the vehicle includes the following steps:
[0043] In step S101, a target site map is recorded according to a preset recording path, and the preset recording path is preprocessed to obtain a plurality of path points.
[0044] Specifically, Figure 2As shown, in order to meet the accuracy of the global road network planning of the vehicle, the example of this application makes full use of the target site map recorded by the preset recorded path. Since there are multiple redundant points in the preset recorded path, in order to achieve flexible "point-to-point" path planning, the embodiment of this application first needs to perform preprocessing such as redundant point deletion, coordinate conversion, and path smoothing on the preset recorded path to obtain multiple path points after preprocessing; secondly, construct a node distance matrix based on the target site map, thereby abstractly describing the topological relationship between each node, and store the multiple path points obtained after preprocessing in the matrix. Among them, the preset node distance matrix is constructed based on the real map.
[0045] In step S102, multiple target nodes are selected from multiple path points, and the coordinates of the multiple target nodes are extracted, and based on a preset inter-node distance matrix, multiple paths are generated according to the coordinates of the multiple target nodes.
[0046] Specifically, through the target site map recorded based on the preset recording path, firstly, multiple target nodes are selected from multiple path points, the selected target nodes are named and the coordinates of the multiple target nodes are extracted, and then based on the above preset node distance matrix and combined with the coordinates of the multiple target nodes, multiple paths are generated.
[0047] Specifically, if Figure 2 The pre-recorded target site map shown in FIG. 1 is a loop consisting of more than 1600 discontinuous path points. First, 8 nodes are defined in these discontinuous path points, such as Figure 3 As shown, its main purpose is to prepare for the subsequent intersection function; secondly, based on the selected 8 nodes, they are named one by one. The roads in the intersection can be named with odd numbers, and the straight roads can be named with even numbers; finally, as Figure 4 As shown in Figure 1, after establishing the node network and the corresponding road names, it is necessary to extract the coordinates of each node from the preprocessed node distance matrix to form 8 paths, so as to prepare for the subsequent analysis. Figure 5 As shown, the road section sorting in the embodiment of the present application is arranged in sequence, while the road section sorting under other working conditions is not arranged in sequence.
[0048] In step S103, the first section where the actual starting point of the vehicle is located and the second section where the actual end point is located are determined, and the current functional scenario working condition is determined based on the actual starting point, the first section, the actual end point and the second section, and the global road network of the vehicle is planned according to the planning strategy corresponding to the current functional scenario working condition so that the path between the actual starting point and the actual end point is the shortest.
[0049] Specifically, after the embodiment of the present application completes processing of the node information obtained as mentioned above, it is necessary to determine the different working conditions of the current functional scenario for the road sections where the actual starting point and the actual end point of the vehicle are located and the different relationships between the actual starting point and the actual end point, and perform analysis, so as to plan the global road network of the vehicle so that the path between the actual starting point and the actual end point is the shortest. This is discussed in detail below based on specific embodiments.
[0050] Optionally, in one embodiment of the present application, determining a first road section where the actual starting point of the vehicle is located and a second road section where the actual end point is located includes: obtaining first position information of the actual starting point, second position information of the actual end point, and third position information of multiple path points, the third position information including a mapping relationship between the path points and the belonging road sections; obtaining a first path point with the shortest distance from the actual starting point and a second path point with the shortest distance from the actual end point from multiple path points based on the first position information, the second position information, and the third position information; determining the first road section where the actual starting point of the vehicle is located according to the first path point, and determining the second road section where the actual end point of the vehicle is located according to the second path point.
[0051] Specifically, the embodiment of the present application first obtains the position information (x, y, heading) of the actual starting point and the actual end point of the vehicle, that is, the first position information of the actual starting point and the second position information of the actual end point, including x-coordinate, y-coordinate, and heading angle; secondly, obtains the map path point information (x, y, heading, label), that is, the third position information of multiple path points, including the mapping relationship between the x-coordinate, y-coordinate, heading angle of all path points and the road sections to which the path points belong; finally, based on the first position information, the second position information, and the third position information, obtains the first path point with the smallest distance from the actual starting point and the second path point with the smallest distance from the actual end point from the multiple path points, which are denoted as spn and dpn respectively, and determines the first road section where the actual starting point of the vehicle is located according to the first path point and the second road section where the actual end point of the vehicle is located according to the second path point, which are denoted as start_road and destination_road respectively, and the start and end nodes of start_road are denoted as sp2 and sp1 respectively, and the start and end nodes of destination_road are denoted as dp1 and dp2 respectively.
[0052] Optionally, in one embodiment of the present application, the current functional scenario operating condition is determined based on the actual starting point, the first section, the actual end point and the second section, including: if the first section and the second section coincide, calculating the first difference between the first path point and the end node of the first section, and the second difference between the second path point and the end node of the first section; when the absolute value of the first difference is greater than the absolute value of the second difference, determining that the current functional scenario operating condition is the first functional scenario operating condition; when the absolute value of the first difference is equal to the absolute value of the second difference, determining that the current functional scenario operating condition is the second functional scenario operating condition; when the absolute value of the first difference is less than the absolute value of the second difference, determining that the current functional scenario operating condition is the third functional scenario operating condition.
[0053] Optionally, in one embodiment of the present application, the current functional scenario operating condition is determined based on the actual starting point, the first section, the actual end point and the second section, and also includes: if the first section and the second section do not overlap, then when the end node of the first section is equal to the starting node of the second section, the current functional scenario operating condition is determined to be the fourth functional scenario operating condition; when the end node of the first section is not equal to the starting node of the second section, the current functional scenario operating condition is determined to be the fifth functional scenario operating condition.
[0054] Optionally, in one embodiment of the present application, a global road network of a vehicle is planned according to a planning strategy corresponding to the current functional scenario working condition, including: when the current functional scenario working condition is the first functional scenario working condition, the preset node distance matrix information and the path segment name matrix information are updated according to preset values, and the global road network of the vehicle is planned according to the updated preset node distance matrix information and the path segment name matrix information; when the current functional scenario working condition is the second functional scenario working condition, an error message for planning the global road network of the vehicle is generated; when the current functional scenario working condition is the third functional scenario working condition or the fifth functional scenario working condition, the first difference, The second difference, the end node of the first road section, and the start node of the second road section are input into the preset Floyd algorithm function to obtain new preset node-to-node distance matrix information and new path segment name matrix information, and the vehicle's global road network is planned based on the new preset node-to-node distance matrix information and the new path segment name matrix information; when the current functional scenario working condition is the fourth functional scenario working condition, the preset node-to-node distance matrix information is updated according to the end node of the first road section, the path segment name matrix information is updated according to the preset value, and the vehicle's global road network is planned based on the updated preset node-to-node distance matrix information and path segment name matrix information.
[0055] Specifically, Figure 6 As shown, the embodiment of the present application determines the current functional scenario working condition by the road section positions where the actual starting point and the actual end point are located, which is specifically divided into two situations: the starting point path segment coincides with the end point path segment and the starting point path segment does not coincide with the end point path segment.
[0056] Specifically, if the starting path segment coincides with the ending path segment, that is, the first road segment coincides with the second road segment, then the first difference between spn and sp1, and the second difference between dpn and dp1 are calculated. When the distance d1 between the two points of |spn-sp1| is greater than the distance d2 between the two points of |dpn-sp1|, it is determined that the current functional scenario is the first functional scenario, and there is no need to perform the Floyd algorithm. The node distance matrix information and the path segment name matrix information are updated, that is, route_nodes=0, route_roads=0, and the global road network of the vehicle is planned according to the updated preset node distance matrix information and path segment name matrix information. When the distance d1 between the two points of |spn-sp1| is equal to d2, the vehicle's global road network is planned according to the updated preset node distance matrix information and path segment name matrix information. When the distance between the two points |dpn-sp1| is d2, that is, spn and dpn are the same point, it is determined to be the second functional scenario condition of the current functional scenario condition, and an error message for planning the global road network of the vehicle is generated; when the distance d1 between the two points |spn-sp1| is less than the distance d2 between the two points |dpn-sp1|, the current functional scenario condition is determined to be the third functional scenario condition, that is, d1, d2, sp1, and dp1 are input into the Floyd algorithm function to obtain the new node distance matrix information route_nodes and the new path segment name matrix information route_roads, and the global road network of the vehicle is planned according to the new preset node distance matrix information and the new path segment name matrix information.
[0057] Furthermore, if the starting path segment does not overlap with the ending path segment, that is, the first segment and the second segment do not overlap, then when the first segment sp1 is equal to the second segment dp1, the current functional scenario condition is determined to be the fourth functional scenario condition, and the Floyd algorithm is not needed. The sp1 and node distance matrix information are updated, and the path segment name matrix information is updated according to the preset value, that is, route_nodes=sp1, route_roads=0, and the global road network of the vehicle is planned according to the updated preset node distance matrix information and path segment name matrix information; when the first segment sp1 and the second segment dp1 are not equal, the current functional scenario condition is determined to be the fifth functional scenario condition, and d1, d2, sp1, and dp1 are input into the Floyd algorithm function to obtain the new node distance matrix information route_nodes and the new path segment name matrix information route_roads, and the global road network of the vehicle is planned according to the new preset node distance matrix information and the new path segment name matrix information.
[0058] According to the global road network planning method for a vehicle proposed in the embodiment of the present application, a target site map is recorded and preprocessed by recording a preset path, and multiple path points are obtained, from which multiple target nodes are selected and multiple coordinates are extracted respectively, and multiple paths are generated according to the coordinates of multiple target nodes based on the preset inter-node distance matrix, thereby determining the first section where the actual starting point of the vehicle is located and the second section where the actual end point is located, and determining the current functional scenario working condition according to the actual starting point, the first section, the actual end point and the second section, and planning the global road network of the vehicle according to its corresponding planning strategy, so that the path between the actual starting point and the actual end point is the shortest, and the same working condition is classified and processed through map information and stored with labels to reduce the frequency of calling complex algorithms, save storage space, and improve the actual operation efficiency of the algorithm, thereby realizing point-to-point global road network planning of a low-speed automatic driving system within a limited map range. Thus, the problem that the Floyd algorithm needs to be called multiple times due to the limitation of the computing power of the vehicle-mounted embedded hardware, which increases the complexity of path planning and reduces the operation efficiency, is solved.
[0059] Next, a global road network planning device for a vehicle proposed in accordance with an embodiment of the present application will be described with reference to the accompanying drawings.
[0060] Figure 7 It is a block diagram of a global road network planning device for a vehicle according to an embodiment of the present application.
[0061] like Figure 7 As shown, the global road network planning device 10 of the vehicle includes: a preprocessing module 100, a generation module 200 and a planning module 800.
[0062] The preprocessing module 100 is used to record the target site map according to the preset recording path, and preprocess the preset recording path to obtain multiple path points;
[0063] A generation module 200, for selecting a plurality of target nodes from a plurality of path points, extracting the coordinates of the plurality of target nodes, and generating a plurality of paths according to the coordinates of the plurality of target nodes based on a preset inter-node distance matrix; and
[0064] The planning module 300 is used to determine the first section where the actual starting point of the vehicle is located and the second section where the actual end point is located, and determine the current functional scenario working condition based on the actual starting point, the first section, the actual end point and the second section, and plan the vehicle's global road network based on the planning strategy corresponding to the current functional scenario working condition so that the path between the actual starting point and the actual end point is the shortest.
[0065] Optionally, in one embodiment of the present application, the planning module 300 includes: a first acquisition unit, a second acquisition unit and a first determination unit.
[0066] The first acquisition unit is used to acquire first position information of the actual starting point, second position information of the actual end point, and third position information of multiple path points, wherein the third position information includes a mapping relationship between the path points and the assigned road sections;
[0067] A second acquisition unit is used to acquire a first path point with the shortest distance from the actual starting point and a second path point with the shortest distance from the actual end point from the plurality of path points based on the first position information, the second position information and the third position information;
[0068] The first determining unit is used to determine a first road section where an actual starting point of the vehicle is located according to the first path point, and to determine a second road section where an actual end point of the vehicle is located according to the second path point.
[0069] Optionally, in one embodiment of the present application, the planning module 300 includes: a calculation unit and a second determination unit.
[0070] The calculation unit is used to calculate a first difference between the first path point and the end node of the first path section and a second difference between the second path point and the end node of the first path section if the first path section and the second path section coincide with each other;
[0071] The second determination unit is used to determine that the current functional scenario operating condition is the first functional scenario operating condition when the absolute value of the first difference is greater than the absolute value of the second difference; determine that the current functional scenario operating condition is the second functional scenario operating condition when the absolute value of the first difference is equal to the absolute value of the second difference; and determine that the current functional scenario operating condition is the third functional scenario operating condition when the absolute value of the first difference is less than the absolute value of the second difference.
[0072] Optionally, in one embodiment of the present application, the planning module 300 further includes:
[0073] A judgment unit is used to determine that if the first section and the second section do not overlap, then when the end node of the first section is equal to the start node of the second section, the current functional scenario operating condition is the fourth functional scenario operating condition; when the end node of the first section is not equal to the start node of the second section, the current functional scenario operating condition is determined to be the fifth functional scenario operating condition.
[0074] Optionally, in one embodiment of the present application, the planning module 300 includes: a first planning unit, a generating unit, a second planning unit and a third planning unit.
[0075] Among them, the first planning unit is used to update the preset node distance matrix information and the path segment name matrix information according to the preset values when the current functional scenario working condition is the first functional scenario working condition, and plan the global road network of the vehicle according to the updated preset node distance matrix information and the path segment name matrix information;
[0076] A generating unit, used for generating error information of a global road network of a planned vehicle when the current functional scenario working condition is the second functional scenario working condition;
[0077] The second planning unit is used to input the first difference, the second difference, the end node of the first section and the start node of the second section into a preset Floyd algorithm function when the current functional scenario working condition is the third functional scenario working condition or the fifth functional scenario working condition, to obtain new preset inter-node distance matrix information and new path segment name matrix information, and plan the global road network of the vehicle according to the new preset inter-node distance matrix information and the new path segment name matrix information;
[0078] The third planning unit is used to update the preset node distance matrix information according to the end node of the first road section when the current functional scenario is the fourth functional scenario, update the path segment name matrix information according to the preset value, and plan the global road network of the vehicle according to the updated preset node distance matrix information and path segment name matrix information.
[0079] Optionally, in one embodiment of the present application, the preset inter-node distance matrix is constructed based on a real map.
[0080] According to the global road network planning device for a vehicle proposed in the embodiment of the present application, a target site map is recorded and preprocessed by recording a preset path, and multiple path points are obtained. Multiple target nodes are selected and multiple coordinates are extracted respectively. Based on the preset inter-node distance matrix, multiple paths are generated according to the coordinates of multiple target nodes, and then the first section where the actual starting point of the vehicle is located and the second section where the actual end point is located are determined. The current functional scenario working condition is determined according to the actual starting point, the first section, the actual end point and the second section, and the global road network of the vehicle is planned according to its corresponding planning strategy, so that the path between the actual starting point and the actual end point is the shortest. The same working condition is classified and processed through map information and stored with labels to reduce the frequency of calling complex algorithms, save storage space, and improve the actual operation efficiency of the algorithm, thereby realizing point-to-point global road network planning of a low-speed automatic driving system within a limited map range. In this way, the problem that the Floyd algorithm needs to be called multiple times due to the limitation of the computing power of the on-board embedded hardware is solved, which increases the complexity of path planning and reduces the operation efficiency.
[0081] Figure 8 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0082] A memory 801 , a processor 802 , and a computer program stored in the memory 801 and executable on the processor 802 .
[0083] When the processor 802 executes the program, the global road network planning method for the vehicle provided in the above embodiment is implemented.
[0084] Optionally, the vehicle further comprises:
[0085] The communication interface 803 is used for communication between the memory 801 and the processor 802 .
[0086] The memory 801 is used to store computer programs that can be executed on the processor 802 .
[0087] The memory 801 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0088] If the memory 801, the processor 802 and the communication interface 803 are implemented independently, the communication interface 803, the memory 801 and the processor 802 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0089] Optionally, in a specific implementation, if the memory 801, the processor 802 and the communication interface 803 are integrated on a chip, the memory 801, the processor 802 and the communication interface 803 can communicate with each other through an internal interface.
[0090] The processor 802 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0091] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned global road network planning method for vehicles.
[0092] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0093] In addition, the terms "first" and "second" 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. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0094] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0095] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0096] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0097] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in the field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A global road network planning method for vehicles, It is characterized in that The following steps are involved: Recording a target site map according to a preset recording path, and preprocessing the preset recording path to obtain a plurality of path points; Selecting multiple target nodes from the multiple path points, extracting coordinates of the multiple target nodes, and generating multiple paths according to the coordinates of the multiple target nodes based on a preset inter-node distance matrix; as well as Determine a first road section where the actual starting point of the vehicle is located and a second road section where the actual end point is located, and determine a current functional scenario working condition according to the actual starting point, the first road section, the actual end point and the second road section, and plan a global road network of the vehicle according to a planning strategy corresponding to the current functional scenario working condition, so that the path between the actual starting point and the actual end point is the shortest; The step of determining the first road section where the actual starting point of the vehicle is located and the second road section where the actual end point of the vehicle is located comprises: Acquire first position information of the actual starting point, second position information of the actual end point, and third position information of the plurality of path points, wherein the third position information includes a mapping relationship between the path points and the belonging road sections; Based on the first location information, the second location information, and the third location information, acquire, from the plurality of path points, a first path point with the shortest distance from the actual starting point and a second path point with the shortest distance from the actual end point; Determine a first road section where the actual starting point of the vehicle is located according to the first path point, and determine a second road section where the actual end point of the vehicle is located according to the second path point; The determining the current functional scenario working condition according to the actual starting point, the first road section, the actual end point and the second road section includes: If the first road section and the second road section overlap, calculating a first difference between the first path point and the end node of the first road section, and a second difference between the second path point and the end node of the first road section; When the absolute value of the first difference is greater than the absolute value of the second difference, the current functional scenario operating condition is determined to be the first functional scenario operating condition; when the absolute value of the first difference is equal to the absolute value of the second difference, the current functional scenario operating condition is determined to be the second functional scenario operating condition; when the absolute value of the first difference is less than the absolute value of the second difference, the current functional scenario operating condition is determined to be the third functional scenario operating condition.
2. The method according to claim 1, It is characterized in that The determining of the current functional scenario working condition according to the actual starting point, the first road section, the actual end point and the second road section also includes: If the first road section and the second road section do not overlap, when the end node of the first road section is equal to the starting node of the second road section, the current functional scenario operating condition is determined to be the fourth functional scenario operating condition; when the end node of the first road section is not equal to the starting node of the second road section, the current functional scenario operating condition is determined to be the fifth functional scenario operating condition.
3. The method according to claim 2, It is characterized in that The planning of the global road network of the vehicle according to the planning strategy corresponding to the current functional scenario working condition includes: When the current functional scenario working condition is the first functional scenario working condition, the preset node distance matrix information and the path segment name matrix information are updated according to preset values, and the global road network of the vehicle is planned according to the updated preset node distance matrix information and the path segment name matrix information; When the current functional scenario working condition is the second functional scenario working condition, generating error information of the global road network of the planned vehicle; When the current functional scenario operating condition is the third functional scenario operating condition or the fifth functional scenario operating condition, the first difference, the second difference, the end node of the first road section, and the start node of the second road section are input into a preset Floyd algorithm function to obtain new preset inter-node distance matrix information and new path segment name matrix information, and the global road network of the vehicle is planned according to the new preset inter-node distance matrix information and the new path segment name matrix information; When the current functional scenario operating condition is the fourth functional scenario operating condition, the preset node distance matrix information is updated according to the end node of the first road section, the path segment name matrix information is updated according to the preset value, and the global road network of the vehicle is planned according to the updated preset node distance matrix information and path segment name matrix information.
4. The method according to any one of claims 1 to 3, It is characterized in that in, The preset inter-node distance matrix is constructed based on a real map.
5. A global road network planning device for vehicles, It is characterized in that include: A preprocessing module, used to record a target site map according to a preset recording path, and preprocess the preset recording path to obtain a plurality of path points; A generation module, configured to select a plurality of target nodes from the plurality of path points, extract the coordinates of the plurality of target nodes, and generate a plurality of paths according to the coordinates of the plurality of target nodes based on a preset inter-node distance matrix; as well as A planning module, used to determine a first road section where the actual starting point of the vehicle is located and a second road section where the actual end point is located, and determine a current functional scenario working condition according to the actual starting point, the first road section, the actual end point and the second road section, and plan a global road network of the vehicle according to a planning strategy corresponding to the current functional scenario working condition, so that the path between the actual starting point and the actual end point is the shortest; The planning module comprises: A first acquisition unit, configured to acquire first position information of the actual starting point, second position information of the actual end point, and third position information of the plurality of path points, wherein the third position information includes a mapping relationship between the path points and the assigned road sections; A second acquisition unit, configured to acquire, from the plurality of path points, a first path point having a minimum distance from the actual starting point and a second path point having a minimum distance from the actual end point based on the first position information, the second position information, and the third position information; A determination unit, configured to determine a first road section where the actual starting point of the vehicle is located according to the first path point, and to determine a second road section where the actual end point of the vehicle is located according to the second path point; The determining the current functional scenario working condition according to the actual starting point, the first road section, the actual end point and the second road section includes: If the first road section and the second road section overlap, calculating a first difference between the first path point and the end node of the first road section, and a second difference between the second path point and the end node of the first road section; When the absolute value of the first difference is greater than the absolute value of the second difference, the current functional scenario operating condition is determined to be the first functional scenario operating condition; when the absolute value of the first difference is equal to the absolute value of the second difference, the current functional scenario operating condition is determined to be the second functional scenario operating condition; when the absolute value of the first difference is less than the absolute value of the second difference, the current functional scenario operating condition is determined to be the third functional scenario operating condition.
6. A vehicle, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the global road network planning method for a vehicle as described in any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The program is executed by a processor to implement the global road network planning method for a vehicle as described in any one of claims 1 to 4.
