Vehicle path planning method, device, vehicle and storage medium
By generating multiple candidate ST curves and evaluating the positional relationships of all obstacles, the optimal path is selected, which solves the problem of failure to fully evaluate the safety threats of obstacles in the existing technology and improves the driving safety of unmanned vehicles.
Patent Information
- Application Number
- CN202110665284.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-16
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-06-16
AI Technical Summary
Existing unmanned vehicle path planning methods only consider obstacles that collide with the current path and fail to fully evaluate the potential safety threats of other obstacles to driving, which may lead to stuck or scratch accidents.
By generating multiple candidate displacement-time ST curves and calculating the driving cost based on the positional relationship information of the first obstacle and the second obstacle, the ST curve with the minimum cost is selected as the target path to ensure that all possible obstacles are considered in path planning.
It improves the driving safety of unmanned vehicles, reduces potential safety threats, and avoids jamming or scratching accidents caused by unconsidered obstacles.
Smart Images

Figure CN113238565B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to vehicle control technology, and in particular to a vehicle path planning method, device, vehicle and storage medium. Background Art
[0002] When planning a driving path for an unmanned vehicle, it is usually based on the displacement-time (ST) graph of the obstacle, and an optimal ST curve is found through a search algorithm, so as to generate a planned path using the optimal ST curve. In the process of realizing the present invention, the inventors found that since the obstacle ST graph is only generated based on the obstacles that collide with the current path, that is, only the obstacles that collide with the current path are considered during path planning, and other obstacles are not considered. The obstacles considered are relatively one-sided, and other obstacles may pose a potential safety threat to the driving of the unmanned vehicle. For example, an obstacle that is traveling side by side with an unmanned vehicle may cause the unmanned vehicle to jam when overtaking such an obstacle, and may even cause a scratch accident in severe cases. Summary of the invention
[0003] Embodiments of the present invention provide a vehicle path planning method, device, vehicle and storage medium, which can reduce potential safety threats and improve driving safety.
[0004] In a first aspect, an embodiment of the present invention provides a vehicle path planning method, comprising:
[0005] Generate multiple candidate displacement-time ST curves for the target vehicle;
[0006] Calculating the driving cost of each candidate ST curve according to the positional relationship information between the first obstacle and each candidate ST curve in the plurality of candidate displacement-time ST curves and the positional relationship information between the second obstacle and each candidate ST curve to obtain a plurality of driving costs, wherein the first obstacle includes obstacles that do not collide with the first planned path of the target vehicle, and the second obstacle includes obstacles that collide with the first planned path;
[0007] Determine a minimum of the plurality of driving costs, and determine the candidate ST curve corresponding to the minimum as a target ST curve;
[0008] A second planned path is generated for the target vehicle according to the target ST curve.
[0009] In a second aspect, an embodiment of the present invention provides a vehicle path planning device, comprising:
[0010] A curve generation module, used to generate multiple candidate displacement-time ST curves for the target vehicle;
[0011] a calculation module, configured to calculate the travel cost of each candidate ST curve according to the positional relationship information between the first obstacle and each candidate ST curve of the plurality of candidate displacement-time ST curves and the positional relationship information between the second obstacle and each candidate ST curve, so as to obtain a plurality of travel costs, wherein the first obstacle includes an obstacle that does not collide with the first planned path of the target vehicle, and the second obstacle includes an obstacle that collides with the first planned path;
[0012] a determination module, configured to determine a minimum of the plurality of driving costs, and determine the candidate ST curve corresponding to the minimum as a target ST curve;
[0013] A path generation module is used to generate a second planned path for the target vehicle according to the target ST curve.
[0014] In a third aspect, an embodiment of the present invention further provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a vehicle path planning method as described in any one of the embodiments of the present invention is implemented.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a vehicle path planning method as described in any one of the embodiments of the present invention.
[0016] In an embodiment of the present invention, after generating multiple candidate displacement-time ST curves for a target vehicle, the driving cost of each candidate ST curve is calculated according to the positional relationship information between the first obstacle and each candidate ST curve and the positional relationship information between the second obstacle and each candidate ST curve, and multiple driving costs are obtained, wherein the first obstacle includes obstacles that do not collide with the first planned path of the target vehicle, and the second obstacle includes obstacles that collide with the first planned path; the smallest of the multiple driving costs is determined, and the candidate ST curve corresponding to the smallest is determined as the target ST curve; and the second planned path is generated for the target vehicle according to the target ST curve. That is, in an embodiment of the present invention, when planning a path for the target vehicle, not only obstacles that collide with the first planned path of the target vehicle are considered, but also obstacles that do not collide with the first planned path of the target vehicle (such as parallel obstacles), and the obstacles considered are more comprehensive, which reduces potential safety threats and improves driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 It is a flow chart of a vehicle path planning method provided by an embodiment of the present invention.
[0019] Figure 2 It is a flowchart of a method for generating a candidate ST curve provided by an embodiment of the present invention.
[0020] Figure 3 It is an AT diagram provided by an embodiment of the present invention.
[0021] Figure 4 It is a flowchart of a method for generating an obstacle ST map provided in an embodiment of the present invention.
[0022] Figure 5 It is a flowchart of a method for calculating the driving cost of a candidate ST curve provided by an embodiment of the present invention.
[0023] Figure 6 It is a structural schematic diagram of a vehicle path planning device provided in an embodiment of the present invention.
[0024] Figure 7 It is a structural schematic diagram of a vehicle provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0026] Figure 1 The present invention provides a flow chart of a vehicle path planning method according to an embodiment of the present invention. The method can be executed by a vehicle path planning device according to an embodiment of the present invention. The device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated in a vehicle, and the vehicle can be an unmanned vehicle or an automatic driving vehicle. The following embodiments will be described by taking the device integrated in a vehicle as an example. Figure 1 , the method may specifically include the following steps:
[0027] Step 101 , generating a plurality of candidate displacement-time ST curves for a target vehicle.
[0028] For example, the target vehicle may be an unmanned vehicle or an autonomous driving vehicle, the target vehicle may be a current vehicle traveling on the road, the target vehicle has a first planned path, the first planned path may be a currently used planned path, and the first planned path may be generated using existing related methods.
[0029] Specifically, when the target vehicle is traveling, the property information of each obstacle around the target vehicle can be obtained through the perception module of the target vehicle. The property information may include information such as the position, size, state (movement, stillness, speed, and driving direction) of the obstacle, and each obstacle is classified according to the property information of each obstacle. For example, obstacles that have not collided with the first planned path of the target vehicle can be determined according to the property information of each obstacle, and these obstacles are classified as first obstacles, and the first obstacles may include one or more obstacles; obstacles that collide with the first planned path of the target vehicle are classified as second obstacles, and the second obstacles may include one or more obstacles. For example, the first obstacle may be, for example, an obstacle in front of the target vehicle, and the second obstacle may be, for example, an obstacle traveling in parallel with the target vehicle or behind the target vehicle.
[0030] After classifying each obstacle, an obstacle displacement-time ST diagram can be generated according to the obstacle that collides with the first planned path (i.e., the second obstacle). The second obstacles involved in the obstacle ST diagram may include static obstacles and dynamic obstacles. For example, the position information of each second obstacle at each moment can be determined according to the attribute information of each second obstacle, and the obstacle ST diagram can be generated according to the position information of each second obstacle at each moment. After obtaining the obstacle ST diagram, multiple candidate ST curves can be generated for the target vehicle based on the obstacle ST diagram.
[0031] For example, a series of initial ST curves can be generated for the target vehicle based on the obstacle ST map, and then the initial ST curves are filtered according to the maximum speed of the target vehicle, road information, etc. to obtain multiple candidate ST curves. Among them, the maximum speed of the target vehicle can be a fixed value; the road information can include road structure (such as information on the current lane, adjacent lanes, merging lanes, intersections, etc.), road speed limits (such as the maximum speed limit and minimum speed limit of the road), and traffic signals and signs on the road (such as traffic lights, crosswalks, speed bumps, etc.). For example, a search algorithm can be used to find a series of initial ST curves for the target vehicle that do not collide with the obstacles involved in the obstacle ST curve based on the obstacle ST map, and then remove the ST curves in the initial ST curves whose speed exceeds the maximum speed of the target vehicle, collides with the road boundary, exceeds the maximum speed limit of the road, etc., to obtain multiple candidate ST curves.
[0032] For example, a series of initial ST curves may be generated by manually setting data, and then the initial ST curves may be filtered according to the obstacle ST map, the maximum speed of the target vehicle, road information, etc., to obtain multiple candidate ST curves. For example, ST curves whose speed exceeds the maximum speed of the target vehicle, collide with obstacles involved in the obstacle ST map, collide with road boundaries, exceed the maximum speed limit of the road, etc. may be removed from the initial ST curves to obtain multiple candidate ST curves.
[0033] Step 102, calculating the driving cost of each candidate ST curve according to the positional relationship information between the first obstacle and each candidate ST curve and the positional relationship information between the second obstacle and each candidate ST curve, and obtaining a plurality of driving costs, wherein the first obstacle includes obstacles that have not collided with the first planned path of the target vehicle, and the second obstacle includes obstacles that have collided with the first planned path.
[0034] Specifically, the property information of each obstacle around the target vehicle can be sensed by the perception module of the target vehicle, and the property information can include the position, size, state (movement, stillness, speed), etc. of the obstacle, and each obstacle can be classified according to the property information of each obstacle. For example, obstacles that have not collided with the first planned path of the target vehicle can be determined according to the property information of each obstacle, and these obstacles can be classified as first obstacles, and the first obstacles can include one or more obstacles; obstacles that collide with the first planned path of the target vehicle can be classified as second obstacles, and the second obstacles can include one or more obstacles. For example, the first obstacle can be, for example, an obstacle in front of the target vehicle, and the second obstacle can be, for example, an obstacle that travels in parallel with the target vehicle or behind the target vehicle.
[0035] After determining the first obstacle and the second obstacle, the positional relationship information between the first obstacle and each candidate ST curve and the positional relationship information between the second obstacle and each candidate ST curve can be determined, and the driving cost of each candidate ST curve is calculated according to the positional relationship information between the first obstacle and each candidate ST curve and the positional relationship information between the second obstacle and each candidate ST curve to obtain multiple driving costs, and the positional relationship information can be represented by distance. In the embodiment of the present invention, the distance is inversely proportional to the driving cost, that is, when a certain candidate ST curve is used, the smaller the distance between the obstacle and the target vehicle, the more dangerous it is, and the corresponding driving cost is greater.
[0036] For example, the first generation value can be calculated based on the distance between the first obstacle and the target vehicle at each moment when a candidate ST curve is used, and the second generation value can be calculated based on the distance between the second obstacle and the target vehicle at each moment, and the sum of the first generation value and the second cost value can be calculated to obtain the travel cost of the candidate ST curve. By analogy, the travel cost of each candidate ST curve can be calculated.
[0037] Step 103: determine the minimum of the multiple driving costs, and determine the candidate ST curve corresponding to the minimum as the target ST curve.
[0038] For example, after obtaining the driving cost of each candidate ST curve, the multiple driving costs can be sorted in descending order, and the candidate ST curve corresponding to the smallest driving cost among the multiple driving costs is selected according to the sorting, and the selected candidate ST curve is determined as the target ST curve. In a specific embodiment, the calculated driving costs of the candidate ST curves are shown in Table 1:
[0039] Candidate ST curve Driving cost Candidate ST curve 1 Cost1 Candidate ST curve 2 Cost2 Candidate ST curve 3 Cost3 Candidate ST curve 4 Cost4
[0040] Table 1
[0041] As shown in Table 1, there are four candidate ST curves, and the driving costs of these four candidate ST curves are Cost1, Cost2, Cost3 and Cost4 respectively. If the order of these four values is Cost3>Cost1>Cost4>Cost2, that is, Cost2 is the minimum value, then the candidate ST curve corresponding to Cost2 (that is, candidate ST curve 2) can be determined as the target ST curve.
[0042] Step 104: Generate a second planned path for the target vehicle according to the target ST curve.
[0043] The specific method for generating the second planning path can be as follows:
[0044] (1) Determine the path boundary based on the target ST curve and obstacle ST diagram.
[0045] For example, for each (s, t) point in the target ST curve, the upper and lower boundaries without collision with the obstacles involved in the obstacle ST curve at each time t can be determined according to the obstacle ST graph, that is, the path boundary at each time can be found.
[0046] (2) Determine the speed boundary based on the speed-displacement VS curve of the road.
[0047] The speed-displacement VS curve of the road can be drawn according to the road information; specifically, various speed limits of each section of the road can be determined according to the road information, and the various speed limits of each section of the road can be integrated to obtain the VS curve of the road.
[0048] For example, when there are pedestrians on the side of the road, we need to slow down; when we need to use the road to avoid others, we also need to slow down. Such speed limits may be for the entire road, such as road speed limits, or for a small section of the road, such as speed bumps. The various speed limits of each section of the road (such as road speed limits, speed bumps, and sidewalk speed limits) can be integrated together to obtain the speed limit of the entire road, that is, the VS curve of the road. According to the VS curve of the road, the maximum speed limit at each moment in the target ST curve can be determined, that is, the speed boundary at each moment can be found.
[0049] (3) Generate a second planned path based on the path boundary and speed boundary.
[0050] For example, the path boundary and speed boundary at each moment may be passed to a quadratic optimizer or a nonlinear optimizer for smoothing, thereby obtaining a second planned path for the target vehicle.
[0051] In an embodiment of the present invention, after generating multiple candidate displacement-time ST curves for a target vehicle, the driving cost of each candidate ST curve is calculated according to the positional relationship information between the first obstacle and each candidate ST curve and the positional relationship information between the second obstacle and each candidate ST curve, and multiple driving costs are obtained, wherein the first obstacle includes obstacles that do not collide with the first planned path of the target vehicle, and the second obstacle includes obstacles that collide with the first planned path; the smallest of the multiple driving costs is determined, and the candidate ST curve corresponding to the smallest is determined as the target ST curve; and the second planned path is generated for the target vehicle according to the target ST curve. That is, in an embodiment of the present invention, when planning a path for the target vehicle, not only obstacles that collide with the first planned path of the target vehicle are considered, but also obstacles that do not collide with the first planned path of the target vehicle (such as parallel obstacles), and the obstacles considered are more comprehensive, which reduces potential safety threats and improves driving safety.
[0052] The following describes in detail the method for generating the candidate ST curve. Figure 2 As shown, the method for generating a candidate ST curve provided by an embodiment of the present invention may include the following steps:
[0053] Step 1011, setting multiple accelerations at each sampling time point.
[0054] For example, multiple sampling time points can be set at preset time intervals, and multiple accelerations can be set at each sampling time point according to a fixed step size or a variable step size. The set accelerations can include positive accelerations and negative accelerations (i.e., decelerations). A search algorithm is used to create an acceleration-time AT graph based on the multiple accelerations set at each sampling time point, and the AT graph can include multiple AT curves. The setting of the sampling time points and the setting of the accelerations at each sampling time point can be set according to actual needs, experiments, or experience, and are not specifically limited here.
[0055] In a specific embodiment, the AT map created can be, for example, Figure 3 As shown, Figure 3 As shown, three accelerations are set at each sampling time point, including positive acceleration, negative acceleration and 0, and an AT graph is created by these three accelerations set at each sampling point.
[0056] Step 1012: Create multiple initial acceleration-time AT curves according to the multiple accelerations set at each sampling time point.
[0057] Step 1013 , filtering out AT curves whose acceleration exceeds the maximum acceleration of the target vehicle from the multiple initial AT curves to obtain remaining AT curves.
[0058] The maximum acceleration of the target vehicle may be a known fixed value, and the maximum acceleration of different vehicles may be different, and the maximum acceleration may be determined by the performance of the vehicle.
[0059] Step 1014, performing an integration operation on each remaining AT curve to obtain an initial speed-time VT curve corresponding to each remaining AT curve.
[0060] Step 1015 , filtering out the VT curves whose speed exceeds the maximum speed of the target vehicle from the initial VT curves to obtain the remaining VT curves, and taking the remaining AT curves corresponding to the remaining VT curves as the target AT curves.
[0061] The maximum speed of the target vehicle may be a known fixed value, and the maximum speeds of different vehicles may be different, and the maximum speed may be determined by the performance of the vehicle. That is, the target AT curve obtained is an AT curve that meets the acceleration requirements and speed requirements of the target vehicle.
[0062] Step 1016, performing an integration operation on each target AT curve to obtain a target speed-time VT curve and an initial ST curve corresponding to each target AT curve.
[0063] That is, a target AT curve may correspond to a target VT curve and an initial ST curve, and the target VT curve and the initial ST curve corresponding to the target AT curve may also have a corresponding relationship.
[0064] Step 1017, selecting a candidate ST curve from the initial ST curve according to the target VT curve, the obstacle ST map, and the road information.
[0065] Among them, road information may include road structure, road speed limit, traffic signals and signs on the road, etc. Road structure includes: current lane, adjacent lane, merging lane, intersection, etc. Road speed limit includes: maximum speed limit, minimum speed limit, traffic signals and signs on the road include: traffic lights, crosswalks, speed bumps, etc.
[0066] For example, by referring to the target VT curve corresponding to each initial ST curve, ST curves whose speed exceeds the maximum speed limit of the road, collides with obstacles involved in the obstacle ST map, collides with the road boundary, etc. can be removed from the initial ST curves to obtain multiple candidate ST curves.
[0067] use Figure 2 The method shown generates a candidate ST curve, generates an AT graph by sampling the set acceleration, and generates multiple candidate ST curves based on the AT graph search, which can reduce the search space, reduce the calculation cost, improve the processing efficiency, and improve the path planning accuracy.
[0068] The following describes the method for generating the obstacle ST map. Figure 4 As shown, the following steps may be specifically included:
[0069] Step 201, obtaining attribute information of each obstacle.
[0070] Specifically, the target vehicle's perception module can be used to obtain attribute information of each obstacle around the target vehicle. The attribute information may include the location, size, state (moving, stationary), and other information of the obstacle. For obstacles in motion, the speed, travel direction, and other information of the obstacle can also be obtained.
[0071] Step 202: determine the obstacles that collide with the first planned path according to the attribute information of each obstacle, and determine the obstacles that collide with the first planned path as second obstacles.
[0072] For example, the acquired attribute information of each obstacle, the road information, and the first planned path may be combined in the same local map, so as to determine the obstacles that collide with the first planned path.
[0073] Step 203: Generate an obstacle ST map according to the second obstacle.
[0074] For example, the position information of each second obstacle at each moment may be determined according to the attribute information of each second obstacle, and the obstacle ST map may be generated according to the position information of each second obstacle at each moment.
[0075] By generating obstacle ST maps in real time, the accuracy of obstacle identification can be ensured and the accuracy of subsequent path planning can be improved.
[0076] The following describes the calculation method of the travel cost of the candidate ST curve. Take the calculation of the travel cost of any candidate ST curve as an example. Figure 5 As shown, the method for calculating the travel cost of the candidate ST curve provided by the embodiment of the present invention may include the following steps:
[0077] Step 1021 , calculating a first generation value according to positional relationship information between the first obstacle and the candidate ST curve.
[0078] Specifically, the positional relationship information between the first obstacle and the candidate ST curve can be processed by the following formula to obtain the first generation value:
[0079]
[0080] Among them, cost j1 represents the first generation value corresponding to the jth candidate ST curve, w 1 is the weight of the first cost value, exp represents the exponential function with the natural constant e as the base, a and b are the parameters of the sigmoid function, d ij Indicates that when the jth candidate ST curve is used at t i The distance between the target vehicle and the first obstacle at the moment, where the first obstacle is the obstacle that has not collided with the first planned path, that is, the obstacle that is not in the obstacle ST map. It can be seen that the distance is inversely proportional to the cost value. The smaller the distance, the more dangerous it is and the greater the cost.
[0081] The sigmoid function is also called the S-shaped growth curve. In information science, due to its monotonic and inverse monotonic properties, the sigmoid function is often used as an activation function of a neural network to map variables between 0 and 1. The form of the sigmoid function is as follows:
[0082]
[0083] Step 1022: Calculate the second generation value according to the positional relationship information between the second obstacle and the corresponding candidate ST curve.
[0084] Specifically, the positional relationship information between the second obstacle and the candidate ST curve can be processed by the following formula to obtain the second generation value:
[0085]
[0086] Among them, cost j2 represents the second-generation value corresponding to the j-th candidate ST curve, w 2 is the weight of the second cost value, s ij Indicates that when the jth candidate ST curve is used at t i The distance between the target vehicle and the second obstacle at the moment. It can be seen that the distance is inversely proportional to the cost value. The smaller the distance, the more dangerous it is and the greater the cost.
[0087] Step 1023, calculating the third generation value according to the planned speed of the target vehicle and the maximum speed of the target vehicle when the corresponding candidate ST curve is adopted.
[0088] Specifically, the planned speed of the target vehicle and the maximum speed of the target vehicle when the candidate ST curve is adopted can be processed by the following formula to obtain the third-generation value:
[0089]
[0090] Among them, cost j3 represents the third-generation value corresponding to the j-th candidate ST curve, w 3 is the weight of the third cost value, v ij Indicates that when the jth candidate ST curve is used at t i The planned speed of the target vehicle at time v max Represents the maximum speed of the target vehicle. The difference between the planned speed and the maximum speed of the target vehicle is recorded as the speed deviation. It can be seen that the speed deviation is proportional to the driving cost. The larger the speed deviation, the greater the driving cost.
[0091] Step 1024, calculating the fourth generation value and the fifth generation value according to the planned acceleration of the target vehicle when the corresponding candidate ST curve is adopted.
[0092] Specifically, the planned acceleration of the target vehicle when the candidate ST curve is adopted can be processed by the following formula to obtain the fourth-generation value:
[0093]
[0094] Among them, cost j4 represents the fourth-generation value corresponding to the j-th candidate ST curve, w 4 is the weight of the fourth cost value, a ij Indicates that when the jth candidate ST curve is used at t i The planned acceleration of the target vehicle at time.
[0095] Specifically, the planned acceleration of the target vehicle when the candidate ST curve is adopted can be processed by the following formula to obtain the fifth generation value:
[0096]
[0097] Among them, cost j5 represents the fifth generation value corresponding to the jth candidate ST curve, w 5 is the weight of the fifth cost value, da ij Indicates that when the jth candidate ST curve is used at t i The differential of the planned acceleration of the target vehicle at time .
[0098] Step 1025, calculate the sum of the first generation value, the second generation value, the third generation value, the fourth generation value, and the fifth cost value to obtain the driving cost of the corresponding candidate ST curve.
[0099] Specifically, the first generation value, the second generation value, the third generation value, the fourth generation value, and the fifth generation value can be processed by the following formula to obtain the driving cost of the candidate ST curve:
[0100] cost(j) = cost j1 +cost j2 +cost j3 +cost j4 +cost j5
[0101] Among them, cost(j) represents the driving cost of the j-th candidate ST curve.
[0102] Taking four candidate ST curves as an example, the calculation process of the driving cost of each candidate ST curve can be shown in Table 2:
[0103] Candidate ST curve Driving cost Candidate ST curve 1 <![CDATA[cost1=cost 11 +cost 12 +cost 13 +cost 14 +cost 15 ]]> Candidate ST curve 2 <![CDATA[cost2=cost 21 +cost 22 +cost 23 +cost 24 +cost 25 ]]> Candidate ST curve 3 <![CDATA[cost3=cost 31 +cost 32 +cost 33 +cost 34 +cost 35 ]]> Candidate ST curve 4 <![CDATA[cost4=cost 41 +cost 42 +cost 43 +cost 44 +cost 45 ]]>
[0104] Table 2
[0105] When calculating the travel cost of each candidate ST curve, not only the distance information is considered, but also the speed, acceleration and other information, which can ensure the smoothness of the final planned path.
[0106] Figure 6 FIG. 1 is a structural diagram of a vehicle path planning device provided by an embodiment of the present invention, and the device is suitable for executing a vehicle path planning method provided by an embodiment of the present invention. Figure 6 As shown, the device may specifically include:
[0107] The curve generation module 401 is used to generate a plurality of candidate displacement-time ST curves for the target vehicle;
[0108] A calculation module 402, configured to calculate a travel cost of each candidate ST curve according to positional relationship information between a first obstacle and each of the plurality of candidate displacement-time ST curves and positional relationship information between a second obstacle and each of the candidate ST curves, to obtain a plurality of travel costs, wherein the first obstacle includes an obstacle that does not collide with the first planned path of the target vehicle, and the second obstacle includes an obstacle that collides with the first planned path;
[0109] A determination module 403 is used to determine the minimum of the multiple driving costs, and determine the candidate ST curve corresponding to the minimum as the target ST curve;
[0110] The path generation module 404 is used to generate a second planned path for the target vehicle according to the target ST curve.
[0111] In one embodiment, the curve generating module 401 is specifically used for:
[0112] Set multiple accelerations at each sampling time point;
[0113] Create multiple initial acceleration-time AT curves according to multiple accelerations set at each sampling time point;
[0114] Filtering the multiple initial AT curves to obtain a target AT curve;
[0115] The plurality of candidate ST curves are generated according to the target AT curve.
[0116] In one embodiment, the curve generation module 401 filters the multiple initial AT curves to obtain a target AT curve, including:
[0117] Filtering out AT curves whose acceleration exceeds the maximum acceleration of the target vehicle from the plurality of initial AT curves to obtain remaining AT curves;
[0118] Performing an integration operation on each of the residual AT curves to obtain an initial speed-time VT curve corresponding to each of the residual AT curves;
[0119] The VT curves whose speed exceeds the maximum speed of the target vehicle are filtered out from the initial VT curve to obtain a remaining VT curve, and the remaining AT curve corresponding to the remaining VT curve is used as the target AT curve.
[0120] In one embodiment, the curve generation module 401 generates the plurality of candidate ST curves according to the target AT curve, including:
[0121] Performing an integration operation on each of the target AT curves to obtain a target speed-time VT curve and an initial ST curve corresponding to each of the target AT curves;
[0122] The candidate ST curve is selected from the initial ST curve according to the target VT curve, the obstacle ST map, and the road information.
[0123] In one embodiment, the device further comprises:
[0124] The ST map generation module is used to obtain the attribute information of each obstacle; determine the obstacles that collide with the first planned path according to the attribute information of each obstacle, and determine the obstacles that collide with the first planned path as the second obstacle; generate the obstacle ST map according to the second obstacle.
[0125] In one embodiment, the calculation module 402 is specifically used for:
[0126] Calculating a first generation value according to the positional relationship information between the first obstacle and each of the candidate ST curves;
[0127] Calculating a second generation value according to the positional relationship information between the second obstacle and the corresponding candidate ST curve;
[0128] The driving cost of the corresponding candidate ST curve is calculated according to the first generation value and the second generation value.
[0129] In one embodiment, the calculation module 402 processes the positional relationship information between the first obstacle and each candidate ST curve by the following formula to obtain the first generation value:
[0130]
[0131] Among them, cost j1 represents the first generation value corresponding to the jth candidate ST curve, w 1 is the weight of the first cost value, a and b are the parameters of the sigmoid function, and d ij Indicates that when the candidate ST curve described in item j is used, i The distance between the target vehicle and the first obstacle at a certain moment;
[0132] The calculation module 402 processes the positional relationship information between the second obstacle and the corresponding candidate ST curve by the following formula to obtain the second generation value:
[0133]
[0134] Among them, costj2 represents the second generation value corresponding to the j-th candidate ST curve, w 2 is the weight of the second cost value, s ij Indicates that when the candidate ST curve described in item j is used, i The distance between the target vehicle and the second obstacle at a given moment.
[0135] In one embodiment, the calculation module 402 is further used for:
[0136] Calculating a third generation value according to the planned speed of the target vehicle and the maximum speed of the target vehicle when the corresponding candidate ST curve is adopted;
[0137] Calculating a fourth generation value and a fifth generation value according to the planned acceleration of the target vehicle when the corresponding candidate ST curve is adopted;
[0138] The calculation module 402 calculates the driving cost of the corresponding candidate ST curve according to the first generation value and the second generation value, including:
[0139] The driving cost of the corresponding candidate ST curve is calculated according to the first generation value, the second generation value, the third generation value, the fourth generation value and the fifth generation value.
[0140] In one embodiment, the calculation module 402 processes the planned speed of the target vehicle and the maximum speed of the target vehicle when the corresponding candidate ST curve is used by the following formula to obtain the third generation value:
[0141]
[0142] Among them, cost j3 represents the third-generation value corresponding to the j-th candidate ST curve, w 3 is the weight of the third cost value, v ij Indicates that when the candidate ST curve described in item j is used, i The planned speed of the target vehicle at the time, v max represents the maximum speed of the target vehicle;
[0143] The calculation module 402 processes the planned acceleration of the target vehicle when the corresponding candidate ST curve is adopted by the following formula to obtain the fourth generation value:
[0144]
[0145] Among them, cost j4 represents the fourth generation value corresponding to the j-th candidate ST curve, w 4is the weight of the fourth cost value, a ij Indicates that when the candidate ST curve described in item j is used, i The planned acceleration of the target vehicle at the time;
[0146] The calculation module 402 processes the planned acceleration of the target vehicle when the corresponding candidate ST curve is adopted by the following formula to obtain the fifth generation value:
[0147]
[0148] Among them, cost j5 represents the fifth generation value corresponding to the j-th candidate ST curve, w 5 is the weight of the fifth cost value, da ij Indicates that when the candidate ST curve described in item j is used, i The differential of the planned acceleration of the target vehicle at time .
[0149] In one embodiment, the calculation module 402 calculates the driving cost of the corresponding candidate ST curve according to the first generation value, the second generation value, the third generation value, the fourth generation value, and the fifth generation value, including:
[0150] The sum of the first generation value, the second generation value, the third generation value, the fourth generation value, and the fifth cost value is calculated to obtain the corresponding driving cost of the candidate ST curve.
[0151] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0152] The device of the embodiment of the present invention, after generating multiple candidate displacement-time ST curves for the target vehicle, calculates the driving cost of each candidate ST curve according to the positional relationship information between the first obstacle and each candidate ST curve and the positional relationship information between the second obstacle and each candidate ST curve, and obtains multiple driving costs, wherein the first obstacle includes obstacles that do not collide with the first planned path of the target vehicle, and the second obstacle includes obstacles that collide with the first planned path; determines the smallest of the multiple driving costs, and determines the candidate ST curve corresponding to the smallest as the target ST curve; generates the second planned path for the target vehicle according to the target ST curve. That is, in the embodiment of the present invention, when planning a path for the target vehicle, not only obstacles that collide with the first planned path of the target vehicle are considered, but also obstacles that do not collide with the first planned path of the target vehicle (such as parallel obstacles), and the obstacles considered are more comprehensive, which reduces potential safety threats and improves driving safety.
[0153] An embodiment of the present invention further provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the vehicle path planning method provided in any of the above embodiments is implemented.
[0154] An embodiment of the present invention further provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the vehicle path planning method provided in any of the above embodiments is implemented.
[0155] Reference below Figure 7 , which shows a schematic diagram of the structure of a vehicle computer system 500 suitable for implementing an embodiment of the present invention. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0156] like Figure 7 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0157] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0158] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0159] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0160] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0161] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be arranged in a processor, for example, it may be described as follows: a processor includes a curve generation module, a calculation module, a determination module, and a path generation module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.
[0162] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: generating multiple candidate displacement-time ST curves for the target vehicle; calculating the driving cost of each candidate ST curve according to the position relationship information between the first obstacle and each candidate ST curve in the multiple candidate displacement-time ST curves and the position relationship information between the second obstacle and each candidate ST curve, and obtaining multiple driving costs, wherein the first obstacle includes obstacles that do not collide with the first planned path of the target vehicle, and the second obstacle includes obstacles that collide with the first planned path; determining the minimum of the multiple driving costs, and determining the candidate ST curve corresponding to the minimum as the target ST curve; generating a second planned path for the target vehicle according to the target ST curve.
[0163] According to the technical solution of the embodiment of the present invention, after generating multiple candidate displacement-time ST curves for the target vehicle, the driving cost of each candidate ST curve is calculated according to the positional relationship information between the first obstacle and each candidate ST curve and the positional relationship information between the second obstacle and each candidate ST curve, and multiple driving costs are obtained, wherein the first obstacle includes obstacles that do not collide with the first planned path of the target vehicle, and the second obstacle includes obstacles that collide with the first planned path; the minimum of the multiple driving costs is determined, and the candidate ST curve corresponding to the minimum is determined as the target ST curve; and the second planned path is generated for the target vehicle according to the target ST curve. That is, in the embodiment of the present invention, when planning a path for the target vehicle, not only obstacles that collide with the first planned path of the target vehicle are considered, but also obstacles that do not collide with the first planned path of the target vehicle (such as parallel obstacles), and the obstacles considered are more comprehensive, which reduces potential safety threats and improves driving safety.
[0164] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A vehicle path planning method, characterized in that: include: Generate multiple candidate displacement-time ST curves for the target vehicle; The driving cost of each candidate ST curve is calculated according to the positional relationship information between the first obstacle and each candidate ST curve in the plurality of candidate displacement-time ST curves and the positional relationship information between the second obstacle and each candidate ST curve to obtain a plurality of driving costs, including: calculating a first generation value according to the positional relationship information between the first obstacle and each candidate ST curve; wherein the positional relationship information between the first obstacle and each candidate ST curve is processed by the following formula to obtain the first generation value: cost j1 represents the first generation value corresponding to the jth candidate ST curve, w1 is the weight of the first cost value, a and b are the parameters of the sigmoid function, d ij Indicates that when the candidate ST curve described in item j is used, i The distance between the target vehicle and the first obstacle at a certain moment; the first obstacle includes obstacles that do not collide with the first planned path of the target vehicle, and the second obstacle includes obstacles that collide with the first planned path; Determine a minimum of the plurality of driving costs, and determine the candidate ST curve corresponding to the minimum as a target ST curve; A second planned path is generated for the target vehicle according to the target ST curve.
2. The vehicle path planning method according to claim 1, characterized in that: The generating the plurality of candidate ST curves for the target vehicle comprises: Set multiple accelerations at each sampling time point; Create multiple initial acceleration-time AT curves according to multiple accelerations set at each sampling time point; Filtering the multiple initial AT curves to obtain a target AT curve; The plurality of candidate ST curves are generated according to the target AT curve.
3. The vehicle path planning method according to claim 2, characterized in that: The filtering the multiple initial AT curves to obtain a target AT curve includes: Filtering out AT curves whose acceleration exceeds the maximum acceleration of the target vehicle from the plurality of initial AT curves to obtain remaining AT curves; Performing an integration operation on each of the residual AT curves to obtain an initial speed-time VT curve corresponding to each of the residual AT curves; The VT curves whose speed exceeds the maximum speed of the target vehicle are filtered out from the initial VT curve to obtain a remaining VT curve, and the remaining AT curve corresponding to the remaining VT curve is used as the target AT curve.
4. The vehicle path planning method according to claim 2, characterized in that: The step of generating the plurality of candidate ST curves according to the target AT curve comprises: Performing an integration operation on each of the target AT curves to obtain a target speed-time VT curve and an initial ST curve corresponding to each of the target AT curves; The candidate ST curve is selected from the initial ST curve according to the target VT curve, the obstacle ST map, and the road information.
5. The vehicle path planning method according to claim 4, characterized in that: The obstacle ST map is generated by the following method: Get the attribute information of each obstacle; Determine an obstacle that collides with the first planned path according to the attribute information of each obstacle, and determine the obstacle that collides with the first planned path as the second obstacle; The obstacle ST map is generated according to the second obstacle.
6. The vehicle path planning method according to any one of claims 1 to 5, characterized in that: The calculating of the travel cost of each candidate ST curve according to the positional relationship information between the first obstacle and each candidate ST curve and the positional relationship information between the second obstacle and each candidate ST curve further includes: Calculating a second generation value according to the positional relationship information between the second obstacle and the corresponding candidate ST curve; The driving cost of the corresponding candidate ST curve is calculated according to the first generation value and the second generation value.
7. The vehicle path planning method according to claim 6, characterized in that: The positional relationship information between the second obstacle and the corresponding candidate ST curve is processed by the following formula to obtain the second generation value: Among them, cost j2 represents the second generation value corresponding to the jth candidate ST curve, w2 is the weight of the second cost value, s ij Indicates that when the candidate ST curve described in item j is used, i The distance between the target vehicle and the second obstacle at a given moment.
8. The vehicle path planning method according to claim 6, characterized in that: Before calculating the driving cost of the corresponding candidate ST curve according to the first generation value and the second generation value, the method further includes: Calculating a third generation value according to the planned speed of the target vehicle and the maximum speed of the target vehicle when the corresponding candidate ST curve is adopted; Calculating a fourth generation value and a fifth generation value according to the planned acceleration of the target vehicle when the corresponding candidate ST curve is adopted; The calculating the driving cost of the corresponding candidate ST curve according to the first generation value and the second generation value includes: The driving cost of the corresponding candidate ST curve is calculated according to the first generation value, the second generation value, the third generation value, the fourth generation value and the fifth generation value.
9. The vehicle path planning method according to claim 8, characterized in that: The third generation value is obtained by processing the planned speed of the target vehicle and the maximum speed of the target vehicle when the corresponding candidate ST curve is adopted through the following formula: Among them, cost j3 represents the third generation value corresponding to the jth candidate ST curve, w3 is the weight of the third cost value, v ij Indicates that when the candidate ST curve described in item j is used, i The planned speed of the target vehicle at the time, v max represents the maximum speed of the target vehicle; The planned acceleration of the target vehicle when the corresponding candidate ST curve is adopted is processed by the following formula to obtain the fourth generation value: Among them, cost j4 represents the fourth generation value corresponding to the jth candidate ST curve, w4 is the weight of the fourth cost value, a ij Indicates that when the candidate ST curve described in item j is used, i The planned acceleration of the target vehicle at the time; The planned acceleration of the target vehicle when the corresponding candidate ST curve is adopted is processed by the following formula to obtain the fifth generation value: Among them, cost j5 represents the fifth generation value corresponding to the jth candidate ST curve, w5 is the weight of the fifth cost value, da ij Indicates that when the candidate ST curve described in item j is used, i The differential of the planned acceleration of the target vehicle at time .
10. The vehicle path planning method according to claim 8, characterized in that: The calculating the driving cost of the corresponding candidate ST curve according to the first generation value, the second generation value, the third generation value, the fourth generation value and the fifth generation value includes: The sum of the first generation value, the second generation value, the third generation value, the fourth generation value, and the fifth cost value is calculated to obtain the corresponding driving cost of the candidate ST curve.
11. A vehicle path planning device, characterized in that: include: A curve generation module, used to generate multiple candidate displacement-time ST curves for the target vehicle; A calculation module, for calculating the travel cost of each candidate ST curve according to the positional relationship information between the first obstacle and each candidate ST curve in the plurality of candidate displacement-time ST curves and the positional relationship information between the second obstacle and each candidate ST curve, to obtain a plurality of travel costs, including: calculating a first generation value according to the positional relationship information between the first obstacle and each candidate ST curve; wherein the positional relationship information between the first obstacle and each candidate ST curve is processed by the following formula to obtain the first generation value: cost j1 represents the first generation value corresponding to the jth candidate ST curve, w1 is the weight of the first cost value, a and b are the parameters of the sigmoid function, d ij Indicates that when the candidate ST curve described in item j is used, i The distance between the target vehicle and the first obstacle at a certain moment; cost j1 represents the first generation value corresponding to the jth candidate ST curve, w1 is the weight of the first cost value, a and b are the parameters of the sigmoid function, d ij Indicates that when the candidate ST curve described in item j is used, i The distance between the target vehicle and the first obstacle at a certain moment; the first obstacle includes obstacles that do not collide with the first planned path of the target vehicle, and the second obstacle includes obstacles that collide with the first planned path; a determination module, configured to determine a minimum of the plurality of driving costs, and determine the candidate ST curve corresponding to the minimum as a target ST curve; A path generation module is used to generate a second planned path for the target vehicle according to the target ST curve.
12. A vehicle comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the vehicle path planning method as described in any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle path planning method as described in any one of claims 1 to 10 is implemented.
