Speed ​​planning method and device

By dividing the longitudinal trajectory into multiple segments and establishing polynomial expressions, combined with acceleration equation constraints and cost functions, the problem of low speed planning accuracy in intelligent driving is solved, achieving balanced optimization of higher comfort and safety. , improving the accuracy of speed planning.

CN118579058BActive Publication Date: 2024-10-22SHENZHEN MINIEYE INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411061412.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-22
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

While ensuring safety, the existing intelligent driving speed planning method is difficult to achieve high-precision comfort planning, especially when the vehicle accelerates and decelerates abnormally during autonomous driving, causing discomfort to passengers and uncontrollable intermediate states of the polynomial. , it is difficult to approach the optimal solution.

Method used

By dividing the longitudinal trajectory into N segments and establishing polynomial expressions respectively, the speed planning expression is obtained. The acceleration equation constraint and cost function are used to balance driving comfort and driving safety as the goal, and the feasible path with the lowest cost is selected. The solution is taken as the optimal solution to improve the accuracy of speed planning.

Benefits of technology

It improves the accuracy of speed planning, makes speed planning closer to the optimal solution, enhances the balanced optimization goals of driving comfort and driving safety, avoids the situation of no optimal solution in a single acceleration scenario, and reduces computing power costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118579058B_ABST
    Figure CN118579058B_ABST
Patent Text Reader

Abstract

The present application provides a speed planning method and device, including: when the leading vehicle is within a preset range, the longitudinal trajectory is divided into N segments of trajectories with the goal of balancing driving comfort and driving safety, and multi-term expressions are established respectively to obtain a speed planning expression, and multiple feasible solutions of the speed planning expression are obtained according to the position sampling points at the end of the trajectory; N is a positive integer; the feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution, and speed planning is performed with the optimal solution; the cost is obtained based on the weighted sum of a first evaluation standard for driving comfort and a second evaluation standard for driving safety; the use of the present application can improve the accuracy of speed planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving technology, and in particular to a speed planning method and device. Background Art

[0002] At present, more and more intelligent driving technologies and products are beginning to serve people's lives, especially ADAS (Advanced Driving Assistant System) L2, L2++ level (partial automation of autonomous driving) related functions are being mass-produced. As a means of transportation for people, the comfort of a car during driving is very important. During the autonomous driving process, abnormal acceleration and deceleration of the vehicle can cause passengers to vomit or dizzy and other discomforts, resulting in low driving comfort. However, in some emergency and dangerous scenarios, it is necessary to brake in time to avoid collisions to ensure driving safety.

[0003] The speed solution and planning module in intelligent driving mainly balances driving comfort and driving safety, and strives to be as comfortable as possible while ensuring safety. Common speed planning methods use methods such as quintic or quartic polynomials for speed planning, but the intermediate state of the polynomial is uncontrollable, it is difficult to approach the optimal solution, and the speed planning accuracy is low. Summary of the invention

[0004] The purpose of this application is to address the deficiencies of the above-mentioned existing related technologies and provide a speed planning method and device that can improve the accuracy of speed planning.

[0005] In a first aspect, the present application provides a speed planning method, comprising:

[0006] If the preceding vehicle is within the preset range, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, and multiple feasible solutions of the speed planning expression are obtained according to the position sampling points at the end of the trajectory; N is a positive integer;

[0007] A feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution, and speed planning is performed using the optimal solution; the cost is obtained by weighting the first evaluation standard of driving comfort and the second evaluation standard of driving safety.

[0008] Compared with a single multi-term expression, the present application adopts a method of balancing driving comfort and driving safety, divides the longitudinal trajectory into N segments and establishes multi-term expressions for each segment, which is equivalent to adding (N-1) intermediate control points, so that the intermediate process of speed planning of a single multi-term expression can be controlled, thereby improving the accuracy of speed planning, and selecting the optimal solution from multiple feasible solutions through the first evaluation standard of driving comfort and the second evaluation standard of driving safety, so that the speed planning expression can better fit the optimization goal of balancing driving comfort and driving safety, thereby being closer to the optimal solution and further improving the accuracy of speed planning.

[0009] Furthermore, the longitudinal trajectory is divided into N segments with the goal of balancing driving comfort and driving safety, and multi-term expressions are established for each segment to obtain a speed planning expression, including:

[0010] The current position is taken as the initial planning position, the end position of the trajectory is taken as the ending planning position, the planning distance is obtained, and a local coordinate system in which the planning distance changes with time is established. Based on the local coordinate system, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into two trajectories, and multi-term expressions and equality constraints are established for the two trajectories respectively to obtain a speed planning expression.

[0011] Furthermore, the speed planning expression includes: a first-segment speed planning expression, a second-segment speed planning expression and an equality constraint; the multi-term expression and the equality constraint are established for the two trajectories respectively to obtain the speed planning expression, including:

[0012] A quartic expression with the same format but different parameters is established for the two trajectories respectively to obtain the first speed planning expression and the second speed planning expression, and an equality constraint is established according to the initial planning position, the end planning position and the path continuity of the two trajectories.

[0013] Furthermore, the equation constraint includes: an acceleration equation constraint; the acceleration equation constraint establishes an equation constraint according to the path continuity of the two trajectories, including:

[0014] According to the path continuity of the two trajectories, a velocity equation constraint is established in which the end position of the velocity curve of the first trajectory and the initial position of the velocity curve of the second trajectory are the same, and the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint.

[0015] Further, the acceleration equation constraint includes: a first acceleration equation constraint; the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint, including:

