Automatic driving method, device and storage medium

By embedding the gradient optimization algorithm into the meta-heuristic algorithm, a combined architecture of decision-making and planning is formed, which solves the incompleteness and optimality problems in the decision-making part of autonomous driving trajectory planning and achieves high-quality autonomous driving trajectory output.

CN111781920BActive Publication Date: 2024-09-24BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911171437.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-26
Publication Date
2024-09-24
Estimated Expiration
2039-11-26

AI Technical Summary

Technical Problem

In existing autonomous driving trajectory planning methods, the structure of the search sampling method is not refined enough, resulting in incompleteness and optimality issues in the decision-making part, which limits the quality of autonomous driving trajectories.

Method used

Embedding the gradient optimization algorithm into the meta-heuristic algorithm is used to determine the driving parameters through iterative calculations to form a combined architecture of decision-making and planning. The meta-heuristic algorithm is used for rough search and combined with the gradient optimization algorithm for fine optimization to output high-quality Autonomous driving trajectory.

Benefits of technology

Through this method, higher quality autonomous driving trajectories can be obtained, which solves the incompleteness and optimality problems of the decision-making part in the existing technology, and improves the precision and optimization of the trajectory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111781920B
    Figure CN111781920B
Patent Text Reader

Abstract

The present invention discloses an automatic driving method, device and storage medium, and relates to the field of automatic driving technology. The automatic driving method includes: establishing a first optimization problem; converting part of the constraints of the first optimization problem into a penalty function to form a second optimization problem; iteratively executing i) to iii) until a preset number of iterations is reached: i) obtaining a solution to the second optimization problem through a search process based on a metaheuristic algorithm; ii) determining an initial solution to the first optimization problem based on the solution to the second optimization problem, and using a gradient optimization algorithm to solve the first optimization problem, determining the value of the first objective function and the corresponding solution; iii) when the value of the first objective function is less than the minimum value of the first objective function, using the value of the first objective function to update the minimum value; determining the solution corresponding to the minimum value of the first objective function as the driving parameter of the automatic driving. Thus, a higher quality automatic driving trajectory can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to an autonomous driving method, device and storage medium. Background Art

[0002] The development of autonomous driving decision planning is becoming more and more mature. The current mainstream idea is to obtain a rough solution in the simplified solution space through search sampling technology (such as A* method or RRT, DP and other methods), and then carry out fine gradient optimization around this rough solution, and obtain a local optimal solution through fine gradient optimization method. Here, the "rough solution" determines which local optimal solution the final gradient optimization method converges to. In short, the mainstream approach is to regard the search sampling method as the vehicle's motion decision link, and the local path or trajectory planning link as the planning link. The two links are combined into motion decision planning. Summary of the invention

[0003] After analysis, the inventors found that in the motion decision-making planning method of the related technology, a very critical weak link is the decision-making part. This is because the structure of the connected graph constructed in the search sampling method adopted is not fine enough, or the search method itself is not complete. Taking A* as an example, A* search is a "best priority strategy". The heuristic function it uses can increase the search speed, but it sacrifices the completeness and optimality of the algorithm. A series of commonly used decision methods based on A* search, such as hybrid A*, ARA and other algorithms are not complete and do not have optimality. As other upstream technical difficulties are gradually resolved, this hidden danger of decision-making quality has gradually risen from a minor contradiction to the main contradiction of the decision-making planning module, becoming a bottleneck limiting the quality of autonomous driving trajectories.

[0004] A technical problem to be solved by the embodiments of the present invention is: how to improve the quality of the automatic driving trajectory.

