Conditional branch constraint-oriented intelligent vehicle trajectory planning problem modeling system

By using the Sigmoid function and LogSumExp function to handle conditional branch constraints in smart vehicle trajectory planning, the problem of non-differentiable properties in trajectory planning propositions is solved, effective solution and efficient modeling of trajectory planning problems are achieved, ensuring the stability and stability of the system. Coverage.

CN118607241APending Publication Date: 2024-09-06TAGE IDRIVER TECHNOLOGY CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410766172.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing technology is difficult to handle the non-differentiable conditional branch constraints in the trajectory planning proposition construction process, making it difficult to effectively solve the trajectory planning problem.

Method used

This paper proposes a modeling system for intelligent vehicle trajectory planning problems oriented to conditional branch constraints. It uses the Sigmoid function to convert the conditional branch constraints into inequality constraints that are smooth and differentiable everywhere, and uses the LogSumExp function to process the compound conditional branch constraints to ensure the accuracy of the trajectory planning problem. Differentiability.

Benefits of technology

It achieves systematic smooth modeling of conditional branch constraints, improves the stability and practical effect of solving trajectory planning problems, and ensures 100% modeling coverage and algorithm stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607241A
    Figure CN118607241A
Patent Text Reader

Abstract

The invention discloses a conditional branch constraint-oriented intelligent vehicle trajectory planning problem modeling system, which comprises the following steps of: reading in external input information, and carrying out necessary preprocessing; determining a decision variable of a trajectory planning problem; determining constraint conditions of the trajectory planning problem; determining a cost function of the trajectory planning problem; and combining the decision variable, the constraint and the cost function constructed in the steps together to form complete trajectory planning problem data, and then outputting the data to a system for downstream use. The intelligent vehicle trajectory planning problem modeling system oriented to the conditional branch constraint systematically solves the modeling problem of smooth (differentiable everywhere) modeling of the conditional branch constraint for the first time, has a theoretical height, and has a very good practical effect in practical engineering practice; through statistics of actual use data of the mine automatic driving commercial vehicle for more than 600 days, the method enables the modeling coverage rate of the condition branch constraint to be continuously kept at 100%, and the method has good system stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent vehicle trajectory planning problem modeling, and in particular to an intelligent vehicle trajectory planning problem modeling system oriented to conditional branch constraints. Background Art

[0002] The trajectory planning of an intelligent vehicle aims to generate a space-time trajectory that reflects the local path and speed of the vehicle, so that the vehicle can migrate from a given starting motion state (generally including vehicle position, posture, driving speed, acceleration, front wheel angle, and front wheel angular velocity, etc.) to a predetermined terminal motion state, in accordance with the vehicle's internal kinematic constraints and external environment obstacle avoidance constraints, and optimize the predetermined performance indicators (generally from the perspective of driving safety hazards, trajectory smoothness, and ride comfort) as much as possible while strictly ensuring that the above constraints are met.

[0003] The successful solution of trajectory planning problems depends on the construction of accurate and efficient trajectory planning problem models, namely, trajectory planning problem modeling technology. This method focuses on the problem modeling link before solving the trajectory planning problem, and proposes an information system to achieve high-performance problem modeling.

[0004] When a vehicle is driving, it often encounters some conditional branch constraints, which are written in the format of "if XXX-then XXX". For example, if the vehicle enters a certain local area, the speed should not exceed 10km / h. These conditional branch constraints are non-differentiable. If such conditional branch constraints are incorporated into the construction of trajectory planning propositions, the constructed propositions will be difficult to solve effectively.

[0005] At present, there is no modeling technology on the market that can properly solve the differentiability of trajectory planning problem models when trajectory planning tasks encounter conditional branch constraints. Therefore, it is necessary to propose a modeling system for intelligent vehicle trajectory planning problems with conditional branch constraints to solve the above problems. Summary of the invention

[0006] The present invention aims at the problem that when conditional branch constraints with non-differentiable properties are incorporated into the construction of trajectory planning propositions, the constructed propositions are difficult to be effectively solved. A modeling system for intelligent vehicle trajectory planning problems oriented to conditional branch constraints is proposed, which includes the following processing steps:

[0007] S1, reading and preprocessing of input information;

[0008] S2, determine the decision variables of the trajectory planning problem;

[0009] S3. Determine the constraints of the trajectory planning problem, which include: vehicle kinematic constraints, obstacle avoidance constraints, boundary value constraints, and conditional branch constraints; the first three are constraints in ordinary trajectory planning problems, and the last one, i.e., conditional branch constraints, is the core original technology of this patent; wherein the principle of conditional branch constraints is:

[0010] The simplest conditional branch constraint is

[0011] if q≥0,then g(q)≥0, (4)

[0012] Where q is the independent variable of the function;

[0013] It is known that the expression of Sigmod function σ(q) is:

[0014]

[0015] The independent variable q∈(-∞,+∞), N>0 is a sufficiently large positive real number. The larger the value of N, the better the fitting effect of σ(q) on the step function step(q);

[0016] Using the Sigmoid function σ(q), the conditional branch constraint (4) is written as the following inequality constraint which is smooth and differentiable everywhere:

[0017] (σ(q)-ε 2 )·g(q)≥-ε, (6)

[0018] where ε→0 + is a sufficiently small positive real number parameter. The following explains and analyzes the rationality of formula (6):

[0019] When q>0, σ(q)→1, inequality (6) degenerates to (1-ε 2 )·g(q)≥-ε, that is

[0020]

[0021] Since the distance between ε and 0 is sufficiently small, -ε / (1-ε 2 )→0 - , then inequality (7) can approximately represent the constraint g(q)≥0, and the fitting error is -ε / (1-ε 2 );

[0022] When q<0,σ(q)-ε 2 →-ε 2 In this case, inequality (6) is simplified to -ε 2 g(q)≥-ε, i.e. g(q)≤ε -1 Since ε→0 + , so ε-1 →+∞, so g(q)≤ε -1 This is equivalent to g(q)≤+∞, which means that (6) does not restrict the value of g(q) under the condition of q<0, and therefore meets the content expressed by the conditional branch constraint (4);

[0023] When q = 0, σ(0) = 0.5, and inequality (6) is expressed as (0.5-ε 2 )·g(0)≥-ε, that is, g(0)≥-ε / (0.5-ε 2 ); Since ε→0 + , -ε / (0.5-ε 2 )→0 - , so inequality (6) can be used to approximate g(q)≥0 at the critical condition q=0, and the fitting error is -ε / (0.5-ε 2 );

[0024] In summary, formula (6) can approximately represent the conditional branch constraint (4) within a certain error tolerance;

[0025] Based on formula (4), a more general conditional branch constraint can be expressed in the following format:

[0026] if f(q)≥0,then g(q)≥0, (8)

[0027] Where q is the independent variable of the function; analogous to equation (6), the everywhere differentiable expression can be constructed as:

[0028] (σ(f(q))-ε 2 )·g(q)≥-ε, (9)

[0029] Therefore, the basic sentence represented by the "if...then..." statement can be expressed using formula (9);

[0030] However, sometimes the statement is complex, such as "if A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0"; for this reason, the modeling method of OR and AND in the logical expression, and the modeling method of the compound conditional branch expression formed by incorporating OR and AND expressions in the conditional branch constraint are as follows:

[0031] First, model the AND operation using the following AND operation constraints:

[0032] (f1(q)≤0)∧(f2(q)≤0), (10)

[0033] This formula is equivalent to:

[0034] max(f1(q),f2(q))≤0, (11)

[0035] Since the max() operation can be estimated by the LogSumExp function, equation (11) can be expressed as the following smooth expression that is differentiable everywhere:

[0036]

[0037] In the above formula, N>0, N is a constant set by the user that affects the fitting accuracy. The larger N is, the higher the accuracy of the fitting max() operation is.

[0038] Next, we model the OR operation using the following OR expression:

[0039] (f1(q)≤0)∨(f2(q)≤0) (13)

[0040] This formula is equivalent to:

[0041] min(f1(q),f2(q))≤0, (14)

[0042] Convert it to the operation of max(), that is:

[0043] max(-f1(q),-f2(q))≥0, (15)

[0044] Based on the above or and and expressions, a compound conditional branch constraint expression is:

[0045] "If A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0"

[0046] First, express the "if" part of the statement, which is "A(q)<0 and B(q)<0". Based on the above derivation, the expression should be written as:

[0047]

[0048] Right now:

[0049]

[0050] Secondly, express the "then" part of the statement, which is "C(q)<0 or D(q)<0 or E(q)<0". Based on the above derivation, the expression should be written as:

[0051]

[0052] After processing the "if" and "then" statements respectively, the complete conditional branch constraint expression is obtained by applying formula (9), treating formula (18) as f(q) and formula (19) as g(q), then we have

[0053]

[0054] In summary, formula (20) expresses the compound conditional branch constraint such as "if A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0" in a smooth way everywhere;

[0055] Therefore, the modeling method of conditional branch constraints is specifically the following steps:

[0056] Step 1, clearly list the conditional branch constraint statements, such as "If A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0";