[0016] According to the equal absolute values ​​of the peaks or troughs of the acceleration curves of the first and second trajectory segments, the velocity equation constraint is rewritten to obtain the first acceleration equation constraint; wherein the first acceleration equation constraint includes a first velocity change of the velocity equation constraint, and the first velocity change includes: a situation where the first trajectory segment accelerates and the second trajectory segment decelerates, and a situation where the first trajectory segment decelerates and the second trajectory segment accelerates.

[0017] This application aims at different acceleration scenarios to obtain accurate acceleration equation constraints, so as to accurately correspond to the speed change curve of accelerating first and then decelerating or decelerating first and then accelerating, thereby improving the accuracy of speed planning.

[0018] Furthermore, the acceleration equation constraint further includes: a second acceleration equation constraint; the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint, and further includes:

[0019] The velocity equation constraint is rewritten according to the peak or trough of the acceleration curve of the second trajectory as a constant value to obtain the second acceleration equation constraint; wherein the second acceleration equation constraint includes the second velocity change of the velocity equation constraint, and the second velocity change includes: the first trajectory is accelerated and the second trajectory is uniform, and the first trajectory is decelerated and the second trajectory is uniform.

[0020] The present application also takes into account the acceleration scenario in which the peak or trough of the acceleration curve of the second segment of the trajectory is a constant value to obtain an accurate second acceleration equation constraint, thereby accurately corresponding to the speed change curve of first accelerating and then maintaining a constant speed or first decelerating and then maintaining a constant speed. The acceleration scenarios can be increased, thereby avoiding the situation where there is no optimal solution due to insufficient number of sampling points in a single acceleration scenario, and thus it is easier to approach the optimal solution, further improving the accuracy of speed planning.

[0021] Furthermore, the equality constraint also includes:

[0022] The first speed planning expression is the fixed value at the initial planning position; and

[0023] The starting speed of the initial planning position is the current actual speed of the vehicle; and,

[0024] The initial acceleration of the acceleration curve of the first trajectory is the constant value; and

[0025] The final speed of the speed curve of the first track segment is equal to the initial speed of the speed curve of the second track segment; and

[0026] The speed at the end of the speed curve of the second trajectory is equal to the current actual speed of the preceding vehicle; and

[0027] The final velocity acceleration of the second trajectory returns to the constant value; and

[0028] The total duration of the speed planning is a preset value; and,

[0029] The end position of the trajectory is a position sampling point.

[0030] Furthermore, the first evaluation criterion includes: comfort cost; the second evaluation criterion includes: collision cost, speed cost, centripetal acceleration cost and stable following cost; the stable following cost is obtained according to the difference between the longitudinal displacement at each moment and the safety distance at each moment; the cost is obtained according to the weighted sum of the first evaluation criterion of driving comfort and the second evaluation criterion of driving safety; including:

[0031] The cost is obtained according to a weighted sum of the comfort cost, the collision cost, the speed cost, the centripetal acceleration cost and the stable following cost.

[0032] Furthermore, if the leading vehicle is not within the preset range, a linear expression is established for the longitudinal trajectory, and the acceleration is sampled within the preset acceleration range to obtain a number of acceleration sampling points. Based on the several acceleration sampling points, multiple feasible solutions of the speed planning expression are obtained, so that the feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution.

[0033] The present application also considers the case where the leading vehicle is not within the preset range and adopts a linear expression to perform speed planning. Compared with the existing related technology that adopts a multi-term expression regardless of whether the leading vehicle is within the preset range or not, the present application can adopt a linear expression with smaller computing power to perform speed planning for the scenario where the leading vehicle is not within the preset range, thereby reducing computing power requirements and computing power costs.

[0034] In a second aspect, the present application provides a speed planning device, including: a speed planning expression acquisition module and a solution and planning module; wherein,

[0035] The module for obtaining the speed planning expression is used to divide the longitudinal trajectory into N segments and establish multi-term expressions respectively to obtain the speed planning expression if the leading vehicle is within the preset range, with the goal of balancing driving comfort and driving safety, and obtain multiple feasible solutions of the speed planning expression according to the position sampling points at the end of the trajectory; N is a positive integer;

[0036] The solution and planning module is used to select the feasible solution with the lowest cost from the multiple feasible solutions as the optimal solution, and perform speed planning based on the optimal solution; the cost is obtained by the weighted sum of the first evaluation standard of driving comfort and the second evaluation standard of driving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a flow chart of a speed planning method provided by this application;

[0038] Figure 2 It is a schematic diagram provided by the present application when the preceding vehicle is within the preset range;

[0039] Figure 3 It is a schematic diagram of a single lane following cruise scenario provided by this application;

[0040] Figure 4 It is a schematic diagram of an acceleration curve of first accelerating and then decelerating provided by the present application;

[0041] Figure 5 It is a schematic diagram of the acceleration curve of first deceleration and then acceleration provided by the present application;

[0042] Figure 6 It is a schematic diagram of the acceleration curve of first accelerating and then uniform speed provided by the present application;

[0043] Figure 7 It is a schematic diagram of the acceleration curve of first deceleration and then uniform speed provided by the present application;

[0044] Figure 8 It is a schematic diagram of a single lane bicycle cruising scenario provided by the present application;

[0045] Fig. 9 It is a structural schematic diagram of a speed planning device provided by the present application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] It is worth mentioning that the commonly used speed planning methods often use quadratic optimization methods when performing speed planning, but this method requires high computing power of the on-board chip and the corresponding computing power cost is high; or, methods such as quintic or quartic polynomials are used for speed planning, but the intermediate state of the polynomial is uncontrollable, it is difficult to approach the optimal solution, and the speed planning accuracy is low.