[0005] According to a first aspect of some embodiments of the present invention, there is provided an automatic driving method, comprising: establishing a first optimization problem, the first optimization problem comprising a first objective function for minimizing a discomfort value during driving, the solution of the first optimization problem comprising driving parameters of the vehicle; converting some constraints of the first optimization problem into a penalty function to form a second optimization problem, the second optimization problem comprising a second objective function, the second objective function representing the sum of the first objective function and the penalty function; iteratively executing i) to iii) until a preset number of iterations is reached: i) obtaining a solution to the second optimization problem through a search process based on a metaheuristic algorithm; ii) determining an initial solution to the first optimization problem according to the solution to the second optimization problem, and solving the first optimization problem using a gradient optimization algorithm to determine a value of the first objective function and a corresponding solution; iii) when the value of the first objective function is less than the minimum value of the first objective function, using the value of the first objective function to update the minimum value; determining the solution corresponding to the minimum value of the first objective function as the driving parameter of the automatic driving.

[0006] In some embodiments, the first objective function is positively correlated with the absolute value of the wheel angle at each time within a preset time period.

[0007] In some embodiments, the first objective function is the sum of the squares of the wheel turning angles at each time within a preset time period.

[0008] In some embodiments, the constraints of the first optimization problem include the vehicle's kinematic model constraints, the vehicle's speed constraints, the wheel angle constraints, the vehicle's starting point constraints, and the vehicle's end point constraints; the constraints of the second optimization problem include the vehicle's speed constraints and the wheel angle constraints.

[0009] In some embodiments, the penalty function includes distance information between the vehicle's position at a preset time and the end point and distance information between the vehicle and obstacles during driving.

[0010] In some embodiments, before iteratively executing i) to iii), a solution space of the second objective function is constructed and multiple coarse search variables and multiple fine search variables in the solution space are initialized; obtaining a solution to the second optimization problem through a search process based on a metaheuristic algorithm includes: for each coarse search variable, performing a cross-mutation operation with other coarse search variables according to a preset probability to obtain an alternative optimization variable value of the coarse search variable, and when the value of the second objective function calculated according to the alternative optimization variable value is less than the value of the second objective function calculated according to the value of the coarse search variable, updating the value of the coarse search variable using the alternative optimization variable value; determining the weight of each coarse search variable according to the inverse of the value of the second objective function corresponding to the value of each coarse search variable; and determining the coarse search variable corresponding to each fine search variable according to the weight of each coarse search variable by a roulette wheel method, wherein the value of the coarse search variable corresponding to the fine search variable represents the solution of the second objective function.

[0011] In some embodiments, for each coarse search variable, performing a crossover mutation operation with other coarse search variables according to a preset probability to obtain a candidate optimization variable value of the coarse search variable includes:

[0012] For each coarse search variable, in response to determining to perform a cross-mutation operation on the coarse search variable according to a preset probability, a dimension of the solution space is randomly selected, and the coarse search variable and the values ​​of other coarse search variables in the selected dimension are randomly mixed to obtain an alternative optimization variable value of the coarse search variable.

[0013] In some embodiments, the meta-heuristic algorithm is at least one of an artificial bee colony algorithm, a taboo search algorithm, a genetic algorithm, a simulated annealing algorithm, an ant colony algorithm, and a particle swarm algorithm.

[0014] In some embodiments, the gradient descent algorithm is an interior point algorithm or a sequential quadratic programming algorithm.

[0015] According to a second aspect of some embodiments of the present invention, there is provided an automatic driving device, comprising: a first optimization problem establishing module, configured to establish a first optimization problem, the first optimization problem comprising a first objective function for minimizing a discomfort value during driving, and a solution to the first optimization problem comprising driving parameters of the vehicle; a second optimization problem establishing module, configured to convert part of the constraints of the first optimization problem into a penalty function to form a second optimization problem, the second optimization problem comprising a second objective function, and the second objective function represents the sum of the first objective function and the penalty function; an optimization problem solving module, configured to iteratively execute i) to iii) until a preset number of iterations is reached: i) obtaining a solution to the second optimization problem through a search process based on a metaheuristic algorithm; ii) determining an initial solution to the first optimization problem according to the solution to the second optimization problem, and solving the first optimization problem using a gradient optimization algorithm to determine a value of the first objective function and a corresponding solution; iii) when the value of the first objective function is less than the minimum value of the first objective function, updating the minimum value using the value of the first objective function; a driving parameter determination module, configured to determine the solution corresponding to the minimum value of the first objective function as the driving parameter of the automatic driving.