[0057] Step 2, extract the "if" expression from the above statement. For example, take the above formula as an example, the "if" expression is A(q)<0 and B(q)<0; then use the or and expression to transform formula (12) or (16) to express it in a differentiable way, and the result is an algebraic inequality, denoted as M(q)>0;

[0058] Step 3, extract the "then" expression from the above statement. For example, taking the above formula as an example, the "then" expression is C(q)<0 or D(q)<0 or E(q)<0; then use the or and expression to transform formula (12) or (16) to express it in a differentiable way. The result is an algebraic inequality, which can be written as P(q)>0;

[0059] Step 4, use equation (9) to express “if M(q)>0, then P(q)>0”, and record the constructed constraints that are differentiable everywhere;

[0060] S4, determining the cost function of the trajectory planning problem;

[0061] Combining the decision variables, constraints, and cost functions constructed in the above steps constitutes a complete trajectory planning problem data, which is then output to the system for downstream use.

[0062] In a preferred embodiment of the present invention, the reading and preprocessing of the input terminal information in S1 specifically includes:

[0063] First, read the vehicle's current state information from outside the system, that is, the vehicle's current objective motion state. At this time, the acceleration is a0, the speed is v0, the attitude angle is theta0, the front wheel angle is phi0, the front wheel angular velocity is omega0, the horizontal coordinate position of the center point of the vehicle's rear wheel is x0, and the vertical coordinate position is y0. The above variables are stored and prepared for use in subsequent steps;

[0064] Secondly, read the vehicle trajectory planning task information from outside the system, including the local terminal motion state of the vehicle. Assume that the time interval of trajectory planning is t∈[0,T], where T>0, T represents the completion time of local trajectory planning, which is a known parameter specified by the user, such as T=10 seconds; at time T, assume that the acceleration specified by the task is af, the speed is vf, the attitude angle is thetaf, the front wheel angle is phif, the front wheel angular velocity is omegaf, the horizontal coordinate position of the center point of the vehicle's rear wheel is xf, and the vertical coordinate position is yf. Store the above variables for use in subsequent steps;

[0065] Next, read the high-precision map and record the fixed obstacles recorded in the map that are located near (x0, y0) and may affect the driving process in the set_obs, where each element elem is a structure variable representing the contour information of each obstacle. Assuming that the area occupied by each obstacle in the inertial coordinate system is a convex polygon (a concave polygon can be decomposed into a series of convex polygons), the elem structure uses its x and y fields to record the ordered vertex coordinates of the polygon;

[0066] Finally, read in the ground marking information recognized by the sensor and express it as a conditional branch statement, such as "If the center point of the vehicle's rear wheel falls within a certain convex polygon area on the ground, then the vehicle speed should not exceed 10km / h", or "If the center point of the vehicle's rear wheel falls within a certain convex polygon area on the ground and the vehicle's posture angle is within a certain range, then the vehicle speed should not be lower than 5km / h or the vehicle's front wheel turning angle should not exceed 0.5rad"; record it in a string str and store it for use in subsequent steps.

[0067] Furthermore, the decision variables for determining the trajectory planning problem in S2 include: x(t) represents the horizontal coordinate value of the position of the center point of the rear wheel of the vehicle at time t in the inertial coordinate system, y(t) represents the vertical coordinate value of the position of the center point of the rear wheel of the vehicle at time t in the inertial coordinate system, v(t) and a(t) represent the speed and acceleration of the vehicle at time t, respectively, φ(t) represents the front wheel deflection angle of the vehicle at time t, ω(t) is the front wheel deflection angular velocity at time t, and θ(t) represents the attitude angle of the vehicle at time t; among all the above variables, t∈[0,T].

[0068] Furthermore, the vehicle kinematic constraints in S3 are:

[0069]

[0070] Where L W Represents the vehicle's wheelbase.

[0071] Furthermore, the obstacle avoidance constraints in S3 are:

[0072] The obstacles in the environment are recorded in the set set_obs. Assuming that the two-dimensional plane space occupied by each convex polygon obstacle elem is represented as occupied(elem), the obstacle avoidance constraint is expressed as:

[0073] (2)

[0074] where fp(·,·,·): represents the nonlinear mapping from the position and posture to the projection of the vehicle body on the two-dimensional plane. Formula (2) indicates that at any time t between 0 and T, the vehicle body will not collide with any static obstacle.

[0075] Furthermore, the boundary value constraints in S3 are:

[0076] At the initial time t = 0 and the final time t = T, the vehicle will be in the corresponding motion state according to the driving task, and the relevant values ​​have been transmitted to the system, so the two-point boundary value constraint is constructed as the following equation:

[0077]

[0078] Furthermore, the specific method for determining the cost function of the trajectory planning problem in S4 is:

[0079] The cost function of the trajectory planning problem should ensure that the vehicle travels smoothly, so the cost function is designed as:

[0080]

[0081] Among them, w a ,w w >0 is weight;

[0082] The cost function reflects the energy consumed by the autonomous vehicle due to changes in speed or front wheel angle. The smaller this item is, the smoother the vehicle's driving trajectory is. By adjusting the weight w a ,w w A compromise and trade-off can be made between the speed smoothness and the directional smoothness of the driving trajectory.

[0083] Implementing the embodiments of the present invention has the following beneficial effects:

[0084] This modeling system for intelligent vehicle trajectory planning problems with conditional branch constraints systematically solves the problem of modeling conditional branch constraints in a smooth (differentiable) manner for the first time. It is not only theoretically advanced, but also has very good practical effects in actual engineering practice.

[0085] Through statistics on actual usage data of autonomous driving vehicles in mines for more than 600 days, this method has ensured that the modeling coverage of conditional branch constraints has remained at 100% and has never failed, so it has good algorithm (system) stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] 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 work.

[0087] Figure 1 This is the overall schematic diagram of the modeling system for the intelligent vehicle trajectory planning problem with conditional branch constraints;

[0088] Figure 2 This is a flow chart of the modeling system for the intelligent vehicle trajectory planning problem with conditional branch constraints;

[0089] Figure 3 It is a schematic diagram of the vehicle's identification on the inertial coordinate system;

[0090] Figure 4 Schematic diagram of the curves of step function and Sigmod function in the real number domain. DETAILED DESCRIPTION

[0091] 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, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0092] The present invention proposes a trajectory planning problem modeling information system for an on-board autonomous trajectory planning function of an autonomous driving vehicle (or smart car).

[0093] The input end of this system receives trajectory planning task information, high-precision map information of the surrounding environment, ground traffic sign information captured by sensors, and status information such as the vehicle's current position coordinates, vehicle speed, and front wheel angle. The output end is a standardized trajectory planning problem, which is expressed in the format of an optimal control problem, including decision variable information, cost function polynomial information, and constraint information. The trajectory planning problem output by this system will be received by the downstream trajectory planning solution module and then solved. However, the solution of the trajectory planning problem is not the concern of this invention. This invention only focuses on the modeling technology of the trajectory planning problem and the original design of the related information software system.

[0094] See also Figure 1 , Figure 1 This is a general schematic diagram of the modeling system for the intelligent vehicle trajectory planning problem facing conditional branch constraints; the present invention provides Figure 1 See the following table for the steps that are executed inside the black thick box. Figure 2 , Figure 2 This is a flow chart of the modeling system for the intelligent vehicle trajectory planning problem with conditional branch constraints;

[0095] The modeling system of the intelligent vehicle trajectory planning problem for conditional branch constraints includes the following processing steps:

[0096] Step 1: Reading and preprocessing of input information, including:

[0097] First, read the vehicle's current state information from outside the system, that is, the vehicle's current objective motion state. At this time, the acceleration is a0, the speed is v0, the attitude angle is theta0, the front wheel angle is phi0, the front wheel angular velocity is omega0, the horizontal coordinate position of the center point of the vehicle's rear wheel is x0, and the vertical coordinate position is y0. The above variables are stored and prepared for use in subsequent steps;

[0098] Secondly, read the vehicle trajectory planning task information from outside the system, including the local terminal motion state of the vehicle. Assume that the time interval of trajectory planning is t∈[0,T], where T>0, T represents the completion time of local trajectory planning, which is a known parameter specified by the user, such as T=10 seconds; at time T, assume that the acceleration specified by the task is af, the speed is vf, the attitude angle is thetaf, the front wheel angle is phif, the front wheel angular velocity is omegaf, the horizontal coordinate position of the center point of the vehicle's rear wheel is xf, and the vertical coordinate position is yf. Store the above variables for use in subsequent steps;

[0099] Next, read the high-precision map and record the fixed obstacles recorded in the map that are located near (x0, y0) and may affect the driving process in the set_obs, where each element elem is a structure variable representing the contour information of each obstacle. Assuming that the area occupied by each obstacle in the inertial coordinate system is a convex polygon (a concave polygon can be decomposed into a series of convex polygons), the elem structure uses its x and y fields to record the ordered vertex coordinates of the polygon;