[0048] Based on this, the present application provides a speed planning method and device, which decides whether to divide the longitudinal trajectory into N segments by judging the leading vehicle. If the leading vehicle is not within the preset range, a linear expression can be constructed for the longitudinal trajectory to model it, thereby reducing the calculation requirements; if the leading vehicle is within the preset range, N multi-term expressions can be established respectively by balancing the requirements of driving comfort and driving safety, and corresponding equality constraints are established for the N multi-term expressions, and multiple feasible solutions are obtained based on sampling points, thereby improving the accuracy of speed planning; finally, a cost function including comfort cost, collision cost, speed cost, centripetal acceleration cost and stable following cost is used to evaluate the driving comfort and driving safety of multiple feasible solutions to select the global optimal solution, thereby further balancing driving comfort and driving safety while improving the accuracy of speed planning.

[0049] In order to more clearly illustrate the speed planning method and device provided by the present application, a detailed description will be given through the following embodiments.

[0050] Example 1

[0051] See also Figure 1 , is a flow chart of a speed planning method provided by the present application, including: steps S11 to S12, specifically:

[0052] Step S11: If the leading vehicle is within the preset range, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, and multiple feasible solutions of the speed planning expression are obtained according to the position sampling points at the end of the trajectory; N is a positive integer.

[0053] In some embodiments, determining whether the preceding vehicle is within a preset range includes: if there is a preceding vehicle and the preceding vehicle is within a preset distance threshold, then the preceding vehicle is within the preset range.

[0054] In some embodiments, the preset distance threshold may be 100 meters, or 50 meters, or may be within a certain distance range. For example, if the preceding vehicle is within the distance range of (50, 150) meters, it is considered to be within the preset range.

[0055] In some embodiments, see Figure 2 , is a schematic diagram provided by the present application when the front vehicle is within the preset range. Figure 2 In the example, vehicle B is within a preset range of 100 meters in front of vehicle A. Vehicle A is driving in a one-way street and following vehicle A. At this time, vehicle A needs to maintain a certain safety distance from vehicle B.

[0056] In some embodiments, the safety distance may be expressed as:

[0057] X safe = tsafe * V 0 + X min_safe ;

[0058] Among them, t safe represents the time parameter, X min_safe Indicates the minimum following distance, V 0 Indicates that the starting speed of the vehicle during speed planning is the current actual speed of the vehicle V 0 .

[0059] In some embodiments, the time parameter t safe (range between 1 and 3 seconds) and the minimum following distance X min_safe (The range is between 1-5 meters) and can be set by the user. In this scenario, the distance between the vehicle and the vehicle in front needs to be as close to the safe distance as possible. Since the speed and position of the vehicle in front are changing dynamically and may even stop, the vehicle needs to plan its speed in real time and ensure safety and comfort.

[0060] In some embodiments, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, including: taking the current position as the initial planning position, taking the end position of the trajectory as the ending planning position, obtaining the planning distance, and establishing a local coordinate system in which the planning distance changes over time. Based on the local coordinate system, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into two segments, and multi-term expressions and equality constraints are established for the two segments to obtain a speed planning expression.

[0061] In some embodiments, N is preferably 2.

[0062] In some embodiments, N may also be other positive integers to adapt to corresponding driving scenarios.

[0063] In some embodiments, the speed planning expression includes: a first-segment speed planning expression, a second-segment speed planning expression and an equality constraint; establishing multi-term expressions and equality constraints for the two trajectories respectively to obtain a speed planning expression, including: establishing quartic expressions of the same format but different parameters for the two trajectories respectively to obtain a first-segment speed planning expression and a second-segment speed planning expression, and establishing an equality constraint based on the initial planning position, the end planning position and the path continuity of the two trajectories.

[0064] It is worth noting that the first-segment speed planning expression and the second-segment speed planning expression are speed planning expressions of the front and rear trajectories (corresponding to the first and second trajectories, respectively) obtained when the longitudinal trajectory is divided into two trajectories.

[0065] In some embodiments, see Figure 3, is a schematic diagram of a single-lane vehicle-following cruising scenario provided in this application. Figure 3 From top to bottom, the curves of the planned distance (Speed, s), speed (Velocity, v) and acceleration (Acceleration, acc) versus the speed planning time (time, t) are given respectively. Figure 3 The first graph takes the first and second derivatives of time, and we can get Figure 3 The second picture and Figure 3 The third picture. Figure 3 The total time for medium speed planning is 6 seconds, which is used for speed planning. Figure 3 In the first figure, the planned distance versus planning time, curve 301 is the predicted position curve of the preceding vehicle, curve 302 is the predicted safety distance curve of the preceding vehicle, and curve 303 is the planned position curve of the self-vehicle. Figure 3 In the second figure, which shows the speed change with the planned time, curve 304 is the planned vehicle speed curve, curve 305 is the current speed of the vehicle, curve 306 is the current speed of the preceding vehicle, and curve 307 is the user-set speed. Figure 3 In the third figure showing the acceleration changing with the planning time, curve 308 is the acceleration curve of the first segment of the planned trajectory of the vehicle, and curve 309 is the acceleration curve of the second segment of the planned trajectory of the vehicle.

[0066] In some embodiments, the longitudinal trajectory of the vehicle in the local coordinate system is composed of two quartic polynomials, and the first-stage velocity planning expression and the first-stage velocity planning expression can be respectively expressed as:

[0067] f1(t)= a1*t 4 + b1*t 3 + c1*t 2 + d1*t + e1;

[0068] f2(t)= a2*t 4 + b2* t 3 + c2* t 2 + d2*t + e2;

[0069] Among them, a1, b1, c1, d1, e1 and a2, b2, c2, d2, e2 are the unknowns in the speed planning expression of the first segment and the second segment respectively, t is the time; f1(t) and f2(t) represent the planning distances of the first and second segments of the trajectory over time respectively.

[0070] In some embodiments, the equality constraint comprises: an acceleration equality constraint.

[0071] In some embodiments, the acceleration equation constraint establishes an equation constraint according to the path continuity of the two trajectories, including: according to the path continuity of the two trajectories, establishing a velocity equation constraint in which the end position of the velocity curve of the first trajectory and the initial position of the velocity curve of the second trajectory are the same, and rewriting the velocity equation constraint according to the acceleration change of the two trajectories to obtain the acceleration equation constraint.

[0072] In some embodiments, the velocity equality constraint may be expressed as:

[0073] f2(ta)=f1(ta);

[0074] Wherein, ta and tb represent the time length of the acceleration curve of the first segment and the time length of the acceleration curve of the second segment, respectively. Figure 3 The third figure is a schematic diagram of the change of acceleration with planning time.

[0075] In some embodiments, the acceleration equation constraint includes: a first acceleration equation constraint; rewriting the velocity equation constraint according to the acceleration change of the two trajectory segments to obtain the acceleration equation constraint, including: rewriting the velocity equation constraint according to the absolute values ​​of the peaks or troughs of the acceleration curves of the first trajectory segment and the second trajectory segment being equal to obtain the first acceleration equation constraint; wherein the first acceleration equation constraint includes a first velocity change of the velocity equation constraint, and the first velocity change includes: a situation where the first trajectory segment accelerates and the second trajectory segment decelerates and a situation where the first trajectory segment decelerates and the second trajectory segment accelerates.

[0076] This application aims at different acceleration scenarios to obtain accurate acceleration equation constraints, so as to accurately correspond to the speed change curve of accelerating first and then decelerating or decelerating first and then accelerating, thereby improving the accuracy of speed planning.

[0077] In some embodiments, the acceleration equation constraint also includes: a second acceleration equation constraint; rewriting the velocity equation constraint according to the acceleration change of the two trajectory segments to obtain the acceleration equation constraint, and also includes: rewriting the velocity equation constraint according to the peak or trough of the acceleration curve of the second trajectory segment as a constant value to obtain the second acceleration equation constraint; wherein the second acceleration equation constraint includes a second velocity change of the velocity equation constraint, and the second velocity change includes: the first trajectory segment is accelerated and the second trajectory segment is uniformly accelerated and the first trajectory segment is decelerated and the second trajectory segment is uniformly accelerated.

[0078] In some embodiments, the constant value may be 0.

[0079] It is worth mentioning that the first acceleration equation constraint and the second acceleration equation constraint are two specific expressions of the velocity equation constraint. If the absolute values ​​of the peaks or troughs of the acceleration curves of the first and second trajectory segments are equal, the first acceleration equation constraint is needed to constrain the first and second velocity planning expressions; if the acceleration of the two trajectory segments changes, the second acceleration equation constraint is needed to constrain the first and second velocity planning expressions.

[0080] The present application also takes into account the acceleration scenario in which the peak or trough of the acceleration curve of the second segment of the trajectory is a constant value to obtain an accurate second acceleration equation constraint, thereby accurately corresponding to the speed change curve of first accelerating and then maintaining a constant speed or first decelerating and then maintaining a constant speed. The acceleration scenarios can be increased, thereby avoiding the situation where there is no optimal solution due to insufficient number of sampling points in a single acceleration scenario, and thus it is easier to approach the optimal solution, further improving the accuracy of speed planning.

[0081] In some embodiments, the velocity equation constraint includes: two cases, the first case is that the absolute values ​​of the peaks or troughs of the acceleration curves of the first trajectory segment and the second trajectory segment are equal (i.e., the first acceleration equation constraint), and the second case is that the peaks or troughs of the acceleration curves of the second trajectory segment are constant (i.e., the second acceleration equation constraint).

[0082] In some embodiments, when the absolute values ​​of the peaks or troughs of the acceleration curves of the first and second trajectory segments are equal, the velocity equation constraint can be expressed using the first acceleration equation, which can be written as:

[0083] |f1(ta / 2)''| = |f1(ta+tb / 2)''|;

[0084] Among them, f1( )'' is the second-order derivative operation of the first speed planning expression on the planning time. It is worth noting that in this case, four speed curves can be generated, including: acceleration first and then deceleration, deceleration first and then acceleration, and two sections of simultaneous acceleration or deceleration. However, only the cases of acceleration first and then deceleration and deceleration first and then acceleration are considered, and the speed curve of two sections of simultaneous acceleration or deceleration is discarded. The case of two sections of simultaneous acceleration or deceleration does not have the problem of balancing driving comfort and driving safety, so it is discarded.

[0085] In some embodiments, the speed curve of accelerating first and then decelerating is used to deal with the scene where the front vehicle is outside the safe distance but the speed is lower than the vehicle itself, see Figure 4 This is a schematic diagram of the acceleration curve of accelerating first and then decelerating provided by this application; the speed curve of decelerating first and then accelerating is used to deal with the scene where the front vehicle is within a safe distance but the speed is higher than the speed of the vehicle itself, see Figure 5This is a schematic diagram of an acceleration curve of first deceleration and then acceleration provided by the present application.