[0016] According to a third aspect of some embodiments of the present invention, there is provided an autonomous driving device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute any one of the aforementioned autonomous driving methods based on instructions stored in the memory.

[0017] According to a fourth aspect of some embodiments of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements any one of the aforementioned autonomous driving methods.

[0018] Some embodiments of the above invention have the following advantages or beneficial effects: In the embodiments of the present invention, the driving parameters are determined by embedding the gradient optimization algorithm into the meta-heuristic algorithm, and the decision-making and planning processes are difficult to separate. The two interact with each other and continuously iterate and calculate, and finally output a refined optimization trajectory at one time. In this way, a higher quality autonomous driving trajectory can be obtained.

[0019] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0021] Figure 1 Schematic diagram of a driving method according to some embodiments of the present invention.

[0022] Figure 2 Schematic diagram of a flow chart of a method for determining driving parameters according to some embodiments of the present invention.

[0023] Figure 3 Schematic diagram of the structure of an automatic driving device according to some embodiments of the present invention.

[0024] Figure 4 Schematic diagram of the structure of an automatic driving device according to some other embodiments of the present invention.

[0025] Figure 5 Schematic diagram of the structure of an automatic driving device according to some other embodiments of the present invention. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] The relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.

[0028] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0029] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0030] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0031] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0032] Figure 1 FIG. 1 is a flow chart of a driving method according to some embodiments of the present invention. Figure 1 As shown, the driving method of this embodiment includes steps S102 to S112.

[0033] In step S102, a first optimization problem is established. The first optimization problem includes a first objective function that minimizes the discomfort value during driving. The solution of the first optimization problem, i.e., the optimization variable, includes the driving parameters of the vehicle. The driving parameters include the speed and the turning angle of the vehicle. In some embodiments, the solution may be in the form of separate constants, such as the speed value and the turning angle value of each time interval within a preset time period.

[0034] In some embodiments, the discomfort value during driving can be determined by the wheel turning angle. If the wheel turning angle is large or the number of turning angles is large, the vehicle's trajectory will be uneven and the vehicle will shake, thereby causing discomfort to the passengers in the vehicle.

[0035] In some embodiments, the first objective function is positively correlated with the absolute value of the wheel angle at each time in the preset time period, thereby eliminating the influence of the positive and negative signs of the vehicle angle.

[0036] In some embodiments, the constraints of the first optimization problem include a kinematic model constraint of the vehicle, a speed constraint of the vehicle, a wheel angle constraint, a starting point constraint of the vehicle, and an end point constraint of the vehicle.

[0037] In some embodiments, the first objective function is the sum of the squares of the wheel angles at each time in a preset time period. For example, the first objective function and exemplary constraints are shown in formula group (1).

[0038] Objective function:

[0039] Constraints:

[0040]

[0041] Collision avoidance constraints.

[0042] In formula group (1), t∈[0, t f] represents the motion time domain, i.e. the preset time period, t f Indicates the end time; [x i (t), y i (t)] represents the coordinate of the midpoint of the rear axle of vehicle i; v i (t) represents the speed along the longitudinal axis of the vehicle body; Φ i (t) is the wheel angle; θ i (t) represents the attitude angle of the vehicle; L w Represents the front and rear wheelbase; v max i represents the absolute value of the maximum speed of vehicle i, Φ max i represents the absolute value of the maximum turning angle of vehicle i. Solving this problem means determining the control variable [Φ i (t), v i (t)], under the premise of satisfying all constraints, the value of the optimization objective function J1 is minimized. The specific form of the collision avoidance constraint can refer to the existing collision avoidance constraint, and the embodiments of the present invention will not be described in detail.

[0043] From formula (1), we can see that the objective function of the first optimization problem is relatively simple, but the constraints are relatively complex.