[0100] Finally, read in the ground marking information recognized by the sensor and express it as a conditional branch statement, such as "If the center point of the vehicle's rear wheel falls within a certain convex polygon area on the ground, then the vehicle speed should not exceed 10km / h", or "If the center point of the vehicle's rear wheel falls within a certain convex polygon area on the ground and the vehicle's posture angle is within a certain range, then the vehicle speed should not be lower than 5km / h or the vehicle's front wheel turning angle should not exceed 0.5rad"; record it in a string str and store it for use in subsequent steps.

[0101] Step 2: Determine the decision variables of the trajectory planning problem, including:

[0102] x(t) represents the horizontal coordinate value of the position of the center point of the rear wheel of the vehicle at time t in the inertial coordinate system, y(t) represents the vertical coordinate value of the position of the center point of the rear wheel of the vehicle at time t in the inertial coordinate system, v(t) and a(t) represent the speed and acceleration of the vehicle at time t, φ(t) represents the front wheel deflection angle of the vehicle at time t, ω(t) is the front wheel deflection angular velocity at time t, and θ(t) represents the attitude angle of the vehicle at time t; please refer to Figure 3 , Figure 3 It is a schematic diagram of the vehicle's identification in the inertial coordinate system. Among all the above variables, t∈[0,T].

[0103] Step three, determine the constraints of the trajectory planning problem, the constraints include: vehicle kinematic constraints, obstacle avoidance constraints, boundary value constraints and conditional branch constraints; the first three are constraints in ordinary trajectory planning problems, and the last one, namely the conditional branch constraint, is the core original technology of this patent.

[0104] The vehicle kinematic constraints are:

[0105]

[0106] Where L W Represents the vehicle wheelbase, which has been Figure 3 Marked out in the middle.

[0107] The obstacle avoidance constraints are:

[0108] The obstacles in the environment are recorded in the set set_obs. Assuming that the two-dimensional plane space occupied by each convex polygon obstacle elem is represented as occupied(elem), the obstacle avoidance constraint is expressed as:

[0109] (2)

[0110] where fp(·,·,·): represents the nonlinear mapping from the position and posture to the projection of the vehicle body on the two-dimensional plane. Formula (2) indicates that at any time t between 0 and T, the vehicle body will not collide with any static obstacle.

[0111] The boundary value constraints are:

[0112] At the initial time t = 0 and the final time t = T, the vehicle will be in the corresponding motion state according to the driving task, and the relevant values ​​have been transmitted to the system, so the two-point boundary value constraint is constructed as the following equation:

[0113]

[0114] The principle of conditional branch constraints is:

[0115] The simplest conditional branch constraint is

[0116] if q≥0,then g(q)≥0, (4)

[0117] Where q is the independent variable of the function;

[0118] It is known that the expression of Sigmod function σ(q) is:

[0119]

[0120] where the independent variable q∈(-∞,+∞), N>0 is a sufficiently large positive real number, see Figure 4 , Figure 4 It is a schematic diagram of the curve of the step function and the Sigmod function in the real number domain. The larger the value of N is, the better the fitting effect of σ(q) on the step function step(q) is.

[0121] Using the Sigmoid function σ(q), the conditional branch constraint (4) is written as the following inequality constraint which is smooth and differentiable everywhere:

[0122] (σ(q)-ε 2 )·g(q)≥-ε, (6)

[0123] where ε→0 + is a sufficiently small positive real number parameter. The following explains and analyzes the rationality of formula (6):

[0124] When q>0, σ(q)→1, inequality (6) degenerates to (1-ε 2 )·g(q)≥-ε, that is

[0125]

[0126] Since the distance between ε and 0 is sufficiently small, -ε / (1-ε 2 )→0 - , then inequality (7) can approximately represent the constraint g(q)≥0, and the fitting error is -ε / (1-ε 2 );

[0127] When q<0,σ(q)-ε 2 →-ε 2 In this case, inequality (6) is simplified to -ε 2 g(q)≥-ε, i.e. g(q)≤ε -1 Since ε→0 + , so ε -1 →+∞, so g(q)≤ε -1 This is equivalent to g(q)≤+∞, which means that (6) does not restrict the value of g(q) under the condition of q<0, and therefore meets the content expressed by the conditional branch constraint (4);

[0128] When q = 0, σ(0) = 0.5, and inequality (6) is expressed as (0.5-ε 2 )·g(0)≥-ε, that is, g(0)≥-ε / (0.5-ε 2 ); Since ε→0 + , -ε / (0.5-ε 2 )→0 - , so inequality (6) can be used to approximate g(q)≥0 at the critical condition q=0, and the fitting error is -ε / (0.5-ε 2 );