[0086] In some embodiments, when the peak or trough of the acceleration curve of the second trajectory is a constant value, the velocity equation constraint can be expressed using the second acceleration equation, which can be written as:

[0087] f1(ta+tb / 2)''= 0.

[0088] It is worth noting that f1(ta+tb / 2)''= 0 corresponds to two speed curves, including: acceleration first and then constant speed and deceleration first and then constant speed. The speed curve of acceleration followed by constant speed is used to deal with scenes such as starting with a car, and the speed curve of deceleration first and then constant speed is used to deal with scenes such as braking and stopping. Figure 6 and Figure 7 They are respectively a schematic diagram of an acceleration curve of first accelerating and then maintaining a constant speed and a schematic diagram of an acceleration curve of first decelerating and then maintaining a constant speed provided by the present application.

[0089] In some embodiments, the equality constraint also includes: the first segment speed planning expression is a constant at the initial planning position; and the starting speed of the initial planning position is the current actual speed of the vehicle; and the starting acceleration of the acceleration curve of the first segment trajectory is a constant; and the end speed of the speed curve of the first segment trajectory is equal to the initial speed of the speed curve of the second segment trajectory; and the end speed of the speed curve of the second segment trajectory is equal to the current actual speed of the leading vehicle; and the end speed acceleration of the second segment trajectory regresses to a constant; and the total duration of the speed planning is a preset value; and the end position of the trajectory is a position sampling point.

[0090] In some embodiments, the remaining constraints of the equality constraint may be expressed as:

[0091] f1(0)=0;

[0092] f1(0)'=V 0 ;

[0093] f1(0)''=0;

[0094] f1(ta)''= 0;

[0095] f2(ta)''=0;

[0096] f2(ta)=f1(ta);

[0097] f2(ta)'=f1(ta)';

[0098] f2(T)'= V p ;

[0099] f2(T)''= 0;

[0100] ta + tb = T;

[0101] f2(T) =s;

[0102] Among them, f1(0)=0 means the starting position of the vehicle is 0; f1(0)'=V 0 Indicates that the starting speed of the vehicle is the current actual speed of the vehicle V 0 ,f1( )' is the first derivative operation of the first speed planning expression for the planning time; f1(0)''=0 means that the initial acceleration of the acceleration curve of the first trajectory is 0, that is, the current acceleration of the vehicle is considered to be 0; f1(ta)''= 0 and f2(ta)''=0 respectively mean that the end of the acceleration curve of the first trajectory and the initial acceleration of the acceleration curve of the second trajectory are equal, both are 0, f1( )'' and f2( )'' are the second-order derivative operations of the first speed planning expression on the planning time and the second-order derivative operations of the second speed planning expression on the planning time; f2(ta)=f1(ta) means that the end position of the speed curve of the first trajectory is equal to the initial position of the speed curve of the second trajectory; f2(ta)'=f1(ta)' means that the end speed of the speed curve of the first trajectory is equal to the initial speed of the speed curve of the second trajectory, f2( )' is the first-order derivative operation of the second speed planning expression on the planning time; f2(T)'= V p The speed at the end of the speed curve of the second trajectory is equal to the current actual speed V of the front vehicle. p , the actual current speed of the leading vehicle is known and can be obtained in real time from upstream perception; f2(T)''= 0 means that the acceleration of the vehicle at the end returns to 0; ta + tb= T, T represents the total time of speed planning; f2(T) =s means that the end position of the trajectory after speed planning is s (that is, the planned distance after speed planning under the total time of speed planning), and s is obtained by sampling.

[0103] In some embodiments, the total speed planning duration T may be preset to 6 seconds.

[0104] It is worth noting that the sampling of the end position s of the trajectory indicates how far the vehicle is ahead in T seconds. The total time of speed planning T is fixed. The larger the end position s of the trajectory is, the faster the speed of the entire longitudinal trajectory will be. The smaller the end position s of the trajectory is, the slower the trajectory speed will be.

[0105] In some embodiments, the position sampling is performed on the end position s of the trajectory after velocity planning, and the sampling interval is [0, Xp+ V p * T]; where Xp represents the distance between the current front vehicle and the self-vehicle, V pIndicates the current speed of the vehicle ahead.

[0106] In some embodiments, the number of sampling points for position sampling can be 30; among them, according to the two cases of the speed equation constraint, each case is sampled separately, so the total number of sampling points is 60, so each control cycle will generate 60 feasible solutions, that is, 60 feasible solutions will be generated at each time t.

[0107] In some embodiments, if the leading vehicle is not within a preset range, a linear expression is established for the longitudinal trajectory, and the acceleration is sampled within a preset acceleration range to obtain a number of acceleration sampling points. Based on the number of acceleration sampling points, multiple feasible solutions of the speed planning expression are obtained, so that the feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution.

[0108] In some embodiments, see Figure 8 , is a schematic diagram of a single lane single vehicle cruising scenario provided by this application. Vehicle A is the self-vehicle, and there are no other vehicles in front. The speed planning model at this time can be modeled by a linear expression, which can be expressed as:

[0109] V d = a * t + V 0 ;

[0110] V o = max(0, min(V d , V s ));

