A method for controlling automatic driving trajectory and related equipment
By combining the Dubins curve and the target spiral, combined with Newton's method, the G3 continuity trajectory is generated, which solves the problems of large calculation amount and difficulty in ensuring the continuity of the curve in existing autonomous driving path planning, and achieves smaller calculation amount and smoother Turning effect.
Patent Information
- Application Number
- CN202211016412.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-08-24
AI Technical Summary
Existing autonomous driving path planning methods require a large amount of calculations, are difficult to ensure curve continuity, and the physical meaning of the curve parameters obtained by searching is not intuitive, and cannot effectively solve the optimization problem of turning characteristic constraints.
The Dubins curve and the target spiral are combined to determine the target trajectory by obtaining the vehicle's turning characteristics, especially the maximum turning rate and the maximum turning rate change rate, and use Newton's method to solve the directional optimal solution that meets the preset error to generate G3 continuous sexual trajectory.
It achieves autonomous driving path planning with less calculation, good trajectory continuity, and smoother turns, avoiding a large number of searches and Jacobian matrix calculations. The generated trajectory has clear physical meaning and is adapted to the driving characteristics of the vehicle.
Smart Images

Figure CN115230741B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving, and more specifically, to an autonomous driving trajectory control method and related equipment. Background Art
[0002] The general path planning of autonomous driving mainly uses optimization methods: first define the parameter form of the curve used in trajectory planning, then define the cost equation of the constraints and optimization objectives, and then use the search method to obtain the optimal curve parameters, and then obtain the target curve. This type of optimization method has the following defects: huge amount of calculation: a large number of iterative calculations are required in the optimization, and at the same time, to ensure the continuity of the curve, the number of parameters required to be used also needs to increase, and the amount of calculation increases exponentially; it is not always possible to find a solution that meets the constraints, and there is no simple criterion to determine whether there is a solution; the physical meaning of the curve parameters obtained by the search is not intuitive. Summary of the invention
[0003] A series of simplified concepts are introduced in the Summary of the Invention, which will be further described in detail in the Detailed Description of the Invention. The Summary of the Invention does not mean to attempt to define the key features and essential technical features of the claimed technical solution, nor does it mean to attempt to determine the scope of protection of the claimed technical solution.
[0004] In a first aspect, the present invention provides an automatic driving trajectory control method, the method comprising:
[0005] Acquire vehicle posture information of a target start point and a target end point in a target section, wherein the vehicle posture information includes vehicle position information and vehicle direction information;
[0006] Acquiring turning characteristics of the target vehicle, wherein the turning characteristics include a maximum turning curvature and a maximum turning curvature change rate;
[0007] Determine the target trajectory based on the Dubins curve, the target spiral and the above turning characteristics;
[0008] The target vehicle is controlled to travel based on the target trajectory.
[0009] Optionally, determining the target trajectory according to the Dubins curve, the target spiral line and the turning characteristics includes:
[0010] Obtaining a preset trajectory based on the Dubins curve, wherein the preset trajectory is composed of a straight line trajectory and an arc trajectory;
[0011] The above-mentioned straight line trajectory and the above-mentioned circular arc trajectory of the above-mentioned preset trajectory are spliced and corrected according to the above-mentioned turning characteristics and the above-mentioned target spiral line to obtain the above-mentioned target trajectory.
[0012] Optionally, the step of performing splicing correction on the straight line trajectory and the arc trajectory of the preset trajectory according to the turning characteristics and the target spiral line to obtain the target trajectory includes:
[0013] Selecting a preset maximum turning curvature change rate within the range of the turning characteristics as a preset constraint of the target spiral line;
[0014] Determine a target equation based on the preset constraints and the target spiral line;
[0015] Based on the above objective equation, find the optimal solution in the direction that satisfies the preset error;
[0016] The target trajectory is determined according to the optimal solution of the direction.
[0017] Optionally, the above objective equation is:
[0018]
[0019] In the formula, θ 总 is the total angle turned by the straight line trajectory and the circular arc trajectory, θ is the angle turned by the spiral line after splicing with the target spiral line, dkmax is the preset constraint, y(θ) is the function of θ and the end point of the spiral line after eliminating other unknowns from the target spiral line, and b is the y coordinate of the end point of the straight line trajectory and the circular arc trajectory during splicing correction.
[0020] Optionally, solving the optimal solution in the direction that satisfies a preset error based on the objective equation includes:
[0021] The Newton method is used to solve the optimal solution in the direction that meets the preset error based on the above objective equation.
[0022] Optionally, the Newton method is used to solve the optimal solution in the direction that satisfies the preset error based on the target equation, including:
[0023] The radius of the arc trajectory with a preset multiple is used as the initial estimate of the target equation;
[0024] Based on the above target equation, a first-order derivative equation corresponding to the solution error is obtained;
[0025] Newton's method is used to perform interpolation calculation based on the first-order derivative equation to obtain the direction estimate;
[0026] When the solution error is less than a preset error, the direction estimation value is determined as the optimal solution for the direction.
[0027] Optional,
[0028] The target helix is determined by the following set of parametric equations:
[0029] k′(s)=3a(L―s)s
[0030]
[0031]
[0032]
[0033]
[0034] Where s is the length of the target spiral from the starting point to the current point, a is the target spiral coefficient, L is the length of the target spiral, k′(s) is the derivative of the curvature of the target spiral at s, k(s) is the curvature of the target spiral at s, θ(s) is the total angle that the target spiral rotates from the starting point to s, and x(s) and y(s) are the x and y coordinates of the target spiral at s, respectively.
[0035] The target helix has the following properties:
[0036]
[0037] k′(0)=k′(L)=0
[0038]
[0039]
[0040] Where s is the length of the target spiral from the starting point to the current point, L is the length of the target spiral; k′(s) max Maximum curvature change rate, k(s) max To obtain the maximum turning curvature at the end point, θ(s) is the angle that the target vehicle turns at point s.
[0041] In a second aspect, the present invention further provides an automatic driving trajectory control device, comprising:
[0042] A first acquisition unit is used to acquire vehicle posture information of a target start point and a target end point in a target section, wherein the vehicle posture information includes vehicle position information and vehicle direction information;
[0043] A second acquisition unit is used to acquire the turning characteristics of the target vehicle, wherein the turning characteristics include a maximum turning curvature and a maximum turning curvature change rate;
[0044] A determination unit, used for determining a target trajectory according to a Dubins curve, a target spiral line and the above turning characteristics;
[0045] A control unit is used to control the driving of the target vehicle based on the target trajectory.
[0046] In a third aspect, an electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the steps of the autonomous driving trajectory control method of any one of the first aspects described above when executing the computer program stored in the memory.
[0047] In a fourth aspect, the present invention further proposes a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the automatic driving trajectory control method of any one of the above items in the first aspect is implemented.
[0048] In summary, the automatic driving trajectory control method of the embodiment of the present application includes: obtaining the vehicle posture information of the target starting point and the target end point in the target section, wherein the vehicle posture information includes the vehicle position information and the vehicle direction information; obtaining the turning characteristics of the target vehicle, wherein the turning characteristics include the maximum turning curvature and the maximum turning curvature change rate; determining the target trajectory according to the Dubins curve, the target spiral and the turning characteristics; and controlling the target vehicle to travel based on the target trajectory. The automatic driving trajectory control method proposed in the embodiment of the present application, the vehicle posture information of the target starting point and the target end point and the turning characteristics of the vehicle, the target trajectory determined according to the Dubins curve and the target spiral, and the target vehicle is controlled to travel according to the target trajectory. The automatic driving trajectory control method proposed in the present application has good trajectory continuity, and uses a special cubic polynomial spiral to achieve G3 continuity, i.e., position continuity, direction continuity, curvature continuity and curvature change rate continuity. In automatic driving, the steering wheel position is proportional to the curvature of the vehicle's running trajectory, and G3 continuity means that the rate of change of the steering wheel speed is continuous, thereby ensuring excellent smoothness during vehicle operation. The method requires less calculation: the two-step construction optimization method is used to generate the path, avoiding the calculation of the Jacobian matrix and its inversion; by limiting the use of a spiral line with special properties to generate the path, a large amount of search is avoided. The physical meaning of the constraints used in the calculation is clear: in the curve smoothing process, the minimum turning radius (maximum turning curvature dk) and the maximum steering wheel rotation rate (maximum curvature change rate dkmax) of the car can be set to ensure that the smoothing result can be executed by the corresponding vehicle; the calculation result has a clear physical meaning and corresponds to the action performed by the autonomous driving vehicle: the generated trajectory is composed of a series of straight lines, arcs, and spirals, which correspond to the three actions of the vehicle going straight, turning at a fixed steering wheel position, and turning the steering wheel in one direction at an S-shaped rate. The autonomous driving trajectory control method provided in this application has a faster calculation speed, smoother turning, and is more adaptable to the driving characteristics of the vehicle.
[0049] The automatic driving trajectory control method of the present invention, other advantages, objectives and features of the present invention will be reflected in part through the following description, and in part will also be understood by technicians in this field through research and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present specification. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0051] Figure 1 A schematic diagram of a flow chart of an automatic driving trajectory control method provided in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of an autonomous driving turning scenario provided in an embodiment of the present application;
[0053] Figure 3 A schematic diagram of a target trajectory for Dubins curve planning provided in an embodiment of the present application;
[0054] Figure 4 A schematic diagram of the relationship between the curvature and displacement of a spiral provided in an embodiment of the present application;
[0055] Figure 5 A schematic diagram of the relationship between the curvature change rate and displacement of a spiral provided in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of the connection relationship between a straight line trajectory and an arc trajectory provided in an embodiment of the present application;
[0057] Figure 7 A target trajectory schematic diagram provided in an embodiment of the present application;
[0058] Figure 8 A schematic diagram of the relationship between curvature and target trajectory provided in an embodiment of the present application;
[0059] Fig. 9 Another schematic diagram of the relationship between curvature and target trajectory provided in an embodiment of the present application;
[0060] Fig.10 A schematic diagram of the structure of an automatic driving trajectory control device provided in an embodiment of the present application;
[0061] Fig.11 A schematic diagram of the structure of an autonomous driving trajectory control electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] The automatic driving trajectory control method proposed in the embodiment of the present application, the vehicle posture information of the target starting point and the target end point and the turning characteristics of the vehicle, the target trajectory determined according to the Dubins curve and the target spiral, and the target vehicle is controlled to travel according to the target trajectory. The automatic driving trajectory control method proposed in the present application has good trajectory continuity, and uses a special cubic polynomial spiral to achieve G3 continuity, namely position continuity, direction continuity, curvature continuity and curvature change rate continuity. In automatic driving, the steering wheel position is proportional to the curvature of the vehicle's running trajectory. G3 continuity means that the rate of change of the steering wheel speed is continuous, thereby ensuring excellent smoothness during vehicle operation. The method requires less calculation: the two-step construction optimization method is used to generate the path, avoiding the calculation of the Jacobian matrix and inversion; by limiting the use of a spiral with special properties to generate the path, a large amount of search is avoided. The physical meaning of the constraints used in the calculation is clear: in the curve smoothing process, the minimum turning radius (maximum turning curvature dk) and the maximum steering wheel rotation rate (maximum curvature change rate dkmax) of the car can be set to ensure that the smoothing result can be executed by the corresponding vehicle; the physical meaning of the calculation result is clear and corresponds to the action performed by the autonomous driving vehicle: the generated trajectory consists of a series of straight lines, arcs, and spirals, which correspond to the three actions of the vehicle going straight, turning at a fixed steering wheel position, and turning the steering wheel in one direction at an S-shaped rate. The autonomous driving trajectory control method provided by this application has a faster calculation speed, smoother turning, and is more adaptable to the driving characteristics of the vehicle.
[0063] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0064] See also Figure 1 , is a flow chart of an automatic driving trajectory control method provided in an embodiment of the present application, which may specifically include:
[0065] S110, acquiring vehicle posture information of a target start point and a target end point in a target section, wherein the vehicle posture information includes vehicle position information and vehicle direction information;
[0066] For example, Figure 2 As shown in the figure, three typical scenarios of autonomous driving are given, namely lane change, merging into the main road, and U-turn. The main function of autonomous driving trajectory planning is to control the car to "move" from one position to another, that is, to control the target vehicle to drive from the target starting point to the target point within a target section. In the process of controlling the vehicle's driving, it is necessary to continuously obtain the vehicle's posture information, that is, the vehicle's position information and vehicle direction information.
[0067] S120, obtaining turning characteristics of the target vehicle, wherein the turning characteristics include a maximum turning curvature and a maximum turning curvature change rate;
[0068] For example, the vehicle's turning characteristics are determined by the limitations of its geometric shape and physical properties. The vehicle's turning characteristics include the maximum turning curvature and the maximum turning curvature change rate, that is, the vehicle's minimum turning radius corresponds to the maximum turning curvature dk, and the maximum steering wheel rotation rate corresponds to the maximum curvature change rate dkmax. During the process of automatic driving, the vehicle can only move in the forward and reverse directions and cannot slide sideways.
[0069] S130, determining a target trajectory according to the Dubins curve, the target spiral line and the above turning characteristics;
[0070] Exemplarily, the autonomous driving first makes a decision (whether to change lanes, whether to change speed), and determines the target position, direction and speed. On this basis, the trajectory planning function must construct a smooth and continuous trajectory that can be executed by the vehicle. It can be seen that the autonomous driving trajectory planning mainly solves two problems: one is to construct a curve to connect the starting point and the end point; the second is that the constructed curve must ensure continuity and smoothness. In order to achieve these two requirements, this application first uses the Dubins curve to connect the starting point and the end point; then uses a cubic polynomial spiral with special properties to improve the continuity of the curve. In the process of improving the curve, the restrictions of the turning characteristics on the target trajectory are considered, so that the formed target trajectory can be applied to the vehicle's driving process.
[0071] S140: Control the target vehicle to travel based on the target trajectory.
[0072] Exemplarily, the target trajectory determined through steps S110 to S130 is achieved by continuously acquiring the real-time position information and real-time direction information of the vehicle during driving, and judging the relationship with the target trajectory, adjusting the driving direction and speed of the vehicle to make them coincide with the target trajectory as much as possible, so as to improve the accuracy of the automatic driving position and the smoothness of the vehicle when turning.
[0073] In summary, the automatic driving trajectory control method proposed in the embodiment of the present application, the vehicle posture information of the target starting point and the target end point and the turning characteristics of the vehicle, the target trajectory determined according to the Dubins curve and the target spiral, and the target vehicle is controlled to travel according to the target trajectory. The automatic driving trajectory control method proposed in the present application has good trajectory continuity, and uses a special cubic polynomial spiral to achieve G3 continuity, namely position continuity, direction continuity, curvature continuity and curvature change rate continuity. In automatic driving, the steering wheel position is proportional to the curvature of the vehicle's running trajectory. G3 continuity means that the rate of change of the steering wheel speed is continuous, thereby ensuring excellent smoothness during vehicle operation. The method requires less calculation: the two-step construction optimization method is used to generate the path, avoiding the calculation of the Jacobian matrix and inversion; by limiting the use of a spiral with special properties to generate the path, a large amount of search is avoided. The physical meaning of the constraints used in the calculation is clear: in the curve smoothing process, the minimum turning radius (maximum turning curvature dk) and the maximum steering wheel rotation rate (maximum curvature change rate dkmax) of the car can be set to ensure that the smoothing result can be executed by the corresponding vehicle; the physical meaning of the calculation result is clear and corresponds to the action performed by the autonomous driving vehicle: the generated trajectory consists of a series of straight lines, arcs, and spirals, which correspond to the three actions of the vehicle going straight, turning at a fixed steering wheel position, and turning the steering wheel in one direction at an S-shaped rate. The autonomous driving trajectory control method provided by this application has a faster calculation speed, smoother turning, and is more adaptable to the driving characteristics of the vehicle.
[0074] In some examples, determining the target trajectory according to the Dubins curve, the target spiral line, and the turning characteristics includes:
[0075] Obtaining a preset trajectory based on the Dubins curve, wherein the preset trajectory is composed of a straight line trajectory and an arc trajectory;
[0076] The above-mentioned straight line trajectory and the above-mentioned circular arc trajectory of the above-mentioned preset trajectory are spliced and corrected according to the above-mentioned turning characteristics and the above-mentioned target spiral line to obtain the above-mentioned target trajectory.
[0077] For example, the Dubins curve is a curve that Lester Eli Dubins discovered in 1957 that any starting point (including direction) and end point (including direction) in a plane can be composed of arc segments and straight line segments with a maximum curvature (provided that a path connecting the two points must exist). There are six types of optimal paths: RSR, RSL, LSR, LSL, RLR, and LRL (R stands for right turn, L stands for left turn, and L stands for straight ahead). Figure 3As shown in the figure, the Dubins curves under three driving conditions are given. The Dubins curves are directly connected by straight lines and arcs, and the curvature is discontinuous at the connection points, so they cannot be directly used in vehicle automatic driving control.
[0078] This application uses a special cubic polynomial spiral to correct the connection between the straight line trajectory and the circular arc trajectory. The parameter form of the general cubic polynomial spiral is k(s)=a0+a1s+a2s 2 +a3s 3 , where s is the length of the curve from the starting point to the current point, and a0-a3 are all parameters. In this application, a parameter form is constructed as k(s)=3 / 2aLs 2 -as 3 The target spiral is defined by the following set of parametric equations:
[0079]
[0080] like Figure 4 As shown in the figure, it is the relationship between the curvature k and s of the target spiral line, such as Figure 5 The figure shows the relationship between the curvature change rate k' and s of the target helix.
[0081] In summary, the automatic driving trajectory control method proposed in the embodiment of the present application adopts the method of splicing and correcting the Dubins curve by the target spiral line to obtain the target trajectory, which can make the arc trajectory and the straight line trajectory remain smooth at the connection point, and the curvature of the curve and the displacement form a parabolic relationship, which conforms to the characteristics of a simple inertial system and is easy to control.
[0082] In some examples, the step of splicing and correcting the straight line trajectory and the arc trajectory of the preset trajectory according to the turning characteristics and the target spiral line to obtain the target trajectory includes:
[0083] Selecting a preset maximum turning curvature change rate within the range of the turning characteristics as a preset constraint of the target spiral line;
[0084] Determine a target equation based on the preset constraints and the target spiral line;
[0085] Based on the above objective equation, find the optimal solution in the direction that satisfies the preset error;
[0086] The target trajectory is determined according to the optimal solution of the direction.
[0087] Exemplarily, selecting a preset maximum turning curvature change rate within the range of turning characteristics to form a constraint on the target spiral line can eliminate an unknown variable. In this case, the target equation is determined based on the preset constraint and the target spiral line, the optimal solution is obtained through the target equation, and the target trajectory is determined based on the optimal solution.
[0088] In some examples, the objective equation above is:
[0089]
[0090] In the formula, θ 总 is the total angle turned by the straight line trajectory and the circular arc trajectory, θ is the angle turned by the spiral line after splicing with the target spiral line, dkmax is the preset constraint, y(θ) is the function of θ and the end point of the spiral line after eliminating other unknowns from the target spiral line, and b is the y coordinate of the end point of the straight line trajectory and the circular arc trajectory during splicing correction.
[0091] For example, the following method is used to perform splicing correction on the straight line trajectory and the circular arc trajectory of the Dubins curve to improve the continuity. Figure 6 As shown, the left side is a straight line-circular arc connection, and the right side is a straight line-spiral-circular arc connection to be solved. The end point is P(a,b), and the end point direction is θtotal. It is easy to know that R = b / (1-cosθtotal). The right side r is unknown and satisfies 0 <r<R。
[0092] like Figure 6 As shown on the right, assuming that the angle of the spiral is θ, let y(aL) be the y coordinate of the end point of the spiral under the parameter aL. Due to the curve property θ=0.25*a*L4, the coordinate of the end point of the spiral can also be expressed as y(θL) after simple substitution.
[0093] The following system of equations can be listed:
[0094] r=1 / k(L)=2θ / L (3)
[0095] b=y(θL)+r(cosθ-cosθtotal) (4)
[0096] This system of equations contains three unknowns, r, θ, and L, so it is underdetermined. From an intuitive understanding, we can also know that when the dkmax of the helix is uncertain, there will be different solutions for different dkmax. The direct connection of the straight line and the arc can be regarded as the solution when dkmax is infinite. Therefore, introducing a suitable dkmax as a constraint of the helix, we have:
[0097] dkmax=3θ / L 2 (5)
[0098] At this point, the system of equations is well-posed. After substituting all the eliminations, we get the following formula:
[0099]
[0100] The original problem is transformed into using numerical methods to find a suitable θ so that the above equation holds, thereby determining the spiral equation to be solved.
[0101] In some examples, solving the optimal solution in the direction that satisfies a preset error based on the objective equation includes:
[0102] The Newton method is used to solve the optimal solution in the direction that meets the preset error based on the above objective equation.
[0103] For example, the Newton method converges quickly to the optimal solution, so it can quickly calculate the target trajectory while the vehicle is driving fast, making autonomous driving smoother.
[0104] In some examples, the Newton method is used to solve the optimal solution in the direction that satisfies the preset error based on the target equation, including:
[0105] The radius of the arc trajectory with a preset multiple is used as the initial estimate of the target equation;
[0106] Based on the above target equation, a first-order derivative equation corresponding to the solution error is obtained;
[0107] Newton's method is used to perform interpolation calculation based on the first-order derivative equation to obtain the direction estimate;
[0108] When the solution error is less than a preset error, the direction estimation value is determined as the optimal solution for the direction.
[0109] For example, let Using Newton's method to find the optimal solution θ can be divided into three steps:
[0110] A: Initial estimate. You can use r = 0.9R as the initial estimate. Substituting into the elimination, we have
[0111] B: Find the first-order derivative of the error e with respect to θ:
[0112] Among them, since the coordinate point f of the spiral x (θ) and f y (θ) is obtained by integration, so its derivative f′ y(θ) cannot be calculated directly. We can use Taylor expansion in the range [0,π] with intervals of 0.01 to establish a table of values for x(θ), x'(θ), x" (θ) and y(θ)y'(θ)y" (θ) about θ. Then we use Newton interpolation to approximate y'(θ);
[0113] C: Update the estimate of θ using Newton’s method;
[0114] The above process is repeated until the solution error e is less than the preset error (generally can be set to 1e-5), and the direction estimation value that meets the error requirement is determined as the direction optimal solution.
[0115] In summary, the automatic driving trajectory control method proposed in the embodiment of the present application solves the optimal direction solution through Newton's method and can quickly calculate the target trajectory of the target vehicle.
[0116] In some examples, the target helix is determined by the following set of parametric equations:
[0117] k′(s)=3a(L―s)s
[0118]
[0119]
[0120]
[0121]
[0122] Where s is the length of the target spiral from the starting point to the current point, a is the target spiral coefficient, L is the length of the target spiral, k′(s) is the derivative of the curvature of the target spiral at s, k(s) is the curvature of the target spiral at s, θ(s) is the total angle that the target spiral rotates from the starting point to s, and x(s) and y(s) are the x and y coordinates of the target spiral at s, respectively.
[0123] The target helix has the following properties:
[0124]
[0125] k′(0)=k′(L)=0
[0126]
[0127]
[0128] Where s is the length of the target spiral from the starting point to the current point, L is the length of the target spiral; k′(s) max Maximum curvature change rate, k(s)max To obtain the maximum turning curvature at the end point, θ(s) is the angle that the target vehicle turns at point s.
[0129] Exemplarily, the target spiral mentioned above is compared with an ordinary cubic polynomial spiral. Such a curve satisfies k'(s)=3a(L-s)s. In the present application, dk is k'(s). It is easy to know that the dk of the curve constructed in this way is 0 at the starting point (s=0) and the end point (s=L). Therefore, when it connects a straight line or the starting point of a similar spiral at the starting point and connects an arc or the end point of a similar spiral at the end point, dk is continuous at the connection point. Such a curve has only two parameters, a and L, which requires less calculation in the search, and the physical meaning of L is clear. The curvature dkmax and kmax can be simply calculated from the parameters a and L. The dk and s of the curve are in a quadratic parabola relationship, which conforms to the characteristics of a simple inertial system and is convenient for controlling the steering wheel to track this relationship.
[0130] In summary, the automatic driving trajectory control method proposed in the embodiment of the present application uses a cubic polynomial spiral to correct and splice the Dubins curve to form a target trajectory. The target trajectory is smooth and easy to control the vehicle.
[0131] In some examples, such as Figure 7 The following are schematic diagrams of target trajectories in three different scenarios. Figure 8 for Figure 7 The corresponding three scenarios are the corresponding relationships between curvature and displacement without using this method. Fig. 9 for Figure 7 The following are schematic diagrams of curvature in the corresponding three scenarios after using this method. This method can achieve G3 continuity and cover all requirements of planar trajectory planning.
[0132] See also Fig.10 , an embodiment of the automatic driving trajectory control device in the embodiment of the present application may include:
[0133] A first acquisition unit 21 is used to acquire vehicle posture information of a target start point and a target end point in a target section, wherein the vehicle posture information includes vehicle position information and vehicle direction information;
[0134] A second acquisition unit 22 is used to acquire the turning characteristics of the target vehicle, wherein the turning characteristics include a maximum turning curvature and a maximum turning curvature change rate;
[0135] A determination unit 23, configured to determine a target trajectory according to the Dubins curve, the target spiral line and the above turning characteristics;
[0136] The control unit 24 is used to control the target vehicle to travel based on the target trajectory.
[0137] like Fig.11 As shown, an embodiment of the present application also provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 320 and executable on the processor, and when the processor 320 executes the computer program 311, the steps of any of the above-mentioned methods of autonomous driving trajectory control are implemented.
[0138] Since the electronic device introduced in this embodiment is a device used to implement an automatic driving trajectory control device in the embodiment of the present application, based on the method introduced in the embodiment of the present application, technical personnel in this field can understand the specific implementation mode of the electronic device of this embodiment and its various variations. Therefore, how the electronic device implements the method in the embodiment of the present application is not introduced in detail here. As long as the equipment used by technical personnel in this field to implement the method in the embodiment of the present application is within the scope of protection of this application.
[0139] In the specific implementation process, when the computer program 311 is executed by the processor, it can achieve Figure 1 Any implementation manner in the corresponding embodiments.
[0140] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0141] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0142] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0143] 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.
[0144] 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.
[0145] The present application also provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device is caused to execute the following Figure 1 The process of autonomous driving trajectory control in the corresponding embodiment.
[0146] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0147] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0148] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0149] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0150] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0152] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An automatic driving trajectory control method, characterized in that: include: Acquire vehicle posture information of a target start point and a target end point in a target section, wherein the vehicle posture information includes vehicle position information and vehicle direction information; Acquire turning characteristics of the target vehicle, wherein the turning characteristics include a maximum turning curvature and a maximum turning curvature change rate; Determine the target trajectory according to the Dubins curve, the target spiral line and the turning characteristics; Controlling the target vehicle to travel based on the target trajectory; The determining of the target trajectory according to the Dubins curve, the target spiral line and the turning characteristics comprises: Obtaining a preset trajectory based on a Dubins curve, wherein the preset trajectory is composed of a straight line trajectory and an arc trajectory; According to the turning characteristics and the target spiral line, the straight track and the circular arc track of the preset track are spliced and corrected to obtain the target track; The step of performing splicing correction on the straight track and the arc track of the preset track according to the turning characteristic and the target spiral line to obtain the target track includes: Selecting a preset maximum turning curvature change rate within the range of the turning characteristic as a preset constraint of the target helix; determining a target equation based on the preset constraint and the target helix; Solving the optimal solution in the direction that satisfies the preset error based on the target equation; Determine the target trajectory according to the optimal solution of the direction; The objective equation is: In the formula, is the total angle of the straight line trajectory and the circular arc trajectory, is the angle of rotation of the spiral line after the target spiral line is used for splicing, For the preset constraints, is the function of θ and the end point of the spiral line after eliminating other unknowns from the target spiral line, and b is the y coordinate of the end point of the straight line track and the circular arc track during splicing correction; The target helix is determined by the following set of parametric equations: Where s is the length of the target spiral from the starting point to the current point, a is the target spiral coefficient, and L is the length of the target spiral. is the derivative of the curvature of the target helix at s, is the curvature of the target helix at s, is the total angle of the target spiral from the starting point to s, are the x and y coordinates of the target spiral at position s, respectively; The target helix has the following properties: Among them, s is the length of the target spiral from the starting point to the current point, and L is the length of the target spiral; Maximum curvature change rate, To obtain the maximum curvature at the end point, is the angle that the target vehicle turns at position s.
2. The method according to claim 1, characterized in that The step of solving the optimal solution in the direction satisfying the preset error based on the target equation includes: The Newton method is used to solve the optimal solution in the direction that meets the preset error based on the target equation.
3. The method according to claim 2, characterized in that The method of using Newton's method to solve the optimal solution in the direction that satisfies the preset error based on the target equation includes: The radius of the arc trajectory with a preset multiple is used as the initial estimate of the target equation; Obtaining a first-order derivative equation corresponding to the solution error based on the target equation; performing difference calculation using Newton's method according to the first-order derivative equation to obtain a direction estimate; When the solution error is less than a preset error, the direction estimation value is determined as the direction optimal solution.
4. An automatic driving trajectory control device, characterized in that: include: A first acquisition unit is used to acquire vehicle posture information of a target start point and a target end point in a target section, wherein the vehicle posture information includes vehicle position information and vehicle direction information; A second acquisition unit is used to acquire a turning characteristic of the target vehicle, wherein the turning characteristic includes a maximum turning curvature and a maximum turning curvature change rate; A determination unit, used for determining a target trajectory according to a Dubins curve, a target spiral line and the turning characteristic; A control unit, configured to control the target vehicle to travel based on the target trajectory; The determining of the target trajectory according to the Dubins curve, the target spiral line and the turning characteristics comprises: Obtaining a preset trajectory based on a Dubins curve, wherein the preset trajectory is composed of a straight line trajectory and an arc trajectory; According to the turning characteristics and the target spiral line, the straight track and the circular arc track of the preset track are spliced and corrected to obtain the target track; The step of performing splicing correction on the straight track and the arc track of the preset track according to the turning characteristic and the target spiral line to obtain the target track includes: Selecting a preset maximum turning curvature change rate within the range of the turning characteristic as a preset constraint of the target helix; determining a target equation based on the preset constraint and the target helix; Solving the optimal solution in the direction that satisfies the preset error based on the target equation; Determine the target trajectory according to the optimal solution of the direction; The objective equation is: In the formula, is the total angle of the straight line trajectory and the circular arc trajectory, is the angle of rotation of the spiral line after the target spiral line is used for splicing, For the preset constraints, is the function of θ and the end point of the spiral line after eliminating other unknowns from the target spiral line, and b is the y coordinate of the end point of the straight line track and the circular arc track during splicing correction; The target helix is determined by the following set of parametric equations: Where s is the length of the target spiral from the starting point to the current point, a is the target spiral coefficient, and L is the length of the target spiral. is the derivative of the curvature of the target helix at s, is the curvature of the target helix at s, is the total angle of the target spiral from the starting point to s, are the x and y coordinates of the target spiral at position s, respectively; The target helix has the following properties: Among them, s is the length of the target spiral from the starting point to the current point, and L is the length of the target spiral; Maximum curvature change rate, To obtain the maximum curvature at the end point, is the angle that the target vehicle turns at position s.
5. An electronic device comprising: A memory and a processor, wherein the processor is used to implement the steps of the automatic driving trajectory control method as described in any one of claims 1 to 3 when executing a computer program stored in the memory.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the automatic driving trajectory control method as described in any one of claims 1 to 3 is implemented.