[0044] In step S104, some constraints of the first optimization problem are converted into penalty functions to form a second optimization problem, which includes a second objective function, which represents the sum of the first objective function and the penalty function. Thus, the second optimization problem complicates the objective function of the first optimization problem and simplifies the constraints.

[0045] In some embodiments, the constraints of the second optimization problem include vehicle speed constraints and wheel angle constraints. For example, the second objective function and exemplary constraints are shown in formula group (2).

[0046] Objective function:

[0047] Constraints:

[0048]

[0049] In formula group (2), Penalty(χ) represents the penalty function, and the meanings of other variables can refer to formula group (1). The specific form of Penalty(χ) can refer to formula (3).

[0050]

[0051] In formula (3), g(χ) represents the result after the constraint is converted. For example, for the collision constraint, the distance between the vehicle and the obstacle is required to be greater than the preset value, that is, the vehicle position-obstacle position ≥ the preset value, and then the vehicle position-obstacle position-preset value ≥ 0 is obtained, which can be converted to the form of g(χ) ≥ 0. The conversion method of the end point constraint is similar and will not be repeated here.

[0052] From formula (2), we can see that after using the external penalty function to soften the hard constraints, the constraints of the second optimization problem are all simple linear constraints with only simple boundaries, which are suitable for solving by meta-heuristic algorithms.

[0053] Then, steps S106 to S110 are iteratively executed until a preset number of iterations is reached.

[0054] In step S106, a solution to the second optimization problem is obtained through a search process based on a meta-heuristic algorithm.

[0055] In some embodiments, the meta-heuristic algorithm is at least one of an artificial bee colony algorithm, a taboo search algorithm, a genetic algorithm, a simulated annealing algorithm, an ant colony algorithm, and a particle swarm algorithm.

[0056] Compared with the first objective function, the second objective function is more complex, but the constraints are simpler. Since the meta-heuristic optimization algorithm does not use the gradient information of the function in the optimization proposition, it is suitable for dealing with problems such as the second objective function, which has simple constraints but complex objective functions.

[0057] In step S108, an initial solution to the first optimization problem is determined according to the solution to the second optimization problem, and a gradient optimization algorithm is used to solve the first optimization problem to determine the value of the first objective function and the corresponding solution.

[0058] In some embodiments, the gradient descent algorithm is an interior point algorithm or a sequential quadratic programming algorithm.

[0059] In step S110 , when the value of the first objective function is less than the minimum value of the first objective function, the minimum value is updated by using the value of the first objective function.

[0060] By iteratively executing steps S106 to S110 , the minimum value of the first objective function and the corresponding solution can be continuously updated and recorded.

[0061] If only the metaheuristic algorithm is used for calculation, it is often difficult to converge quickly, because the metaheuristic optimization algorithm does not use gradient information, so the exploration is blind and it is difficult to converge to a local optimal solution and satisfy the constraints. In order to solve this problem, the inventor added a gradient-based optimization method that iterates with the metaheuristic algorithm, and initialized the gradient optimization method using the rough solution explored by the metaheuristic algorithm, so that a fine trajectory can be obtained quickly. When using the gradient optimization method to obtain a fine trajectory, the proposition corresponding to the first objective function can be solved directly, which means that the gradient optimization method will deal with a large number of complex constraints, but because the gradient optimization uses the rough solution provided by the metaheuristic optimization as the initial solution, convergence can be completed quickly.

[0062] In step S112, the solution corresponding to the minimum value of the first objective function is determined as the driving parameter of the automatic driving. After obtaining the automatic driving parameter, the position and posture information of the vehicle at each time can be further obtained, so as to obtain the automatic driving trajectory of the vehicle.