[0111] Where a represents the expected acceleration, which is a hyperparameter that can be adjusted according to user requirements. V 0 represents the actual current speed of the vehicle, t represents each moment under the total speed planning time T, that is, the time of the acceleration sampling point, V s Indicates the user set speed, V o Represents a linear speed curve, min( ) is the minimum value operation, To obtain the maximum value operation.

[0112] In some embodiments, the user can be the driver to adjust the parameters in real time, or the manufacturer can set the default parameters. For example, the manufacturer sets the expected acceleration a or the user-set speed V by default. s , the driver resets the expected acceleration a or the user-set speed V in real time while driving s .

[0113] In some embodiments, the acceleration a is expected to be sampled within a range of -1 to 1, and the number of acceleration sampling points is 30. Then, 30 feasible solutions will be generated in each control cycle, that is, 30 feasible solutions will be generated at each time t.

[0114] The present application also considers the case where the leading vehicle is not within the preset range and adopts a linear expression to perform speed planning. Compared with the existing related technology that adopts a multi-term expression regardless of whether the leading vehicle is within the preset range or not, the present application can adopt a linear expression with smaller computing power to perform speed planning for the scenario where the leading vehicle is not within the preset range, thereby reducing computing power requirements and computing power costs.

[0115] Step S12: Select the feasible solution with the lowest cost from multiple feasible solutions as the optimal solution, and perform speed planning based on the optimal solution; the cost is obtained by the weighted sum of the first evaluation standard of driving comfort and the second evaluation standard of driving safety.

[0116] In some embodiments, the first evaluation criterion includes: comfort cost; the second evaluation criterion includes: collision cost, speed cost, centripetal acceleration cost and stable following cost.

[0117] It is worth noting that the first evaluation standard is an evaluation standard for evaluating driving comfort at the cost of comfort, and the second evaluation standard is an evaluation standard for evaluating driving safety at the cost of driving safety.

[0118] In some embodiments, the stable following cost is obtained based on the difference between the longitudinal displacement at each moment and the safety distance at each moment.

[0119] In some embodiments, the cost is obtained by weighting the first evaluation standard of driving comfort and the second evaluation standard of driving safety; including: obtaining the cost by weighting the sum of comfort cost and collision cost, speed cost, centripetal acceleration cost and stable following cost.

[0120] In some embodiments, the cost may be expressed as:

[0121] f cost =w 1 *cost LonObiective + w 2 *cost jerk + w 3 *cost collision + w 4 *cost centerAcc + w 5 *cost follow ;

[0122] Among them, cost LonObiective 、costjerk 、cost collision 、cost centerAcc and cost follow They are comfort cost, collision cost, speed cost, centripetal acceleration cost and stable following cost respectively; w 1 tow 5 They are the weights of comfort cost, collision cost, speed cost, centripetal acceleration cost and stable following cost respectively.

[0123] In some embodiments, the stable following cost is expressed as:

[0124] ;

[0125] in, , and are the longitudinal displacement at time t and the safety distance at time t respectively; It is the maximum value operation; is the total duration of speed planning.

[0126] In some embodiments, if multiple feasible solutions are obtained from a linear expression or multiple feasible solutions are obtained from two 4-order expressions, the feasible solutions with the lowest cost are selected as the optimal solutions of the linear expression or the two 4-order expressions, that is, the optimal solution is selected from 30 feasible solutions of the linear expression or 60 feasible solutions of the two 4-order expressions.

[0127] In some embodiments, when the front vehicle is within 100 meters, a double quartic polynomial expression is selected to calculate the optimal solution, and a linear model is not calculated; when there is no vehicle ahead or the front vehicle is outside 100 meters, a linear expression is selected to obtain the optimal solution, and a double quartic polynomial solution is not calculated, thereby increasing the amount of calculation and saving more than 50% of computing power relative to the optimization method.

[0128] Example 2

[0129] See also Fig. 9 , is a structural diagram of a speed planning device provided in the present application, including: a speed planning expression acquisition module 21 and a solution and planning module 22.

[0130] In some embodiments, the speed planning expression acquisition module 21 outputs multiple feasible solutions through N-segment speed planning expressions when the leading vehicle is within a preset range, and outputs the multiple feasible solutions to the solution and planning module 22; after receiving the multiple feasible solutions, the solution and planning module 22 obtains the optimal solution and performs speed planning based on the optimal solution.

[0131] The module 21 for obtaining the speed planning expression is used to divide the longitudinal trajectory into N segments and establish multi-term expressions for each segment to obtain the speed planning expression if the leading vehicle is within a preset range, with the goal of balancing driving comfort and driving safety. According to the position sampling points at the end of the trajectory, multiple feasible solutions of the speed planning expression are obtained; N is a positive integer.

[0132] In some embodiments, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, including: taking the current position as the initial planning position, taking the end position of the trajectory as the ending planning position, obtaining the planning distance, and establishing a local coordinate system in which the planning distance changes over time. Based on the local coordinate system, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into two segments, and multi-term expressions and equality constraints are established for the two segments to obtain a speed planning expression.

[0133] In some embodiments, the speed planning expression includes: a first-segment speed planning expression, a second-segment speed planning expression and an equality constraint; establishing multi-term expressions and equality constraints for the two trajectories respectively to obtain a speed planning expression, including: establishing quartic expressions of the same format but different parameters for the two trajectories respectively to obtain a first-segment speed planning expression and a second-segment speed planning expression, and establishing an equality constraint based on the initial planning position, the end planning position and the path continuity of the two trajectories.