[0129] In summary, formula (6) can approximately represent the conditional branch constraint (4) within a certain error tolerance;

[0130] Based on formula (4), a more general conditional branch constraint can be expressed in the following format:

[0131] if f(q)≥0,then g(q)≥0, (8)

[0132] Where q is the independent variable of the function; analogous to equation (6), the everywhere differentiable expression can be constructed as:

[0133] (σ(f(q))-ε 2 )·g(q)≥-ε, (9)

[0134] Therefore, the basic sentence represented by the "if...then..." statement can be expressed using formula (9);

[0135] However, sometimes the statement is complex, such as "if A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0"; for this reason, the modeling method of OR and AND in the logical expression, and the modeling method of the compound conditional branch expression formed by incorporating OR and AND expressions in the conditional branch constraint are as follows:

[0136] First, model the AND operation using the following AND operation constraints:

[0137] (f1(q)≤0)∧(f2(q)≤0), (10)

[0138] This formula is equivalent to:

[0139] max(f1(q),f2(q))≤0, (11)

[0140] Since the max() operation can be estimated by the LogSumExp function, equation (11) can be expressed as the following smooth expression that is differentiable everywhere:

[0141]

[0142] In the above formula, N>0, N is a constant set by the user that affects the fitting accuracy. The larger N is, the higher the accuracy of the fitting max() operation is.

[0143] Next, we model the OR operation using the following OR expression:

[0144] (f1(q)≤0)∨(f2(q)≤0) (13)

[0145] This formula is equivalent to:

[0146] min(f1(q),f2(q))≤0, (14)

[0147] Convert it to the operation of max(), that is:

[0148] max(-f1(q),-f2(q))≥0, (15)

[0149] Based on the above or and and expressions, a compound conditional branch constraint expression is:

[0150] "If A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0"

[0151] First, express the "if" part of the statement, which is "A(q)<0 and B(q)<0". Based on the above derivation, the expression should be written as:

[0152]

[0153] Right now:

[0154]

[0155] Secondly, express the "then" part of the statement, which is "C(q)<0 or D(q)<0 or E(q)<0". Based on the above derivation, the expression should be written as:

[0156]

[0157] After processing the "if" and "then" statements respectively, the complete conditional branch constraint expression is obtained by applying formula (9), treating formula (18) as f(q) and formula (19) as g(q), then we have

[0158]

[0159] In summary, formula (20) expresses the compound conditional branch constraint such as "if A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0" in a smooth way everywhere;

[0160] Therefore, the modeling method of conditional branch constraints is specifically the following steps:

[0161] Step 1, clearly list the conditional branch constraint statements, such as "If A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0";

[0162] Step 2, extract the "if" expression from the above statement. For example, take the above formula as an example, the "if" expression is A(q)<0 and B(q)<0; then use the or and expression to transform formula (12) or (16) to express it in a differentiable way, and the result is an algebraic inequality, denoted as M(q)>0;

[0163] Step 3, extract the "then" expression from the above statement. For example, taking the above formula as an example, the "then" expression is C(q)<0 or D(q)<0 or E(q)<0; then use the or and expression to transform formula (12) or (16) to express it in a differentiable way. The result is an algebraic inequality, which can be written as P(q)>0;

[0164] Step 4: Use equation (9) to express “if M(q)>0, then P(q)>0” and record the constructed constraint that is differentiable everywhere.

[0165] Step 4: Determine the cost function of the trajectory planning problem:

[0166] The cost function of the trajectory planning problem should ensure that the vehicle travels smoothly, so the cost function is designed as:

[0167]

[0168] Among them, w a ,w w >0 is weight;

[0169] The cost function reflects the energy consumed by the autonomous vehicle due to changes in speed or front wheel angle. The smaller this item is, the smoother the vehicle's driving trajectory is. By adjusting the weight w a ,w w A compromise and trade-off can be made between the speed smoothness and the directional smoothness of the driving trajectory.

[0170] Combining the decision variables, constraints, and cost functions constructed in the above steps constitutes a complete trajectory planning problem data, which is then output to the system for downstream use.