[0063] The above-mentioned embodiment proposes a combined decision-making and planning integrated architecture, and a gradient optimization algorithm is embedded in the framework of the metaheuristic algorithm. When searching based on the metaheuristic optimization algorithm, a rough trajectory screening can be completed; and when using the gradient optimization algorithm, a fine gradient optimization search can be carried out for a rough trajectory with higher quality. Therefore, the metaheuristic algorithm that plays a role in decision-making is not executed once in the upstream, but is continuously iterated and calculated; and the gradient optimization algorithm that plays a role in planning is not executed once in the downstream link, but is embedded in the metaheuristic algorithm and continuously calculated. Therefore, the decision-making and planning in the above-mentioned embodiment are difficult to separate. Through interaction and continuous iterative calculation, the two finally output a fine optimized trajectory at one time. In this way, a higher quality autonomous driving trajectory can be obtained.

[0064] The following describes an embodiment of solving the objective function by taking an improved algorithm based on an artificial bee colony algorithm as a meta-heuristic algorithm as an example.

[0065] Figure 2 FIG. 1 is a flow chart of a method for determining driving parameters according to some embodiments of the present invention. Figure 2 As shown, the driving parameter determination method of this embodiment includes steps S202 to S214.

[0066] In step S202, a solution space of the second objective function is constructed and a plurality of coarse search variables and a plurality of fine search variables in the solution space are initialized.

[0067] The meta-heuristic algorithm is optimized based on the second objective function, and the optimization variable is the driving parameter [Φ i (t), vi (t)] is a separation constant form. f ] is divided into N fe The actual solution space composed of optimization variables is

[0068] The coarse search variable corresponds to the employed bee in the artificial bee colony algorithm, which is used for rough search and global search. The fine search variable corresponds to the onlooker bee in the artificial bee colony algorithm, which is used for fine search within a rough neighborhood.

[0069] In some embodiments, a preset number of values ​​of the coarse search variables are independently and randomly generated in the solution space according to uniform distribution. The values ​​of the fine search variables can be temporarily set to null or uniformly set to preset values, and their values ​​are determined in step S208.

[0070] Steps S204 to S212 are iteratively executed until a preset number of iterations is reached.

[0071] In step S204, for each coarse search variable, a cross-mutation operation is performed with other coarse search variables according to a preset probability to obtain an alternative optimization variable value of the coarse search variable, and when the value of the second objective function calculated based on the alternative optimization variable value is less than the value of the second objective function calculated based on the value of the coarse search variable, the value of the coarse search variable is updated using the alternative optimization variable value.

[0072] The preset probability for deciding whether to perform a crossover mutation operation can be set as needed. For example, in each iteration, each coarse search variable can have a 50% probability of randomly resetting in the solution space, and a 50% probability of performing a crossover mutation operation to share information with a neighboring coarse search variable. If the coarse search variable decides to reset its position, its position will be randomly determined in the solution space in a uniformly distributed manner in all dimensions.

[0073] In some embodiments, for each coarse search variable, in response to determining to perform a crossover mutation operation on the coarse search variable according to a preset probability, a dimension of the solution space is randomly selected, and the coarse search variable is randomly mixed with the values ​​of other coarse search variables in the selected dimension to obtain the candidate optimization variable value of the coarse search variable. Other coarse search variables for random mixing can be selected based on a uniform distribution within a preset range, for example, other coarse search variables adjacent to the current coarse search variable are selected.

[0074] If the coarse search variable decides to perform a crossover mutation operation, it will "randomly mix" the values ​​of the corresponding dimensions of other companions on a randomly selected dimension. For example, the candidate optimization variable value of the coarse search variable can be determined according to formula (4):

[0075]

[0076] Formula (4) represents the cross-mutation operation between the i-th coarse search variable and the k-th coarse search variable in the j-th dimension, where Represents the value of the ith rough search variable, that is, a candidate solution vector. Each rough search variable changes one dimension during each iteration. The selection of i and k follows a uniform distribution within a preset range.

[0077] Step S204 uses a greedy strategy to determine whether the current crossover mutation is effective. If the rough search variable is updated according to the result of the crossover mutation operation, which will cause the value of the second objective function to become smaller, then the crossover mutation is accepted, otherwise the current crossover mutation behavior is abandoned.

[0078] After one round of crossover mutation attempts for each coarse search variable, the coarse exploration phase of this iteration ends.