[0134] In some embodiments, the equation constraint includes: an acceleration equation constraint; the acceleration equation constraint establishes an equation constraint based on the path continuity of the two trajectories, including: based on the path continuity of the two trajectories, establishing a velocity equation constraint in which the end position of the velocity curve of the first trajectory and the initial position of the velocity curve of the second trajectory are the same, and rewriting the velocity equation constraint according to the acceleration change of the two trajectories to obtain the acceleration equation constraint.

[0135] In some embodiments, the acceleration equation constraint includes: a first acceleration equation constraint; rewriting the velocity equation constraint according to the acceleration change of the two trajectory segments to obtain the acceleration equation constraint, including: rewriting the velocity equation constraint according to the absolute values ​​of the peaks or troughs of the acceleration curves of the first trajectory segment and the second trajectory segment being equal to obtain the first acceleration equation constraint; wherein the first acceleration equation constraint includes a first velocity change of the velocity equation constraint, and the first velocity change includes: a situation where the first trajectory segment accelerates and the second trajectory segment decelerates and a situation where the first trajectory segment decelerates and the second trajectory segment accelerates.

[0136] In some embodiments, the acceleration equation constraint also includes: a second acceleration equation constraint; rewriting the velocity equation constraint according to the acceleration change of the two trajectory segments to obtain the acceleration equation constraint, and also includes: rewriting the velocity equation constraint according to the peak or trough of the acceleration curve of the second trajectory segment as a constant value to obtain the second acceleration equation constraint; wherein the second acceleration equation constraint includes a second velocity change of the velocity equation constraint, and the second velocity change includes: the first trajectory segment is accelerated and the second trajectory segment is uniformly accelerated and the first trajectory segment is decelerated and the second trajectory segment is uniformly accelerated.

[0137] In some embodiments, the equality constraint also includes: the first segment speed planning expression is a constant at the initial planning position; and the starting speed of the initial planning position is the current actual speed of the vehicle; and the starting acceleration of the acceleration curve of the first segment trajectory is a constant; and the end speed of the speed curve of the first segment trajectory is equal to the initial speed of the speed curve of the second segment trajectory; and the end speed of the speed curve of the second segment trajectory is equal to the current actual speed of the leading vehicle; and the end speed acceleration of the second segment trajectory regresses to a constant; and the total duration of the speed planning is a preset value; and the end position of the trajectory is a position sampling point.

[0138] In some embodiments, if the leading vehicle is not within a preset range, a linear expression is established for the longitudinal trajectory, and the acceleration is sampled within a preset acceleration range to obtain a number of acceleration sampling points. Based on the number of acceleration sampling points, multiple feasible solutions of the speed planning expression are obtained, so that the feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution.

[0139] The solution and planning module 22 is used to select the feasible solution with the lowest cost from multiple feasible solutions as the optimal solution, and perform speed planning based on the optimal solution; the cost is obtained by the weighted sum of the first evaluation standard of driving comfort and the second evaluation standard of driving safety.

[0140] In some embodiments, the first evaluation criterion includes: comfort cost; the second evaluation criterion includes: collision cost, speed cost, centripetal acceleration cost and stable following cost; the stable following cost is obtained based on the difference between the longitudinal displacement at each moment and the safety distance at each moment; the cost is obtained by the weighted sum of the first evaluation criterion for driving comfort and the second evaluation criterion for driving safety; including: obtaining the cost based on the weighted sum of the comfort cost and the collision cost, speed cost, centripetal acceleration cost and stable following cost.

[0141] Compared with a single multi-term expression, the present application adopts a balanced driving comfort and driving safety as the goal, divides the longitudinal trajectory into N segments and establishes multi-term expressions for each segment, which is equivalent to adding (N-1) intermediate control points, so that the intermediate process of speed planning of a single multi-term expression can be controlled, thereby improving the accuracy of speed planning, and using comfort cost as the first evaluation criterion for driving comfort, and using collision cost, speed cost, centripetal acceleration cost and stable following cost as the second evaluation criterion for driving safety. The optimal solution is selected from multiple feasible solutions, which can make the speed planning expression more fit the optimization goal of balancing driving comfort and driving safety, thereby being closer to the optimal solution and further improving the accuracy of speed planning.

[0142] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.

[0143] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (apparatus), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0146] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A speed planning method, characterized in that: include: If the vehicle ahead is within the preset range, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, and multiple feasible solutions of the speed planning expression are obtained according to the position sampling points at the end of the trajectory. N is a positive integer; Selecting a feasible solution with the lowest cost from the multiple feasible solutions as an optimal solution, and performing speed planning based on the optimal solution; The cost is obtained by weighting the first evaluation standard of driving comfort and the second evaluation standard of driving safety; The above method aims to balance driving comfort and driving safety, divide the longitudinal trajectory into N segments and establish multi-term expressions for each segment to obtain a speed planning expression, including: Taking the current position as the initial planning position and the end position of the trajectory as the ending planning position, obtaining the planning distance, establishing a local coordinate system in which the planning distance changes with time, based on the local coordinate system, with the goal of balancing driving comfort and driving safety, dividing the longitudinal trajectory into two segments, and establishing multi-term expressions and equality constraints for the two segments, respectively, to obtain a speed planning expression; The speed planning expression includes: a first-segment speed planning expression, a second-segment speed planning expression and an equality constraint; the multi-term expression and the equality constraint are established for the two trajectories respectively to obtain the speed planning expression, including: Establishing quartic expressions of the same format but different parameters for the two trajectories respectively, obtaining the first-segment speed planning expression and the second-segment speed planning expression, and establishing an equality constraint according to the initial planning position, the end planning position and the path continuity of the two trajectories; The equation constraint includes: an acceleration equation constraint; the acceleration equation constraint is established according to the path continuity of the two trajectories, including: According to the path continuity of the two trajectories, a velocity equation constraint is established in which the end position of the velocity curve of the first trajectory is the same as the initial position of the velocity curve of the second trajectory, and the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint; The acceleration equation constraint includes: a first acceleration equation constraint; the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint, including: According to the equal absolute values ​​of the peaks or troughs of the acceleration curves of the first and second trajectory segments, the velocity equation constraint is rewritten to obtain the first acceleration equation constraint; wherein the first acceleration equation constraint includes a first velocity change of the velocity equation constraint, and the first velocity change includes: a situation where the first trajectory segment accelerates and the second trajectory segment decelerates, and a situation where the first trajectory segment decelerates and the second trajectory segment accelerates.