[0171] 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. A modeling system for intelligent vehicle trajectory planning problem with conditional branch constraints, characterized in that: The processing steps include: S1, reading and preprocessing of input information; S2, determine the decision variables of the trajectory planning problem; S3. Determine the constraints of the trajectory planning problem, wherein the constraints include: vehicle kinematic constraints, obstacle avoidance constraints, boundary value constraints, and conditional branch constraints; wherein the principle of the conditional branch constraint is: The simplest conditional branch constraint is if q≥0,then g(q)≥0, (4) Where q is the independent variable of the function; It is known that the expression of Sigmod function σ(q) is: The independent variable q∈(-∞,+∞), N>0 is a sufficiently large positive real number. The larger the value of N, the better the fitting effect of σ(q) on the step function step(q); Using the Sigmoid function σ(q), the conditional branch constraint (4) is written as the following inequality constraint which is smooth and differentiable everywhere: (σ(q)-ε 2 )·g(q)≥-ε, (6) where ε→0 + is a sufficiently small positive real number parameter. The following explains and analyzes the rationality of formula (6): When q>0, σ(q)→1, inequality (6) degenerates to (1-ε 2 )·g(q)≥-ε, that is Since the distance between ε and 0 is sufficiently small, -ε / (1-ε 2 )→0 - , then inequality (7) can approximately represent the constraint g(q)≥0, and the fitting error is -ε / (1-ε 2 ); When q<0,σ(q)-ε 2 →-ε 2 In this case, inequality (6) is simplified to -ε 2 g(q)≥-ε, i.e. g(q)≤ε -1 Since ε→0 + , so ε -1 →+∞, so g(q)≤ε -1 This is equivalent to g(q)≤+∞, which means that (6) does not restrict the value of g(q) under the condition of q<0, and therefore meets the content expressed by the conditional branch constraint (4); When q = 0, σ(0) = 0.5, and inequality (6) is expressed as (0.5-ε 2 )·g(0)≥-ε, that is, g(0)≥-ε / (0.5-ε 2 ); Since ε→0 + , -ε / (0.5-ε 2 )→0 - , so inequality (6) can be used to approximate g(q)≥0 at the critical condition q=0, and the fitting error is -ε / (0.5-ε 2 ); In summary, formula (6) can approximately represent the conditional branch constraint (4) within a certain error tolerance; Based on formula (4), a more general conditional branch constraint can be expressed in the following format: if f(q)≥0,then g(q)≥0, (8) Where q is the independent variable of the function; analogous to equation (6), the everywhere differentiable expression can be constructed as: (σ(f(q))-ε 2 )·g(q)≥-ε, (9) Therefore, the basic sentence represented by the "if...then..." statement can be expressed using formula (9); However, sometimes the statement is complex, such as "if A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0"; for this reason, the modeling method of OR and AND in the logical expression, and the modeling method of the compound conditional branch expression formed by incorporating OR and AND expressions in the conditional branch constraint are as follows: First, model the "AND" operation using the following "AND" operation constraints: (f1(q)≤0)∧(f2(q)≤0), (10) This formula is equivalent to: max(f1(q),f2(q))≤0, (11) Since the max() operation can be estimated by the LogSumExp function, equation (11) can be expressed as the following smooth expression that is differentiable everywhere: In the above formula, N>0, N is a constant set by the user that affects the fitting accuracy. The larger N is, the higher the accuracy of the fitting max() operation is. Secondly, the "OR" operation is modeled using the following "OR" operation expression: (f1(q)≤0)∨(f2(q)≤0) (13) This formula is equivalent to: min(f1(q),f2(q))≤0, (14) Convert it to the operation of max(), that is: max(-f1(q),-f2(q))≥0, (15) Based on the above or and and expressions, a compound conditional branch constraint expression is: "If A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0" First, express the "if" part of the statement, which is "A(q)<0 and B(q)<0". Based on the above derivation, the expression should be written as: Right now: Next, express the "then" part of the statement, which is "C(q)<0 or D(q)<0 or E(q)<0". Based on the above derivation, the expression should be written as: After processing the "if" and "then" statements respectively, the complete conditional branch constraint expression, at this time, applies formula (9), regards formula (18) as f(q), and regards formula (19) as g(q), then we have In summary, formula (20) expresses the compound conditional branch constraint "if A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0" in a smooth way. Therefore, the modeling method of conditional branch constraints is specifically the following steps: Step 1, clearly list the conditional branch constraint statements, such as "if A(q)<0 and B(q)<0, then C(q)<0 or D(q)<0 or E(q)<0"; Step 2, extract the "if" expression from the above statement. For example, the "if" expression is A(q)<0 and B(q)<0. Then use the or and and expressions to transform formula (12) or (16) to express it in a differentiable way. The result is an algebraic inequality, denoted as M(q)>0. Step 3, extract the "then" expression from the above statement. For example, the "then" expression is C(q)<0 or D(q)<0 or E(q)<0. Then use the or and and expressions to transform formula (12) or (16) to express it in a differentiable way. The result is an algebraic inequality, which can be written as P(q)>0. Step 4, use equation (9) to express "if M(q)>0, then P(q)>0", and record the constructed constraint that is differentiable everywhere; S4, determining the cost function of the trajectory planning problem; Combining the decision variables, constraints, and cost functions constructed in the above steps constitutes a complete trajectory planning problem data, which is then output to the system for downstream use.