[0079] In step S206, the weight of each rough search variable is determined according to the inverse of the value of the second objective function corresponding to the value of each rough search variable.

[0080] In step S208, the coarse search variable corresponding to each fine search variable is determined by roulette according to the weight of each coarse search variable, wherein the value of the coarse search variable corresponding to the fine search variable represents the solution of the second objective function.

[0081] Each fine search variable decides which coarse search variable to conduct local search around according to the roulette strategy. In the roulette strategy, the weight of each coarse search variable represents the quality of its current search position, and the higher the quality, the greater the weight. Therefore, the inverse of the second objective function can be selected as the embodiment of quality.

[0082] Since after each onlooker bee selects the corresponding employed bee to start searching, we will The position information in space and the state variables derived from it are further expanded to have 5N fe ×1-dimensional complete solution vector, that is, in addition to speed and wheel angle, the vehicle's x-axis coordinate value, y-axis coordinate value, and posture information can also be deduced based on these two.

[0083] In step S210, an initial solution to the first optimization problem is determined according to a solution to the second optimization problem, and a gradient optimization algorithm is used to solve the first optimization problem to determine a value of the first objective function and a corresponding solution.

[0084] In step S212, when the value of the first objective function is less than the minimum value of the first objective function, the minimum value is updated by using the value of the first objective function.

[0085] In step S214, the solution corresponding to the minimum value of the first objective function is determined as the driving parameter of the automatic driving.

[0086] Through the method of the above embodiment, the rough search process can be implemented based on the artificial bee colony algorithm. Different from ordinary artificial bee colonies, the above embodiment uses a roulette wheel method to determine the rough search variable (i.e., employed bee) corresponding to the fine search variable (i.e., observer bee), so that not every rough search variable is finely searched around, so that the values ​​of the rough search variables with lower quality can be eliminated in time, thereby improving the quality of the autonomous driving trajectory.

[0087] Reference below Figure 3 An embodiment of the automatic driving device of the present invention is described.

[0088] Figure 3 Schematic diagram of the structure of an automatic driving device according to some embodiments of the present invention. Figure 3 As shown, the automatic driving device 30 of this embodiment includes: a first optimization problem establishing module 310, which is configured to establish a first optimization problem, the first optimization problem includes a first objective function that minimizes the discomfort value during driving, and the solution of the first optimization problem includes the driving parameters of the vehicle; a second optimization problem establishing module 320, which is configured to convert part of the constraints of the first optimization problem into a penalty function to form a second optimization problem, the second optimization problem includes a second objective function, and the second objective function represents the sum of the first objective function and the penalty function; an optimization problem solving module 330, which is configured to iteratively execute i)~iii) until a preset number of iterations is reached: i) obtaining a solution to the second optimization problem through a search process based on a metaheuristic algorithm; ii) determining an initial solution to the first optimization problem based on the solution to the second optimization problem, and using a gradient optimization algorithm to solve the first optimization problem to determine the value of the first objective function and the corresponding solution; iii) when the value of the first objective function is less than the minimum value of the first objective function, using the value of the first objective function to update the minimum value; a driving parameter determination module 340, which is configured to determine the solution corresponding to the minimum value of the first objective function as the driving parameter of the automatic driving.

[0089] In some embodiments, the first objective function is positively correlated with the absolute value of the wheel angle at each time within a preset time period.

[0090] In some embodiments, the first objective function is the sum of the squares of the wheel turning angles at each time within a preset time period.

[0091] In some embodiments, the constraints of the first optimization problem include the vehicle's kinematic model constraints, the vehicle's speed constraints, the wheel angle constraints, the vehicle's starting point constraints, and the vehicle's end point constraints; the constraints of the second optimization problem include the vehicle's speed constraints and the wheel angle constraints.

[0092] In some embodiments, the penalty function includes distance information between the vehicle's position at a preset time and the end point and distance information between the vehicle and obstacles during driving.