2. The speed planning method according to claim 1, characterized in that: The acceleration equation constraint further includes: a second acceleration equation constraint; the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint, and further includes: The velocity equation constraint is rewritten according to the peak or trough of the acceleration curve of the second trajectory as a constant value to obtain the second acceleration equation constraint; wherein the second acceleration equation constraint includes the second velocity change of the velocity equation constraint, and the second velocity change includes: the first trajectory is accelerated and the second trajectory is uniform, and the first trajectory is decelerated and the second trajectory is uniform.

3. The speed planning method according to claim 2, characterized in that: The equality constraints also include: The first speed planning expression is the fixed value at the initial planning position; and The starting speed of the initial planning position is the current actual speed of the vehicle; and, The initial acceleration of the acceleration curve of the first trajectory is the constant value; and The final speed of the speed curve of the first track segment is equal to the initial speed of the speed curve of the second track segment; and The speed at the end of the speed curve of the second trajectory is equal to the current actual speed of the preceding vehicle; and The final velocity acceleration of the second trajectory returns to the constant value; and The total duration of the speed planning is a preset value; and, The end position of the trajectory is a position sampling point.

4. The speed planning method according to claim 3, characterized in that: The first evaluation standard includes: comfort cost; the second evaluation standard includes: collision cost, speed cost, centripetal acceleration cost and stable following cost; the stable following cost is obtained according to the difference between the longitudinal displacement at each moment and the safety distance at each moment; the cost is obtained according to the weighted sum of the first evaluation standard of driving comfort and the second evaluation standard of driving safety; including: The cost is obtained according to a weighted sum of the comfort cost, the collision cost, the speed cost, the centripetal acceleration cost and the stable following cost.

5. The speed planning method according to claim 1, characterized in that: If the leading vehicle is not within the preset range, a linear expression is established for the longitudinal trajectory, and the acceleration is sampled within the preset acceleration range to obtain a number of acceleration sampling points. Based on the several acceleration sampling points, multiple feasible solutions of the speed planning expression are obtained, so that the feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution.

6. A speed planning device, characterized in that: include: Get the speed planning expression module and the solving and planning module; among them, The module for obtaining the speed planning expression is used to divide the longitudinal trajectory into N segments and establish multi-term expressions respectively to obtain the speed planning expression if the leading vehicle is within the preset range, with the goal of balancing driving comfort and driving safety, and obtain multiple feasible solutions of the speed planning expression according to the position sampling points at the end of the trajectory; N is a positive integer; The solution and planning module is used to select the feasible solution with the lowest cost from the multiple feasible solutions as the optimal solution, and perform speed planning based on the optimal solution; the cost is obtained based on the weighted sum of the first evaluation standard of driving comfort and the second evaluation standard of driving safety; The module for obtaining the speed planning expression aims to balance driving comfort and driving safety, divides the longitudinal trajectory into N segments and establishes multi-term expressions for each segment to obtain the speed planning expression, including: The module for obtaining the speed planning expression uses the current position as the initial planning position and the end position of the trajectory as the ending planning position, obtains the planning distance, establishes a local coordinate system in which the planning distance changes with time, divides the longitudinal trajectory into two segments based on the local coordinate system with the goal of balancing driving comfort and driving safety, and establishes multi-term expressions and equality constraints for the two segments to obtain the speed planning expression; The speed planning expression includes: a first-segment speed planning expression, a second-segment speed planning expression and an equality constraint; the speed planning expression acquisition module establishes multi-term expressions and equality constraints for the two trajectories respectively, and obtains a speed planning expression, including: The speed planning expression acquisition module establishes a quartic expression of the same format but different parameters for the two trajectories, obtains the first speed planning expression and the second speed planning expression, and establishes an equality constraint according to the initial planning position, the end planning position and the path continuity of the two trajectories; The equation constraint includes: an acceleration equation constraint; the acceleration equation constraint is established according to the path continuity of the two trajectories, including: According to the path continuity of the two trajectories, a velocity equation constraint is established in which the end position of the velocity curve of the first trajectory is the same as the initial position of the velocity curve of the second trajectory, and the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint; The acceleration equation constraint includes: a first acceleration equation constraint; the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint, including: According to the equal absolute values ​​of the peaks or troughs of the acceleration curves of the first and second trajectory segments, the velocity equation constraint is rewritten to obtain the first acceleration equation constraint; wherein the first acceleration equation constraint includes a first velocity change of the velocity equation constraint, and the first velocity change includes: a situation where the first trajectory segment accelerates and the second trajectory segment decelerates, and a situation where the first trajectory segment decelerates and the second trajectory segment accelerates.