LQR motion planning method and device based on constraint iteration, medium and product
Through the LQR motion planning method based on constraint iteration, convex space boundaries and reference lines are constructed, and the trajectory planning is used to use the CILQR algorithm to solve the problem of unmanned vehicles avoiding obstacles in dynamic scenarios, and the safety and real-timeness of the planning are improved.
Patent Information
- Application Number
- CN202411019423.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The existing unmanned vehicle motion planning methods are difficult to effectively avoid obstacles in dynamic scenarios, especially the quadratic planner cannot directly solve the curvature constraint problem that contains nonlinearity, and the sampling method has a high time complexity, making it difficult to meet the real-time nature of the planning.
Using the LQR motion planning method based on constraint iteration, by constructing convex space boundaries and reference lines, using the CILQR algorithm to perform multiple rounds of update iterations, combining obstacle distance, reference line distance, convex space boundary distance and control quantity cost function, the total cost is calculated Functions to implement trajectory planning and ensure the uniqueness and real-timeness of the planning.
Good planning effects are achieved in dynamic scenarios, the security and real-time nature of obstacle avoidance trajectory planning are improved, the emergence of decision-making results of different frames is avoided, and the uniqueness of the solution is ensured.
Smart Images

Figure CN118960767A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of unmanned vehicle motion planning, and in particular to a LQR motion planning method, device, medium and product based on constraint iteration. Background Art
[0002] The motion planning of unmanned vehicles is connected to environmental perception and positioning, and then to vehicle control. Its purpose is to output a smooth, collision-free trajectory that meets the vehicle's kinematic and dynamic characteristics. Motion planning can be divided into path planning and trajectory planning. Path planning is a position sequence connecting the starting point and the target point, and only considers the spatial position. Trajectory planning adds time series information to path planning, and assigns speed and acceleration information to each point to satisfy the vehicle's kinematic constraints, making it easier to achieve control and tracking effects.
[0003] Global planning generally only requires path planning and does not need to include time information. Common global path planning methods include Dijkstra algorithm, A* algorithm and RRT algorithm. The purpose of global planning is to output a reference trajectory to facilitate further local obstacle avoidance trajectory planning. At present, the more mature local trajectory planning methods include curve interpolation method, which selects the starting point, the end point and several points in the middle as control points, and uses Bessel and polynomial curves to interpolate to generate a series of trajectory points. Its disadvantage is that the output result depends on the selection of control points and has local characteristics. It is not reliable in areas far away from the control points. In recent years, Apollo proposed a sampling-based obstacle avoidance trajectory planning method, which uniformly samples discrete points near the reference trajectory and solves it with a quadratic planner according to the cost function and constraints. The disadvantage is that the quadratic planning solver cannot directly solve problems containing nonlinear constraints, such as curvature constraints, and the sampling method has high time complexity, which is difficult to meet the real-time planning. Summary of the invention
[0004] The purpose of this application is to provide a constrained iteration-based LQR motion planning method, device, medium and product, which can achieve good planning effects in dynamic scenes and improve the safety of obstacle avoidance trajectory planning.
[0005] To achieve the above objectives, this application provides the following solutions:
[0006] In a first aspect, the present application provides a LQR motion planning method based on constraint iteration, comprising:
[0007] Construct convex space boundaries and reference lines based on the positions of obstacles in the lane;
[0008] Within the convex space boundary, trajectory planning is performed for the vehicle to be planned based on the reference line; the trajectory planning process includes:
[0009] Obtain the number of CILQR planning points and the initial values of the state quantity and control quantity of the vehicle to be planned; the state quantity includes: abscissa, ordinate, heading angle, speed and acceleration; the control quantity includes: acceleration change rate and yaw angular velocity;
[0010] Based on the initial values of the state quantity and control quantity of the vehicle to be planned, the state quantity and control quantity corresponding to each CILQR planning point are updated and iterated for multiple rounds by using back propagation and forward propagation to obtain the target trajectory of the vehicle to be planned and complete the trajectory planning.
[0011] Optionally, based on the initial values of the state quantity and control quantity of the vehicle to be planned, the state quantity and control quantity corresponding to each CILQR planning point are updated and iterated for multiple rounds by using back propagation and forward propagation to obtain the target trajectory of the vehicle to be planned, and complete trajectory planning, including:
[0012] Determine any iteration number with a value greater than 1 as the current iteration number;
[0013] Determine the control amount corresponding to each CILQR planning point in the trajectory under the current iteration number; the control amount corresponding to each CILQR planning point in the trajectory under the current iteration number is determined by back propagation based on the control amount corresponding to each CILQR planning point in the trajectory under the previous iteration number; the control amount corresponding to each CILQR planning point in the trajectory under the initial iteration number is determined by initialization;
[0014] According to the initial value of the state quantity of the vehicle to be planned and the initial value of the control quantity of the starting point at the current iteration number, the state quantity corresponding to each CILQR planning point in the trajectory at the current iteration number is determined by forward propagation;
[0015] The total cost function is used to calculate the total cost of the trajectory at the current iteration number based on the state quantity and control quantity corresponding to each CILQR planning point in the trajectory at the current iteration number and the state quantity and control quantity corresponding to each point in the reference line; the total cost function is a function of the control quantity and the state quantity;
[0016] Based on the total cost of the trajectory at the current iteration number and the total cost of the trajectory at the previous iteration number, calculate the cost difference at the current iteration number;
[0017] Determine whether a stop condition is met; the stop condition is that the cost difference under the current number of iterations is less than a preset difference or reaches a preset number of iterations;
[0018] If yes, the trajectory at the current iteration number is determined as the target trajectory of the vehicle to be planned;
[0019] If not, the current iteration number is updated to the next iteration number, and the method of "determining the control amount corresponding to each CILQR planning point in the trajectory under the current iteration number" is returned until the stop condition is met to obtain the target trajectory of the vehicle to be planned.
[0020] Optionally, the total cost function includes: an obstacle distance cost function, a reference line distance cost function, a convex space boundary distance cost function and a control amount cost function.
[0021] Optionally, the obstacle distance cost function is:
[0022] J obs =q1×exp(q2(X-X0) T P(X-X0));
[0023] Among them, J obs is the value of the obstacle distance cost function; q1 and q2 are the weight coefficients of the obstacle distance cost function; X is the matrix composed of the state quantities corresponding to each CILQR planning point in the trajectory; X0 is the matrix composed of the state quantities corresponding to each point in the obstacle; T is the transpose; P is the matrix containing the major and minor axis information of the ellipse.
[0024] Optionally, the reference line distance cost function is:
[0025] J ref =(XX ref ) T p1(XX ref );
[0026] Among them, J ref is the reference line distance cost function value; x ref is the matrix composed of the state quantities corresponding to each point in the reference line; p1 is the weight coefficient of the reference line distance cost function.
[0027] Optionally, the convex space boundary distance cost function is:
[0028] J boundary =q3×exp(q4(XX boundary ));
[0029] Among them, J boundary is the cost function value of the boundary distance of the convex space; q3 and q4 are the weight coefficients of the cost function of the boundary distance of the convex space; X boundary It is a matrix composed of the state quantities corresponding to the projection points of each CILQR planning point in the trajectory on the boundary of the convex space.
[0030] Optionally, the control amount cost function is:
[0031] J control=q5×exp(q6(UU max ))+q7×exp(q8(U min -U));
[0032] Among them, J control is the value of the control cost function; q5, q6 and q7 are the weight coefficients of the control cost function; U is the matrix composed of the control quantities corresponding to each CILQR planning point in the trajectory; U max is the maximum value in the matrix composed of the control quantities corresponding to each CILQR planning point in the trajectory; U min It is the minimum value in the matrix composed of the control quantities corresponding to each CILQR planning point in the trajectory.
[0033] In a second aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the above-described LQR motion planning methods based on constraint iteration.
[0034] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned LQR motion planning methods based on constraint iteration.
[0035] In a fourth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned constraint iteration-based LQR motion planning methods.
[0036] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0037] The present application discloses a constrained iteration-based LQR motion planning method, device, medium and product, which construct a convex space boundary to facilitate CILQR solution within the range of this convex space boundary, prevent different decision results from appearing in different frames, and ensure the uniqueness of the solution; planning is performed in both space and time, and good planning effects can be achieved in dynamic scenes, thereby improving the safety of obstacle avoidance trajectory planning. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1A schematic diagram of a LQR motion planning method based on constraint iteration provided in an embodiment of the present application;
[0040] Figure 2 This is a flow chart of the obstacle avoidance trajectory optimization algorithm based on CILQR;
[0041] Figure 3 Schematic diagram of the projection point of the obstacle on the lane line calculated by the binary method;
[0042] Figure 4 This is a schematic diagram of the obstacle avoidance convex space generated when changing lanes right in a three-lane scenario;
[0043] Figure 5 This is a schematic diagram of the obstacle avoidance convex space generated when driving straight in a three-lane scenario;
[0044] Figure 6 Schematic diagram of the trajectory planning result of CILQR in the lane change scenario;
[0045] Figure 7 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] The purpose of this application is to provide a constraint-iteration-based LQR motion planning method, device, medium and product, aiming to improve the safety of obstacle avoidance trajectory planning.
[0048] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0049] In an exemplary embodiment, Figure 1 and Figure 2 As shown, the LQR motion planning method based on constraint iteration in this embodiment includes:
[0050] Step 1: Construct convex space boundaries and reference lines based on the positions of obstacles in the lane.
[0051] Specifically, first construct the four corner points of the obstacle based on the position and size of the obstacle center point. Find the projection point of each corner point on the lane line to determine which lane the obstacle is located in. In order to reduce time consumption, a binary search is used to find the nearest neighbor point. The method is as follows: Figure 3shown. Figure 3 In the equation, θ is the heading angle.
[0052] (1) When there is no obstacle within 100 m of the lane where the ego vehicle (i.e., the target vehicle) is located, the lane change intention is to go straight, and each point on the reference line is the center line of the current lane (i.e., the lane where the ego vehicle is located). N points are uniformly sampled within the CILQR planning length. N is the number of CILQR planning points.
[0053] (2) When the obstacle is located in the lane where the vehicle is located and there is no obstacle within 100 m in the left lane, the lane change intention is to change lanes to the left. The points on the reference line are N points uniformly sampled from the center line of the left lane within the CILQR planning length.
[0054] (3) When the obstacle is located in the lane where the vehicle is located, and there is an obstacle within 100 m in the left lane and no obstacle within 100 m in the right lane, the lane change intention is to change lanes to the right. The points on the reference line are N points uniformly sampled from the center line of the right lane within the CILQR planning length.
[0055] (4) When the obstacle is located in the lane where the ego vehicle is located and there are obstacles within 100 m of the left and right lanes, the lane change intention is to go straight, and each point on the reference line is N points uniformly sampled within the range of the smaller value of the center line of the current lane between the CILQR planning length and the length between the ego vehicle and the obstacle.
[0056] Step 2: Within the convex space boundary, trajectory planning is performed for the vehicle to be planned based on the reference line.
[0057] The trajectory planning process includes:
[0058] Step 21: Obtain the number of CILQR planning points and the initial values of the state and control quantities of the vehicle to be planned; the state quantities include: abscissa, ordinate, heading angle, velocity and acceleration; the control quantities include: acceleration change rate and yaw angular velocity.
[0059] Step 22: Based on the initial values of the state and control quantities of the vehicle to be planned, back propagation and forward propagation are used to perform multiple rounds of update iterations on the state and control quantities corresponding to each CILQR planning point to obtain the target trajectory of the vehicle to be planned and complete the trajectory planning.
[0060] As an optional implementation, step 22 includes:
[0061] Step 221: Determine any iteration number with a value greater than 1 as the current iteration number.
[0062] Step 222: Determine the control amount corresponding to each CILQR planning point in the trajectory under the current iteration number; the control amount corresponding to each CILQR planning point in the trajectory under the current iteration number is determined by back propagation based on the control amount corresponding to each CILQR planning point in the trajectory under the previous iteration number; the control amount corresponding to each CILQR planning point in the trajectory under the initial iteration number is determined by initialization.
[0063] Specifically, the process of determining the control amount corresponding to each CILQR planning point by back propagation includes:
[0064] (1) To minimize the objective function value, define the value function V and action function Q of each CILQR planning point:
[0065] Q t (x t ,u t )=L(x t ,u t )+V t+1 (x t+1 )t=0,1,2,…,N-1.
[0066] V t (x t )=minQ t (x t ,u t )t=0,1,2,…,N-1.
[0067] V N (x N )=L f (x N ).
[0068] x t+1 =f(x t ,u t ).
[0069]
[0070] Among them, Q t (x t ,u t ) is the action function value of the t-th CILQR planning point; x t is the state quantity of the tth CILQR planning point; u t is the control quantity of the tth CILQR planning point; L(x t ,u t ) is the cost function value of the t-th CILQR planning point; V t+1 (x t+1 ) is the value function value of the t+1th CILQR planning point; x t+1is the state quantity of the t+1th CILQR planning point; V t (x t ) is the value function value of the t-th CILQR planning point; V N (x N ) is the value function value of the Nth CILQR planning point; x N is the state quantity of the Nth CILQR planning point; L f (x N ) is the cost function value of the Nth CILQR planning point; f(x t ,u t ) is about x t and u t function; x0 is the state quantity of the initial CILQR planning point; x start is the state quantity of the target vehicle at the starting point.
[0071] The problem can be transformed into finding the new x at each time step (i.e., number of iterations) t ,u t , so that Q t (x t ,u t )minimum.
[0072] (2) The solution is to t (x t ,u t ) in (x t ,u t ) is used to perform a second-order Taylor expansion:
[0073]
[0074]
[0075] Among them, Q t (x t +δx,u t +δu) is the second-order Taylor value of the action function of the t-th CILQR planning point; δx is the change in state quantity corresponding to each time step; δu is the change in control quantity corresponding to each time step; T is the transpose; Q t (x t ,u t ) is the first-order partiality of x; Q t (x t ,u t ) with respect to u; Q t (x t ,u t ) with respect to x; Q t (x t ,u t ) with respect to the second-order partial derivatives of x and u; Q t (x t ,u t ) with respect to u and x; Q t (x t ,u t ) with respect to u.
[0076] The remaining items The problem turns into The minimum value of .
[0077] (3) Order The derivative is 0, and we can get:
[0078]
[0079] When calculating the inverse matrix, the regularization coefficient λ is added to improve the stability of the algorithm.
[0080] According to the relationship between the value function V and the action function Q in (1):
[0081] Q t (x t ,u t )=L(x t ,u t )+V t+1 (x t+1 )=L(x t ,u t )+V t+1 (f(x t ,u t ))
[0082] Solvable They are:
[0083]
[0084] Among them, L x is L(x t ,u t ) with respect to the first-order partial derivative of x; f x is the state transfer equation f(x t ,u t ) with respect to the first-order partial derivative of x; V t+1 (x t+1 ) with respect to x; L u is L(x t ,ut ) with respect to the first-order partial derivative of u; f u is the state transfer equation f(x t ,u t ) with respect to u; L xx is L(x t ,u t ) with respect to x; V t+1 (x t+1 ) with respect to x; L ux is L(x t ,u t ) with respect to u and x; L uu is L(x t ,u t ) with respect to u.
[0085] Bring the results into The δu that minimizes the objective function can be obtained, and the latest control quantity of the t-th CILQR planning point is Updated to
[0086] Step 223: According to the initial value of the state quantity of the vehicle to be planned and the initial value of the control quantity of the starting point at the current iteration number, forward propagation is used to determine the state quantity corresponding to each CILQR planning point in the trajectory at the current iteration number.
[0087] Specifically, (1) solve the latest control quantity of the tth CILQR planning point
[0088] After that, the state quantity of the t+1th CILQR planning point can be derived
[0089]
[0090] The position at t = 0 is the position of the vehicle at the starting point. This application sets five state quantities as the vehicle horizontal coordinate, vertical coordinate, heading angle, velocity and acceleration; the two control quantities are the acceleration change rate and the yaw rate. It is easy to see that the above state space equation is nonlinear, so the equation needs to be linearized.
[0091] (2) Linearization is to convert x t+1 =f(x t ,u t ) is converted to x t+1 =Ax t +Bu tIn the form of, according to the five state quantities and two control quantities mentioned above, Δt is the time interval of each planning point, θ is the heading angle, and a is the acceleration, it can be derived that the 5×5 matrix A and the 5×2 matrix B are:
[0092]
[0093] Step 224: Calculate the total cost of the trajectory at the current iteration number using the total cost function based on the state quantities and control quantities corresponding to each CILQR planning point in the trajectory at the current iteration number and the state quantities and control quantities corresponding to each point in the reference line; the total cost function is a function of the control quantities and the state quantities.
[0094] Step 225: Calculate the cost difference at the current iteration number based on the total cost of the trajectory at the current iteration number and the total cost of the trajectory at the previous iteration number.
[0095] Step 226: Determine whether a stop condition is met; the stop condition is that the cost difference at the current number of iterations is less than a preset difference or reaches a preset number of iterations.
[0096] Step 227: If yes, the trajectory at the current iteration number is determined as the target trajectory of the vehicle to be planned.
[0097] Step 228: If not, update the current iteration number to the next iteration number, and return to step 222 until the stop condition is met to obtain the target trajectory of the vehicle to be planned.
[0098] As an optional implementation, the total cost function includes: an obstacle distance cost function, a reference line distance cost function, a convex space boundary distance cost function and a control amount cost function.
[0099] As an optional implementation, the obstacle distance cost function is:
[0100] J obs =q1×exp(q2(X-X0) T P(X-X0)).
[0101] Among them, J obs is the value of the obstacle distance cost function; q1 and q2 are the weight coefficients of the obstacle distance cost function; X is the matrix composed of the state quantities corresponding to each CILQR planning point in the trajectory; X0 is the matrix composed of the state quantities corresponding to each point in the obstacle; T is the transpose; P is the matrix containing the major and minor axis information of the ellipse.
[0102] As an optional implementation, the reference line distance cost function is:
[0103] J ref =(XX ref )T p1(XX ref ).
[0104] Among them, J ref is the reference line distance cost function value; x ref is the matrix composed of the state quantities corresponding to each point in the reference line; p1 is the weight coefficient of the reference line distance cost function.
[0105] As an optional implementation, the convex space boundary distance cost function is:
[0106] J boundary =q3×exp(q4(XX boundary )).
[0107] Among them, J boundary is the cost function value of the boundary distance of the convex space; q3 and q4 are the weight coefficients of the cost function of the boundary distance of the convex space; X boundary It is a matrix composed of the state quantities corresponding to the projection points of each CILQR planning point in the trajectory on the boundary of the convex space.
[0108] As an optional implementation, the control amount cost function is:
[0109] J control =q5×exp(q6(UU max ))+q7×exp(q8(U min -U)).
[0110] Among them, J control is the value of the control cost function; q5, q6 and q7 are the weight coefficients of the control cost function; U is the matrix composed of the control quantities corresponding to each CILQR planning point in the trajectory; U max is the maximum value in the matrix composed of the control quantities corresponding to each CILQR planning point in the trajectory; U min It is the minimum value in the matrix composed of the control quantities corresponding to each CILQR planning point in the trajectory.
[0111] Specifically, the total cost formula is:
[0112] J all =J obs +J ref +J boundary +J control =q1×exp(q2(x-x0) T P(x-x0))+(xx ref ) T p1(xx ref )+q3×exp(q4(xx boundary ))+q5×exp(q6(UUmax )) + q7 × exp(q8(U min -U)). Specific embodiments
[0114] (1) Establish an obstacle avoidance convex space. Establish a three-lane model, place an obstacle at a certain position in front of the ego vehicle, as Figure 4 and Figure 5 shown. The three lanes from top to bottom are the left lane, the current lane, and the right lane respectively. Find the projection points of the four corner points of the obstacle on each lane line, and determine which lane the obstacle is located in. According to the lane where the obstacle is located, the ego vehicle's lane-changing intention can be judged. Figure 4 In the scenario shown, the ego vehicle intends to change lanes to the right, the reference line is the center line of the right lane, and the convex space boundary is the boundary of the right lane line of the obstacle. Figure 5 In the scenario shown, the ego vehicle intends to go straight, the reference line is the center line of the current lane, and the convex space boundary is the left and right boundaries of the current lane.
[0115] (2) Initialize the state quantity and control quantity matrices. Since there are five state quantities, the abscissa, ordinate, heading angle, speed, and acceleration, and the number of CILQR planning points is 20, the dimension of the state quantity matrix is 5×20. There are two control quantities, the acceleration change rate and the yaw rate, so the dimension of the control quantity matrix is 2×20. The state quantity at time zero is the initial state quantity of the ego vehicle, that is, the first column of the state quantity matrix is [x0, y0, θ0, v0, a0] T If the control quantity matrix is 0, then according to the state space equation, the state quantity and control quantity sequences before the first iteration can be deduced.
[0116] (3) In each iteration, perform the backpropagation and forward propagation steps in sequence to obtain the latest state quantity and control quantity matrices, and calculate the total cost, that is, the sum of the state quantity cost and the control quantity cost J new , and compare it with the cost J old of the previous round, until |J new -J old | < tol, jump out of the iteration, and output the final result. Set the convergence condition tol to 12 and the maximum number of iterations to 10. If the cost J new > J old in a certain iteration, regardless of the number of iterations, change the regularization coefficient λ of the backpropagation step and recalculate the cost.
[0117] (4) Observe the trajectory points generated by CILQR, appropriately adjust each weight coefficient, and generate a smooth plan that does not collide with the obstacle and the convex space boundary, as Figure 6 shown. The planning effect of CILQR can be evaluated by observing the changes in the heading angle and yaw rate of each point.
[0118] Beneficial effects of this application:
[0119] (1) This application proposes a method for constructing a convex space, which facilitates the CILQR algorithm to solve within the scope of this convex space, prevents different decision results from occurring in different frames, and ensures the uniqueness of the solution.
[0120] (2) According to the different positions of obstacles, a rule-based lane change decision method is proposed. In order to optimize the time complexity, the binary search method is used to search for the projection point of the obstacle on the lane line.
[0121] (3) This application proposes a horizontally and vertically coupled obstacle avoidance trajectory planning method, which plans in both space and time, can achieve good planning effects in dynamic scenes, and improves the safety of obstacle avoidance trajectory planning.
[0122] (4) Based on ILQR, this application adds constraints and converts the constraints into optimization objectives, converts hard constraints into soft constraints, and solves them through second-order Taylor expansion, thereby solving the problem that traditional quadratic programming solvers are difficult to solve nonlinear problems.
[0123] In an exemplary embodiment, a computer device is provided, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the LQR motion planning method based on constraint iteration in Embodiment 1.
[0124] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the LQR motion planning method based on constraint iteration in Embodiment 1 is implemented.
[0125] In an exemplary embodiment, a computer program product is provided, including a computer program, which implements the LQR motion planning method based on constraint iteration in Embodiment 1 when executed by a processor.
[0126] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store video tag processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a video tag processing method is implemented.
[0127] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0128] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0129] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0130] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0131] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0132] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A constrained iteration based LQR motion planning method, characterized in that: The LQR motion planning method based on constraint iteration includes: Construct convex space boundaries and reference lines based on the positions of obstacles in the lane; Within the convex space boundary, trajectory planning is performed for the vehicle to be planned based on the reference line; the trajectory planning process includes: Obtain the number of CILQR planning points and the initial values of the state quantity and control quantity of the vehicle to be planned; the state quantity includes: abscissa, ordinate, heading angle, speed and acceleration; the control quantity includes: acceleration change rate and yaw angular velocity; Based on the initial values of the state quantity and control quantity of the vehicle to be planned, the state quantity and control quantity corresponding to each CILQR planning point are updated and iterated for multiple rounds by using back propagation and forward propagation to obtain the target trajectory of the vehicle to be planned and complete the trajectory planning.
2. The LQR motion planning method based on constraint iteration according to claim 1, characterized in that: Based on the initial values of the state quantity and control quantity of the vehicle to be planned, the state quantity and control quantity corresponding to each CILQR planning point are updated and iterated for multiple rounds by using back propagation and forward propagation to obtain the target trajectory of the vehicle to be planned, and complete the trajectory planning, including: Determine any iteration number with a value greater than 1 as the current iteration number; Determine the control amount corresponding to each CILQR planning point in the trajectory under the current iteration number; the control amount corresponding to each CILQR planning point in the trajectory under the current iteration number is determined by back propagation based on the control amount corresponding to each CILQR planning point in the trajectory under the previous iteration number; the control amount corresponding to each CILQR planning point in the trajectory under the initial iteration number is determined by initialization; According to the initial value of the state quantity of the vehicle to be planned and the initial value of the control quantity of the starting point at the current iteration number, the state quantity corresponding to each CILQR planning point in the trajectory at the current iteration number is determined by forward propagation; The total cost function is used to calculate the total cost of the trajectory at the current iteration number based on the state quantity and control quantity corresponding to each CILQR planning point in the trajectory at the current iteration number and the state quantity and control quantity corresponding to each point in the reference line; the total cost function is a function of the control quantity and the state quantity; Based on the total cost of the trajectory at the current iteration number and the total cost of the trajectory at the previous iteration number, calculate the cost difference at the current iteration number; Determine whether a stop condition is met; the stop condition is that the cost difference under the current number of iterations is less than a preset difference or reaches a preset number of iterations; If yes, the trajectory at the current iteration number is determined as the target trajectory of the vehicle to be planned; If not, the current iteration number is updated to the next iteration number, and the method of "determining the control amount corresponding to each CILQR planning point in the trajectory under the current iteration number" is returned until the stop condition is met to obtain the target trajectory of the vehicle to be planned.
3. The LQR motion planning method based on constraint iteration according to claim 2, characterized in that: The total cost function includes: an obstacle distance cost function, a reference line distance cost function, a convex space boundary distance cost function and a control amount cost function.
4. The LQR motion planning method based on constraint iteration according to claim 3, characterized in that: The obstacle distance cost function is: J obs =q1 × exp(q2(X-X0) T P(X-X0)): Among them, J obs is the value of the obstacle distance cost function; q1 and q2 are the weight coefficients of the obstacle distance cost function; X is the matrix composed of the state quantities corresponding to each CILQR planning point in the trajectory; X0 is the matrix composed of the state quantities corresponding to each point in the obstacle; T is the transpose; P is the matrix containing the major and minor axis information of the ellipse.
5. The LQR motion planning method based on constraint iteration according to claim 4, characterized in that: The reference line distance cost function is: J ref =(X-X ref ) T p1(X-X ref ); Among them, J ref is the reference line distance cost function value; x ref is the matrix composed of the state quantities corresponding to each point in the reference line; p1 is the weight coefficient of the reference line distance cost function.
6. The LQR motion planning method based on constraint iteration according to claim 5, characterized in that: The convex space boundary distance cost function is: J boundary =q3×exp(q4(X-X boundary )); Among them, J boundary is the cost function value of the boundary distance of the convex space; q3 and q4 are the weight coefficients of the cost function of the boundary distance of the convex space; X boundary It is a matrix composed of the state quantities corresponding to the projection points of each CILQR planning point in the trajectory on the boundary of the convex space.
7. The LQR motion planning method based on constraint iteration according to claim 6, characterized in that: The control amount cost function is: J control =q5×exp(q6(UU max ))+q7×exp(q8(U min -IN)); Among them, J control is the value of the control cost function; q5, q6 and q7 are the weight coefficients of the control cost function; U is the matrix composed of the control quantities corresponding to each CILQR planning point in the trajectory; U max is the maximum value in the matrix composed of the control quantities corresponding to each CILQR planning point in the trajectory; U min It is the minimum value in the matrix composed of the control quantities corresponding to each CILQR planning point in the trajectory.
8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the LQR motion planning method based on constraint iteration as described in any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the LQR motion planning method based on constraint iteration described in any one of claims 1 to 7 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the LQR motion planning method based on constraint iteration described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Vehicle trajectory planning method and device, storage medium and equipment
CN112677995A
Narrow channel unmanned trailer obstacle avoidance turning track planning method
CN115840451A
Path planning method and device, vehicle and storage medium
CN115900738A
Method for planning curve running small-curvature trajectory of automatic driving semi-trailer train
CN117261900A
Cited By
Low-time-consumption path planning method and device for automatic driving vehicle and storage medium
CN120403679A
Route planning method and device, electronic equipment and storage medium
CN120576766A