2. The intelligent vehicle trajectory planning problem modeling system for conditional branch constraints according to claim 1 is characterized in that: The reading and preprocessing of the input terminal information in S1 specifically includes: First, read the vehicle's current state information from outside the system, that is, the vehicle's current objective motion state. At this time, the acceleration is a0, the speed is v0, the attitude angle is theta0, the front wheel angle is phi0, the front wheel angular velocity is omega0, the horizontal coordinate position of the center point of the vehicle's rear wheel is x0, and the vertical coordinate position is y0; store the above variables; Secondly, read the vehicle trajectory planning task information from outside the system, including the local terminal motion state of the vehicle. Assume that the time interval of trajectory planning is t∈[0,T], where T>0, T represents the completion time of local trajectory planning, which is a known parameter specified by the user. At time T, assume that the acceleration specified by the task is af, the speed is vf, the attitude angle is thetaf, the front wheel angle is phif, the front wheel angular velocity is omegaf, the horizontal coordinate position of the center point of the vehicle's rear wheel is xf, and the vertical coordinate position is yf; store the above variables; Next, read the high-precision map and record the fixed obstacles located near (x0, y0) that may affect the driving process in the set_obs, where each element elem is a structure variable representing the contour information of each obstacle. Assuming that the area occupied by each obstacle in the inertial coordinate system is a convex polygon, the elem structure uses its x and y fields to record the ordered vertex coordinates of the polygon; Finally, the ground identification information recognized by the sensor is read in and represented as a conditional branch statement, which is recorded and stored in a string str.

3. The intelligent vehicle trajectory planning problem modeling system for conditional branch constraints according to claim 2 is characterized in that: The decision variables for determining the trajectory planning problem in S2 include: x(t) represents the horizontal coordinate value of the position of the center point of the rear wheel of the vehicle at time t in the inertial coordinate system, y(t) represents the vertical coordinate value of the position of the center point of the rear wheel of the vehicle at time t in the inertial coordinate system, v(t) and a(t) represent the speed and acceleration of the vehicle at time t, respectively, φ(t) represents the front wheel deflection angle of the vehicle at time t, ω(t) is the front wheel deflection angular velocity at time t, and θ(t) represents the attitude angle of the vehicle at time t; among all the above variables, t∈[0,T].

4. The intelligent vehicle trajectory planning problem modeling system for conditional branch constraints according to claim 3 is characterized in that: The vehicle kinematic constraints in S3 are: Where L W Represents the vehicle's wheelbase.

5. The intelligent vehicle trajectory planning problem modeling system for conditional branch constraints according to claim 4 is characterized in that: The obstacle avoidance constraints in S3 are: The obstacles in the environment are recorded in the set set_obs. Assuming that the two-dimensional plane space occupied by each convex polygon obstacle elem is represented as occupied(elem), the obstacle avoidance constraint is expressed as: where fp(·,·,·): represents the nonlinear mapping from the position and posture to the projection of the vehicle body on the two-dimensional plane. Formula (2) indicates that at any time t between 0 and T, the vehicle body will not collide with any static obstacle.

6. The intelligent vehicle trajectory planning problem modeling system for conditional branch constraints according to claim 5 is characterized in that: The boundary value constraints in S3 are: At the initial time t = 0 and the final time t = T, the vehicle will be in the corresponding motion state according to the driving task, and the relevant values ​​have been transmitted to the system, so the two-point boundary value constraint is constructed as the following equation:

7. The intelligent vehicle trajectory planning problem modeling system for conditional branch constraints according to claim 6 is characterized in that: The specific method for determining the cost function of the trajectory planning problem in S4 is: The cost function of the trajectory planning problem should ensure that the vehicle travels smoothly, so the cost function is designed as: Among them, w a ,w w >0 is weight; The cost function reflects the energy consumed by the autonomous vehicle due to changes in speed or front wheel angle. The smaller this item is, the smoother the vehicle's driving trajectory is. By adjusting the weight w a ,w w A compromise and trade-off can be made between the speed smoothness and the directional smoothness of the driving trajectory.

Citation Information

Cited By

  • Intelligent vehicle track planning method and system based on A algorithm

    CN121089761A

  • Automatic driving obstacle avoidance safety constraint construction and trajectory planning method

    CN122411419A

  • An automatic driving obstacle avoidance safety constraint construction and trajectory planning method

    CN122411419B