Method, device, computer equipment and storage medium for determining front wheel turning angle
It predicts the state of the next moment through vehicle status information and prediction models, determines and processes the initial front wheel angle, solves the error problem of the Stanley control algorithm in curve trajectory tracking, and achieves more accurate and stable trajectory tracking.
Patent Information
- Application Number
- CN202311665827.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-05
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-12-05
AI Technical Summary
When the Stanley control algorithm handles trajectories that contain curves or curvature mutations, the trajectory tracking effect is poor, especially when the vehicle speed increases, the tracking error is large, and it cannot meet the needs of practical applications.
By calculating the current state information of the vehicle, including lateral error, heading error and speed, inputting it into the pre-trained vehicle prediction model, predicting the state information at the next moment, and determining the initial front wheel angle according to the control quantity sequence, performing first-order low-level Through filtering and limiting processing, the target front wheel angle is obtained to control the vehicle chassis.
It improves the vehicle trajectory tracking accuracy and stability under complex trajectories, ensures that the vehicle can accurately track the reference trajectory, and reduces the oscillation and instability of the control system.
Smart Images

Figure CN117622164B
Abstract
Description
Technical Field
[0001] The present application relates to the field of trajectory tracking technology. Specifically, the present application relates to a method, device, computer equipment and storage medium for determining a front wheel turning angle. Background Art
[0002] Vehicle trajectory tracking refers to the use of control algorithms and sensor information to guide the vehicle to move along the trajectory in the best way given a reference trajectory to achieve fast and accurate tracking. Typically, trajectory tracking is applied to autonomous driving or vehicle control systems, where the main goal is to ensure that the vehicle can travel on a given trajectory in a safe and efficient manner.
[0003] At present, a common trajectory tracking method is to use the Stanley control algorithm. The Stanley control algorithm is a tracking algorithm based on lateral errors. It mainly relies on real-time feedback of the current vehicle state, and then achieves trajectory tracking by controlling the front wheel angle of the vehicle. For cases without curvature such as straight trajectories, this control algorithm performs well. However, when the road trajectory contains curved parts or there is a sudden change in curvature, the trajectory tracking effect of this control algorithm is relatively poor. Especially when the vehicle speed gradually increases, the tracking error will become larger and larger, which cannot meet the requirements of actual application scenarios. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for determining the front wheel turning angle that can improve the complex trajectory tracking effect in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for determining a front wheel turning angle. The method comprises:
[0006] Calculate the front wheel steering angle of the vehicle at the current moment according to the state information of the vehicle at the current moment, and store the front wheel steering angle of the vehicle at the current moment in the control quantity sequence; wherein the state information includes the lateral error of the front wheels of the vehicle, the heading error of the front wheels of the vehicle and the vehicle speed;
[0007] Inputting the vehicle state information at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the vehicle state information at the next prediction moment;
[0008] Determine whether the next prediction moment exceeds the prediction time domain range; wherein the prediction time domain range is determined based on the set prediction time domain period and time step;
[0009] If the next prediction time exceeds the prediction time domain range, determining the initial front wheel turning angle according to the front wheel turning angle in the control amount sequence;
[0010] The initial front wheel steering angle is subjected to first-order low-pass filtering and limiting processing to obtain a target front wheel steering angle; wherein the target front wheel steering angle is used to instruct the vehicle chassis to control the front wheels of the vehicle.
[0011] In one embodiment, the method further comprises:
[0012] If the next predicted moment does not exceed the predicted time domain range, the state information of the vehicle at the next predicted moment is determined as the state information of the vehicle at the current moment, and the step of calculating the front wheel turning angle of the vehicle at the current moment based on the state information of the vehicle at the current moment is returned to execute until the next predicted moment exceeds the predicted time domain range.
[0013] In one embodiment, determining the initial front wheel steering angle according to the front wheel steering angle in the control amount sequence includes:
[0014] All front wheel steering angles in the control quantity sequence are weighted averaged to obtain an initial front wheel steering angle.
[0015] In one embodiment, the method further comprises:
[0016] Obtaining a target historical lateral error corresponding to a target historical trajectory of the vehicle; wherein the target historical trajectory is a trajectory that the vehicle actually travels during trajectory tracking, and a length of the target historical trajectory is greater than or equal to a length threshold;
[0017] Determining whether a maximum lateral error among the historical lateral errors of the target is less than or equal to an error threshold;
[0018] If the maximum lateral error among the target historical lateral errors is greater than an error threshold, storing the target historical trajectory and the target historical lateral error in a trajectory database;
[0019] Determine whether the number of historical trajectories stored in the trajectory database is greater than a threshold;
[0020] If the number of historical trajectories stored in the trajectory database is greater than the number threshold, extracting the historical lateral errors corresponding to the historical trajectories stored in the trajectory database, and using an incremental PID control method to perform correction calculation on the historical lateral errors to obtain a parameter adjustment amount of the vehicle prediction model;
[0021] The parameter adjustment amount is applied to the vehicle prediction model.
[0022] In one embodiment, the method further comprises:
[0023] If the maximum lateral error among the target historical lateral errors is less than or equal to the error threshold, the process returns to the step of obtaining the target historical lateral errors corresponding to the target historical trajectory of the vehicle.
[0024] In one embodiment, the method further comprises:
[0025] If the number of historical trajectories stored in the trajectory database is less than or equal to the number threshold, the process returns to executing the step of obtaining the target historical lateral error corresponding to the target historical trajectory of the vehicle.
[0026] In one embodiment, the front wheel turning angle of the vehicle at the current moment is calculated according to the state information of the vehicle at the current moment, and is calculated by the following formula:
[0027]
[0028] Wherein, steer_angle(t) represents the front wheel steering angle of the vehicle at time t, heading_error(t) represents the heading error of the front wheel of the vehicle at time t, lat_error(t) represents the lateral error of the front wheel of the vehicle at time t, V(t) represents the vehicle speed at time t, k=2.5 represents the gain parameter, Kv=0.5 represents the speed offset coefficient;
[0029] The step of inputting the vehicle state information at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the vehicle state information at the next prediction moment includes:
[0030] According to the lateral error of the front wheel of the vehicle at the current moment, the corresponding position information of the vehicle at the current moment is obtained;
[0031] According to the heading error of the front wheel of the vehicle at the current moment, the corresponding heading angle of the vehicle at the current moment is obtained;
[0032] According to the vehicle position information at the current moment, the vehicle heading angle at the current moment and the vehicle speed at the current moment, the vehicle position information at the next predicted moment and the vehicle heading angle at the next predicted moment are calculated by the following formula:
[0033] Yaw(t+1)=(V(t)*tan(steer_angle(t) / L))*dt+Yaw(t)
[0034] X(t+1)=V(t)*cos(Yaw(t+1))+X(t)
[0035] Y(t+1)=V(t)*sin(Yaw(t+1))+Y(t)
[0036] Among them, Yaw(t+1) represents the heading angle of the vehicle at time t+1, Yaw(t) represents the heading angle of the vehicle at time t, L represents the wheelbase of the vehicle, dt represents the sampling interval, X(t+1) and Y(t+1) represent the position information of the vehicle at time t+1, and X(t) and Y(t) represent the position information of the vehicle at time t;
[0037] The state information of the vehicle at the next predicted moment is calculated based on the position information of the vehicle at the next predicted moment and the heading angle of the vehicle at the next predicted moment.
[0038] In a second aspect, the present application provides a device for determining a front wheel turning angle. The device comprises:
[0039] A wheel steering angle calculation module, used to calculate the front wheel steering angle of the vehicle at the current moment according to the state information of the vehicle at the current moment, and store the front wheel steering angle of the vehicle at the current moment in the control quantity sequence; wherein the state information includes the lateral error of the front wheels of the vehicle, the heading error of the front wheels of the vehicle and the vehicle speed;
[0040] A state prediction module, used for inputting the state information of the vehicle at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the state information of the vehicle at the next prediction moment;
[0041] A time judgment module, used to judge whether the next predicted time exceeds the prediction time range; wherein the prediction time range is determined based on the set prediction time period and time step;
[0042] a wheel steering angle determination module, configured to determine an initial front wheel steering angle according to the front wheel steering angle in the control quantity sequence if the next prediction moment exceeds the prediction time domain range;
[0043] The wheel steering angle processing module is used to perform first-order low-pass filtering and limiting processing on the initial front wheel steering angle to obtain a target front wheel steering angle; wherein the target front wheel steering angle is used to instruct the vehicle chassis to control the vehicle front wheels.
[0044] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0045] Calculate the front wheel steering angle of the vehicle at the current moment according to the state information of the vehicle at the current moment, and store the front wheel steering angle of the vehicle at the current moment in the control quantity sequence; wherein the state information includes the lateral error of the front wheels of the vehicle, the heading error of the front wheels of the vehicle and the vehicle speed;
[0046] Inputting the vehicle state information at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the vehicle state information at the next prediction moment;
[0047] Determine whether the next prediction moment exceeds the prediction time domain range; wherein the prediction time domain range is determined based on the set prediction time domain period and time step;
[0048] If the next prediction time exceeds the prediction time domain range, determining the initial front wheel turning angle according to the front wheel turning angle in the control amount sequence;
[0049] The initial front wheel steering angle is subjected to first-order low-pass filtering and limiting processing to obtain a target front wheel steering angle; wherein the target front wheel steering angle is used to instruct the vehicle chassis to control the front wheels of the vehicle.
[0050] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0051] Calculate the front wheel steering angle of the vehicle at the current moment according to the state information of the vehicle at the current moment, and store the front wheel steering angle of the vehicle at the current moment in the control quantity sequence; wherein the state information includes the lateral error of the front wheels of the vehicle, the heading error of the front wheels of the vehicle and the vehicle speed;
[0052] Inputting the vehicle state information at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the vehicle state information at the next prediction moment;
[0053] Determine whether the next prediction moment exceeds the prediction time domain range; wherein the prediction time domain range is determined based on the set prediction time domain period and time step;
[0054] If the next prediction time exceeds the prediction time domain range, determining the initial front wheel turning angle according to the front wheel turning angle in the control amount sequence;
[0055] The initial front wheel steering angle is subjected to first-order low-pass filtering and limiting processing to obtain a target front wheel steering angle; wherein the target front wheel steering angle is used to instruct the vehicle chassis to control the front wheels of the vehicle.
[0056] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0057] Calculate the front wheel steering angle of the vehicle at the current moment according to the state information of the vehicle at the current moment, and store the front wheel steering angle of the vehicle at the current moment in the control quantity sequence; wherein the state information includes the lateral error of the front wheels of the vehicle, the heading error of the front wheels of the vehicle and the vehicle speed;
[0058] Inputting the vehicle state information at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the vehicle state information at the next prediction moment;
[0059] Determine whether the next prediction moment exceeds the prediction time domain range; wherein the prediction time domain range is determined based on the set prediction time domain period and time step;
[0060] If the next prediction time exceeds the prediction time domain range, determining the initial front wheel turning angle according to the front wheel turning angle in the control amount sequence;
[0061] The initial front wheel steering angle is subjected to first-order low-pass filtering and limiting processing to obtain a target front wheel steering angle; wherein the target front wheel steering angle is used to instruct the vehicle chassis to control the front wheels of the vehicle.
[0062] The above-mentioned method, device, computer equipment, computer-readable storage medium and computer program product for determining the front wheel angle first calculate the current vehicle front wheel angle according to the current vehicle state information, and store it in a control quantity sequence as an input for subsequent prediction and control. Then, the current vehicle state information and the current vehicle front wheel angle are input into a pre-trained vehicle prediction model to predict the state information of the vehicle at the next moment according to the current state and the current front wheel angle, so that it is possible to know in advance how the vehicle will respond to the change of the front wheel angle. After predicting the vehicle state at the next moment, it will be determined whether the predicted moment exceeds the prediction time domain range. If the prediction exceeds the range, it means that the prediction may be unreliable, so the validity and accuracy of the prediction can be ensured. If it is within the prediction time domain range, the initial front wheel angle will be determined according to the front wheel angle in the control quantity sequence, and the initial front wheel angle will be subjected to a first-order low-pass filter and a limiting process to obtain a target front wheel angle. The target front wheel angle will be used to control the vehicle chassis to ensure that the vehicle travels along the reference trajectory. It can be understood that the present application predicts the vehicle state in a certain time domain in the future through the current vehicle state information, the current vehicle front wheel steering angle and the vehicle prediction model, and calculates the control amount of the vehicle front wheel steering angle at each prediction moment, and then solves the control amount sequence to obtain the optimal control amount of the current front wheel steering angle. In this way, the control problem of the vehicle in complex trajectory tracking is solved by predicting and adjusting the front wheel steering angle, thereby ensuring that the vehicle can accurately track the reference trajectory. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1is a schematic flow chart of a method for determining a front wheel turning angle in one embodiment;
[0064] Figure 2 A schematic diagram of a process flow of a vehicle prediction model parameter adjustment solution in one embodiment;
[0065] Figure 3 is a structural block diagram of a device for determining a front wheel turning angle in one embodiment;
[0066] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0068] The method for determining the front wheel turning angle provided in the embodiment of the present application can be applied to a terminal, a server, or a system including a terminal and a server, and can be implemented through the interaction between the terminal and the server.
[0069] The terminal may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a vehicle-mounted terminal, etc. The terminal may also be a vehicle-mounted module, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit built into the vehicle as one or more components or units. The vehicle may implement the method for determining the front wheel steering angle provided in the embodiment of the present application through the built-in vehicle-mounted module, vehicle-mounted module, vehicle-mounted component, vehicle-mounted chip or vehicle-mounted unit.
[0070] The server can be implemented as an independent server or a server cluster consisting of multiple servers.
[0071] In one embodiment, Figure 1 As shown, a method for determining the front wheel turning angle is provided. The method comprises the following steps:
[0072] Step S102, calculating the front wheel steering angle of the vehicle at the current moment according to the state information of the vehicle at the current moment, and storing the front wheel steering angle of the vehicle at the current moment in the control quantity sequence.
[0073] The state information includes the lateral error of the front wheels of the vehicle, the heading error of the front wheels of the vehicle and the vehicle speed. The lateral error refers to the distance between the actual trajectory of the vehicle and the reference trajectory. The reference trajectory can be a series of GPS coordinate points, a geometric description of the road centerline, or other forms of route information. The heading error refers to the difference between the heading angle of the vehicle and the reference heading angle. The control quantity sequence records a set of front wheel steering angles arranged in chronological order.
[0074] It should be noted that the embodiment of the present application is a further improvement made on the basis of the Stanley control algorithm. The Stanley control algorithm is a tracking algorithm based on lateral error.
[0075] Specifically, the front wheel turning angle of the vehicle at the current moment is calculated according to the state information of the vehicle at the current moment, and is calculated by the following formula:
[0076]
[0077] Among them, steer_angle(t) represents the front wheel steering angle of the vehicle at time t (i.e. the current moment), heading_error(t) represents the heading error of the front wheels of the vehicle at time t, lat_error(t) represents the lateral error of the front wheels of the vehicle at time t, V(t) represents the vehicle speed at time t, k=2.5 represents the gain parameter, and Kv=0.5 represents the speed offset coefficient.
[0078] Step S104, inputting the vehicle state information at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the vehicle state information at the next prediction moment.
[0079] Among them, the vehicle prediction model can be constructed based on the vehicle kinematic model.
[0080] Specifically, first, the position information of the vehicle at the current moment is obtained according to the lateral error of the front wheel of the vehicle at the current moment. Then, the heading angle of the vehicle at the current moment is obtained according to the heading error of the front wheel of the vehicle at the current moment. After that, according to the position information of the vehicle at the current moment, the heading angle of the vehicle at the current moment and the speed of the vehicle at the current moment, the position information of the vehicle at the next predicted moment and the heading angle of the vehicle at the next predicted moment are calculated by the following formula:
[0081] Yaw(t+1)=(V(t)*tan(steer_angle(t) / L))*dt+Yaw(t)
[0082] X(t+1)=V(t)*cos(t(t+1))+X(t)
[0083] Y(t+1)=V(t)*sin(Yaw(t+1))+Y(t)
[0084] Among them, Yaw(t+1) represents the heading angle of the vehicle at time t+1 (i.e., the next predicted time), Yaw(t) represents the heading angle of the vehicle at time t, L represents the wheelbase of the vehicle, dt represents the sampling interval time, which can be set to 0.5s, X(t+1) and Y(t+1) represent the position information of the vehicle at time t+1, and X(t) and Y(t) represent the position information of the vehicle at time t.
[0085] Finally, according to the position information of the vehicle at the next prediction moment and the heading angle of the vehicle at the next prediction moment, the state information of the vehicle at the next prediction moment is calculated.
[0086] Step S106, determining whether the next prediction time is beyond the prediction time domain range.
[0087] The prediction time domain range is determined based on the set prediction time domain period and time step. The prediction time domain period refers to the time interval between the prediction moment and the previous moment. The time step is used to determine the number of predictions, that is, the number of iterations. For example, assuming that the prediction time domain period is 200ms and the time step is 5, the prediction time domain range is 1000ms.
[0088] Step S108: If the next prediction time exceeds the prediction time domain range, the initial front wheel steering angle is determined according to the front wheel steering angle in the control amount sequence.
[0089] Specifically, in one example, if the next prediction moment exceeds the prediction time domain range, all front wheel steering angles in the control amount sequence are weighted averaged to obtain the initial front wheel steering angle. In another example, if the next prediction moment exceeds the prediction time domain range, the median of all front wheel steering angles in the control amount sequence is selected to determine the initial front wheel steering angle.
[0090] Step S110, performing first-order low-pass filtering and limiting processing on the initial front wheel steering angle to obtain a target front wheel steering angle.
[0091] The target front wheel turning angle is used to instruct the vehicle chassis to perform unmanned control of the vehicle's front wheels.
[0092] Specifically, by performing a first-order low-pass filtering on the initial front wheel steering angle, the control input signal (i.e., the front wheel steering angle) can be smoothed, high-frequency noise and mutations can be removed, and the response of the vehicle control system to sudden changes can be reduced. By performing a limiting process on the front wheel steering angle obtained by the first-order low-pass filtering, the amplitude of the control input signal can be limited to prevent it from exceeding the safety range or causing the vehicle to lose control. This helps to prevent sudden steering or acceleration, thereby improving the controllability and safety of driving. It can be understood that by performing a first-order low-pass filtering and limiting process on the initial front wheel steering angle, the oscillation and instability in the vehicle control system can be reduced, and the purpose of de-jittering can be achieved, especially under high-speed driving or rapidly changing driving conditions, which helps to maintain the stability and predictability of the vehicle.
[0093] In the above-mentioned method for determining the front wheel turning angle, first, the current vehicle front wheel turning angle is calculated according to the current vehicle state information, and stored in a control quantity sequence as an input for subsequent prediction and control. Then, the current vehicle state information and the current vehicle front wheel turning angle are input into a pre-trained vehicle prediction model to predict the state information of the vehicle at the next moment according to the current state and the current front wheel turning angle, so that it is possible to know in advance how the vehicle will respond to the change of the front wheel turning angle. After predicting the vehicle state at the next moment, it is determined whether the predicted moment exceeds the prediction time domain range. If the prediction exceeds the range, it means that the prediction may be unreliable, so as to ensure the validity and accuracy of the prediction. If it is within the prediction time domain range, the initial front wheel turning angle is determined according to the front wheel turning angle in the control quantity sequence, and the initial front wheel turning angle is subjected to a first-order low-pass filter and a limiting process to obtain the target front wheel turning angle. The target front wheel turning angle will be used to control the vehicle chassis to ensure that the vehicle travels along the reference trajectory. It can be understood that the present application predicts the vehicle state in a certain time domain in the future through the current vehicle state information, the current vehicle front wheel steering angle and the vehicle prediction model, and calculates the control amount of the vehicle front wheel steering angle at each prediction moment, and then solves the control amount sequence to obtain the optimal control amount of the current front wheel steering angle. In this way, the control problem of the vehicle in complex trajectory tracking is solved by predicting and adjusting the front wheel steering angle, thereby ensuring that the vehicle can accurately track the reference trajectory.
[0094] In one embodiment, the method further comprises the following steps:
[0095] Step S109, if the next prediction moment does not exceed the prediction time domain range, the state information of the vehicle at the next prediction moment is determined as the state information of the vehicle at the current moment, and the process returns to execute the step of calculating the front wheel turning angle of the vehicle at the current moment based on the state information of the vehicle at the current moment, that is, step S102, until the next prediction moment exceeds the prediction time domain range.
[0096] Specifically, if the next prediction moment does not exceed the prediction time domain range, it indicates that the prediction time domain cycle has not been iterated, so steps S102 to S106 are repeatedly executed until the next prediction moment exceeds the prediction time domain range, and step S108 is executed.
[0097] In one embodiment, Figure 2 As shown, the method further comprises the following steps:
[0098] Step S111, obtaining a target historical lateral error corresponding to the target historical trajectory of the vehicle;
[0099] Step S112, determining whether the maximum lateral error in the target historical lateral errors is less than or equal to the error threshold;
[0100] Step S113, if the maximum lateral error in the target historical lateral errors is greater than the error threshold, the target historical trajectory and the target historical lateral errors are stored in the trajectory database;
[0101] Step S114, determining whether the number of historical trajectories stored in the trajectory database is greater than a threshold value;
[0102] Step S115, if the number of historical trajectories stored in the trajectory database is greater than the number threshold, extract the historical lateral errors corresponding to the historical trajectories stored in the trajectory database, and use the incremental PID control method to correct the historical lateral errors to obtain the parameter adjustment amount of the vehicle prediction model;
[0103] Step S116, applying the parameter adjustment amount to the vehicle prediction model.
[0104] The target historical trajectory is the actual trajectory of the vehicle during the trajectory tracking process, and the length of the target historical trajectory is greater than or equal to the length threshold. The length threshold can be set based on actual needs, for example, it can be 5 meters, 10 meters, etc. The target historical lateral error is the distance between the target historical trajectory and the corresponding reference trajectory.
[0105] The setting of the error threshold is related to the requirements of trajectory tracking. Generally, the smaller the error threshold is, the higher the accuracy of trajectory tracking is. Optionally, the error threshold can be set to 10 cm, 20 cm or other values. The number threshold can be set based on actual needs. Optionally, the number threshold can be set to 3, 5 or other values.
[0106] In this embodiment, a unique dynamic model optimization function is provided, which plays a key role in the entire unmanned vehicle control process. It continuously adjusts and optimizes the vehicle prediction model by collecting and analyzing the results of the overall trajectory tracking control accuracy in real time, so as to achieve the goal of iteratively improving the control accuracy. This function is very important because when unmanned vehicles are mass-produced, there are slight differences in the chassis of each vehicle, and the chassis characteristics will also change over time. By using the dynamic model optimization function, the vehicle prediction model can be optimized and corrected in real time during the vehicle control process, effectively improving the control accuracy. This function has obvious advantages in adapting to vehicles in different states. Unlike other technical solutions, other technical solutions can only perform fixed-point optimization for vehicle characteristics and cannot achieve comprehensive dynamic optimization like this technology.
[0107] In one embodiment, the method further comprises the following steps:
[0108] Step S117, if the maximum lateral error in the target historical lateral errors is less than or equal to the error threshold, indicating that the vehicle prediction model does not need to be optimized, then return to the step of obtaining the target historical lateral error corresponding to the target historical trajectory of the vehicle, that is, step S111.
[0109] In this embodiment, the maximum lateral error is compared with the error threshold, thereby realizing the automatic evaluation of the performance of the vehicle prediction model. If the maximum lateral error is less than or equal to the error threshold, it indicates that the model performs well and no additional optimization operation is required, which helps to save computing resources and avoid unnecessary work, thereby improving efficiency.
[0110] In one embodiment, the method further comprises the following steps:
[0111] Step S118, if the number of historical trajectories stored in the trajectory database is less than or equal to the threshold number, it indicates that the collected trajectory data with large lateral position deviation is small, the sample is not rich enough, and the amount of trajectory data needs to be increased to improve data richness. Therefore, the step of obtaining the target historical lateral error corresponding to the target historical trajectory of the vehicle will continue, that is, step S111.
[0112] In this embodiment, by checking the number of historical trajectories in the trajectory database, if the number is less than or equal to the number threshold, the process of supplementing trajectory data will be triggered. In this way, more historical trajectory data will be collected, thereby improving the richness of trajectory data, which is helpful to improve the accuracy and stability of vehicle behavior prediction and control.
[0113] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0114] Based on the same inventive concept, the embodiment of the present application also provides a device for determining the front wheel turning angle for implementing the method for determining the front wheel turning angle involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method above, so the specific limitations of one or more embodiments of the device for determining the front wheel turning angle provided below can refer to the limitations of the method for determining the front wheel turning angle above, and will not be repeated here.
[0115] In one embodiment, Figure 3 As shown, a device 20 for determining the front wheel turning angle is provided. The device comprises:
[0116] The wheel steering angle calculation module 202 is used to calculate the front wheel steering angle of the vehicle at the current moment according to the state information of the vehicle at the current moment, and store the front wheel steering angle of the vehicle at the current moment in the control quantity sequence; wherein the state information includes the lateral error of the front wheels of the vehicle, the heading error of the front wheels of the vehicle and the vehicle speed;
[0117] The state prediction module 204 is used to input the state information of the vehicle at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the state information of the vehicle at the next prediction moment;
[0118] The time determination module 206 is used to determine whether the next prediction time exceeds the prediction time range; wherein the prediction time range is determined based on the set prediction time period and time step;
[0119] The wheel steering angle determination module 208 is used to determine the initial front wheel steering angle according to the front wheel steering angle in the control amount sequence if the next prediction time exceeds the prediction time domain range;
[0120] The wheel steering angle processing module 210 is used to perform first-order low-pass filtering and limiting processing on the initial front wheel steering angle to obtain a target front wheel steering angle.
[0121] In the above-mentioned device for determining the front wheel turning angle, first, the current vehicle front wheel turning angle is calculated according to the current vehicle state information, and stored in a control quantity sequence as an input for subsequent prediction and control. Then, the current vehicle state information and the current vehicle front wheel turning angle are input into a pre-trained vehicle prediction model to predict the state information of the vehicle at the next moment according to the current state and the current front wheel turning angle, so that it is possible to know in advance how the vehicle will respond to the change of the front wheel turning angle. After predicting the vehicle state at the next moment, it will be determined whether the predicted moment exceeds the prediction time domain range. If the prediction exceeds the range, it means that the prediction may be unreliable, so as to ensure the validity and accuracy of the prediction. If it is within the prediction time domain range, the initial front wheel turning angle will be determined according to the front wheel turning angle in the control quantity sequence, and the initial front wheel turning angle will be subjected to a first-order low-pass filter and a limiting process to obtain the target front wheel turning angle. The target front wheel turning angle will be used to control the vehicle chassis to ensure that the vehicle travels along the reference trajectory. It can be understood that the present application predicts the vehicle state in a certain time domain in the future through the current vehicle state information, the current vehicle front wheel steering angle and the vehicle prediction model, and calculates the control amount of the vehicle front wheel steering angle at each prediction moment, and then solves the control amount sequence to obtain the optimal control amount of the current front wheel steering angle. In this way, the control problem of the vehicle in complex trajectory tracking is solved by predicting and adjusting the front wheel steering angle, thereby ensuring that the vehicle can accurately track the reference trajectory.
[0122] It should be noted that the front wheel angle determination device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when implementing the corresponding functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the front wheel angle determination device provided in the above embodiment and the front wheel angle determination method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0123] According to one aspect of the present application, an embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program comprising a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part. When the computer program is executed by a processor, the method for determining the front wheel steering angle provided in the embodiment of the present application is executed.
[0124] In addition, an embodiment of the present invention further provides a computer device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is capable of executing the computer program stored in the memory. When the computer program is executed by the processor, the method for determining the front wheel steering angle provided in any of the above embodiments can be implemented.
[0125] For example, Figure 4 A computer device provided by an embodiment of the present invention is shown. The device includes a bus 1110 , a processor 1120 , a transceiver 1130 , a bus interface 1140 , a memory 1150 , and a user interface 1160 .
[0126] In an embodiment of the present invention, the device further includes: a computer program stored in the memory 1150 and executable on the processor 1120, and when the computer program is executed by the processor 1120, each process of the above-mentioned front wheel angle determination method embodiment is implemented.
[0127] The transceiver 1130 is configured to receive and send data under the control of the processor 1120 .
[0128] In an embodiment of the present invention, the bus architecture (represented by bus 1110), bus 1110 may include any number of interconnected buses and bridges, and bus 1110 connects various circuits including one or more processors represented by processor 1120 and a memory represented by memory 1150.
[0129] Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and memory controller, a peripheral bus, an Accelerate Graphical Port (AGP), a processor, or a local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures include: Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA), Peripheral Component Interconnect (PCI) bus.
[0130] The processor 1120 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processors include: a general-purpose processor, a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a programmable logic array (PLA), a microcontroller unit (MCU) or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. For example, the processor may be a single-core processor or a multi-core processor, and the processor may be integrated into a single chip or located in multiple different chips.
[0131] Processor 1120 can be a microprocessor or any conventional processor. The method steps disclosed in conjunction with the embodiments of the present invention can be directly executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a readable storage medium known in the art, such as a random access memory (RAM), a flash memory (FlashMemory), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a register, etc. The readable storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.
[0132] The bus 1110 may also connect various other circuits such as peripheral devices, voltage regulators or power management circuits, and the bus interface 1140 provides an interface between the bus 1110 and the transceiver 1130, which are well known in the art. Therefore, the embodiments of the present invention will not be further described.
[0133] The transceiver 1130 may be one element or multiple elements, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on a transmission medium. For example, the transceiver 1130 receives external data from other devices, and the transceiver 1130 is used to send data processed by the processor 1120 to other devices. Depending on the nature of the computer system, a user interface 1160 may also be provided, such as a touch screen, a physical keyboard, a display, a mouse, a speaker, a microphone, a trackball, a joystick, and a stylus.
[0134] It should be understood that in an embodiment of the present invention, the memory 1150 may further include a memory remotely arranged relative to the processor 1120, and these remotely arranged memories may be connected to the server through a network. One or more parts of the above-mentioned network may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless local area network (WLAN), a wide area network (WAN), a wireless wide area network (WWAN), a metropolitan area network (MAN), the Internet, a public switched telephone network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless network, a wireless fidelity (Wi-Fi) network, and a combination of two or more of the above-mentioned networks. For example, the cellular telephone network and the wireless network can be a Global System for Mobile Communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, a LTE Frequency Division Duplex (FDD) system, a LTE Time Division Duplex (TDD) system, an Advanced Long Term Evolution (LTE-A) system, a Universal Mobile Telecommunications (UMTS) system, an Enhanced Mobile Broadband (Enhance Mobile Broadband, eMBB) system, a massive Machine Type of Communication (mMTC) system, an Ultra-Reliable Low Latency Communications (UltraReliable Low Latency Communications, uRLLC) system, etc.
[0135] It should be understood that the memory 1150 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory includes: a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0136] Volatile memory includes: Random Access Memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as: Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Link Dynamic Random Access Memory (SLDRAM) and Direct Rambus RAM (DRRAM). The memory 1150 described in the embodiments of the present invention includes but is not limited to the above and any other suitable types of memory.
[0137] In the embodiment of the present invention, the memory 1150 stores the following elements of the operating system 1151 and the application program 1152: executable modules, data structures, or subsets thereof, or extended sets thereof.
[0138] Specifically, the operating system 1151 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 1152 includes various applications, such as a media player (Media Player) and a browser (Browser), which are used to implement various application services. The program for implementing the method of the embodiment of the present invention may be included in the application 1152. The application 1152 includes applets, objects, components, logic, data structures, and other computer system executable instructions that perform specific tasks or implement specific abstract data types.
[0139] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned front wheel angle determination method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0140] Computer readable storage media include: permanent and non-permanent, removable and non-removable media, which are tangible devices that can retain and store instructions for use by instruction execution devices. Computer readable storage media include: electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, and any suitable combination of the above. Computer readable storage media include: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassette storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanical encoding devices (such as punched cards or raised structures in grooves with instructions recorded thereon) or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined in the embodiments of the present invention, computer-readable storage media do not include temporary signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (such as light pulses passing through fiber optic cables), or electrical signals transmitted through wires.
[0141] In the several embodiments provided in the present application, it should be understood that the disclosed devices, equipment and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, 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, or it can be an electrical, mechanical or other form of connection.
[0142] 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, and may be located in one location or distributed on multiple network units. Some or all of the units may be selected according to actual needs to solve the problem to be solved by the embodiments of the present invention.
[0143] In addition, each functional unit in each embodiment of the present invention 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.
[0144] 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 embodiment of the present invention is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (including: a personal computer, a server, a data center or other network device) to perform all or part of the steps of the method described in each embodiment of the present invention. The above-mentioned storage medium includes various media that can store program codes as listed above.
[0145] In the description of the embodiments of the present invention, those skilled in the art should know that the embodiments of the present invention can be implemented as methods, devices, equipment and storage media. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, the embodiments of the present invention can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.
[0146] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM), flash memories, optical fibers, compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices or any combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device, or device.
[0147] The computer program code contained in the above-mentioned computer-readable storage medium can be transmitted using any appropriate medium, including: wireless, wire, optical cable, radio frequency (RF) or any suitable combination thereof.
[0148] The computer program code for performing the operation of the embodiments of the present invention can be written in assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or in one or more programming languages or a combination thereof, wherein the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as C language or a similar programming language. The computer program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on a remote computer, and completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer or to an external computer through any type of network, including a local area network (LAN) or a wide area network (WAN).
[0149] The embodiments of the present invention describe the provided methods, devices, and apparatuses through flowcharts and / or block diagrams.
[0150] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.
[0151] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.
[0152] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0153] The above is only a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present invention, which should be included in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiment of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for determining a front wheel turning angle, characterized in that: The method comprises: Calculate the front wheel steering angle of the vehicle at the current moment according to the state information of the vehicle at the current moment, and store the front wheel steering angle of the vehicle at the current moment in the control quantity sequence; wherein the state information includes the lateral error of the front wheels of the vehicle, the heading error of the front wheels of the vehicle and the vehicle speed; Inputting the vehicle state information at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the vehicle state information at the next prediction moment; Determine whether the next prediction moment exceeds the prediction time domain range; wherein the prediction time domain range is determined based on the set prediction time domain period and time step; If the next prediction time exceeds the prediction time domain range, determining the initial front wheel turning angle according to the front wheel turning angle in the control amount sequence; Performing first-order low-pass filtering and limiting processing on the initial front wheel steering angle to obtain a target front wheel steering angle; wherein the target front wheel steering angle is used to instruct the vehicle chassis to control the front wheels of the vehicle; The step of calculating the front wheel turning angle of the vehicle at the current moment according to the state information of the vehicle at the current moment is achieved by calculating with the following formula: Wherein, steer_angle(t) represents the front wheel steering angle of the vehicle at time t, heading_error(t) represents the heading error of the front wheel of the vehicle at time t, lat_error(t) represents the lateral error of the front wheel of the vehicle at time t, V(t) represents the vehicle speed at time t, k=2.5 represents the gain parameter, Kv=0.5 represents the speed offset coefficient; The method further comprises: Obtaining a target historical lateral error corresponding to a target historical trajectory of the vehicle; wherein the target historical trajectory is a trajectory that the vehicle actually travels during trajectory tracking, the length of the target historical trajectory is greater than or equal to a length threshold, and the target historical lateral error is a distance between the target historical trajectory and a corresponding reference trajectory; Determining whether a maximum lateral error among the historical lateral errors of the target is less than or equal to an error threshold; If the maximum lateral error among the target historical lateral errors is greater than an error threshold, storing the target historical trajectory and the target historical lateral error in a trajectory database; If the maximum lateral error among the target historical lateral errors is less than or equal to the error threshold, returning to the step of obtaining the target historical lateral errors corresponding to the target historical trajectory of the vehicle; Determine whether the number of historical trajectories stored in the trajectory database is greater than a threshold; If the number of historical trajectories stored in the trajectory database is greater than the number threshold, extracting the historical lateral errors corresponding to the historical trajectories stored in the trajectory database, and using an incremental PID control method to perform correction calculation on the historical lateral errors to obtain a parameter adjustment amount of the vehicle prediction model; Applying the parameter adjustment amount to the vehicle prediction model; If the number of historical trajectories stored in the trajectory database is less than or equal to the number threshold, the process returns to executing the step of obtaining the target historical lateral error corresponding to the target historical trajectory of the vehicle.
2. The method according to claim 1, characterized in that The method further comprises: If the next predicted moment does not exceed the predicted time domain range, the state information of the vehicle at the next predicted moment is determined as the state information of the vehicle at the current moment, and the step of calculating the front wheel turning angle of the vehicle at the current moment based on the state information of the vehicle at the current moment is returned to execute until the next predicted moment exceeds the predicted time domain range.
3. The method according to claim 1, characterized in that The determining the initial front wheel turning angle according to the front wheel turning angle in the control amount sequence comprises: All front wheel steering angles in the control quantity sequence are weighted averaged to obtain an initial front wheel steering angle.
4. The method according to claim 1, characterized in that: The step of inputting the vehicle state information at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the vehicle state information at the next prediction moment includes: According to the lateral error of the front wheel of the vehicle at the current moment, the corresponding position information of the vehicle at the current moment is obtained; According to the heading error of the front wheel of the vehicle at the current moment, the corresponding heading angle of the vehicle at the current moment is obtained; According to the vehicle position information at the current moment, the vehicle heading angle at the current moment and the vehicle speed at the current moment, the vehicle position information at the next predicted moment and the vehicle heading angle at the next predicted moment are calculated by the following formula: Yaw(t+1)=(V(t)*tan(steer_angle(t) / L))*dt+Yaw(t) X(t+1)=V(t)*cos(Yaw(t+1))+X(t) Y(t+1)=V(t)*sin(Yaw(t+1))+Y(t) Among them, Yaw(t+1) represents the heading angle of the vehicle at time t+1, Yaw(t) represents the heading angle of the vehicle at time t, L represents the wheelbase of the vehicle, dt represents the sampling interval, X(t+1) and Y(t+1) represent the position information of the vehicle at time t+1, and X(t) and Y(t) represent the position information of the vehicle at time t; The state information of the vehicle at the next predicted moment is calculated based on the position information of the vehicle at the next predicted moment and the heading angle of the vehicle at the next predicted moment.
5. A device for determining a front wheel turning angle, characterized in that: The device comprises: A wheel steering angle calculation module, used to calculate the front wheel steering angle of the vehicle at the current moment according to the state information of the vehicle at the current moment, and store the front wheel steering angle of the vehicle at the current moment in the control quantity sequence; wherein the state information includes the lateral error of the front wheels of the vehicle, the heading error of the front wheels of the vehicle and the vehicle speed; A state prediction module, used for inputting the state information of the vehicle at the current moment and the front wheel turning angle of the vehicle at the current moment into a pre-trained vehicle prediction model to obtain the state information of the vehicle at the next prediction moment; A time judgment module, used to judge whether the next predicted time exceeds the prediction time range; wherein the prediction time range is determined based on the set prediction time period and time step; A wheel steering angle determination module, configured to determine an initial front wheel steering angle according to the front wheel steering angle in the control quantity sequence if the next prediction moment exceeds the prediction time domain range; A wheel steering angle processing module, used for performing first-order low-pass filtering and limiting processing on the initial front wheel steering angle to obtain a target front wheel steering angle; wherein the target front wheel steering angle is used to instruct the vehicle chassis to control the front wheels of the vehicle; The wheel angle calculation module is specifically implemented by calculating through the following formula: Wherein, steer_angle(t) represents the front wheel steering angle of the vehicle at time t, heading_error(t) represents the heading error of the front wheel of the vehicle at time t, lat_error(t) represents the lateral error of the front wheel of the vehicle at time t, V(t) represents the vehicle speed at time t, k=2.5 represents the gain parameter, Kv=0.5 represents the speed offset coefficient; The device also includes: An error acquisition module, used to acquire a target historical lateral error corresponding to a target historical trajectory of the vehicle; wherein the target historical trajectory is a trajectory that the vehicle actually travels during trajectory tracking, and the length of the target historical trajectory is greater than or equal to a length threshold; An error judgment module, used to judge whether the maximum lateral error among the historical lateral errors of the target is less than or equal to an error threshold; an error storage module, configured to store the target historical trajectory and the target historical lateral error in a trajectory database if the maximum lateral error among the target historical lateral errors is greater than an error threshold; an error re-acquisition module, configured to return to the step of acquiring the target historical lateral errors corresponding to the target historical trajectory of the vehicle if the maximum lateral error among the target historical lateral errors is less than or equal to the error threshold; A trajectory judgment module, used to judge whether the number of historical trajectories stored in the trajectory database is greater than a threshold number; an error correction module, configured to extract a historical lateral error corresponding to the historical trajectory stored in the trajectory database if the number of historical trajectories stored in the trajectory database is greater than a threshold number, and to perform correction calculation on the historical lateral error using an incremental PID control method to obtain a parameter adjustment amount of the vehicle prediction model; A parameter application module, used for applying the parameter adjustment amount to the vehicle prediction model; The error re-acquisition module is used to return to the step of acquiring the target historical lateral error corresponding to the target historical trajectory of the vehicle if the number of historical trajectories stored in the trajectory database is less than or equal to the number threshold.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
