Lane changing track control method and device, equipment, storage medium and program product
By calculating the angle between the vehicle's predicted trajectory and the desired driving trajectory, and controlling the vehicle to approach the desired driving trajectory based on the error distance, combined with the fusion planning of B-spline curves and fifth-order polynomials, the problem of low accuracy in lane-changing trajectory execution is solved and improved enhance the driving experience.
Patent Information
- Application Number
- CN202410764046.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-17
AI Technical Summary
In L2 intelligent driving, the lane change trajectory execution accuracy is low, resulting in a poor driving experience.
By obtaining the vehicle's current driving data, it predicts the vehicle's position at the next moment, calculates the angle between the predicted trajectory and the expected driving trajectory, and controls the vehicle to approach the desired driving trajectory based on the error distance, using the fusion planning of B-spline curves and fifth-order polynomials. , realizing the lane changing process of slow start and fast convergence.
It improves the execution accuracy of lane changing trajectories, enhances the driving experience, and avoids the problems of insufficient maneuverability and algorithmic logic that are inconsistent with driving habits in traditional polynomial planning.
Smart Images

Figure CN118651223A
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to a lane-changing trajectory control method, device, equipment, storage medium, and program product. Background Technology
[0002] Among the many L2 autonomous driving functions, advanced cruise control is highly popular and frequently used due to its ability to provide significant assistance to drivers during driving. The introduction of lateral control undoubtedly reduces the difficulty of driving in most scenarios. As one of the advanced cruise control functions, the lane change lever function aims to achieve smooth driving on straight and curved roads and complete comfortable lane changes, assisting the driver in safe and comfortable lane-changing operations. This places high demands on the lateral and longitudinal coordinated motion planning capabilities of the intelligent driving function. A well-coordinated and reasonable lane-changing plan can not only guide the control algorithm to complete the lane-changing operation but also improve lane-changing comfort and safety.
[0003] In addition, because lane changing requires real-time planning based on the vehicle's real-time position and is limited by the errors of multiple sensors in the vehicle, the vehicle's lane changing action often differs from the expected trajectory. The accuracy of lane changing trajectory planning is low, which affects lane changing control performance and lowers the driving experience. Summary of the Invention
[0004] This application provides a lane change trajectory control method, device, equipment, storage medium, and program product to solve the problems of low accuracy in lane change trajectory execution in related technologies, resulting in a poor driving experience.
[0005] The first aspect of this application provides a lane-changing trajectory control method, including the following steps: acquiring driving data at the current moment during a lane-changing process; predicting the vehicle position at the next moment based on the driving data; determining the predicted trajectory based on the vehicle position at the current moment and the vehicle position at the next moment; calculating the angle between the predicted trajectory and the vehicle's desired driving trajectory; calculating the error distance between the vehicle position at the next moment and the desired position based on the angle; and controlling the vehicle to move closer to the desired driving trajectory according to the error distance.
[0006] Optionally, the formula for calculating the error distance is:
[0007]
[0008] Where v is the vehicle speed at the current moment, t0 is the current moment, θ is the included angle, and s err This represents the error distance.
[0009] Optionally, before calculating the angle between the predicted trajectory and the vehicle's desired driving trajectory, the method further includes: obtaining the vehicle's planned trajectory; segmenting the vehicle's planned trajectory to obtain a first planned trajectory before lane change and a second planned trajectory after lane change, wherein the first planned trajectory is planned using a first preset function and the second planned trajectory is planned using a second preset function; and fusing the first preset function and the second preset function to obtain the desired driving trajectory.
[0010] Optionally, the driving data includes vehicle speed, driving direction, and steering angle. Predicting the vehicle position at the next moment based on the driving data includes: predicting the vehicle position at the next moment based on vehicle speed, driving direction, and steering angle.
[0011] Optionally, calculating the angle between the predicted trajectory and the vehicle's desired driving trajectory includes: obtaining the first endpoint position of the predicted trajectory and the second endpoint position of the desired driving trajectory; and calculating the angle based on the first endpoint position and the second endpoint position.
[0012] Optionally, controlling the vehicle to move closer to the desired driving trajectory according to the error distance includes: if the error distance is less than or equal to a preset threshold, then stopping the control of the vehicle to move closer to the desired driving trajectory.
[0013] A second aspect of this application provides a lane-changing trajectory control device, comprising: an acquisition module for acquiring driving data at the current moment during a lane-changing process; a prediction module for predicting the vehicle position at the next moment based on the driving data; a determination module for determining the predicted trajectory based on the vehicle position at the current moment and the vehicle position at the next moment; and a control module for calculating the angle between the predicted trajectory and the vehicle's desired driving trajectory, calculating the error distance between the vehicle position at the next moment and the desired position based on the angle, and controlling the vehicle to move closer to the desired driving trajectory according to the error distance.
[0014] Optionally, the formula for calculating the error distance is:
[0015]
[0016] Where v is the vehicle speed at the current moment, t0 is the current moment, θ is the included angle, and s err This represents the error distance.
[0017] Optionally, it further includes: a fusion module, used to obtain the planned trajectory of the vehicle before calculating the angle between the predicted trajectory and the vehicle's desired driving trajectory; to segment the planned trajectory of the vehicle to obtain a first planned trajectory before lane change and a second planned trajectory after lane change, wherein the first planned trajectory is planned using a first preset function and the second planned trajectory is planned using a second preset function; and to fuse the first preset function and the second preset function to obtain the desired driving trajectory.
[0018] Optionally, the driving data includes vehicle speed, driving direction, and steering angle, and the prediction module is further used to predict the vehicle position at the next moment based on the vehicle speed, driving direction, and steering angle.
[0019] Optionally, the control module is further configured to: obtain the first endpoint position of the predicted trajectory and the second endpoint position of the desired driving trajectory; and calculate the included angle based on the first endpoint position and the second endpoint position.
[0020] Optionally, the control module is further configured to: stop controlling the vehicle to approach the desired driving trajectory if the error distance is less than or equal to a preset threshold.
[0021] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor executes the program to perform the lane-changing driving trajectory control method as described above.
[0022] A fourth aspect of this application provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a processor, performs the lane-changing driving trajectory control method as described above.
[0023] A fifth aspect of this application provides a computer program product, including a computer program or instructions, which, when executed, implement the lane-changing trajectory control method as described in the above embodiments.
[0024] Therefore, this application has at least the following beneficial effects:
[0025] This application's embodiments can calculate the angle between the predicted trajectory and the desired driving trajectory of the vehicle, calculate the error between the vehicle's position and the desired position at the next moment based on the angle, and control the vehicle to move closer to the desired driving trajectory according to the error distance, making the actual driving trajectory closer to the desired driving trajectory, thereby reducing lane-changing trajectory errors, improving lane-changing trajectory execution accuracy, and thus improving the user's driving experience. This solves the technical problems in related technologies such as low lane-changing trajectory execution accuracy, leading to a poor driving experience.
[0026] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0027] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0028] Figure 1 This is a flowchart of the lane-changing trajectory control method provided according to an embodiment of this application;
[0029] Figure 2 This is a schematic diagram of the error distance provided according to an embodiment of this application;
[0030] Figure 3 This is a schematic diagram of the lane-changing trajectory provided according to an embodiment of this application;
[0031] Figure 4 This is a schematic diagram of the rate of change of the B-spline curve according to an embodiment of this application;
[0032] Figure 5 A schematic diagram of the rate of change of a fifth-order polynomial according to an embodiment of this application;
[0033] Figure 6 This is a schematic diagram of the hyperbolic fusion rate of change provided according to an embodiment of this application;
[0034] Figure 7 This is a schematic diagram of a gradient descent control lane-changing trajectory provided according to an embodiment of this application;
[0035] Figure 8 This is a schematic diagram of lane-changing trajectory control provided according to an embodiment of this application;
[0036] Figure 9 This is a schematic diagram of a lane-changing trajectory control device provided according to an embodiment of this application;
[0037] Figure 10 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation
[0038] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0039] The control of vehicle lane-changing trajectories in the relevant technologies will be explained below:
[0040] In real-world testing, most OEMs use cubic / quintic polynomials to fit equations for lane-changing trajectory planning. While widely used, this algorithm has low flexibility and its design logic does not align with drivers' driving habits. Other OEMs utilize deep learning networks for lane-changing trajectory planning. Although this improves the flexibility of the planning algorithm, the computing power of onboard chips is low, and deep learning networks consume a lot of computing power. Using them only for lane-changing trajectory planning can easily preempt computing power from other functions, affecting the overall performance of intelligent driving functions.
[0041] Taking traditional fifth-order polynomial curve interpolation as an example, the information such as the vehicle's position, heading angle, lateral and longitudinal speeds and accelerations are compared with the expected values. The error information is used as a boundary condition and substituted into the curve equation. While solving for the correlation coefficient, PID (Proportional Integral Derivative) and other control methods are used to reduce the error. The curve is sampled according to the time interval to obtain the path points at each time.
[0042] The fifth-degree polynomials of the horizontal and vertical positions with respect to time t are as follows:
[0043] X(t) = a0 + a1t + a2t 2 +a3t 3 +a4t 4 +a5t 5 ;
[0044] Y(t) = b0 + b1t + b2t 2 +b3t 3 +b4t 4 +b5t 5 ;
[0045] The solution shows that:
[0046]
[0047] It can be known
[0048] A = T -1 X,B=T -1 Y;
[0049] The A and B matrices can then be solved to determine the curve.
[0050] Although polynomials are widely used in trajectory planning, they are based on ground coordinates and are not suitable for autonomous driving applications. In addition, once the variables in matrices A and B are determined, the trajectory planning path is also determined, lacking flexibility. Finally, lane changing based on polynomials cannot achieve human-like planning with slow start and fast convergence, affecting the driving experience.
[0051] To address the aforementioned problems, this application proposes a lane-changing trajectory control method, apparatus, device, storage medium, and program product. The following description, with reference to the accompanying drawings, details the lane-changing trajectory control method, apparatus, device, storage medium, and program product of this application. Addressing the issue mentioned in the background art where the vehicle's lane-changing actions often differ from the desired trajectory, resulting in low accuracy in lane-changing trajectory planning and execution, thus affecting lane-changing control performance and reducing driving experience, this application provides a lane-changing trajectory control method. In this method, the angle between the predicted trajectory and the desired driving trajectory of the vehicle can be calculated. Based on the angle, the error between the vehicle's position and the desired position at the next moment can be calculated. The vehicle is then controlled to move closer to the desired driving trajectory according to the error distance, making the actual driving trajectory more closely resemble the desired trajectory. This solves the problems of low accuracy in lane-changing trajectory execution and resulting poor driving experience in related technologies.
[0052] Specifically, Figure 1 This is a flowchart of a lane-changing trajectory control method provided in an embodiment of this application.
[0053] like Figure 1 As shown, the lane-changing trajectory control method includes the following steps:
[0054] In step S101, the driving data at the current moment during the vehicle lane change process is obtained.
[0055] The driving data may include at least one of the following: vehicle speed, driving direction and steering angle, which can be obtained through sensors in the vehicle.
[0056] In step S102, the vehicle position at the next moment is predicted based on the driving data.
[0057] It is understood that the embodiments of this application can predict the vehicle's position at the next moment based on driving data, as described below.
[0058] In this embodiment of the application, predicting the vehicle position at the next moment based on driving data includes: predicting the vehicle position at the next moment based on vehicle speed, driving direction and steering angle.
[0059] It is understood that the embodiments of this application can predict the vehicle position at the next moment based on vehicle speed, driving direction and steering angle.
[0060] For example, if a vehicle is traveling at 60 km / h, heading east, and turning 3 degrees to the left, it is predicted that the vehicle will be positioned to the right of the left lane of its current lane at the next moment. Similarly, if a vehicle is traveling at 50 km / h, heading east, and turning 5 degrees to the right, it is predicted that the vehicle will be positioned in the center of the right lane of its current lane at the next moment.
[0061] In step S103, the predicted trajectory is determined based on the vehicle position at the current time and the vehicle position at the next time.
[0062] It is understood that the embodiments of this application can determine the predicted trajectory based on the vehicle position at the current moment and the vehicle position at the next moment, that is, the predicted trajectory of the actual driving of the vehicle. Specifically, the predicted trajectory can be determined by curve fitting between the vehicle position at the current moment and the vehicle position at the next moment.
[0063] For example, a coordinate system can be established based on the vehicle's current position, with the current position as the origin and the driving direction as the Y-axis. The vehicle's current position, turning angle, speed, and turning direction are all set to the left. The arc length can be derived using the speed and time, and the turning angle at the next moment can be derived using the time interval. The circle and the circle angle can be derived using the arc length, turning angle, current position, and current angle to determine the vehicle's position coordinates and rotation angle at the next moment, thereby generating a predicted trajectory.
[0064] In step S104, the angle between the predicted trajectory and the vehicle's desired driving trajectory is calculated. Based on the angle, the error distance between the vehicle's position and the desired position at the next moment is calculated. The vehicle is then controlled to move closer to the desired driving trajectory according to the error distance.
[0065] The formula for calculating the error distance is as follows:
[0066]
[0067] Where v is the vehicle speed at the current moment, t0 is the current moment, θ is the included angle, and s err This represents the error distance.
[0068] It is understood that the embodiments of this application can calculate the angle between the predicted trajectory and the vehicle's expected driving trajectory, and calculate the error distance between the vehicle's position and the expected position at the next moment based on the angle. The vehicle is controlled to move closer to the expected driving trajectory according to the error distance, that is, the vehicle is controlled to continuously approach the expected driving trajectory along the angle that decreases, so as to improve the accuracy of the vehicle's lane-changing trajectory planning.
[0069] In this embodiment of the application, calculating the angle between the predicted trajectory and the vehicle's desired driving trajectory includes: obtaining the first endpoint position of the predicted trajectory and the second endpoint position of the desired driving trajectory; and calculating the angle based on the first endpoint position and the second endpoint position.
[0070] It is understood that, in the embodiments of this application, the included angle can be calculated based on the first end point position of the predicted trajectory and the second end point position of the desired driving trajectory, and the included angle can be calculated using the coordinates of the first end point position and the coordinates of the second end point position.
[0071] It should be noted that, in this embodiment of the application, a coordinate system can be established with the current position of the vehicle as the origin and the direction of travel as the Y-axis, such as... Figure 2 As shown, the included angle is further calculated based on the coordinates of the first endpoint and the second endpoint, and then the error distance is calculated based on the included angle.
[0072] In this embodiment of the application, before calculating the angle between the predicted trajectory and the vehicle's desired driving trajectory, the method further includes: obtaining the vehicle's planned trajectory; segmenting the vehicle's planned trajectory to obtain a first planned trajectory before lane change and a second planned trajectory after lane change, wherein the first planned trajectory is planned using a first preset function and the second planned trajectory is planned using a second preset function; and fusing the first preset function and the second preset function to obtain the desired driving trajectory.
[0073] Currently, most trajectory planning methods for lane-changing processes use cubic polynomials for equation fitting. While widely used, insufficient research into driving experience leads to low algorithm flexibility, design logic that doesn't align with driving habits, and the initiation of lane changes shouldn't be too rapid, impacting the driving experience. Therefore, this application's embodiment can segment the vehicle's planned trajectory into a first planned driving trajectory before lane change and a second planned driving trajectory after lane change. The first planned driving trajectory is planned using a first preset function, such as a B-spline function, while the second planned driving trajectory is planned using a second preset function, such as a fifth-order polynomial function. The first and second preset functions are then fused to obtain the desired driving trajectory.
[0074] For example, this application utilizes a two-stage piecewise horizontal and vertical coordinated stable planning method based on the fusion of two functions (also known as hyperbolas) to achieve a slow start-fast convergence in the lane-changing process. This ensures both a comfortable start and a safe end for lane changes. The overall lane-changing trajectory is planned in two stages, as shown in the example below. Figure 3 As shown. First, unlike traditional polynomial programming equations, this application introduces B-spline curve programming into the lane change trajectory planning during lane change initiation. For example... Figure 4 As shown, the B-spline curve exhibits a low rate of change at the start of a lane change, and the rate of change increases slowly. After driving for a period of time, the rate of change gradually increases, prompting the control module to gradually increase the steering wheel angle, achieving a slow start to the lane change while ensuring the reasonableness of the lane change time. Secondly, at the end of the lane change, it is necessary to ensure that the steering wheel returns to center quickly to reduce the risk of overshoot.
[0075] Because the rate of change of a traditional fifth-order polynomial is relatively large at the end of a lane change, such as Figure 5 As shown, this application embeds it into the target lane straightening process, and fuses it to obtain a hyperbola, as follows. Figure 6As shown, the steering wheel angle is quickly returned to center, achieving rapid convergence during lane changes. Furthermore, to avoid vehicle jerking during trajectory switching, a separate adaptive fusion control module is designed and integrated into the overall control logic, seamlessly integrating the entire lane-changing process and achieving smooth, stable vehicle control, thus improving ride comfort.
[0076] It should be noted that the embodiments of this application do not utilize deep learning algorithms for training and inference, and do not involve deep convolution calculations. They only utilize machine learning methods for trajectory planning, thus requiring low computing power and achieving accurate planning under low computing power.
[0077] In this embodiment of the application, controlling the vehicle to move closer to the desired driving trajectory according to the error distance includes: if the error distance is less than or equal to a preset threshold, then stopping the control of the vehicle to move closer to the desired driving trajectory.
[0078] The preset threshold can be set according to specific circumstances, such as being set to 0.
[0079] It is understood that in the embodiments of this application, when the error distance is less than or equal to a preset threshold, it indicates that the error distance is already small, and the vehicle is stopped from moving closer to the desired driving trajectory.
[0080] The following specific embodiment illustrates the lane-changing trajectory control method of this application, which mainly involves two parts: predictive error control based on the gradient descent idea and two-stage segmented lateral and longitudinal coordinated precise lane-changing planning based on function fusion.
[0081] I. Predictive Error Control Based on Gradient Descent
[0082] Because lane changing requires real-time planning based on the vehicle's current position and is limited by errors from multiple sensors, the vehicle's lane-changing actions often deviate from the expected trajectory, affecting lane-changing control performance and lowering the driving experience. Furthermore, PID algorithms are prone to overshoot during lane changes, which in extreme cases can cause the vehicle to run out of the target lane, compromising driving safety. To address these issues and improve the accuracy of lane-changing trajectory planning, this application introduces the gradient descent concept based on error control into traditional PID control. It compares the real-time planning result (expected result) from the vehicle's current position with the predicted position the vehicle can reach in the next frame (actual prediction result). Under driving comfort constraints, PID control is applied in the direction of error reduction, proposing a predictive error control based on gradient descent. The algorithm diagram is shown below. Figure 7 As shown.
[0083] Figure 7In this process, the vehicle cannot reach the desired trajectory position under the constraint of the rate of change of the turning angle. Continuing to travel in the current direction will cause an error between the actual trajectory and the target position. In order to reduce the error and increase the control accuracy of the desired trajectory, this invention introduces the gradient descent idea into the control process, uses error prediction for vehicle control, and takes the direction of error descent as input to guide the back-end PID algorithm to perform lane-changing control with the position optimization direction.
[0084] In the vehicle's coordinate system at the current moment, the vehicle is traveling at a speed of v. Due to the influence of the vehicle's reaction time or sensor performance errors, after a unit time t0 (one frame, 20ms), the distance s between the vehicle's expected actual position and the planned desired position will be... err for:
[0085]
[0086] Here, θ is the included angle. However, to ensure the overall vehicle driving comfort, the back-end PID control imposes a threshold limit on the rate of change of the vehicle steering angle. To address this issue, the gradient descent concept is introduced into the error control. Because the error distance shows a continuously decreasing trend in the θ direction angle, this application uses the direction of decreasing θ as the direction of the error control gradient descent, such as... Figure 8 As shown, the auxiliary PID control continuously approaches the predicted trajectory to prevent overshooting, swaying, and other phenomena in the PID control.
[0087] II. Two-stage segmented horizontal and vertical coordination-based precise lane-changing planning based on function fusion
[0088] Currently, most trajectory planning for lane-changing processes uses cubic polynomials for equation fitting. While widely used, insufficient research into driving experience leads to low algorithm flexibility and design logic that doesn't align with driving habits. To address this issue and improve driving comfort, this application first conducted extensive research on experienced drivers, concluding that lane-changing initiation should not be too rapid, as this negatively impacts the driving experience. Second, through extensive research, analysis, and fusion of multi-source information, the designers redesigned the lane-changing curve to better suit driver habits. They proposed a two-stage, segmented, lateral and longitudinal coordinated stable planning based on curve fusion, achieving a slow start-fast convergence in the lane-changing process, ensuring both comfort at the start and safety at the end of the lane change.
[0089] This application employs a two-stage planning approach for the overall lane-changing process. First, at the start of the lane-changing phase, unlike traditional polynomial programming equations, this application incorporates B-spline curve programming into the lane-changing trajectory planning. For example... Figure 4As shown, the B-spline curve has a low rate of change at the start of a lane change, and the rate of change increases slowly. After driving for a period of time, the rate of change gradually increases, causing the control module to gradually increase the steering wheel angle, achieving a slow start to the lane change while ensuring the reasonableness of the lane change time. Secondly, at the end of the lane change, it is necessary to ensure that the steering wheel returns to center quickly to reduce the risk of overshoot. Because the traditional fifth-order polynomial has a large rate of change at the end of the lane change, such as... Figure 5 As shown, this application embeds it into the target lane straightening process, and fuses it to obtain a hyperbola, as... Figure 6 As shown, the steering wheel angle is quickly returned to center, achieving rapid convergence during lane changes. Furthermore, to avoid vehicle jerking during trajectory switching, a separate adaptive fusion control module is designed and integrated into the overall control logic, seamlessly integrating the entire lane-changing process and achieving smooth vehicle control, thus improving ride comfort. Finally, this application does not utilize deep learning algorithms for training and inference, and does not involve deep convolutional calculations; it only uses machine learning methods for trajectory planning, therefore requiring low computing power and achieving accurate planning with low computational cost.
[0090] According to the lane-changing trajectory control method proposed in the embodiments of this application, the angle between the predicted trajectory and the desired trajectory of the vehicle can be calculated. Based on the angle, the error between the vehicle position and the desired position at the next moment can be calculated. The vehicle can be controlled to move closer to the desired trajectory according to the error distance, so that the actual trajectory is closer to the desired trajectory, thereby reducing the error of the lane-changing trajectory, improving the accuracy of the lane-changing trajectory execution, and thus improving the user's driving experience.
[0091] Next, the lane-changing driving trajectory control device proposed according to the embodiments of this application is described with reference to the accompanying drawings.
[0092] Figure 9 This is a block diagram of a lane-changing driving trajectory control device according to an embodiment of this application.
[0093] like Figure 9 As shown, the lane-changing driving trajectory control device 10 includes: an acquisition module 100, a prediction module 200, a determination module 300, and a control module 400.
[0094] The acquisition module 100 is used to acquire the driving data of the vehicle at the current moment during the lane change process; the prediction module 200 is used to predict the vehicle position at the next moment based on the driving data; the determination module 300 is used to determine the predicted trajectory based on the vehicle position at the current moment and the vehicle position at the next moment; and the control module 400 is used to calculate the angle between the predicted trajectory and the vehicle's expected driving trajectory, calculate the error distance between the vehicle position at the next moment and the expected position based on the angle, and control the vehicle to drive closer to the expected driving trajectory according to the error distance.
[0095] In this embodiment, the formula for calculating the error distance is:
[0096]
[0097] Where v is the vehicle speed at the current moment, t0 is the current moment, θ is the included angle, and s err This represents the error distance.
[0098] In this embodiment of the application, the apparatus 10 further includes a fusion module.
[0099] The fusion module is used to obtain the vehicle's planned trajectory before calculating the angle between the predicted trajectory and the vehicle's desired driving trajectory; to segment the vehicle's planned trajectory to obtain a first planned trajectory before lane change and a second planned trajectory after lane change, wherein the first planned trajectory is planned using a first preset function and the second planned trajectory is planned using a second preset function; and to fuse the first preset function and the second preset function to obtain the desired driving trajectory.
[0100] In this embodiment of the application, the driving data includes: vehicle speed, driving direction and steering angle, and the prediction module 200 is further used to: predict the vehicle position at the next moment based on the vehicle speed, driving direction and steering angle.
[0101] In this embodiment, the control module 400 is further configured to: obtain the first endpoint position of the predicted trajectory and the second endpoint position of the desired driving trajectory; and calculate the included angle based on the first endpoint position and the second endpoint position.
[0102] In this embodiment of the application, the control module 400 is further configured to: if the error distance is less than or equal to a preset threshold, then stop controlling the vehicle to approach the desired driving trajectory.
[0103] It should be noted that the foregoing explanation of the lane-changing trajectory control method embodiment also applies to the lane-changing trajectory control device of this embodiment, and will not be repeated here.
[0104] According to the lane-changing trajectory control device proposed in the embodiments of this application, the angle between the predicted trajectory and the desired trajectory of the vehicle can be calculated, the error between the vehicle position and the desired position at the next moment can be calculated based on the angle, and the vehicle can be controlled to move closer to the desired trajectory according to the error distance, so that the actual trajectory is closer to the desired trajectory, thereby reducing the error of the lane-changing trajectory, improving the accuracy of the lane-changing trajectory execution, and thus improving the user's driving experience.
[0105] Figure 10 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include:
[0106] The memory 1001, the processor 1002, and the computer program stored on the memory 1001 and capable of running on the processor 1002.
[0107] When the processor 1002 executes the program, it implements the lane-changing driving trajectory control method provided in the above embodiments.
[0108] Furthermore, electronic devices also include:
[0109] Communication interface 1003 is used for communication between memory 1001 and processor 1002.
[0110] The memory 1001 is used to store computer programs that can run on the processor 1002.
[0111] The memory 1001 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0112] If the memory 1001, processor 1002, and communication interface 1003 are implemented independently, then the communication interface 1003, memory 1001, and processor 1002 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0113] Optionally, in a specific implementation, if the memory 1001, processor 1002, and communication interface 1003 are integrated on a single chip, then the memory 1001, processor 1002, and communication interface 1003 can communicate with each other through an internal interface.
[0114] The processor 1002 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0115] This application also provides a computer-readable storage medium storing a computer program or instructions thereon, which, when executed by a processor, implements the above-described lane-changing driving trajectory control method.
[0116] This application also provides a computer program product, including a computer program or instructions, which, when executed, implement the above-described lane-changing trajectory control method.
[0117] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0118] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0119] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0120] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or more of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0121] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
Claims
1. A lane-changing trajectory control method, characterized in that: The following steps are involved: Obtain the driving data of the vehicle at the current moment during the lane change process; Predicting the vehicle position at the next moment based on the driving data; Determining a predicted trajectory based on the vehicle position at the current moment and the vehicle position at the next moment; The angle between the predicted trajectory and the desired driving trajectory of the vehicle is calculated, the error distance between the vehicle position at the next moment and the desired position is calculated according to the angle, and the vehicle is controlled to travel close to the desired driving trajectory according to the error distance.
2. The lane-changing trajectory control method according to claim 1, characterized in that: The calculation formula of the error distance is: Among them, v is the current speed, t0 is the current time, θ is the angle, s err is the error distance.
3. The lane-changing trajectory control method according to claim 1, characterized in that: Before calculating the angle between the predicted trajectory and the desired driving trajectory of the vehicle, the method further includes: Get the planned trajectory of the vehicle; Segmentally processing the planned trajectory of the vehicle to obtain a first planned trajectory before lane changing and a second planned trajectory after lane changing, wherein the first planned trajectory is planned using a first preset function, and the second planned trajectory is planned using a second preset function; The first preset function and the second preset function are integrated to obtain a desired driving trajectory.
4. The lane-changing trajectory control method according to claim 1, characterized in that: The driving data includes: vehicle speed, driving direction and steering angle, and the predicting of the vehicle position at the next moment based on the driving data includes: The vehicle position at the next moment is predicted according to the vehicle speed, the driving direction and the steering angle.
5. The lane-changing trajectory control method according to claim 1, characterized in that: The calculating the angle between the predicted trajectory and the desired driving trajectory of the vehicle includes: Acquire a first end point position of the predicted trajectory and a second end point position of the expected driving trajectory; The angle is calculated according to the first end point position and the second end point position.
6. The lane-changing trajectory control method according to claim 1, characterized in that: The step of controlling the vehicle to travel close to the expected driving trajectory according to the error distance includes: If the error distance is less than or equal to a preset threshold, the control of the vehicle to drive close to the expected driving trajectory is stopped.
7. A lane-changing driving trajectory control device, characterized in that: include: An acquisition module is used to acquire the driving data of the vehicle at the current moment during the lane changing process; A prediction module, used to predict the vehicle position at the next moment based on the driving data; A determination module, used to determine the predicted trajectory according to the vehicle position at the current moment and the vehicle position at the next moment; The control module is used to calculate the angle between the predicted trajectory and the expected driving trajectory of the vehicle, calculate the error distance between the vehicle position at the next moment and the expected position according to the angle, and control the vehicle to travel close to the expected driving trajectory according to the error distance.
8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the lane changing trajectory control method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, it is used to implement the lane changing trajectory control method as described in any one of claims 1-6.
10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed, the lane changing trajectory control method as described in any one of claims 1-6 is implemented.
Citation Information
Patent Citations
Driving control method and device and vehicle
CN111123950A
Vehicle driving track prediction method and system, medium and vehicle-mounted terminal
CN111609846A
Track planning method and device
CN111824181A
Driving track prediction method and device and automatic driving vehicle
CN112687121A
Intelligent vehicle shifting rod lane changing method
CN112874536A
Cited By
Lane changing trajectory control method and apparatus, device, storage medium, and program product
WO2025255992A1