[0093] In some embodiments, the optimization problem solving module 330 is further configured to construct a solution space of the second objective function and initialize multiple coarse search variables and multiple fine search variables in the solution space before iteratively executing i) to iii); for each coarse search variable, perform a cross-mutation operation with other coarse search variables according to a preset probability to obtain an alternative optimization variable value of the coarse search variable, and when the value of the second objective function calculated according to the alternative optimization variable value is less than the value of the second objective function calculated according to the value of the coarse search variable, use the alternative optimization variable value to update the value of the coarse search variable; determine the weight of each coarse search variable according to the inverse of the value of the second objective function corresponding to the value of each coarse search variable; and determine the coarse search variable corresponding to each fine search variable according to the weight of each coarse search variable by a roulette wheel method, wherein the value of the coarse search variable corresponding to the fine search variable represents the solution of the second objective function.

[0094] In some embodiments, the optimization problem solving module 330 is further configured to, for each coarse search variable, in response to determining to perform a cross-mutation operation on the coarse search variable according to a preset probability, randomly select a dimension of the solution space, and randomly mix the coarse search variable with the values ​​of other coarse search variables in the selected dimension to obtain an alternative optimization variable value of the coarse search variable.

[0095] In some embodiments, the meta-heuristic algorithm is at least one of an artificial bee colony algorithm, a taboo search algorithm, a genetic algorithm, a simulated annealing algorithm, an ant colony algorithm, and a particle swarm algorithm.

[0096] In some embodiments, the gradient descent algorithm is an interior point algorithm or a sequential quadratic programming algorithm.

[0097] Figure 4 Schematic diagram of the structure of an automatic driving device according to some other embodiments of the present invention. Figure 4As shown, the autonomous driving device 40 of this embodiment includes: a memory 410 and a processor 420 coupled to the memory 410, and the processor 420 is configured to execute the autonomous driving method in any one of the aforementioned embodiments based on instructions stored in the memory 410.

[0098] The memory 410 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.

[0099] Figure 5 Schematic diagram of the structure of an automatic driving device according to some embodiments of the present invention. Figure 5 As shown, the automatic driving device 50 of this embodiment includes: a memory 510 and a processor 520, and may also include an input / output interface 530, a network interface 540, a storage interface 550, etc. These interfaces 530, 540, 550 and the memory 510 and the processor 520 may be connected, for example, via a bus 560. Among them, the input / output interface 530 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 540 provides a connection interface for various networked devices. The storage interface 550 provides a connection interface for external storage devices such as SD cards and USB flash drives.

[0100] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the program implements any one of the aforementioned autonomous driving methods when executed by a processor.

[0101] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0102] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0103] 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 comprising 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.

[0104] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0105] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An automatic driving method, comprising: Establishing a first optimization problem, wherein the first optimization problem includes a first objective function for minimizing a discomfort value during driving, wherein a solution to the first optimization problem includes a driving parameter of the vehicle, and wherein the first objective function is positively correlated with an absolute value of a wheel angle at each time within a preset time period; Converting some constraints of the first optimization problem into a penalty function to form a second optimization problem, wherein the second optimization problem includes a second objective function, and the second objective function represents the sum of the first objective function and the penalty function, wherein g(χ) is obtained after converting the some constraints, and when g(χ)≥0 holds, the value of the penalty function is 0, and when g(χ)≥0 does not hold, the value of the penalty function is g^2 (χ); Iterate i) to iii) until the preset number of iterations is reached: i) obtaining a solution to the second optimization problem through a search process based on a meta-heuristic algorithm; ii) determining an initial solution to the first optimization problem according to the solution to the second optimization problem, and solving the first optimization problem using a gradient optimization algorithm to determine a value of the first objective function and a corresponding solution; iii) when the value of the first objective function is less than the minimum value of the first objective function, updating the minimum value by using the value of the first objective function; The solution corresponding to the minimum value of the first objective function is determined as the driving parameter of the automatic driving.

2. The automatic driving method according to claim 1, wherein: The first objective function is the sum of the squares of the wheel turning angles at each time within a preset time period.

