A processing method for confirming lane change position
By intercepting the lane-level mini-map in autonomous vehicle navigation and establishing a directed edge network, and combining lane and obstacle information for path search, the problem of calculation timeout of the navigation module in complex maps is solved, and the real-time confirmation of the lane change position is improved. sex and flexibility.
Patent Information
- Application Number
- CN202210897043.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-07-28
AI Technical Summary
Autonomous vehicle navigation modules often experience calculation timeouts when processing complex maps and cannot meet real-time requirements, especially when the amount of map information and lane topology are complex.
By intercepting a lane-level small map from the overall map, sampling the lane centerline at equal proportions to obtain reference points, and establishing a directed edge network between these points, calculating edge weights based on lane type and obstacle information, and performing a minimum weight path Search to confirm lane change location.
It effectively reduces the map range and the number of sampling points, reduces the complexity of path search, improves the real-time and flexibility of lane change location confirmation, and meets the real-time needs of the planning module.
Smart Images

Figure CN115214679B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a processing method for confirming a lane change position. Background Art
[0002] The conventional way for the navigation module of an autonomous vehicle to handle navigation tasks is to first divide the entire high-precision map around the vehicle into grids and search for a path from the starting position to the target position on the grid network, then find a first lane change position based on the search path and transmit the position to the downstream planning module for driving path planning. However, as the amount of map information and the complexity of the topological relationship between lanes increase, the above conventional processing method often results in calculation timeouts and cannot meet the real-time requirements of the downstream planning module. Summary of the invention
[0003] The purpose of the present invention is to provide a processing method, electronic device and computer-readable storage medium for confirming the lane change position in view of the defects of the prior art; first, a lane-level small map is intercepted from the overall map in front of the vehicle along the vehicle navigation route (from the starting position to the target position); then, the lane centerline is sampled in equal proportion in units of lane blocks on the map to obtain multiple reference points, and directed edges are connected between the reference points, and the weights of the directed edges are calculated in combination with the lane type and road obstacle information; then, the minimum weight path search is performed in the directed edge network based on the connection relationship of the directed edges starting from the starting point; and the first lane change position is confirmed according to the obtained search path. Through the present invention, on the one hand, the problem that the conventional processing method cannot meet the real-time requirements of the planning module can be solved by reducing the map range, reducing the number of sampling points, reducing the complexity of the path search, etc., and on the other hand, the flexibility of the optimal path search and the first lane change position confirmation can be improved by combining the real-time obstacle information.
[0004] To achieve the above object, a first aspect of an embodiment of the present invention provides a method for confirming a lane change position, the method comprising:
[0005] Obtain the current starting position of the vehicle, the target position of the vehicle, and the road sign of the vehicle, and generate the corresponding first starting point, first target point, and first road sign; and obtain multiple static obstacle detection frames at the current moment;
[0006] A road segment map extraction process is performed according to the first starting point, the first target point, the first road mark, a preset road segment length threshold and a preset high-precision map to generate a corresponding first map; the first map includes a plurality of first road blocks; the first road block includes a first road block mark and a plurality of first lanes; the first lane includes a first lane mark and a first center line;
[0007] On the first map, the first center line of each of the first road blocks is subjected to reference point sampling processing to obtain a plurality of first reference points P i,j,k and from any of the first reference points P on the first map i,j,k Starting from the directed edge connection to obtain multiple first directed edges; and setting the directed edge weight of each of the first directed edges according to the multiple static obstacle detection frames and the directed edge type and directed edge length of each of the first directed edges to generate a corresponding first directed edge weight; i is a reference point block identifier, j is a reference point road identifier, and k is a reference point column identifier, the reference point block identifier i corresponds to the first road block identifier one-to-one, the reference point road identifier j corresponds to the first lane identifier one-to-one, and the reference point column identifier k is a positive integer greater than or equal to 1;
[0008] If the first target point is in the first map, the optimal directed edge path from the first starting point to the first target point is confirmed according to each of the first directed edges and the corresponding first directed edge weights to generate a corresponding first directed edge path; if the first target point is not in the first map, each of the first reference points P in the last column of the last first road block is i,j,k as the corresponding second target point; and confirming the optimal directed edge path from the first starting point to the target point according to each of the first directed edges and the corresponding first directed edge weights to generate a corresponding second directed edge path;
[0009] A lane change position confirmation process is performed according to the first or second directed edge path.
[0010] Preferably, the step of performing road segment map extraction processing according to the first starting point, the first target point, the first road sign, a preset road segment length threshold, and a preset high-precision map to generate a corresponding first map specifically includes:
[0011] The complete road map corresponding to the first road sign on the high-precision map is used as the first road map; and based on the first road map, the longitudinal distance of the road from the first starting point to the first target point is calculated to generate the corresponding first road distance; if the first road distance is less than or equal to the road segment length threshold, the sub-road map from the first starting point to the first target point on the first road map is extracted as the corresponding first map; if the first road distance is greater than the road segment length threshold, the sub-road map of a section of road starting from the first starting point on the first road map whose length is the road segment length threshold is extracted as the corresponding first map.
[0012] Preferably, the first lane also includes a first centerline length, a front lane marking, a rear lane marking, a left lane marking, a right lane marking, a left lane boundary line type and a right lane boundary line type; the left and right lane boundary line types include a solid line type and a dashed line type.
[0013] Preferably, the first center line of each first road block is subjected to reference point sampling processing on the first map to obtain a plurality of first reference points P i,j,k , specifically including:
[0014] Calculating the mean of all the first centerline lengths of each of the first road blocks to generate a corresponding first average length;
[0015] Polling the first center lines of all the first road blocks;
[0016] During polling, the first center line currently being polled is used as the corresponding current center line, and the first average length of the first road block corresponding to the current center line is used as the corresponding current average length L1, and the first center line length corresponding to the current center line is used as the corresponding current center line length s1, and the front lane mark of the first lane corresponding to the current center line is used as the corresponding previous lane mark, and the first center line corresponding to the previous lane mark is used as the corresponding previous center line;
[0017] And identify whether the previous lane mark is empty; if so, set the corresponding current starting offset △o to 0; if not, take the first centerline length corresponding to the previous centerline as the corresponding previous centerline length s2, and obtain the centerline remaining length of the previous centerline as the corresponding previous remaining length △s, and take the first average length of the first road block corresponding to the previous lane mark as the corresponding previous average length L2, and calculate and generate the corresponding current starting offset △o, a0 is the preset average sampling interval;
[0018] When the current starting offset △o is obtained, the corresponding current sampling interval △a=a0*s1 / L1 is set according to the average sampling interval a0, the current center line length s1 and the current average length L1; and the position point on the current center line corresponding to the current starting offset △o is used as the corresponding current starting point; and starting from the current starting point, sampling is performed point by point with the current sampling interval △a as the sampling interval to obtain a plurality of corresponding first reference points P i,j,k ; and each time the first reference point P is obtained i,j,kWhen the latest remaining length of the center line is less than the current sampling interval Δa, the sampling of the reference point of the current center line is stopped and the next first center line is polled until the polling of the last first center line of the last first road block is completed.
[0019] Furthermore, the first reference point P i,j,k The reference point block identifier i corresponds to the first road block identifier of the first road block where the corresponding first center line is located, and the reference point lane identifier j corresponds to the first lane identifier of the first lane where the corresponding first center line is located.
[0020] Preferably, the first reference point P on the first map i,j,k The directed edges are connected to obtain multiple first directed edges, including:
[0021] Any of the first reference points P i,j,k As a current reference point;
[0022] Identify the following reference points of the left adjacent lane, the following reference points of the right adjacent lane, and the following reference points of the same lane as the current reference point to generate corresponding left, right, and same lane reference points;
[0023] If the left lane reference point is not empty, when the left lane boundary line type of the first lane corresponding to the current reference point and the right lane boundary line type of the first lane corresponding to the left lane reference point are all dotted line types, take the current reference point as the current source point and the left lane reference point as the current target point to connect the directed edges from the current source point to the current target point to generate the corresponding first directed edge, and set the directed edge type of the first directed edge to be an ordinary lane change edge type; and when the left lane boundary line type corresponding to the current reference point and the right lane boundary line type corresponding to the left lane reference point are not all solid line types, take the current reference point as the current source point and the left lane reference point as the current target point to connect the directed edges from the current source point to the current target point to generate the corresponding first directed edge, and set the directed edge type of the first directed edge to be a compacted line lane change edge type; and calculate the length of the first directed edge to generate the corresponding directed edge length;
[0024] If the right lane reference point is not empty, when the right lane boundary line type of the first lane corresponding to the current reference point and the left lane boundary line type of the first lane corresponding to the right lane reference point are all dotted line types, take the current reference point as the current source point and the left lane reference point as the current target point to connect the directed edges from the current source point to the current target point to generate the corresponding first directed edge, and set the directed edge type of the first directed edge to be an ordinary lane change edge type; and when the right lane boundary line type corresponding to the current reference point and the left lane boundary line type corresponding to the right lane reference point are not all solid line types, take the current reference point as the current source point and the left lane reference point as the current target point to connect the directed edges from the current source point to the current target point to generate the corresponding first directed edge, and set the directed edge type of the first directed edge to be a solid line lane change edge type; and calculate the length of the first directed edge to generate the corresponding directed edge length;
[0025] If the same-path reference point is not empty, then take the current reference point as the current source point and the same-path reference point as the current target point, make a directed edge connection from the current source point to the current target point to generate the corresponding first directed edge, set the directed edge type of the first directed edge to the path-following edge type, and calculate the length of the first directed edge to generate the corresponding directed edge length.
[0026] Further, the identifying of the following reference points of the left adjacent lane, the following reference points of the right adjacent lane, and the following reference points of the same lane of the current reference point to generate corresponding left, right, and same lane reference points specifically includes:
[0027] All the first reference points P with the same reference point block identifier i and the same reference point column identifier k are i,j,k The first reference point sequence is formed into a corresponding first reference point sequence; and in each of the first road blocks, the first reference point sequence corresponding to the reference point sequence identifier k+1 is used as the next sequence of the first reference point sequence corresponding to the reference point sequence identifier k; and the first reference point sequence with the reference point sequence identifier k=1 in the next first road block is used as the next sequence of the last sequence of the first reference point sequence in the previous first road block;
[0028] Taking the first lane corresponding to the reference point lane identifier j of the current reference point as the current lane;
[0029] The first lane corresponding to the left and right lane markings of the current lane is used as the corresponding left and right adjacent lanes; and the next column of reference points corresponding to the current reference point on the left and right adjacent lanes is used as the corresponding left and right lane reference points;
[0030] Confirm whether the current reference point is the last reference point of the current lane; if so, use the first first reference point on the first lane corresponding to the rear lane marker of the current lane as the corresponding same-lane reference point; if not, use the next first reference point on the current lane as the corresponding same-lane reference point.
[0031] Preferably, the step of setting the directed edge weight of each of the first directed edges according to the multiple static obstacle detection frames and the directed edge type and the directed edge length of each of the first directed edges to generate the corresponding first directed edge weight specifically includes:
[0032] Taking any of the first directed edges as the corresponding current directed edge; and taking the directed edge length of the current directed edge as the corresponding current length;
[0033] On the first map, marking the detection frame area of each static obstacle detection frame to generate a corresponding first detection frame area;
[0034] When the directed edge type of the current directed edge is a path-following edge type, identifying whether the current directed edge intersects with a first detection frame area; if so, setting the corresponding first directed edge weight to the product of the reciprocal of the current length and a preset obstacle weight parameter; if not, setting the corresponding first directed edge weight to the product of the reciprocal of the current length and a preset obstacle-free straight road weight parameter;
[0035] When the directed edge type of the current directed edge is a common lane-changing edge type, the distance between the source point of the current directed edge and the first starting point is calculated to generate a corresponding first distance; and whether the current directed edge intersects with a first detection frame area is identified; if so, the corresponding first directed edge weight is set to the product of the reciprocal of the first distance and the obstacle weight parameter; if not, the corresponding first directed edge weight is set to the product of the reciprocal of the first distance and the preset obstacle-free dashed line lane-changing weight parameter;
[0036] When the directed edge type of the current directed edge is a solid line lane change edge type, the distance between the source point of the current directed edge and the first starting point is calculated to generate a corresponding second distance; and whether the current directed edge intersects with a first detection frame area is identified; if so, the corresponding first directed edge weight is set to the product of the reciprocal of the second distance and the obstacle weight parameter; if not, the corresponding first directed edge weight is set to the product of the reciprocal of the second distance and the preset obstacle-free solid line lane change weight parameter;
[0037] Among them, the obstacle weight parameter is a maximum value that is much larger than the obstacle-free solid line lane change weight parameter, the obstacle-free dotted line lane change weight parameter and the obstacle-free straight road weight parameter; the obstacle-free solid line lane change weight parameter is larger than the obstacle-free dotted line lane change weight parameter, and the obstacle-free dotted line lane change weight parameter is larger than the obstacle-free straight road weight parameter.
[0038] Preferably, the step of confirming the optimal directed edge path from the first starting point to the first target point according to each of the first directed edges and the corresponding first directed edge weights to generate the corresponding first directed edge path specifically includes:
[0039] From each of the first reference points P in the last column of the last first road block on the first map i,j,k Starting from the first target point, making a directed edge connection to generate a corresponding second directed edge, and setting the second directed edge weight corresponding to the second directed edge to 0;
[0040] Searching for a directed edge path from the first starting point to the first target point to obtain a plurality of first search paths; the first search paths include the plurality of the first directed edges;
[0041] Accumulate the first directed edge weights corresponding to all the first directed edges of each of the first search paths to generate a corresponding first weight sum; select the minimum value from the multiple first weight sums obtained as the corresponding first optimal weight sum; and use the first search path corresponding to the first optimal weight sum as the corresponding first directed edge path.
[0042] Preferably, the step of confirming the optimal directed edge path from the first starting point to the target point according to each of the first directed edges and the corresponding first directed edge weights to generate the corresponding second directed edge path specifically includes:
[0043] Searching for directed edge paths from the first starting point to any of the second target points to obtain a plurality of corresponding second search paths; and accumulating the first directed edge weights corresponding to all the first directed edges of each of the second search paths corresponding to the current second target to generate a corresponding second weight sum; and selecting a minimum value from the obtained plurality of second weight sums as the second optimal weight sum corresponding to the current second target; the second search path includes a plurality of the first directed edges;
[0044] Select the third optimal weight sum corresponding to the minimum value from the multiple second optimal weight sums obtained, and use the second target point corresponding to the third optimal weight sum as the new first starting point, and use the second search path corresponding to the third optimal weight sum as the corresponding second directed edge path.
[0045] Preferably, the lane change position confirmation process according to the first or second directed edge path specifically includes:
[0046] The first or second directed edge path obtained is used as the current directed edge path; and the first directed edge in the current directed edge path whose directed edge type is not a path-following edge type is extracted as the corresponding first lane-changing directed edge; and whether the first lane-changing directed edge is empty is confirmed; if so, the prompt information that there is no lane change in the current path is output as the lane-changing position confirmation processing result; if not, the first reference point P corresponding to the source point of the first lane-changing directed edge is output. i,j,k The lane change position confirmation processing result is outputted.
[0047] A second aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
[0048] The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method steps described in the first aspect above;
[0049] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
[0050] A third aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed by a computer, the computer executes the instructions of the method described in the first aspect above.
[0051] The embodiment of the present invention provides a processing method, electronic device and computer-readable storage medium for confirming the lane change position; first, a lane-level small map is intercepted from the overall map in front of the vehicle along the vehicle navigation route (from the starting position to the target position); then, the lane centerline is sampled in equal proportion in units of lane blocks on the map to obtain multiple reference points, and directed edges are connected between the reference points, and the weights of the directed edges are calculated in combination with the lane type and road obstacle information; then, the minimum weight path search is performed in the directed edge network based on the connection relationship of the directed edges starting from the starting point; and the first lane change position is confirmed according to the obtained search path. Through the present invention, on the one hand, the problem that the conventional processing method cannot meet the real-time requirements of the planning module is solved by reducing the map range, reducing the number of sampling points, and reducing the complexity of the path search, and on the other hand, the flexibility of the optimal path search and the first lane change position confirmation is improved by combining the real-time obstacle information. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of a processing method for confirming a lane change position provided in Embodiment 1 of the present invention;
[0053] Figure 2a A schematic diagram of a road block, a lane, a lane centerline, and a lane boundary line provided in the first embodiment of the present invention;
[0054] Figure 2b A schematic diagram of a virtual road centerline and an average sampling interval a0 provided in the first embodiment of the present invention;
[0055] Figure 2c A schematic diagram of sampling reference points provided in Embodiment 1 of the present invention;
[0056] Figure 2d A schematic diagram of a reference point directed edge provided in the first embodiment of the present invention;
[0057] Figure 2e A schematic diagram of a first detection frame area provided in Embodiment 1 of the present invention;
[0058] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] Embodiment 1 of the present invention provides a method for confirming a lane change position. Figure 1 A schematic diagram of a method for confirming a lane change position provided in the first embodiment of the present invention is shown in FIG. Figure 1 As shown, this method mainly includes the following steps:
[0061] Step 1: obtain the starting position, target position and road sign of the vehicle at the current moment and generate the corresponding first starting point, first target point and first road sign; and obtain multiple static obstacle detection frames at the current moment.
[0062] Here, the navigation module of the autonomous driving system can obtain the real-time position of the vehicle, i.e., the starting position of the vehicle, from the inertial measurement unit (IMU); the target position of this trip, i.e., the target position of the vehicle, can be obtained from the positioning module; the road signs at the location of the vehicle, i.e., the road signs on which the vehicle is traveling, can be obtained from the high-precision map; and the obstacle target detection information of all static obstacles in front of and around the vehicle at the current moment, i.e., the static obstacle detection frame, can be obtained from the perception module; each static obstacle detection frame corresponds to an obstacle target identified as a static obstacle type (e.g., parked vehicles on the road, traffic obstacles, etc.), and each static obstacle detection frame is a target detection frame (bounding box) from a bird's-eye view that can be directly projected onto the high-precision map.
[0063] Step 2, performing road segment map extraction processing according to the first starting point, the first target point, the first road mark, the preset road segment length threshold and the preset high-precision map to generate a corresponding first map;
[0064] The first map includes a plurality of first road blocks; the first road block includes a first road block identifier and a plurality of first lanes; the first lane includes a first lane identifier, a first center line, a first center line length, a front lane identifier, a rear lane identifier, a left lane identifier, a right lane identifier, a left lane boundary line type, and a right lane boundary line type; the left and right lane boundary line types include a solid line type and a dashed line type;
[0065] Specifically, the method includes: taking a complete road map corresponding to a first road sign on a high-precision map as a first road map; and calculating the longitudinal distance of a road from a first starting point to a first target point based on the first road map to generate a corresponding first road distance; if the first road distance is less than or equal to a road segment length threshold, extracting a sub-road map from the first starting point to the first target point on the first road map as the corresponding first map; if the first road distance is greater than the road segment length threshold, extracting a sub-road map of a section of road starting from the first starting point on the first road map whose length is the road segment length threshold as the corresponding first map.
[0066] Here, the longitudinal distance of the road is not the straight-line distance but the driving distance along the longitudinal direction of the road, and the longitudinal distance of the road is related to the geometric topological shape of the road; the embodiment of the present invention intercepts a lane-level small map from the overall map in front of the vehicle along the vehicle navigation route (from the starting position to the target position) as the first map through the current step; the first map only includes a road segment whose road length does not exceed the road segment length threshold; from the road data known to the high-precision map, it can be seen that the road segment is composed of multiple road blocks (sections) along the longitudinal driving direction, namely the first road block, and each first road block has a unique identity identification information, namely the first road block identification; the first road block is composed of multiple parallel lane sub-segments, namely the first lane, and each first lane has a unique identity identification The information is the first lane identification; each first lane also has a lane centerline, namely the first centerline, and the length of the first centerline in the current road block is the length of the first centerline; multiple first lanes in the same first road block are parallel to each other and are left and right adjacent lanes to each other, and the left and right lane identifications of the first lane are used to mark the lane identifications of the left and right lanes parallel to the current lane; the lanes in two adjacent first road blocks are continuous, and the front and rear lane identifications of the first lane are used to mark the lane identifications in the front and rear road blocks that are continuous with the current lane; according to well-known traffic rules, the lane boundary lines between adjacent lanes are divided into dashed boundary lines that can be crossed and solid boundary lines that cannot be crossed, and the left and right lane boundary line types of the first lane are used to mark the left and right lane boundary line types of the current lane.
[0067] by Figure 2a Taking the schematic diagram of road blocks, lanes, lane center lines and lane boundaries provided in the first embodiment of the present invention as an example, it is assumed that the driving direction is from left to right; the lane map in the figure includes 4 first road blocks, namely road blocks 1, 2, 3, and 4; road block 1 includes 2 first lanes, namely first lanes A1 and B1, and the first lanes A1 and B1 each have a lane center line, namely the first center line, and the lane boundary line between the first lanes A1 and B1 is a dotted lane boundary line; road block 2 includes 2 first lanes, namely first lanes A2 and B2, and the first lanes A2 and B2 each have a lane center line, and the lane boundary line between the first lanes A2 and B2 is a dashed lane boundary line; road block 3 includes two first lanes, namely first lanes A3 and B3, and the first lanes A3 and B3 each have a lane center line, and the lane boundary line between the first lanes A3 and B3 is a solid lane boundary line; road block 4 includes two first lanes, namely first lanes A4 and B4, and the first lanes A4 and B4 each have a lane center line, and the lane boundary line between the first lanes A4 and B4 is a dashed lane boundary line;
[0068] The front lane marking of the first lane A1 is empty, the rear lane marking is the lane marking of the first lane A2, the left lane marking is empty, the right lane marking is the lane marking of the first lane B1, the left lane boundary line type is a solid line type, and the right lane boundary line type is a dashed line type; the front lane marking of the first lane B1 is empty, the rear lane marking is the lane marking of the first lane B2, the left lane marking is the lane marking of the first lane A1, the right lane marking is empty, the left lane boundary line type is a dashed line type, and the right lane boundary line type is a solid line type;
[0069] The front lane marking of the first lane A2 is the lane marking of the first lane A1, the rear lane marking is the lane marking of the first lane A3, the left lane marking is empty, the right lane marking is the lane marking of the first lane B2, the left lane boundary line type is a solid line type, and the right lane boundary line type is a dashed line type; the front lane marking of the first lane B2 is the lane marking of the first lane B1, the rear lane marking is the lane marking of the first lane B3, the left lane marking is the lane marking of the first lane A2, the right lane marking is empty, the left lane boundary line type is a dashed line type, and the right lane boundary line type is a solid line type;
[0070] The front lane marking of the first lane A3 is the lane marking of the first lane A2, the rear lane marking is the lane marking of the first lane A4, the left lane marking is empty, the right lane marking is the lane marking of the first lane B3, the left lane boundary line type is a solid line type, and the right lane boundary line type is a solid line type; the front lane marking of the first lane B3 is the lane marking of the first lane B2, the rear lane marking is the lane marking of the first lane B4, the left lane marking is the lane marking of the first lane A3, the right lane marking is empty, the left lane boundary line type is a solid line type, and the right lane boundary line type is a solid line type;
[0071] The front lane marking of the first lane A4 is the lane marking of the first lane A3, the rear lane marking is empty, the left lane marking is empty, the right lane marking is the lane marking of the first lane B4, the left lane boundary line type is a solid line type, and the right lane boundary line type is a dotted line type; the front lane marking of the first lane B4 is the lane marking of the first lane B3, the rear lane marking is empty, the left lane marking is the lane marking of the first lane A4, the right lane marking is empty, the left lane boundary line type is a dotted line type, and the right lane boundary line type is a solid line type.
[0072] Step 3: Perform reference point sampling processing on the first center line of each first road block on the first map to obtain multiple first reference points P i,j,k ; and on the first map from any first reference point P i,j,kStarting with directed edge connection to obtain a plurality of first directed edges; and setting the directed edge weight of each first directed edge according to the plurality of static obstacle detection frames and the directed edge type and the directed edge length of each first directed edge to generate a corresponding first directed edge weight;
[0073] Wherein, i is the reference point block identifier, j is the reference point road identifier, k is the reference point column identifier, the reference point block identifier i corresponds to the first road block identifier one-to-one, the reference point road identifier j corresponds to the first lane identifier one-to-one, and the reference point column identifier k is a positive integer greater than or equal to 1;
[0074] Specifically, step 31 includes: performing reference point sampling processing on the first center line of each first road block on the first map to obtain a plurality of first reference points P i,j,k ;
[0075] Here, the sampling principle of the embodiment of the present invention is to simulate a virtual line approximating the center line of the road on the first map, and implement sampling by equidistantly dividing the virtual line, and the dividing interval is a preset average sampling interval a0, such as Figure 2b As shown in the schematic diagram of the virtual road center line and the average sampling interval a0 provided in the first embodiment of the present invention; when sampling, the road block is used as a unit, and the road center line length of the current road block is simulated by calculating the average value of the first center line length of each road block, that is, the first average length, and the actual sampling interval on each first center line is determined by the current sampling interval △a=average sampling interval a0*first center line length / first average length; when sampling, in order to ensure the equidistant segmentation of the above virtual line, the offset position of the starting sampling point of the current road block, that is, the current starting offset △o, is calculated according to the remaining distance of the previous road block; it should be noted that the average sampling interval a0 is a preset empirical value, which is set with reference to the minimum driving path length of a vehicle changing lanes once;
[0076] Specifically, it includes: step 311, calculating the mean of all first centerline lengths of each first road block to generate a corresponding first average length;
[0077] Here, Figure 2b For example, assuming that the first centerline lengths of the first lanes A1 and B1 in road block 1 are both 72, the first centerline lengths of the first lanes A2 and B2 in road block 2 are both 40, the first centerline lengths of the first lanes A3 and B3 in road block 3 are 66 and 22 respectively, the first centerline lengths of the first lanes A4 and B4 in road block 4 are both 43, and the average sampling interval a0 is set to 30; then, the first average lengths of road blocks 1, 2, 3, and 4 are 72, 40, 44, and 43 respectively;
[0078] Step 312, polling the first center lines of all first road blocks; during polling, taking the first center line currently polled as the corresponding current center line, taking the first average length of the first road block corresponding to the current center line as the corresponding current average length L1, taking the first center line length corresponding to the current center line as the corresponding current center line length s1, taking the front lane mark of the first lane corresponding to the current center line as the corresponding previous lane mark, and taking the first center line corresponding to the previous lane mark as the corresponding previous center line;
[0079] And identify whether the previous lane sign is empty;
[0080] If yes, set the corresponding current starting offset △o to 0;
[0081] If not, the first centerline length corresponding to the previous centerline is taken as the corresponding previous centerline length s2, and the centerline remaining length of the previous centerline is obtained as the corresponding previous remaining length △s, and the first average length of the first road block corresponding to the previous lane mark is taken as the corresponding previous average length L2, and the corresponding current starting offset △o is calculated and generated. a0 is the preset average sampling interval;
[0082] When the current starting offset △o is obtained, the corresponding current sampling interval △a=a0*s1 / L1 is set according to the average sampling interval a0, the current center line length s1 and the current average length L1; and the position point on the current center line corresponding to the current starting offset △o is used as the corresponding current starting point; and from the current starting point, sampling is performed point by point with the current sampling interval △a as the sampling interval to obtain multiple corresponding first reference points P i,j,k ; and each time a first reference point P is obtained i,j,k When the distance from the current reference point to the end point of the current center line is taken as the latest remaining length of the center line of the current center line; and when the latest remaining length of the center line is less than the current sampling interval △a, the sampling of the reference point of the current center line is stopped and the next first center line is turned to continue polling until the last first center line of the last first road block is polled;
[0083] Among them, the first reference point P i,j,k The reference point block identifier i corresponds to the first road block identifier of the first road block where the corresponding first center line is located, and the reference point lane identifier j corresponds to the first lane identifier of the first lane where the corresponding first center line is located;
[0084] Here, Figure 2bFor example, it is known that the first centerline lengths of the first lanes A1 and B1 in road block 1 are both 72, the first centerline lengths of the first lanes A2 and B2 in road block 2 are both 40, the first centerline lengths of the first lanes A3 and B3 in road block 3 are 65 and 23 respectively, the first centerline lengths of the first lanes A4 and B4 in road block 4 are both 43, and the average sampling interval a0 is set to 30; the first average lengths of road blocks 1, 2, 3, and 4 are 72, 40, 44, and 43 respectively;
[0085] Then, the first center line of road block 1-4 is polled;
[0086] When the current center line is the center line of the first lane A1, the current average length L1 = 72, the current center line length s1 = 72, the previous lane mark is empty, and the previous center line is empty; then, the current starting offset △o = 0; the current sampling interval The position point corresponding to the center line of the first lane A1 and the current starting offset △o=0 is taken as the current starting point, and sampling is performed point by point from the current starting point with the current sampling interval △a=30 as the sampling interval: the first reference point P i=1,j=A1,k=1 The starting point of the center line of the first lane A1, the remaining length of the center line = 72-△o-△a*(1-1) = 72, because the remaining length of the center line >△a, so continue sampling; the second first reference point P i=1,j=A1,k=2 The distance from the starting point △a of the center line of the first lane A1 is △a. At this time, the remaining length of the center line = 72-△o-△a*(2-1) = 42. Since the remaining length of the center line is greater than △a, sampling is continued. The third first reference point P is obtained. i=1,j=A1,k=3 The distance from the starting point of the center line of the first lane A1 to 2*△a is the position. At this time, the remaining length of the center line = 72-△o-△a*(3-1) = 12. Because the remaining length of the center line is less than △a, sampling is stopped and the first lane B1 is polled. At this time, three sampling points are generated for the first lane A1, namely the first reference point P 1,A1,1 , P 1,A1,2 , P 1,A1,3 ;
[0087] When the current center line is the center line of the first lane B1, the sampling process is similar to that of the first lane A1, and the three sampling points obtained are the first reference point P 1,B1,1 , P 1,B1,2 , P 1,B1,3 ;
[0088] When the current centerline is the centerline of the first lane A2, the current average length L1 = 40, the current centerline length s1 = 40, the previous lane mark is A1, and the previous centerline is the centerline of the first lane A1; then, the previous centerline length s2 = 72, the previous remaining length △s = 12, the previous average length L2 = 72, and the current starting offset Current sampling interval The position point corresponding to the center line of the first lane A2 and the current starting offset △o=18 is taken as the current starting point, and sampling is performed point by point from the current starting point with the current sampling interval △a=30 as the sampling interval: the first reference point P i=2,j=A2,k=1 The distance from the starting point of the center line of the first lane A2 to △o is 18. At this time, the remaining length of the center line = 40-△o-△a*(1-1) = 22. Because the remaining length of the center line is less than △a, sampling is stopped and the first lane B2 is polled. At this time, one sampling point, namely the first reference point P, is generated for the first lane A2. 2,A2,1 ;
[0089] When the current center line is the center line of the first lane B2, the sampling process is similar to that of the first lane A2, and the obtained sampling point is the first reference point P 2,B2,1 ;
[0090] When the current centerline is the centerline of the first lane A3, the current average length L1 = 44, the current centerline length s1 = 66, the previous lane is marked as A2, and the previous centerline is the centerline of the first lane A2; then, the previous centerline length s2 = 40, the previous remaining length △s = 22, the previous average length L2 = 40, and the current starting offset Current sampling interval The position point corresponding to the center line of the first lane A3 and the current starting offset △o=12 is taken as the current starting point, and sampling is performed point by point from the current starting point with the current sampling interval △a=45 as the sampling interval: the first reference point P i=3,j=A3,k=1 The distance from the starting point of the center line of the first lane A3 to △o is 12. At this time, the remaining length of the center line = 66-△o-△a*(1-1) = 54. Since the remaining length of the center line is greater than △a, sampling is continued. The second first reference point P i=3,j=A3,k=2 The distance from the starting point △a of the center line of the first lane A3 is △a. At this time, the remaining length of the center line = 66-△o-△a*(2-1) = 9. Because the remaining length of the center line is less than △a, sampling is stopped and the first lane B3 is polled. At this time, two sampling points are generated for the first lane A3, namely the first reference point P 3,A3,1 , P 3,A3,2 ;
[0091] When the current centerline is the centerline of the first lane B3, the current average length L1 = 44, the current centerline length s1 = 22, the previous lane mark is B2, and the previous centerline is the centerline of the first lane B2; then, the previous centerline length s2 = 40, the previous remaining length △s = 22, the previous average length L2 = 40, and the current starting offset Current sampling interval The position point corresponding to the center line of the first lane B3 and the current starting offset △o=4 is taken as the current starting point, and sampling is performed point by point from the current starting point with the current sampling interval △a=15 as the sampling interval: the first reference point P i=3,j=B3,k=1 The distance from the starting point of the center line of the first lane B3 to △o is 4. At this time, the remaining length of the center line = 22-△o-△a*(1-1) = 18. Since the remaining length of the center line is greater than △a, sampling is continued. The second first reference point P i=3,j=B3,k=2 The distance from the starting point △a of the center line of the first lane B3 is △a. At this time, the remaining length of the center line = 22-△o-△a*(2-1) = 3. Because the remaining length of the center line is less than △a, sampling is stopped and the first lane A4 is polled. At this time, two sampling points are generated for the first lane B3, namely the first reference point P 3,B3,1 , P 3,B3,2 ;
[0092] When the current centerline is the centerline of the first lane A4, the current average length L1 = 43, the current centerline length s1 = 43, the previous lane mark is A3, and the previous centerline is the centerline of the first lane A3; then, the previous centerline length s2 = 66, the previous remaining length △s = 9, the previous average length L2 = 44, and the current starting offset Current sampling interval The position point corresponding to the center line of the first lane A4 and the current starting offset △o=24 is taken as the current starting point, and sampling is performed point by point from the current starting point with the current sampling interval △a=30 as the sampling interval: the first reference point P i=4,j=A4,k=1 The distance from the starting point of the center line of the first lane A4 to △o is 24. At this time, the remaining length of the center line = 43-△o-△a*(1-1) = 19. Because the remaining length of the center line is less than △a, sampling is stopped and the first lane B4 is polled. At this time, one sampling point, namely the first reference point P, is generated for the first lane A4. 4,A4,1 ;
[0093] When the current centerline is the centerline of the first lane B4, the current average length L1 = 43, the current centerline length s1 = 43, the previous lane mark is B3, and the previous centerline is the centerline of the first lane B3; then, the previous centerline length s2 = 22, the previous remaining length △s = 3, the previous average length L2 = 44, and the current starting offset Current sampling interval The position point corresponding to the center line of the first lane A4 and the current starting offset △o=24 is taken as the current starting point, and sampling is performed point by point from the current starting point with the current sampling interval △a=30 as the sampling interval: the first reference point P i=4,j=B4,k=1 The distance from the starting point of the center line of the first lane B4 to △o is 24. At this time, the remaining length of the center line = 43-△o-△a*(1-1) = 19. Because the remaining length of the center line is less than △a and the first lane B4 is the last first lane of the last first road block on the first map, sampling and lane polling are stopped. At this time, one sampling point, namely the first reference point P, is generated for the first lane B4. 4,B4,1 ;
[0094] The above example generates sampling points such as Figure 2c This is a schematic diagram of sampling reference points provided in the first embodiment of the present invention;
[0095] Step 32: on the first map, from any first reference point P i,j,k Start to connect directed edges to obtain multiple first directed edges;
[0096] Specifically, step 321: any first reference point P i,j,k As a current reference point;
[0097] Step 322, identifying the reference points below the left adjacent lane, the right adjacent lane and the same lane of the current reference point to generate corresponding left, right and same lane reference points;
[0098] Specifically, step 3221 includes: all first reference points P with the same reference point block identifier i and the same reference point column identifier k are i,j,k The first reference point column corresponding to the reference point column identifier k+1 is used as the next column of the first reference point column corresponding to the reference point column identifier k in each first road block; and the first reference point column with the reference point column identifier k=1 in the next first road block is used as the next column of the last first reference point column in the previous first road block;
[0099] Here, Figure 2c For example, a total of 6 first reference point columns can be obtained: First reference point column 1 (P 1,A1,1 ,P 1,B1,1), the first reference point column 2 (P 1,A1,2 ,P 1,B1,2 ), the first reference point column 3 (P 1,A1,3 ,P 1,B1,3 ), the first reference point column 4 (P 2,A2,1 ,P 2,B2,1 ), the first reference point column 5 (P 3,A3,1 ,P 3,B3,1 ), the first reference point column 6 (P 3,A3,2 ,P 3,B3,2 ), the first reference point column 7 (P 4,A4,1 ,P 4,B4,1 ); in road block 1, the next column of first reference point column 1 is first reference point column 2, the next column of first reference point column 2 is first reference point column 3, and the next column of first reference point column 5 in road block 3 is first reference point column 6; the next column of first reference point column 3 in road block 1 is first reference point column 4 in road block 2, the next column of first reference point column 4 in road block 2 is first reference point column 5 in road block 3, and the next column of first reference point column 6 in road block 3 is first reference point column 7 in road block 4;
[0100] Step 3222, taking the first lane corresponding to the reference point lane identifier j of the current reference point as the current lane;
[0101] Step 3223, taking the first lane corresponding to the left and right lane identifiers of the current lane as the corresponding left and right adjacent lanes; and taking the next column of reference points corresponding to the current reference point on the left and right adjacent lanes as the corresponding left and right lane reference points;
[0102] Here, Figure 2c For example, the current reference point is P 1,A1,1 When the current lane is the first lane A1, the left lane mark of the first lane A1 is empty, and the right lane mark is the lane mark of the first lane B1, then the corresponding left lane reference point of the current reference point is empty, and the right lane reference point is P 1,A1,1 The reference point P in the first lane B1 is located on the next column of the first reference point column 1, that is, the first reference point column 2. 1,B1,2 ; The same applies to other reference points, which will not be described one by one here; it should be noted that for the last column, i.e. the first reference point column 7 (P 4,A4,1 ,P 4,B4,1 ) for two reference points, since there is no next column, P 4,A4,1 , P 4,B4,1 The left and right reference points are both empty;
[0103] Step 3224, confirm whether the current reference point is the last reference point of the current lane; if so, take the first reference point on the first lane corresponding to the rear lane marker of the current lane as the corresponding same-lane reference point; if not, take the next first reference point on the current lane as the corresponding same-lane reference point;
[0104] Here, Figure 2c For example, the current reference point is P 1,A1,1 When the current lane is the first lane A1, P 1,A1,1 It is not the last reference point of the first lane A1, so the reference point of the same lane is P 1,A1,2 ; The current reference point is P 1,A1,2 When the current lane is the first lane A1, P 1,A1,2 It is not the last reference point of the first lane A1, so the reference point of the same lane is P 1,A1,3 ; The current reference point is P 1,A1,3 When the current lane is the first lane A1, P 1,A1,3 It is the last reference point of the first lane A1. The rear lane mark of the first lane A1 is the lane mark of the first lane A2, so the first reference point P of the first lane A2 is taken. 2,A2,1 As the same reference point; other reference points are similar, and no examples are given here. It should be noted that for the last column, that is, the first reference point column 7 (P 4,A4,1 ,P 4,B4,1 ) for two reference points, since there is no next column, P 4,A4,1 , P 4,B4,1 The same reference points are also empty;
[0105] Step 323, if the left lane reference point is not empty, then when the left lane boundary line type of the first lane corresponding to the current reference point and the right lane boundary line type of the first lane corresponding to the left lane reference point are all dotted line types, take the current reference point as the current source point and the left lane reference point as the current target point, make a directed edge connection from the current source point to the current target point to generate a corresponding first directed edge, and set the directed edge type of the first directed edge to be a normal lane change edge type; and when the left lane boundary line type corresponding to the current reference point and the right lane boundary line type corresponding to the left lane reference point are not all solid line types, take the current reference point as the current source point and the left lane reference point as the current target point, make a directed edge connection from the current source point to the current target point to generate a corresponding first directed edge, and set the directed edge type of the first directed edge to be a compacted line lane change edge type; and calculate the length of the first directed edge to generate the corresponding directed edge length;
[0106] Here, for each first reference point P with a left reference point i,j,k For the current step, the first reference point P i,j,kThe left lane reference points corresponding to the departure direction are connected with directed edges; the directed edge type is set based on the lane boundary line type of the two points, and the directed edge length is set based on the straight line length of the connecting line; if the directed edge type is set to the ordinary lane change edge type, it means that the road boundary lines between the two points are all dotted lines, and if the directed edge type is set to the solid line lane change edge type, it means that there are some solid lines in the road boundary lines between the two points;
[0107] by Figure 2c Take the reference points of the left track as an example to connect the reference points. The connection effect is as follows Figure 2d The reference point directed edge diagram provided in the first embodiment of the present invention is shown as follows; for the first reference point P 1,B1,1 , P 1,B1,2 , P 1,B1,3 , P 2,B2,1 , P 3,B3,1 , P 3,B3,2 Both have a left reference point (P 1,A1,2 , P 1,A1,3 , P 2,A1,1 , P 3,A3,1 , P 3,A3,2 , P 4,A4,1 );
[0108] Among them, the first reference point P 1,B1,1 , P 1,B1,2 , P 1,B1,3 The corresponding left track reference point (P 1,A1,2 , P 1,A1,3 , P 2,A1,1 ) are all dotted line types, so the first reference point P 1,B1,1 , P 1,B1,2 , P 1,B1,3 The corresponding left track reference point (P 1,A1,2 , P 1,A1,3 , P 2,A1,1 ) are all of the common lane-changing edge type;
[0109] First reference point P 2,B2,1 The corresponding left track reference point (P 3,A3,1 ) between lane boundary line types in P 2,B2,1 The lane segment is a dotted line type, in P 3,A3,1 The lane segment is a solid line type, but not all of them are solid line types, so the first reference point P 2,B2,1 The corresponding left track reference point (P 3,A3,1 ) is a compacted lane change edge type;
[0110] First reference point P 3,B3,1 The corresponding left track reference point (P 3,A3,2) are all solid line types. According to known traffic rules, solid line lanes cannot be changed, so the first reference point P 3,B3,1 The corresponding left track reference point (P 3,A3,2 ) cannot be connected by directed edges;
[0111] First reference point P 3,B3,2 The corresponding left track reference point (P 4,A4,1 ) between lane boundary line types in P 3,B3,2 The lane segment is a solid line type, in P 4,A4,1 The lane segment is a dotted line type and neither is a solid line type, so the first reference point P 3,B3,2 The corresponding left track reference point (P 4,A4,1 ) is a compacted lane change edge type;
[0112] Step 324, if the right lane reference point is not empty, then when the right lane boundary line type of the first lane corresponding to the current reference point and the left lane boundary line type of the first lane corresponding to the right lane reference point are all dotted line types, take the current reference point as the current source point and the left lane reference point as the current target point, make a directed edge connection from the current source point to the current target point to generate a corresponding first directed edge, and set the directed edge type of the first directed edge to be a normal lane change edge type; and when the right lane boundary line type corresponding to the current reference point and the left lane boundary line type corresponding to the right lane reference point are not all solid line types, take the current reference point as the current source point and the left lane reference point as the current target point, make a directed edge connection from the current source point to the current target point to generate a corresponding first directed edge, and set the directed edge type of the first directed edge to be a compacted line lane change edge type; and calculate the length of the first directed edge to generate the corresponding directed edge length;
[0113] by Figure 2c Take the reference points of the right track as an example to connect the reference points. The connection effect is as follows Figure 2d As shown; for the first reference point P 1,A1,1 , P 1,A1,2 , P 1,A1,3 , P 2,A2,1 , P 3,A3,1 , P 3,A3,2 Both have a left reference point (P 1,B1,2 , P 1,B1,3 , P 2,B2,1 , P 3,B3,1 , P 3,B3,2 , P 4,B4,1 );
[0114] Among them, the first reference point P 1,A1,1 , P 1,A1,2 , P 1,A1,3 The corresponding left track reference point (P1,B1,2 , P 1,B1,3 , P 2,B2,1 ) are all dotted line types, so the first reference point P 1,A1,1 , P 1,A1,2 , P 1,A1,3 The corresponding left track reference point (P 1,B1,2 , P 1,B1,3 , P 2,B2,1 ) are all of the common lane-changing edge type;
[0115] First reference point P 2,A2,1 The corresponding left track reference point (P 3,B3,1 ) between lane boundary line types in P 2,A2,1 The lane segment is a dotted line type, in P 3,B3,1 The lane segment is a solid line type, but not all of them are solid line types, so the first reference point P 3,B3,1 The corresponding left track reference point (P 3,B3,1 ) is a compacted lane change edge type;
[0116] First reference point P 3,A3,1 The corresponding left track reference point (P 3,B3,2 ) are all solid line types. According to known traffic rules, solid line lanes cannot be changed, so the first reference point P 3,A3,1 The corresponding left track reference point (P 3,B3,2 ) cannot be connected by directed edges;
[0117] First reference point P 3,A3,2 The corresponding left track reference point (P 4,B4,1 ) between lane boundary line types in P 3,A3,2 The lane segment is a solid line type, in P 4,B4,1 The lane segment is a dotted line type and neither is a solid line type, so the first reference point P 3,A3,2 The corresponding left track reference point (P 4,B4,1 ) is a compacted lane change edge type;
[0118] Step 325, if the same path reference point is not empty, then use the current reference point as the current source point and the same path reference point as the current target point to connect the current source point to the current target point to generate a corresponding first directed edge, set the directed edge type of the first directed edge to the path edge type, and calculate the length of the first directed edge to generate the corresponding directed edge length;
[0119] by Figure 2c Take the reference points of the same channel as an example to connect the reference points, and the connection effect is as follows Figure 2dAs shown; for the first reference point P with the same reference point i,j,k For the current reference point, it is sufficient to directly connect the current reference point with a directed edge. Because the current reference point is in the same lane or two lanes connected to each other, there is no lateral lane change problem between the two. Therefore, the directed edge type of the first directed edge with the current reference point is set to the lane-following edge type.
[0120] Step 33, setting the directed edge weight of each first directed edge according to the multiple static obstacle detection frames and the directed edge type and directed edge length of each first directed edge to generate a corresponding first directed edge weight;
[0121] Specifically, it includes: step 331, taking any first directed edge as the corresponding current directed edge; and taking the directed edge length of the current directed edge as the corresponding current length;
[0122] Step 332, on the first map, marking the detection frame area of each static obstacle detection frame to generate a corresponding first detection frame area;
[0123] Here, Figure 2d As an example, assume that the static obstacle detection frame obtained at the current moment has 4 corresponding first detection frame areas, namely first detection frame areas 1, 2, 3, and 4. Figure 2e This is a schematic diagram of a first detection frame area provided in Embodiment 1 of the present invention;
[0124] Step 33, when the directed edge type of the current directed edge is a path-following edge type, identify whether the current directed edge intersects with a first detection frame area; if so, set the corresponding first directed edge weight to the product of the reciprocal of the current length and the preset obstacle weight parameter α; if not, set the corresponding first directed edge weight to the product of the reciprocal of the current length and the preset obstacle-free straight weight parameter β;
[0125] Among them, the obstacle weight parameter α is a maximum value much larger than the obstacle-free straight road weight parameter β;
[0126] Here, the embodiment of the present invention calculates the first directed edge weight w corresponding to the first directed edge whose directed edge type is a path-following edge type as follows:
[0127] If it intersects with any static obstacle detection frame, that is, the first detection frame area, then
[0128] If it does not intersect with all the first detection box areas, then
[0129] d1 is the directed edge length of the current directed edge, α is much larger than β, for example, α is preset to 30000 and β is set to 1;
[0130] by Figure 2e For example:
[0131] For P 1,A1,1 To P 1,A1,2 The first directed edge of , because it does not intersect with any first detection box area, the corresponding first directed edge weight w = d -1 (P 1,A1,1 , P 1,A1,2 )*β;
[0132] For P 2,B2,1 To P 3,B3,1 The first directed edge of intersects with the first detection frame area 1, so the corresponding first directed edge weight w=d -1 (P 2,B2,1 , P 3,B3,1 )*α;
[0133] For P 3,B3,2 To P 4,B4,1 The first directed edge of intersects with the first detection frame area 2, so the corresponding first directed edge weight w=d -1 (P 3,B3,2 , P 4,B4,1 )*α;
[0134] Step 34, when the directed edge type of the current directed edge is a common lane change edge type, the distance between the source point of the current directed edge and the first starting point is calculated to generate a corresponding first distance; and whether the current directed edge intersects with a first detection frame area is identified; if so, the corresponding first directed edge weight is set to the product of the reciprocal of the first distance and the obstacle weight parameter α; if not, the corresponding first directed edge weight is set to the product of the reciprocal of the first distance and the preset obstacle-free dashed line lane change weight parameter γ;
[0135] Among them, the obstacle weight parameter α is much larger than the obstacle-free dashed lane change weight parameter γ, and the obstacle-free dashed lane change weight parameter γ is larger than the obstacle-free straight lane weight parameter β;
[0136] Here, the embodiment of the present invention calculates the first directed edge weight w corresponding to the first directed edge whose directed edge type is a common lane change edge type as follows:
[0137] If it intersects with any static obstacle detection frame, that is, the first detection frame area, then
[0138] If it does not intersect with all the first detection box areas, then
[0139] The first distance d2 is the straight line length from the source point of the current directed edge to the position of the vehicle, that is, the first starting point. When the lane change weight parameters are the same, the larger the first distance d2 is, the smaller the weight w of the first directed edge is, which means that the closer the distance to the first starting point is, the greater the lane change weight is; α is much larger than γ, and γ is larger than β. For example, α is preset to 30000 and γ is set to 100;
[0140] by Figure 2e For example:
[0141] For P 1,A1,2 To P 1,B1,3 The directed edge type is the first directed edge of the common lane change edge type. Since it does not intersect with any first detection frame area, the corresponding first directed edge weight w=d(P 1,A1,2 , the first starting point)*γ;
[0142] For P 1,B1,3 To P 2,A2,1 The directed edge type is the first directed edge of the common lane change edge type. Because it intersects with the first detection frame area 3, the corresponding first directed edge weight w=d(P 1,B1,3 , first starting point)*α;
[0143] Step 35, when the directed edge type of the current directed edge is a solid line lane change edge type, calculate the distance between the source point of the current directed edge and the first starting point to generate a corresponding second distance; and identify whether the current directed edge intersects with a first detection frame area; if so, set the corresponding first directed edge weight to the product of the reciprocal of the second distance and the obstacle weight parameter; if not, set the corresponding first directed edge weight to the product of the reciprocal of the second distance and the preset obstacle-free solid line lane change weight parameter;
[0144] Among them, the obstacle weight parameter α is much larger than the obstacle-free solid line lane change weight parameter θ, and the obstacle-free solid line lane change weight parameter θ is larger than the obstacle-free dashed line lane change weight parameter γ;
[0145] Here, the embodiment of the present invention calculates the first directed edge weight w corresponding to the first directed edge whose directed edge type is a compacted line lane change edge type as follows:
[0146] If it intersects with any static obstacle detection frame, that is, the first detection frame area, then
[0147] If it does not intersect with all the first detection box areas, then
[0148] The second distance d3 is the straight line length from the source point of the current directed edge to the position of the vehicle, that is, the first starting point. When the lane change weight parameters are the same, the larger the second distance d3 is, the smaller the weight w of the first directed edge is, which means that the closer the distance to the first starting point is, the greater the lane change weight is; α is much larger than θ, θ>γ>β, for example, α is preset to 30000, and θ is set to 1000;
[0149] by Figure 2e For example:
[0150] For P 2,A2,1 To P 3,B3,1 The directed edge type is the first directed edge of the compaction line lane change edge type. Since it does not intersect with any first detection frame area, the corresponding first directed edge weight w=d(P 2,A2,1 , the first starting point)*θ;
[0151] For P 3,B3,2 To P 4,A4,1 The directed edge type is the first directed edge of the compacted line lane change edge type. Because it intersects with the first detection frame area 4, the corresponding first directed edge weight w=d(P 3,B3,2 , first starting point)*α.
[0152] Step 4: if the first target point is within the first map, then confirming the optimal directed edge path from the first starting point to the first target point according to each first directed edge and the corresponding first directed edge weight to generate a corresponding first directed edge path;
[0153] Specifically, step 41 includes: from each first reference point P in the last column of the last first road block on the first map, i,j,k Start to make a directed edge connection to the first target point to generate the corresponding second directed edge, and set the second directed edge weight corresponding to the second directed edge to 0;
[0154] Here, from the first map interception method in step 2 above, it can be known that if the first target point is in the first map, it means that the first target point is a point on the end boundary of the road in the first map. Figure 2e For example, a point on the bottom edge of road block 4 is taken. At this time, from each first reference point in the last column of road block 4, that is, the first reference point column 7 (P 4,A4,1 ,P 4,B4,1 ) 4,A4,1 , P 4,B4,1 Each of them starts from making a second directed edge with a weight of 0 to the first target point; the purpose of making the second directed edge here is just to have an end position mark for subsequent path search;
[0155] Step 42, searching for directed edge paths from the first starting point to the first target point to obtain a plurality of first search paths;
[0156] Wherein, the first search path includes a plurality of first directed edges;
[0157] Here, the first starting point in the embodiment of the present invention is actually the first reference point column 1 (P 1,A1,1 ,P 1,B1,1 ) in a first reference point, Figure 2e For example, let the first starting point be P 1,A1,1 , then the connection sequence along the directed edge starts from P 1,A1,1 Starting from the first target point, searching can obtain multiple first search paths consisting of first directed edges: for example, along P 1,A1,1 -P 1,A1,2 -P 1,A1,3 -P 2,A2,1 -P 3,A3,1 -P 3,A3,2 -P 4,A4,1 -The first search path formed by the directed edge connection sequence of the first target point, along P 1,A1,1 -P 1,B1,2 -P 1,A1,3 -P 2,A2,1 -P 3,A3,1 -P 3,A3,2 -P 4,A4,1 -The first search path formed by the directed edge connection sequence of the first target point, etc.;
[0158] Step 43, accumulate the first directed edge weights corresponding to all the first directed edges of each first search path to generate a corresponding first weight sum; and select the minimum value from the multiple first weight sums obtained as the corresponding first optimal weight sum; and use the first search path corresponding to the first optimal weight sum as the corresponding first directed edge path.
[0159] Here, from the description of the steps for calculating the weight of the first directed edge in the previous text, it can be seen that the sum of the first weights of the first search path that intersects with the static obstacle detection frame in the path will be very large, far exceeding the sum of the first weights of any first search path that does not intersect with the static obstacle detection frame; in addition, for the first search path that does not intersect with the static obstacle detection frame, the more lane changes there are, that is, the more first directed edges of the lane change edge type (normal, compacted line lane change edge type), the greater the sum of the first weights; when the number of lane changes is the same, the more first directed edges of the compacted line lane change edge type, the greater the sum of the first weights; when the number of lane changes is the same, the earlier the lane change is, the greater the sum of the first weights; the more first directed edges of the following edge type, the smaller the sum of the first weights; therefore, the first search path corresponding to the first optimal sum of weights must be a path with a small number of lane changes and a later lane change timing. In extreme cases, the first search path is a straight path.
[0160] Step 5: If the first target point is not in the first map, the first reference points P of the last column of the last first road block are i,j,k as the corresponding second target point; and confirming the optimal directed edge path from the first starting point to the target point according to each first directed edge and the corresponding first directed edge weight to generate a corresponding second directed edge path;
[0161] Specifically, step 51 includes: i,j,k As the corresponding second target point;
[0162] Here, it can be seen from the first map interception method in step 2 above that if the first target point is not in the first map, it means that the current first map is a process map. At this time, the embodiment of the present invention sets the first reference points P of the last column of the last first road block to i,j,k As the corresponding second target point, Figure 2e For example, the first reference point is listed as 7 (P 4,A4,1 ,P 4,B4,1 ) 4,A4,1 , P 4,B4,1 All as the second target point;
[0163] Step 52, confirming the optimal directed edge path from the first starting point to the target point according to each first directed edge and the corresponding first directed edge weight to generate a corresponding second directed edge path;
[0164] Specifically, the method comprises: step 521, searching for a directed edge path from the first starting point to any second target point to obtain a plurality of corresponding second search paths; and accumulating the first directed edge weights corresponding to all first directed edges of each second search path corresponding to the current second target to generate a corresponding second weight sum; and selecting the minimum value from the obtained plurality of second weight sums as the second optimal weight sum corresponding to the current second target;
[0165] Wherein, the second search path includes a plurality of first directed edges;
[0166] Here, Figure 2e For example, the current step is to go from the first starting point to P 4,A4,1 , P 4,B4,1 The second optimal weight sum of the optimal path is confirmed, and the processing method is similar to the aforementioned steps 42-43. Finally, two second optimal weight sums corresponding to two second target points are obtained: P 4,A4,1 , P 4,B4,1 ;
[0167] Step 522, select the third optimal weight sum corresponding to the minimum value from the multiple second optimal weight sums obtained, and use the second target point corresponding to the third optimal weight sum as the new first starting point, and use the second search path corresponding to the third optimal weight sum as the corresponding second directed edge path.
[0168] Here, Figure 2e For example, the minimum value is selected from the two second optimal weight sums as the third optimal weight sum, and the corresponding P 4,A4,1 or P 4,B4,1 As the new first starting point, the corresponding search path is used as the second directed edge path.
[0169] Step 6, performing lane change position confirmation processing according to the first or second directed edge path;
[0170] Specifically, the method includes: taking the first or second directed edge path obtained as the current directed edge path; extracting the first directed edge whose directed edge type is not a path-following edge type in the current directed edge path as the corresponding first lane-changing directed edge; and confirming whether the first lane-changing directed edge is empty; if so, outputting the prompt information that there is no lane change in the current path as the lane-changing position confirmation processing result; if not, outputting the first reference point P corresponding to the source point of the first lane-changing directed edge i,j,k Output as the lane change position confirmation processing result.
[0171] Here, if the current directed edge path is a straight path, then all the first directed edge types inside it are bound to be the following edge type, and the corresponding first lane change directed edge is naturally empty. In this case, the embodiment of the present invention will output a prompt message that there is no lane change in the current path; if the current directed edge path is not a straight path, then the first lane change directed edge will not be empty. It can be seen from the foregoing that the current directed edge path is a path with a small number of lane changes and a later lane change timing, so its first lane change position is naturally the first lane change position with the best overall cost-effectiveness.
[0172] After step 6, the navigation module of the embodiment of the present invention outputs the obtained path without lane change prompt information or the optimal first lane change position to the downstream planning module, which can assist the planning module in performing optimal trajectory planning and improve the planning accuracy of the planning module. If the first target point is not included in the first map of this time, then after step 6, the navigation module will also obtain a new first road sign and new multiple static obstacle detection frames based on the new first starting point obtained in step 522, and cyclically execute the above steps 2-6 to obtain the next round of lane change position confirmation processing results, because the first map used in each cycle is a small map of the intercepted road level, the number of sampling points is controllable, and the complexity of the path search is controllable, so that the problem of lane change position confirmation timeout due to excessive calculation amount failing to meet the real-time requirements of the planning module can be avoided.
[0173] Figure 3 This is a schematic diagram of the structure of an electronic device provided in the second embodiment of the present invention. The electronic device may be the aforementioned terminal device or server, or may be a terminal device or server connected to the aforementioned terminal device or server to implement the method of the embodiment of the present invention. Figure 3 As shown, the electronic device may include: a processor 301 (such as a CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transceiver 303. Various instructions may be stored in the memory 302 to complete various processing functions and implement the processing steps described in the aforementioned method embodiment. Preferably, the electronic device involved in the embodiment of the present invention also includes: a power supply 304, a system bus 305 and a communication port 306. The system bus 305 is used to realize the communication connection between components. The above-mentioned communication port 306 is used for connecting and communicating between the electronic device and other peripherals.
[0174] exist Figure 3 The system bus 305 mentioned in the figure can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The term "communication interface" is represented by only one thick line, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory (Non-Volatile Memory), such as at least one disk storage.
[0175] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a graphics processing unit (GPU), etc.; it can also be 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.
[0176] It should be noted that an embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method and processing process provided in the above embodiments.
[0177] An embodiment of the present invention further provides a chip for executing instructions, wherein the chip is used to execute the processing steps described in the aforementioned method embodiment.
[0178] The embodiment of the present invention provides a processing method, electronic device and computer-readable storage medium for confirming the lane change position; first, a lane-level small map is intercepted from the overall map in front of the vehicle along the vehicle navigation route (from the starting position to the target position); then, the lane centerline is sampled in equal proportion in units of lane blocks on the map to obtain multiple reference points, and directed edges are connected between the reference points, and the weights of the directed edges are calculated in combination with the lane type and road obstacle information; then, the minimum weight path search is performed in the directed edge network based on the connection relationship of the directed edges starting from the starting point; and the first lane change position is confirmed according to the obtained search path. Through the present invention, on the one hand, the problem that the conventional processing method cannot meet the real-time requirements of the planning module is solved by reducing the map range, reducing the number of sampling points, and reducing the complexity of the path search, and on the other hand, the flexibility of the optimal path search and the first lane change position confirmation is improved by combining the real-time obstacle information.
[0179] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0180] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0181] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for confirming a lane change position, characterized in that: The method comprises: Obtain the current starting position of the vehicle, the target position of the vehicle, and the road sign of the vehicle, and generate the corresponding first starting point, first target point, and first road sign; and obtain multiple static obstacle detection frames at the current moment; A road segment map extraction process is performed according to the first starting point, the first target point, the first road mark, a preset road segment length threshold and a preset high-precision map to generate a corresponding first map; the first map includes a plurality of first road blocks; the first road block includes a first road block mark and a plurality of first lanes; the first lane includes a first lane mark and a first center line; On the first map, the first center line of each first road block is subjected to reference point sampling processing to obtain a plurality of first reference points P i,j,k and from any of the first reference points P on the first map i,j,k Starting from the directed edge connection to obtain multiple first directed edges; and setting the directed edge weight of each of the first directed edges according to the multiple static obstacle detection frames and the directed edge type and directed edge length of each of the first directed edges to generate a corresponding first directed edge weight; i is a reference point block identifier, j is a reference point road identifier, and k is a reference point column identifier, the reference point block identifier i corresponds to the first road block identifier one-to-one, the reference point road identifier j corresponds to the first lane identifier one-to-one, and the reference point column identifier k is a positive integer greater than or equal to 1; If the first target point is in the first map, the optimal directed edge path from the first starting point to the first target point is confirmed according to each of the first directed edges and the corresponding first directed edge weights to generate a corresponding first directed edge path; if the first target point is not in the first map, each of the first reference points P in the last column of the last first road block is i,j,k as the corresponding second target point; and confirming the optimal directed edge path from the first starting point to the target point according to each of the first directed edges and the corresponding first directed edge weights to generate a corresponding second directed edge path; A lane change position confirmation process is performed according to the first or second directed edge path.
2. The method for confirming a lane change position according to claim 1, characterized in that: The step of performing road segment map extraction processing according to the first starting point, the first target point, the first road sign, a preset road segment length threshold, and a preset high-precision map to generate a corresponding first map specifically includes: The complete road map corresponding to the first road sign on the high-precision map is used as the first road map; and based on the first road map, the longitudinal distance of the road from the first starting point to the first target point is calculated to generate the corresponding first road distance; if the first road distance is less than or equal to the road segment length threshold, the sub-road map from the first starting point to the first target point on the first road map is extracted as the corresponding first map; if the first road distance is greater than the road segment length threshold, the sub-road map of a section of road starting from the first starting point on the first road map whose length is the road segment length threshold is extracted as the corresponding first map.
3. The method for confirming a lane change position according to claim 1, characterized in that: The first lane also includes a first centerline length, a front lane mark, a rear lane mark, a left lane mark, a right lane mark, a left lane boundary line type and a right lane boundary line type; the left and right lane boundary line types include a solid line type and a dashed line type.
4. The method for confirming a lane change position according to claim 3, characterized in that: The first center line of each first road block is subjected to reference point sampling processing on the first map to obtain a plurality of first reference points P i,j,k , including: Calculating the mean of all the first centerline lengths of each of the first road blocks to generate a corresponding first average length; Polling the first center lines of all the first road blocks; During polling, the first center line currently being polled is used as the corresponding current center line, and the first average length of the first road block corresponding to the current center line is used as the corresponding current average length L1, and the first center line length corresponding to the current center line is used as the corresponding current center line length s1, and the front lane mark of the first lane corresponding to the current center line is used as the corresponding previous lane mark, and the first center line corresponding to the previous lane mark is used as the corresponding previous center line; And identify whether the previous lane mark is empty; if so, set the corresponding current starting offset △o to 0; if not, take the first centerline length corresponding to the previous centerline as the corresponding previous centerline length s2, and obtain the centerline remaining length of the previous centerline as the corresponding previous remaining length △s, and take the first average length of the first road block corresponding to the previous lane mark as the corresponding previous average length L2, and calculate and generate the corresponding current starting offset △o, a0 is the preset average sampling interval; When the current starting offset △o is obtained, the corresponding current sampling interval △a=a0*s1 / L1 is set according to the average sampling interval a0, the current center line length s1 and the current average length L1; and the position point on the current center line corresponding to the current starting offset △o is used as the corresponding current starting point; and starting from the current starting point, sampling is performed point by point with the current sampling interval △a as the sampling interval to obtain a plurality of corresponding first reference points P i,j,k ; and each time the first reference point P is obtained i,j,k When the latest remaining length of the center line is less than the current sampling interval Δa, the sampling of the reference point of the current center line is stopped and the next first center line is polled until the polling of the last first center line of the last first road block is completed.
5. The method for confirming a lane change position according to claim 4, characterized in that: The first reference point P i,j,k The reference point block identifier i corresponds to the first road block identifier of the first road block where the corresponding first center line is located, and the reference point lane identifier j corresponds to the first lane identifier of the first lane where the corresponding first center line is located.
6. The method for confirming a lane change position according to claim 3, characterized in that: The first map from any of the first reference points P i,j,k The directed edges are connected to obtain multiple first directed edges, including: Any of the first reference points P i,j,k As a current reference point; Identify the following reference points of the left adjacent lane, the following reference points of the right adjacent lane, and the following reference points of the same lane as the current reference point to generate corresponding left, right, and same lane reference points; If the left lane reference point is not empty, when the left lane boundary line type of the first lane corresponding to the current reference point and the right lane boundary line type of the first lane corresponding to the left lane reference point are all dotted line types, take the current reference point as the current source point and the left lane reference point as the current target point to connect the directed edges from the current source point to the current target point to generate the corresponding first directed edge, and set the directed edge type of the first directed edge to be an ordinary lane change edge type; and when the left lane boundary line type corresponding to the current reference point and the right lane boundary line type corresponding to the left lane reference point are not all solid line types, take the current reference point as the current source point and the left lane reference point as the current target point to connect the directed edges from the current source point to the current target point to generate the corresponding first directed edge, and set the directed edge type of the first directed edge to be a compacted line lane change edge type; and calculate the length of the first directed edge to generate the corresponding directed edge length; If the right lane reference point is not empty, when the right lane boundary line type of the first lane corresponding to the current reference point and the left lane boundary line type of the first lane corresponding to the right lane reference point are all dotted line types, take the current reference point as the current source point and the left lane reference point as the current target point to connect the directed edges from the current source point to the current target point to generate the corresponding first directed edge, and set the directed edge type of the first directed edge to be an ordinary lane change edge type; and when the right lane boundary line type corresponding to the current reference point and the left lane boundary line type corresponding to the right lane reference point are not all solid line types, take the current reference point as the current source point and the left lane reference point as the current target point to connect the directed edges from the current source point to the current target point to generate the corresponding first directed edge, and set the directed edge type of the first directed edge to be a solid line lane change edge type; and calculate the length of the first directed edge to generate the corresponding directed edge length; If the same-path reference point is not empty, then take the current reference point as the current source point and the same-path reference point as the current target point, make a directed edge connection from the current source point to the current target point to generate the corresponding first directed edge, set the directed edge type of the first directed edge to the path-following edge type, and calculate the length of the first directed edge to generate the corresponding directed edge length.
7. The method for confirming a lane change position according to claim 6, characterized in that: The step of identifying the following reference points of the left adjacent lane, the following reference points of the right adjacent lane, and the following reference points of the same lane of the current reference point to generate corresponding left, right, and same lane reference points specifically includes: All the first reference points P with the same reference point block identifier i and the same reference point column identifier k are i,j,k The first reference point sequence is formed into a corresponding first reference point sequence; and in each of the first road blocks, the first reference point sequence corresponding to the reference point sequence identifier k+1 is used as the next sequence of the first reference point sequence corresponding to the reference point sequence identifier k; and the first reference point sequence with the reference point sequence identifier k=1 in the next first road block is used as the next sequence of the last sequence of the first reference point sequence in the previous first road block; Taking the first lane corresponding to the reference point lane identifier j of the current reference point as the current lane; The first lane corresponding to the left and right lane markings of the current lane is used as the corresponding left and right adjacent lanes; and the next column of reference points corresponding to the current reference point on the left and right adjacent lanes is used as the corresponding left and right lane reference points; Confirm whether the current reference point is the last reference point of the current lane; if so, use the first first reference point on the first lane corresponding to the rear lane marker of the current lane as the corresponding same-lane reference point; if not, use the next first reference point on the current lane as the corresponding same-lane reference point.
8. The method for confirming a lane change position according to claim 1, characterized in that: The step of setting the directed edge weight of each of the first directed edges according to the multiple static obstacle detection frames and the directed edge type and directed edge length of each of the first directed edges to generate the corresponding first directed edge weight specifically includes: Taking any of the first directed edges as the corresponding current directed edge; and taking the directed edge length of the current directed edge as the corresponding current length; On the first map, marking the detection frame area of each static obstacle detection frame to generate a corresponding first detection frame area; When the directed edge type of the current directed edge is a path-following edge type, identifying whether the current directed edge intersects with a first detection frame area; if so, setting the corresponding first directed edge weight to the product of the reciprocal of the current length and a preset obstacle weight parameter; if not, setting the corresponding first directed edge weight to the product of the reciprocal of the current length and a preset obstacle-free straight road weight parameter; When the directed edge type of the current directed edge is a common lane-changing edge type, the distance between the source point of the current directed edge and the first starting point is calculated to generate a corresponding first distance; and whether the current directed edge intersects with a first detection frame area is identified; if so, the corresponding first directed edge weight is set to the product of the reciprocal of the first distance and the obstacle weight parameter; if not, the corresponding first directed edge weight is set to the product of the reciprocal of the first distance and the preset obstacle-free dashed line lane-changing weight parameter; When the directed edge type of the current directed edge is a solid line lane change edge type, the distance between the source point of the current directed edge and the first starting point is calculated to generate a corresponding second distance; and whether the current directed edge intersects with a first detection frame area is identified; if so, the corresponding first directed edge weight is set to the product of the reciprocal of the second distance and the obstacle weight parameter; if not, the corresponding first directed edge weight is set to the product of the reciprocal of the second distance and the preset obstacle-free solid line lane change weight parameter; Among them, the obstacle weight parameter is a maximum value that is much larger than the obstacle-free solid line lane change weight parameter, the obstacle-free dotted line lane change weight parameter and the obstacle-free straight road weight parameter; the obstacle-free solid line lane change weight parameter is larger than the obstacle-free dotted line lane change weight parameter, and the obstacle-free dotted line lane change weight parameter is larger than the obstacle-free straight road weight parameter.
9. The method for confirming a lane change position according to claim 1, characterized in that: The step of confirming the optimal directed edge path from the first starting point to the first target point according to each of the first directed edges and the corresponding first directed edge weights to generate the corresponding first directed edge path specifically includes: From each of the first reference points P in the last column of the last first road block on the first map i,j,k Starting from the first target point, making a directed edge connection to generate a corresponding second directed edge, and setting the second directed edge weight corresponding to the second directed edge to 0; Searching for a directed edge path from the first starting point to the first target point to obtain a plurality of first search paths; the first search paths include the plurality of the first directed edges; Accumulate the first directed edge weights corresponding to all the first directed edges of each of the first search paths to generate a corresponding first weight sum; select the minimum value from the multiple first weight sums obtained as the corresponding first optimal weight sum; and use the first search path corresponding to the first optimal weight sum as the corresponding first directed edge path.
10. The method for confirming a lane change position according to claim 1, characterized in that: The step of confirming the optimal directed edge path from the first starting point to the target point according to each of the first directed edges and the corresponding first directed edge weights to generate the corresponding second directed edge path specifically includes: Searching for directed edge paths from the first starting point to any of the second target points to obtain a plurality of corresponding second search paths; and accumulating the first directed edge weights corresponding to all the first directed edges of each of the second search paths corresponding to the current second target to generate a corresponding second weight sum; and selecting a minimum value from the obtained plurality of second weight sums as the second optimal weight sum corresponding to the current second target; the second search path includes a plurality of the first directed edges; Select the third optimal weight sum corresponding to the minimum value from the multiple second optimal weight sums obtained, and use the second target point corresponding to the third optimal weight sum as the new first starting point, and use the second search path corresponding to the third optimal weight sum as the corresponding second directed edge path.
11. The method for confirming a lane change position according to claim 1, characterized in that: The lane change position confirmation process according to the first or second directed edge path specifically includes: The first or second directed edge path obtained is used as the current directed edge path; and the first directed edge in the current directed edge path whose directed edge type is not a path-following edge type is extracted as the corresponding first lane-changing directed edge; and whether the first lane-changing directed edge is empty is confirmed; if so, the prompt information that there is no lane change in the current path is output as the lane-changing position confirmation processing result; if not, the first reference point P corresponding to the source point of the first lane-changing directed edge is output. i,j,k The lane change position confirmation processing result is outputted.
12. An electronic device, characterized in that: include: memory, processors, and transceivers; The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method steps described in any one of claims 1 to 11; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed by a computer, enable the computer to execute the method according to any one of claims 1 to 11.