3. The automatic driving method according to claim 1, wherein: The constraints of the first optimization problem include the vehicle's kinematic model constraints, the vehicle's speed constraints, the wheel angle constraints, the vehicle's starting point constraints, and the vehicle's end point constraints; The constraints of the second optimization problem include vehicle speed constraints and wheel angle constraints.

4. The automatic driving method according to claim 1 or 3, wherein: The penalty function includes the distance information between the position of the vehicle at a preset time and the end point and the distance information between the vehicle and the obstacle during the driving process.

5. The automatic driving method according to claim 1, wherein: Before iteratively executing i) to iii), constructing a solution space of the second objective function and initializing a plurality of coarse search variables and a plurality of fine search variables in the solution space; Obtaining a solution to the second optimization problem through a search process based on a meta-heuristic algorithm includes: For each coarse search variable, a crossover mutation operation is performed with other coarse search variables according to a preset probability to obtain a candidate optimization variable value of the coarse search variable, and when a value of a second objective function calculated according to the candidate optimization variable value is less than a value of a second objective function calculated according to the value of the coarse search variable, the value of the coarse search variable is updated by using the candidate optimization variable value; Determine the weight of each rough search variable according to the inverse of the value of the second objective function corresponding to the value of each rough search variable; According to the weight of each coarse search variable, a coarse search variable corresponding to each fine search variable is determined in a roulette manner, wherein the value of the coarse search variable corresponding to the fine search variable represents a solution to the second objective function.

6. The automatic driving method according to claim 5, wherein: For each coarse search variable, performing a cross-mutation operation with other coarse search variables according to a preset probability to obtain a candidate optimization variable value of the coarse search variable includes: For each coarse search variable, in response to determining to perform a cross-mutation operation on the coarse search variable according to a preset probability, a dimension of the solution space is randomly selected, and the values ​​of the coarse search variable and other coarse search variables in the selected dimension are randomly mixed to obtain an alternative optimization variable value of the coarse search variable.

7. The automatic driving method according to any one of claims 1 to 3, wherein: The meta-heuristic algorithm is at least one of an artificial bee colony algorithm, a taboo search algorithm, a genetic algorithm, a simulated annealing algorithm, an ant colony algorithm, and a particle swarm algorithm.

8. The automatic driving method according to any one of claims 1 to 3, wherein: The gradient optimization algorithm is an interior point algorithm or a sequential quadratic programming algorithm.

9. An automatic driving device, comprising: a first optimization problem establishing module, configured to establish a first optimization problem, wherein the first optimization problem includes a first objective function for minimizing a discomfort value during driving, a solution to the first optimization problem includes a driving parameter of the vehicle, and the first objective function is positively correlated with an absolute value of a wheel angle at each time within a preset time period; A second optimization problem establishing module is configured to convert part of the constraints of the first optimization problem into a penalty function to form a second optimization problem, wherein the second optimization problem includes a second objective function, and the second objective function represents the sum of the first objective function and the penalty function, wherein g(χ) is obtained after converting the part of the constraints, and when g(χ)≥0 holds, the value of the penalty function is 0, and when g(χ)≥0 does not hold, the value of the penalty function is g^2(χ); The optimization problem solving module is configured to iteratively execute i) to iii) until a preset number of iterations is reached: i) obtaining a solution to the second optimization problem through a search process based on a meta-heuristic algorithm; ii) determining an initial solution to the first optimization problem according to the solution to the second optimization problem, and using a gradient optimization algorithm to solve the first optimization problem to determine a value of a first objective function and a corresponding solution; iii) when the value of the first objective function is less than a minimum value of the first objective function, using the value of the first objective function to update the minimum value; The driving parameter determination module is configured to determine the solution corresponding to the minimum value of the first objective function as the driving parameter of the automatic driving.

10. An automatic driving device, comprising: Memory; as well as A processor coupled to the memory, the processor being configured to execute the autonomous driving method as described in any one of claims 1 to 8 based on instructions stored in the memory.

11. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the automatic driving method according to any one of claims 1 to 8.