Vehicle lateral deviation compensation method, device and equipment under automatic driving and medium
By constructing a time-domain response mapping table and calculating additional compensation, the problem of insufficient correction for autonomous vehicles in scenarios with large deviations is solved, the vehicle's correction capability under actual response characteristics is improved, and the impact of model error and load changes is reduced.
Patent Information
- Application Number
- CN202611337515.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-20
AI Technical Summary
Existing autonomous vehicles lack sufficient error correction in scenarios with large deviations, resulting in slow return speeds to the target trajectory or a continuous increase in deviations.
By constructing a time-domain response mapping table, the mapping relationship between historical steering wheel input angle and actual vehicle yaw response is recorded. The basic predicted steering wheel angle is calculated and forward query is performed to determine its response capability under the actual vehicle response characteristics. If it is insufficient, an additional compensation amount is calculated and then superimposed on the feedback item after speed limiting and suppression processing.
It improves the vehicle's ability to correct deviations in scenarios with large deviations, reduces the impact of fixed vehicle model errors and load changes on lateral control, and ensures the effectiveness of control quantities under the actual response characteristics of the vehicle.
Smart Images

Figure CN123130091A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of autonomous driving technology, specifically to a method, device, equipment, and medium for lateral deviation compensation of vehicles under autonomous driving. Background Technology
[0002] Existing lateral control schemes for autonomous vehicles calculate feedforward terms based on the planned trajectory and feedback compensation based on state variables such as lateral errors. The feedforward and feedback values are then superimposed, and the target steering wheel angle is output after amplitude limiting and smoothing. This type of scheme has good engineering applicability in scenarios with small deviations and stable vehicle responses. However, its drawback lies in the lack of judgment within the control cycle regarding whether the steering wheel angle calculated by the current feedback is sufficient to meet the target yaw response under the vehicle's actual time-domain response. When the vehicle is in a scenario with large deviations and the steering wheel angle calculated by ordinary feedback is insufficient to generate a sufficient yaw response, the vehicle's return to the target trajectory is slow, or the deviation continues to increase. Summary of the Invention
[0003] This application provides a method, device, equipment, and medium for lateral deviation compensation of vehicles under autonomous driving, which can solve the problem of insufficient correction technology in scenarios with large deviations in the prior art.
[0004] In a first aspect, embodiments of this application provide a method for compensating for lateral deviation of a vehicle under autonomous driving, the method comprising: Based on the vehicle's driving status and planned trajectory information, calculate the basic predicted steering wheel angle, which includes feedforward and general feedback terms; A time-domain response mapping table is constructed and updated based on real-time driving data. The time-domain response mapping table contains the mapping relationship between the historical steering wheel input angle and the equivalent steering wheel angle of the vehicle's actual yaw response. Based on the time-domain response mapping table, a forward lookup is performed on the basic predicted steering wheel angle to obtain the equivalent steering wheel angle of the predicted response, and a reverse lookup is performed on the equivalent steering wheel angle of the target response after the target yaw rate is converted to obtain the target steering wheel angle that meets the target response requirements. When the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds the preset free zone threshold and the vehicle is in a preset state, an additional compensation amount is calculated. The additional compensation amount is subjected to speed limiting and suppression processing, and the processed additional compensation amount is superimposed on the ordinary feedback item to generate the final target steering wheel angle.
[0005] In conjunction with the first aspect, in one implementation, the step of calculating the basic predicted steering wheel angle, including feedforward terms and general feedback terms, based on the vehicle's driving state and planned trajectory information, includes: Based on the target trajectory curvature and vehicle driving status, calculate trajectory feedforward and vehicle dynamic compensation, and generate feedforward terms. Proportional-derivative feedback is calculated based on lateral error, lateral velocity error, heading error, and yaw rate error to generate a proportional-derivative feedback quantity. Integral feedback is calculated based on lateral error to generate an integral feedback quantity. The proportional-derivative feedback quantity and the integral feedback quantity are added together to obtain a general feedback term. Based on the feedforward term and the general feedback term, the basic predicted steering wheel angle, including the feedforward term and the general feedback term, is calculated as follows:
[0006] in, Indicates the basic predicted steering wheel angle. Indicates the feedforward term. This indicates a standard feedback item.
[0007] In conjunction with the first aspect, in one implementation, constructing and updating the time-domain response mapping table based on real-time driving data includes: Using the actual steering wheel angle at a historical moment as the input sample, and the equivalent steering wheel angle obtained by back-calculation of the vehicle's actual yaw rate at the current moment through the vehicle model as the response sample, a time-domain response mapping table is constructed. Locate the entry in the time-domain response mapping table corresponding to the input sample, and perform an exponential smooth update on the located entry. The specific update method is as follows:
[0008] in, This indicates the updated value of the table entry. This indicates the value of the table entry before the update. Represents the smoothing coefficient. This represents the sample value of the response.
[0009] In conjunction with the first aspect, in one implementation method: Determine whether the difference between the predicted steering wheel angle and the target steering wheel angle exceeds a preset free zone threshold: If yes, then determine whether the direction of the vehicle's lateral speed error, the direction of the lateral deviation, and the direction of the ordinary feedback item in the basic predicted steering wheel angle point to the same correction direction: if yes, then determine that the vehicle is in a preset state and calculate the additional compensation amount; if no, then do not calculate the additional compensation amount. If not, no additional compensation will be calculated.
[0010] In conjunction with the first aspect, in one implementation, the calculation of the additional compensation amount includes: Determine the direction of the general feedback term in the basic predicted steering wheel angle: When the direction of the ordinary feedback term is positive, the calculation of the additional compensation amount is as follows:
[0011] in, This indicates the amount of additional compensation. Indicates the compensation coefficient. Indicates the target steering wheel angle. Indicates the preset free region threshold; When the direction of the ordinary feedback term is negative, the calculation of the additional compensation amount is as follows: .
[0012] In conjunction with the first aspect, in one implementation, the speed limiting and suppression processing of the additional compensation amount includes: Obtain the current vehicle speed, and query a preset mapping table based on the current vehicle speed to obtain the maximum compensation limit. The preset mapping table includes the mapping relationship between vehicle speed and the maximum compensation limit, and the absolute value of the additional compensation amount is limited to the maximum compensation limit. Check whether the vehicle is in the process of changing lanes or canceling a lane change: If so, then the additional compensation amount will be cleared to zero; If not, check if the trajectory change smoothing timer is valid: if yes, clear the additional compensation amount to zero or limit it to a preset small value range; if no, check if the vehicle is in a preset serpentine oscillation trend: if yes, attenuate the additional compensation amount according to the serpentine oscillation intensity coefficient; if no, retain the additional compensation amount.
[0013] In conjunction with the first aspect, in one implementation, the step of adding the processed additional compensation amount to the ordinary feedback term to generate the final target steering wheel angle includes: Obtain the proportional-derivative feedback quantity in the ordinary feedback item, and add the processed additional compensation quantity to the proportional-derivative feedback quantity to obtain the updated proportional-derivative feedback quantity. Obtain the integral feedback quantity in the general feedback item, and perform amplitude limiting on the integral feedback quantity; Based on the aforementioned feedforward term, the updated proportional-derivative feedback, and the limited integral feedback, the target steering wheel angle pre-limit value is calculated as follows:
[0014] in, Indicates the target steering wheel angle preset value. This represents the updated proportional-derivative feedback quantity. This indicates the integral feedback amount after the amplitude limit is applied; The target steering wheel angle preset value is sequentially subjected to steering wheel angle limiting, angular velocity limiting and output smoothing processing to generate the final target steering wheel angle.
[0015] Secondly, embodiments of this application provide a vehicle lateral deviation compensation device for autonomous driving, the vehicle lateral deviation compensation device for autonomous driving comprising: The calculation module is used to calculate the basic predicted steering wheel angle, including feedforward and general feedback terms, based on the vehicle's driving status and planned trajectory information. A construction module is used to build and update a time-domain response mapping table based on real-time driving data. The time-domain response mapping table contains the mapping relationship between the historical steering wheel input angle and the equivalent steering wheel angle of the vehicle's actual yaw response. The query module is used to perform a forward query on the basic predicted steering wheel angle based on the time domain response mapping table to obtain the equivalent steering wheel angle of the predicted response, and to perform a reverse query on the equivalent steering wheel angle of the target response after converting the target yaw rate to obtain the target steering wheel angle required to meet the target response. The compensation module is used to calculate additional compensation when the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds a preset free zone threshold and the vehicle is in a preset state. The processing module is used to perform speed limiting and suppression processing on the additional compensation amount, and to superimpose the processed additional compensation amount into the ordinary feedback item to generate the final target steering wheel angle.
[0016] Thirdly, this application provides a vehicle lateral deviation compensation device under autonomous driving. The vehicle lateral deviation compensation device under autonomous driving includes a processor, a memory, and a vehicle lateral deviation compensation program under autonomous driving stored in the memory and executable by the processor. When the vehicle lateral deviation compensation program under autonomous driving is executed by the processor, it implements the steps of the vehicle lateral deviation compensation method under autonomous driving as described in any of the above embodiments.
[0017] Fourthly, embodiments of this application provide a computer-readable storage medium storing a vehicle lateral deviation compensation program for autonomous driving, wherein when the vehicle lateral deviation compensation program for autonomous driving is executed by a processor, it implements the steps of the vehicle lateral deviation compensation method for autonomous driving as described in any of the above embodiments.
[0018] The beneficial effects of the technical solutions provided in this application include: This embodiment establishes a mapping relationship between historical steering wheel input angles and the equivalent steering wheel angles of the vehicle's actual yaw response through a time-domain response mapping table. This allows the vehicle's actual steering response to be recorded and used for subsequent control quantity prediction queries, thereby reducing the impact of fixed vehicle model errors, steering hysteresis, and vehicle load variations on lateral control. This embodiment calculates additional compensation only when the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds a preset free zone threshold and the vehicle is in a preset state. This provides quantitative constraints for compensation triggering, avoiding compensation in all scenarios. This embodiment constrains the compensation amount through speed limiting and suppression processing, and superimposes the processed compensation amount into the ordinary feedback term rather than the feedforward term or the overall gain. This ensures that compensation only changes the local output of the feedback loop without altering the calculation path of the feedforward term. Attached Figure Description
[0019] Figure 1 Here is a flowchart of an existing lateral control method; Figure 2 A flowchart illustrating the vehicle lateral deviation compensation method under autonomous driving provided in this application embodiment; Figure 3 Another flowchart illustrating the vehicle lateral deviation compensation method under autonomous driving provided in this application embodiment; Figure 4 The large deviation compensation branch judgment logic diagram provided in the embodiments of this application; Figure 5 Security suppression logic diagram provided for embodiments of this application; Figure 6 This application provides a control quantity superposition and output constraint link diagram for embodiments; Figure 7 A schematic diagram of the functional modules of the vehicle lateral deviation compensation device under autonomous driving provided in an embodiment of this application; Figure 8 This is a schematic diagram of the hardware structure of the vehicle lateral deviation compensation device under autonomous driving involved in the embodiments of this application. Detailed Implementation
[0020] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0021] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0022] Figure 1 This is a flowchart of an existing lateral control method. See also... Figure 1 The existing lateral control scheme calculates the feedforward term based on the planned trajectory information and the feedback compensation amount based on the vehicle state information (including vehicle speed, lateral deviation, lateral velocity error, heading error, and yaw rate error). The target steering wheel angle is obtained by superimposing the feedforward and feedback amounts, and then output to the vehicle steering actuator after amplitude limiting, filtering, and smoothing. The feedforward term is calculated based on the curvature of the target trajectory, and the feedback compensation amount includes proportional-derivative feedback and integral feedback. This scheme mainly generates the steering wheel angle based on a fixed vehicle model and error feedback, and lacks online prediction and judgment within the control cycle to determine whether the current control quantity is sufficient to produce the target vehicle's yaw response.
[0023] This application provides a method, device, equipment, and medium for lateral deviation compensation of vehicles under autonomous driving, which can solve the problem of insufficient correction technology in scenarios with large deviations in the prior art.
[0024] In a first aspect, embodiments of this application provide a method for compensating for lateral deviation of a vehicle under autonomous driving.
[0025] In one embodiment, reference is made to Figure 1 , Figure 2 This is a flowchart illustrating the vehicle lateral deviation compensation method under autonomous driving provided in an embodiment of this application. Figure 1 As shown, the method for compensating for lateral deviation of vehicles under autonomous driving includes the following steps: Step S1: Calculate the basic predicted steering wheel angle, including feedforward and general feedback terms, based on the vehicle's driving status and planned trajectory information.
[0026] In this embodiment of the application, step S1 specifically includes the following steps: Step S11: Calculate trajectory feedforward and vehicle dynamic compensation based on the target trajectory curvature and vehicle driving status, and generate feedforward terms.
[0027] Specifically, the target trajectory point sequence and corresponding target curvature are read from the planned target trajectory information. Based on the current vehicle position, a pre-aiming point is selected on the target trajectory, and the target curvature at the pre-aiming point is extracted. The current vehicle speed is obtained through a vehicle speed sensor, the yaw rate and longitudinal acceleration are obtained through an inertial measurement unit, the actual steering wheel angle is obtained through a steering wheel angle sensor, and the vehicle load is measured through a vehicle suspension height sensor or air pressure sensor. The ideal yaw rate is calculated based on the target curvature and the current vehicle speed. Based on the vehicle steering system model, the ideal yaw rate is converted into a feedforward steering wheel angle. The feedforward steering wheel angle is dynamically compensated based on the vehicle load and current vehicle speed. The compensation amount is used to correct the impact of vehicle load changes and steering system nonlinear characteristics on the feedforward control accuracy. The feedforward steering wheel angle and the dynamic compensation amount are superimposed to generate a feedforward term.
[0028] Step S12: Perform proportional-derivative feedback calculation based on lateral error, lateral velocity error, heading error, and yaw rate error to generate proportional-derivative feedback quantity. Perform integral feedback calculation based on lateral error to generate integral feedback quantity. Add the proportional-derivative feedback quantity and the integral feedback quantity to obtain the ordinary feedback term.
[0029] Specifically, based on the coordinates and heading angle of the target trajectory at the pre-aiming point, and the actual position coordinates and heading angle of the current vehicle, the lateral error and heading error are calculated. The lateral velocity error is obtained by differentiating the lateral error. The yaw rate error is obtained by subtracting the target yaw rate from the actual yaw rate. The lateral error is multiplied by a proportional coefficient to obtain the proportional feedback component. The lateral velocity error is multiplied by a differential coefficient to obtain the differential feedback component. The heading error and yaw rate error are multiplied by their respective proportional coefficients and then superimposed into the proportional-derivative feedback channel to form the proportional-derivative feedback quantity. The proportional-derivative feedback is used to provide an immediate response to the current deviation and its changing trend. Simultaneously, the lateral error is multiplied by an integral coefficient and accumulated to obtain the integral feedback quantity, which is used to eliminate steady-state deviations. The proportional-derivative feedback quantity and the integral feedback quantity are added to obtain the general feedback term.
[0030] Step S13: Based on the feedforward term and the ordinary feedback term, calculate the basic predicted steering wheel angle, which includes the feedforward term and the ordinary feedback term. Specifically:
[0031] in, Indicates the basic predicted steering wheel angle. Indicates the feedforward term. This indicates a standard feedback item.
[0032] Specifically, the feedforward term and the ordinary feedback quantity are superimposed to form the basic predicted steering wheel angle, so that the lateral control of the vehicle under normal operating conditions is jointly completed by the active guidance of the feedforward and the passive correction of the feedback. The response characteristics of the two complement each other after being superimposed.
[0033] Step S2: Construct and update the time-domain response mapping table based on real-time driving data. The time-domain response mapping table contains the mapping relationship between the historical steering wheel input angle and the equivalent steering wheel angle of the vehicle's actual yaw response.
[0034] In this embodiment of the application, step S2, which involves constructing and updating the time-domain response mapping table based on real-time driving data, includes: Step S21: Using the actual steering wheel angle at a historical moment as the input sample, and the equivalent steering wheel angle obtained by back-calculating the actual yaw rate of the vehicle at the current moment through the vehicle model as the response sample, construct a time-domain response mapping table.
[0035] Figure 3 Another schematic flowchart illustrating the vehicle lateral deviation compensation method under autonomous driving provided in this application embodiment. See also... Figure 3 Specifically, the system acquires steering wheel angle sensor readings at various historical moments as input sample values; it also acquires the actual yaw rate measured by the inertial measurement unit at the current moment, and calculates the equivalent steering wheel angle based on the inverse model of the vehicle steering system, using this as the response sample value corresponding to the input samples. The input samples are taken from historical steering wheel angles 0.4 to 0.5 seconds prior to the current moment; this time interval is used to match the lag time between steering wheel rotation and the vehicle's yaw response. In one example, the control cycle is 0.05 seconds, and the delay cycle number is set to 8 control cycles, corresponding to a lag time of 0.4 seconds.
[0036] The time-domain response mapping table is discretized and initialized according to the steering wheel input angle, with a discretization step size of 1 degree and a value range of -60 degrees to +60 degrees. Each discrete input angle corresponds to one entry, and each entry stores the estimated response value at that input angle. The initial value can be set to zero or an initial response value given based on vehicle calibration parameters. The input-output correspondence of the time-domain response mapping table provided in this application embodiment covers the lag time between the vehicle turning the steering wheel and generating a yaw response, thereby improving the consistency between the response estimate and the actual vehicle dynamics.
[0037] Step S22: Locate the entry in the time-domain response mapping table corresponding to the input sample, and perform exponential smoothing update on the located entry. The specific update method is as follows:
[0038] in, This indicates the updated value of the table entry. This indicates the value of the table entry before the update. Represents the smoothing coefficient. This represents the sample value of the response.
[0039] Specifically, based on the input sample value at the current moment, the corresponding discrete entry position is found in the time-domain response mapping table. If the input sample value falls exactly on a discrete point, the entry is located directly; if it falls between two discrete points, the nearest discrete entry is located.
[0040] The smoothing coefficient increases with the rate of change of the steering wheel angle. The rate of change of the steering wheel angle is obtained by differential calculation of the steering wheel angle sensor signal. The larger the rate of change of the steering wheel angle, the more intense the current steering wheel operation, and the more quickly the response table needs to track the current vehicle response characteristics. Therefore, the smoothing coefficient is increased.
[0041] Furthermore, several neighboring entries are selected within a preset range on both sides of the currently updated entry. These neighboring entries are considered valid entries and participate in local fitting. A first-order linear fit is performed based on the correspondence between the input and response values of the valid entries to obtain the response slope near the current working point. The expected response change of each neighboring entry at the current update time is calculated based on this response slope. For each neighboring entry, the entry lifetime is calculated based on the difference between the last update time and the current time. The longer the entry lifetime, the lower the reliability of the response change. The diffusion weight is determined according to the distance between the entry and the currently updated entry; the smaller the distance, the larger the diffusion weight. A maximum increment limit is set for the diffusion update amount to ensure that a single diffusion update does not exceed this limit. The diffusion update amount of each neighboring entry is determined by considering the above factors, and the update is then successively diffused to the neighboring entries on both the left and right sides.
[0042] Step S3: Based on the time-domain response mapping table, perform a forward lookup of the basic predicted steering wheel angle to obtain the equivalent steering wheel angle of the predicted response, and perform a reverse lookup of the equivalent steering wheel angle of the target response after converting the target yaw rate to obtain the target steering wheel angle required to meet the target response.
[0043] Specifically, the basic predicted steering wheel angle calculated in step S1 is used as the query value, and the interval in which this value lies is located on the horizontal axis of the mapping table. If the basic predicted steering wheel angle falls exactly on a discrete horizontal axis node, the vertical axis response value corresponding to that node is directly read. If the basic predicted steering wheel angle is between two adjacent discrete nodes, a linear interpolation method is used to calculate the vertical axis response value corresponding to the query point based on the horizontal and vertical coordinate values of the two adjacent nodes, which is then used as the equivalent steering wheel angle for the predicted response. This enables a pre-quantitative evaluation capability of the current control output effect within the control cycle, eliminating reliance on passive feedback from subsequent changes in actual deviations.
[0044] The target yaw rate at the current moment is read from the planned trajectory information. This target yaw rate is calculated by the planning module based on the curvature of the target trajectory and the current vehicle speed, representing the ideal yaw rate required for the vehicle to track the target trajectory. Based on the vehicle steering system model, the target yaw rate is converted into an equivalent steering wheel angle with dimensions consistent with the vertical axis of the time-domain response mapping table. The converted equivalent steering wheel angle is used as the query target value, and the corresponding horizontal axis input value is searched in the vertical direction of the time-domain response mapping table. By converting the target yaw rate into the equivalent steering wheel angle and performing a reverse search, the target steering wheel angle required to meet the target response under the current actual vehicle response characteristics is obtained, enabling the quantification calculation capability within the control cycle of how much control input is needed to achieve the target.
[0045] If the predicted response equivalent steering wheel angle is less than the target response equivalent steering wheel angle, it indicates that the yaw response produced by the current basic predicted steering wheel angle under the actual vehicle response characteristics is lower than the target yaw response. In other words, the current control quantity is insufficient to meet the target response requirements under the vehicle's real time-domain response. In this case, the target steering wheel angle represents a more reasonable steering wheel angle required to achieve the target response. If the predicted response equivalent steering wheel angle is greater than or equal to the target response equivalent steering wheel angle, it indicates that the response produced by the current basic predicted steering wheel angle has met or exceeded the target response requirements. In this case, no additional compensation is needed for the current control quantity. By comparing the forward and reverse query results, it is determined whether the current control quantity is sufficient to meet the target response requirements under the vehicle's real time-domain response, providing a quantitative basis for whether to trigger additional compensation subsequently.
[0046] Step S4: When the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds the preset free zone threshold and the vehicle is in a preset state, calculate the additional compensation amount.
[0047] Figure 4 The logic diagram for large deviation compensation branch judgment provided in the embodiments of this application is shown below. See also... Figure 4 In this embodiment of the application: it is determined whether the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds a preset free zone threshold. If yes, then determine whether the direction of the vehicle's lateral speed error, the direction of the lateral deviation, and the direction of the ordinary feedback item in the basic predicted steering wheel angle point to the same correction direction: if yes, then determine that the vehicle is in the preset state and calculate the additional compensation amount; if no, then do not calculate the additional compensation amount. If not, no additional compensation will be calculated.
[0048] Specifically, the preset free zone threshold is used to avoid frequent additional compensation caused by minor fluctuations in the response table or numerical calculation errors. Its value range is set according to the system calibration results, and in one example, it is set to 2 degrees. If the difference between the basic predicted steering wheel angle and the target steering wheel angle does not exceed the preset free zone threshold, it means that the difference between the current basic predicted steering wheel angle and the steering wheel angle required to meet the target response is within the allowable range, and the difference between the response that the current control variable can produce and the target response is insufficient to trigger additional compensation, so the subsequent compensation calculation steps are skipped. If the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds the preset free zone threshold, it means that the difference between the two exceeds the free zone threshold, and the preset state judgment is entered.
[0049] The consistency judgment of the directions of the vehicle's lateral velocity error, lateral deviation, and the general feedback term in the basic predicted steering wheel angle is used to confirm whether the vehicle is currently in a state of large deviation and insufficient correction. Specifically, the direction of the proportional-derivative feedback reflects the correction direction currently applied by the controller; the direction of the lateral velocity error reflects the vehicle's motion trend relative to the target trajectory; and the direction of the lateral deviation reflects the direction of the vehicle's positional deviation relative to the target trajectory. When the three directions are consistent, it indicates that the vehicle is indeed in a state of large deviation from the target trajectory and the correction force is insufficient to bring the vehicle back to its original position. If the three directions are inconsistent, it indicates that the vehicle does not meet the conditions for a state of large deviation and insufficient correction, and the compensation calculation step is skipped. By setting the consistency judgment of the proportional-derivative feedback direction, lateral velocity error direction, and lateral deviation direction, it is ensured that additional compensation is triggered only when the vehicle is actually in a state of large deviation and insufficient correction, avoiding accidental triggering of compensation when the vehicle is already on or approaching the target trajectory.
[0050] In this embodiment of the application, the calculation of the additional compensation amount in step S4 includes: Determine the direction of the general feedback term in the basic predicted steering wheel angle: When the direction of the ordinary feedback term is positive, the calculation of the additional compensation amount is as follows:
[0051] in, This indicates the amount of additional compensation. Indicates the compensation coefficient. Indicates the target steering wheel angle. Indicates the preset free region threshold; When the direction of the ordinary feedback term is negative, the calculation of the additional compensation is as follows: .
[0052] Specifically, the compensation coefficient is used to control the magnitude of the additional compensation, and its value range is set according to the system calibration results; in one example, it is set to 0.8. By adopting a positive or negative compensation calculation method consistent with the direction of proportional-derivative feedback, the direction of the compensation is kept consistent with the current correction direction, avoiding the compensation direction being opposite to the correction requirement.
[0053] Furthermore, based on the magnitude of the lateral speed error and lateral deviation, the compensation branches are classified and graded to determine the amplification factor of the vehicle speed limit. See the large deviation compensation classification table for details. Represents the proportional-derivative feedback quantity. Indicates lateral velocity error. This indicates lateral error.
[0054]
[0055] Table 1 Classification Table of Large Deviation Compensation Branches with large lateral velocity errors and significant lateral deviations are identified as strong correction branches, and their corresponding vehicle speed limits are increased by a factor of 2. The specific values of the above thresholds are based on experimental calibration and can be adaptively adjusted according to different vehicle models and controller coordinate systems.
[0056] Step S5: Perform speed limiting and suppression processing on the additional compensation amount, and then add the processed additional compensation amount to the ordinary feedback item to generate the final target steering wheel angle.
[0057] Figure 5 A security suppression logic diagram provided for embodiments of this application. See also... Figure 5 In this embodiment of the application, the speed limiting and suppression processing of the additional compensation amount in step S5 includes: obtaining the current vehicle speed, querying a preset mapping table based on the current vehicle speed to obtain the maximum compensation limit, the preset mapping table including the mapping relationship between vehicle speed and the maximum compensation limit, and limiting the absolute value of the additional compensation amount to within the maximum compensation limit.
[0058] Specifically, the preset mapping table can be set to 10 degrees for speeds of 0-40 km / h, 8 degrees for 50 km / h, 5 degrees for 60 km / h, 3 degrees for 70 km / h, 2.5 degrees for 80 km / h, and 2 degrees for 90 km / h and above. The speed lookup values in Table 1 refer to the maximum compensation limit obtained by looking up the current speed from the preset mapping table. This mapping table pre-defines the compensation limit for different speed ranges; the higher the speed, the smaller the compensation limit, and vice versa. Through speed limiting processing, the maximum allowable compensation limit is lowered at high speeds and raised at low speeds, matching the vehicle's response sensitivity to steering wheel angle at different speeds.
[0059] Suppression treatment includes: Check whether the vehicle is in the process of changing lanes or canceling a lane change: If so, the additional compensation will be reset to zero; If not, check if the trajectory change smoothing timer is valid: if yes, clear the extra compensation amount to zero or limit it to a preset small value range; if no, check if the vehicle is in a preset serpentine oscillation trend: if yes, attenuate the extra compensation amount according to the serpentine oscillation intensity coefficient; if no, retain the extra compensation amount.
[0060] Specifically, the lane change phase refers to the complete process of a vehicle changing from its current lane to an adjacent lane. The lane change cancellation phase refers to a scenario where the lane change process is interrupted or reversed after initiation. The trajectory change smoothing timer is activated when it detects a sudden change in trajectory direction, lane change cancellation, the start of a lane change, or the initial entry into autonomous driving. The preset minimum value range is the minimum safe threshold range within which the pre-defined additional compensation amount is allowed to be output. When the trajectory change smoothing timer is active, the additional compensation amount is cleared to zero or limited to this preset minimum value range. The preset serpentine oscillation trend refers to the periodic, high-frequency alternating operating state of the steering wheel angle or yaw rate during the vehicle's lateral control process. The serpentine oscillation intensity coefficient ranges from 0 to 1, with a larger value indicating a stronger oscillation trend and a greater degree of compensation attenuation. Through the attenuation processing of the serpentine oscillation trend, the additional compensation amount is actively reduced when a high-frequency oscillation trend is detected in the vehicle, thereby avoiding compensation from exacerbating the oscillation.
[0061] In this embodiment of the application, step S5, which involves adding the processed additional compensation amount to the ordinary feedback term to generate the final target steering wheel angle, includes: Step S51: Obtain the proportional-derivative feedback quantity in the ordinary feedback item, and add the processed additional compensation quantity to the proportional-derivative feedback quantity to obtain the updated proportional-derivative feedback quantity.
[0062] Figure 6 The control quantity superposition and output constraint link diagram provided for embodiments of this application. See also... Figure 6 Specifically, the feedforward term remains unchanged and is not altered by the introduction of additional compensation.
[0063] Step S52: Obtain the integral feedback amount in the ordinary feedback item and perform amplitude limiting on the integral feedback amount.
[0064] Specifically, the integral feedback quantity is independently limited, restricting its absolute value to within the preset maximum allowable range of the integral term, thus obtaining the limited integral feedback quantity. This independent limitation of the integral feedback quantity is used to prevent the integral term from accumulating excessively under prolonged continuous deviation, which could cause the steering wheel angle to exceed the actuator's allowable range or the vehicle yaw response to exceed safety boundaries.
[0065] Step S53: Calculate the target steering wheel angle pre-limit value based on the feedforward term, the updated proportional-derivative feedback, and the limited integral feedback. Specifically:
[0066] in, Indicates the target steering wheel angle preset value. This represents the updated proportional-derivative feedback quantity. This represents the integral feedback amount after the amplitude is limited.
[0067] Step S54: Sequentially perform steering wheel angle limiting, angular velocity limiting and output smoothing processing on the target steering wheel angle preset value to generate the final target steering wheel angle.
[0068] Specifically, the target steering wheel angle preset amplitude is limited to the mechanical limit range allowed by the steering wheel actuator. If the target steering wheel angle preset amplitude exceeds the maximum allowable angle of the actuator, it is truncated to the maximum allowable angle value, resulting in the angle value after angle limiting. The angle value after angle limiting is time-differentiated to calculate its rate of change per unit time. If the rate of change exceeds a preset maximum allowable angular velocity threshold, the rate of change of the target steering wheel angle is limited to this threshold, and the output value for the current cycle is recalculated based on the limited rate of change. Angular velocity limiting is used to prevent abrupt changes in the steering wheel angle within a single control cycle. The angle value after angle limiting and angular velocity limiting is low-pass filtered to remove high-frequency components from the signal, resulting in the final smooth target steering wheel angle, which is then output to the vehicle steering actuator. This ensures that the final output steering wheel angle neither exceeds the mechanical limit and response rate limit of the actuator nor contains high-frequency fluctuation components, thereby reducing the load on the actuator and the risk of sudden yaw changes in the vehicle.
[0069] In one specific embodiment, a concrete example that can be executed step by step according to the control cycle is given to illustrate how the method provided in this application intervenes in a scenario where "the ordinary steering wheel angle calculation has given the correction direction, but the predicted vehicle response is still insufficient." The following values are only used to illustrate the implementation method; the actual dimensions, positive and negative directions, and thresholds can be adjusted according to the specific vehicle model, controller coordinate system, and calibration results.
[0070]
[0071] Table 2 Control cycle input quantities for Example 1 The first step is to calculate the basic predicted steering wheel angle based on the existing control link. The ordinary feedback is not removed, nor is the feedforward calculation link changed; instead, the predicted output without additional compensation is obtained first.
[0072] The second step involves updating the time-domain response mapping table by using the actual steering wheel angle from approximately 0.4 seconds prior as the input sample and the equivalent steering wheel angle calculated from the current yaw rate as the response sample. This response table is used to answer two specific questions within this cycle: first, what vehicle response is expected to be generated by an 11.0° steering wheel angle; and second, what steering wheel angle is required under the current actual vehicle response characteristics to meet the target response corresponding to the target yaw rate.
[0073] The third step is to look up the time-domain response mapping table. Assuming 11.0° is used as the input value, the predicted response is lower than the target response corresponding to the target yaw rate. Simultaneously, a reverse lookup of the response table is used to obtain the equivalent steering angle required to satisfy the target response. The value is 18.0°. At this point, the difference between the two is 7.0°, which is greater than the preset free zone threshold. This indicates that although the direction of the normal control output is correct, the amplitude is insufficient for the actual response of the current vehicle.
[0074]
[0075] Table 3 Compensation branch judgment in Example 1 Step 4: According to Table 3, this cycle hit the positive 3rd branch (strong correction branch). Additional compensation is calculated as follows: and The difference is calculated, and the free zone threshold is subtracted:
[0076] The fifth step is to limit the speed of the additional compensation. Taking 60 km / h as an example, the basic compensation limit is 5.0° according to the preset mapping table; since the strong correction branch is hit in this cycle, the allowable limit can be increased to 10.0°. The 4.0° calculated in this cycle does not exceed the limit, so the final additional compensation is 4.0°.
[0077] Step 6: The additional compensation does not modify the feedforward term, nor does it increase the overall proportional-integral-derivative gain; instead, it is added to the proportional-derivative feedback quantity.
[0078]
[0079] Subsequently The steering wheel angle is limited, the angular velocity is limited, and the output is smoothed sequentially. If the final... If the total limit is not triggered, the actuator will be output with a target steering angle of approximately 15.0° in this cycle; if the total limit is triggered, the limited steering angle will be used as the target output. Therefore, this embodiment does not directly increase the gain when the error is large, but only adds controlled compensation to the proportional-derivative feedback after confirming that the predictive response of the ordinary control quantity is insufficient.
[0080] In another specific embodiment, the specific execution methods when reverse compensation and safety suppression are effective are given to illustrate the impact of different directions, vehicle speeds, and scene markers on the compensation results under the same inventive concept. The following values are only for illustrating the implementation method; the actual dimensions, positive and negative directions, and thresholds can be adjusted according to the specific vehicle model, controller coordinate system, and calibration results.
[0081]
[0082] Table 4 Control cycle input quantities for Example 2 The first step is to predict the steering wheel angle as follows: Online reverse lookup results are available. and satisfy That is, -8.6° > -12.5°. This indicates that the magnitude of the normal control output is insufficient in the reverse correction direction.
[0083] The second step is to combine , and This cycle hit the reverse 3rd branch (strong correction branch). Additional compensation is:
[0084] The third step is to limit the vehicle speed. At 80 km / h, the basic compensation upper limit can be set to 2.5°, and the upper limit for the strong correction branch can be increased to 5.0°. Since |-3.12°| is less than 5.0°, if no other suppression conditions exist, the final additional compensation amount is -3.12°, and the proportional-derivative feedback quantity is updated as follows: .
[0085] Fourth, if the current cycle detects states such as lane change stage 1, lane change cancellation stage 1, just entering autonomous driving, or trajectory change smoothing timer being effective, then regardless of whether the above values meet the reverse strong correction branch, the additional compensation amount will be cleared to zero or limited to a preset small value range to avoid amplifying the steering wheel movement when the trajectory target itself undergoes a sudden change.
[0086] Fifth, if a serpentine oscillation trend is detected, but not to the point of completely prohibiting compensation, the compensation can be attenuated using a serpentine oscillation intensity coefficient. For example, when the serpentine oscillation intensity coefficient is 0.5, When the serpentine oscillation intensity coefficient is 1, This allows for the proactive reduction of additional correction efforts when the vehicle already exhibits signs of oscillation.
[0087]
[0088] Table 5 Output results under different safety conditions in Example 2 As can be seen from this embodiment, the implementation of this solution includes not only the calculation of the compensation amount, but also the judgment of the scenario in which compensation is allowed. That is to say, insufficient vehicle response, consistent deviation direction, and consistent compensation direction are only necessary conditions; safety constraints such as lane change phase, sudden trajectory change, just entering autonomous driving, and serpentine oscillation trend will further determine whether compensation is output and how much is output.
[0089] This embodiment establishes a mapping relationship between historical steering wheel input angles and the equivalent steering wheel angles of the vehicle's actual yaw response through a time-domain response mapping table. This allows the vehicle's actual steering response to be recorded and used for subsequent control quantity prediction queries, thereby reducing the impact of fixed vehicle model errors, steering hysteresis, and vehicle load variations on lateral control. This embodiment calculates additional compensation only when the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds a preset free zone threshold and the vehicle is in a preset state. This provides quantitative constraints for compensation triggering, avoiding compensation in all scenarios. This embodiment constrains the compensation amount through speed limiting and suppression processing, and superimposes the processed compensation amount into the ordinary feedback term rather than the feedforward term or the overall gain. This ensures that compensation only changes the local output of the feedback loop without altering the calculation path of the feedforward term.
[0090] Secondly, embodiments of this application also provide a vehicle lateral deviation compensation device for autonomous driving.
[0091] In one embodiment, reference is made to Figure 7 , Figure 7 This is a functional module diagram of a vehicle lateral deviation compensation device under autonomous driving provided in an embodiment of this application. Figure 7 As shown, the vehicle lateral deviation compensation device under autonomous driving includes: The calculation module is used to calculate the basic predicted steering wheel angle, including feedforward and general feedback terms, based on the vehicle's driving status and planned trajectory information. The module is used to build and update the time-domain response mapping table based on real-time driving data. The time-domain response mapping table contains the mapping relationship between the historical steering wheel input angle and the equivalent steering wheel angle of the vehicle's actual yaw response. The query module is used to perform a forward query on the basic predicted steering wheel angle based on the time domain response mapping table to obtain the equivalent steering wheel angle of the predicted response, and to perform a reverse query on the equivalent steering wheel angle of the target response after converting the target yaw rate to obtain the target steering wheel angle required to meet the target response. The compensation module is used to calculate additional compensation when the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds the preset free zone threshold and the vehicle is in a preset state. The processing module is used to limit and suppress the speed of the extra compensation amount, and then adds the processed extra compensation amount to the ordinary feedback item to generate the final target steering wheel angle.
[0092] The functions of each module in the above-mentioned vehicle lateral deviation compensation device under autonomous driving correspond to the steps in the above-mentioned vehicle lateral deviation compensation method embodiment under autonomous driving, and their functions and implementation processes will not be described in detail here.
[0093] Thirdly, this application provides a vehicle lateral deviation compensation device under autonomous driving. The vehicle lateral deviation compensation device under autonomous driving includes a processor, a memory, and a vehicle lateral deviation compensation program under autonomous driving stored in the memory and executable by the processor. When the vehicle lateral deviation compensation program under autonomous driving is executed by the processor, it implements the steps of the vehicle lateral deviation compensation method under autonomous driving as described in any of the above embodiments.
[0094] Lateral deviation compensation devices for autonomous vehicles can be devices with data processing capabilities, such as personal computers (PCs), laptops, and servers.
[0095] Reference Figure 8 , Figure 8 This is a schematic diagram of the hardware structure of a vehicle lateral deviation compensation device under autonomous driving according to an embodiment of this application. In this embodiment, the vehicle lateral deviation compensation device under autonomous driving may include a processor, a memory, a communication interface, and a communication bus.
[0096] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.
[0097] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces used for interconnecting internal components of the vehicle lateral deviation compensation device under autonomous driving, as well as interfaces used for interconnecting the vehicle lateral deviation compensation device with other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.
[0098] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0099] The processor can be a general-purpose processor, which can call the vehicle lateral deviation compensation program under autonomous driving stored in the memory and execute the vehicle lateral deviation compensation method under autonomous driving provided in the embodiments of this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the vehicle lateral deviation compensation program under autonomous driving is called can refer to the various embodiments of the vehicle lateral deviation compensation method under autonomous driving in this application, which will not be repeated here.
[0100] Those skilled in the art will understand that Figure 8 The hardware structure shown does not constitute a limitation of this application and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0101] Fourthly, embodiments of this application provide a computer-readable storage medium storing a vehicle lateral deviation compensation program for autonomous driving, wherein when the vehicle lateral deviation compensation program for autonomous driving is executed by a processor, it implements the steps of the vehicle lateral deviation compensation method for autonomous driving as described in any of the above embodiments.
[0102] The present application stores a vehicle lateral deviation compensation program under autonomous driving on a computer-readable storage medium, wherein when the vehicle lateral deviation compensation program under autonomous driving is executed by a processor, the steps of the vehicle lateral deviation compensation method under autonomous driving as described above are implemented.
[0103] The method implemented when the vehicle lateral deviation compensation procedure under autonomous driving is executed can be referred to in the various embodiments of the vehicle lateral deviation compensation method under autonomous driving of this application, and will not be repeated here.
[0104] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0105] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.
[0106] In the description of the embodiments of this application, terms such as "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a concrete manner.
[0107] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0108] In some processes described in the embodiments of this application, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or they may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.
[0109] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.
[0110] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for compensating for lateral deviation of a vehicle under autonomous driving, characterized in that, The method for compensating for lateral deviation of vehicles under autonomous driving includes: Based on the vehicle's driving status and planned trajectory information, calculate the basic predicted steering wheel angle, which includes feedforward and general feedback terms; Construct and update a time-domain response mapping table based on real-time driving data. The time-domain response mapping table contains the mapping relationship between the historical steering wheel input angle and the equivalent steering wheel angle of the vehicle's actual yaw response. Based on the time-domain response mapping table, a forward lookup is performed on the basic predicted steering wheel angle to obtain the equivalent steering wheel angle of the predicted response, and a reverse lookup is performed on the equivalent steering wheel angle of the target response after the target yaw rate is converted to obtain the target steering wheel angle that meets the target response requirements. When the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds the preset free zone threshold and the vehicle is in a preset state, an additional compensation amount is calculated. The additional compensation amount is subjected to speed limiting and suppression processing, and the processed additional compensation amount is superimposed on the ordinary feedback item to generate the final target steering wheel angle.
2. The method for compensating for lateral deviation of a vehicle under autonomous driving according to claim 1, characterized in that, The calculation of the basic predicted steering wheel angle, including feedforward and general feedback terms, based on vehicle driving status and planned trajectory information, includes: Based on the target trajectory curvature and vehicle driving status, calculate trajectory feedforward and vehicle dynamic compensation, and generate feedforward terms. Proportional-derivative feedback is calculated based on lateral error, lateral velocity error, heading error, and yaw rate error to generate a proportional-derivative feedback quantity. Integral feedback is calculated based on lateral error to generate an integral feedback quantity. The proportional-derivative feedback quantity and the integral feedback quantity are added together to obtain a general feedback term. Based on the feedforward term and the general feedback term, the basic predicted steering wheel angle, including the feedforward term and the general feedback term, is calculated as follows: in, Indicates the basic predicted steering wheel angle. Indicates the feedforward term. This indicates a standard feedback item.
3. The method for compensating for lateral deviation of a vehicle under autonomous driving according to claim 2, characterized in that, The construction and updating of the time-domain response mapping table based on real-time driving data includes: Using the actual steering wheel angle at a historical moment as the input sample, and the equivalent steering wheel angle obtained by back-calculation of the vehicle's actual yaw rate at the current moment through the vehicle model as the response sample, a time-domain response mapping table is constructed. Locate the entry in the time-domain response mapping table corresponding to the input sample, and perform an exponential smooth update on the located entry. The specific update method is as follows: in, This indicates the updated value of the table entry. This indicates the value of the table entry before the update. Represents the smoothing coefficient. This represents the sample value of the response.
4. The method for compensating for lateral deviation of a vehicle under autonomous driving according to claim 2, characterized in that: Determine whether the difference between the predicted steering wheel angle and the target steering wheel angle exceeds a preset free zone threshold: If yes, then determine whether the direction of the vehicle's lateral speed error, the direction of the lateral deviation, and the direction of the ordinary feedback item in the basic predicted steering wheel angle point to the same correction direction: if yes, then determine that the vehicle is in a preset state and calculate the additional compensation amount; if no, then do not calculate the additional compensation amount. If not, no additional compensation will be calculated.
5. The method for compensating for lateral deviation of a vehicle under autonomous driving according to claim 4, characterized in that, The calculation of the additional compensation includes: Determine the direction of the general feedback term in the basic predicted steering wheel angle: When the direction of the ordinary feedback term is positive, the calculation of the additional compensation amount is as follows: in, This indicates the amount of additional compensation. Indicates the compensation coefficient. Indicates the target steering wheel angle. Indicates the preset free region threshold; When the direction of the ordinary feedback term is negative, the calculation of the additional compensation amount is as follows: 。 6. The method for compensating for lateral deviation of a vehicle under autonomous driving according to claim 5, characterized in that, The speed limiting and suppression processing of the additional compensation includes: Obtain the current vehicle speed, and query a preset mapping table based on the current vehicle speed to obtain the maximum compensation limit. The preset mapping table includes the mapping relationship between vehicle speed and the maximum compensation limit, and the absolute value of the additional compensation amount is limited to the maximum compensation limit. Check whether the vehicle is in the process of changing lanes or canceling a lane change: If so, then the additional compensation amount will be cleared to zero; If not, check if the trajectory change smoothing timer is valid: if yes, clear the additional compensation amount to zero or limit it to a preset small value range; if no, check if the vehicle is in a preset serpentine oscillation trend: if yes, attenuate the additional compensation amount according to the serpentine oscillation intensity coefficient; if no, retain the additional compensation amount.
7. The method for compensating for lateral deviation of a vehicle under autonomous driving according to claim 6, characterized in that, The step of adding the processed additional compensation to the ordinary feedback term to generate the final target steering wheel angle includes: Obtain the proportional-derivative feedback quantity in the ordinary feedback item, and add the processed additional compensation quantity to the proportional-derivative feedback quantity to obtain the updated proportional-derivative feedback quantity. Obtain the integral feedback quantity in the general feedback item, and perform amplitude limiting on the integral feedback quantity; Based on the aforementioned feedforward term, the updated proportional-derivative feedback, and the limited integral feedback, the target steering wheel angle pre-limit value is calculated as follows: in, Indicates the target steering wheel angle preset value. This represents the updated proportional-derivative feedback quantity. This indicates the integral feedback amount after the amplitude limit is applied; The target steering wheel angle preset value is sequentially subjected to steering wheel angle limiting, angular velocity limiting and output smoothing processing to generate the final target steering wheel angle.
8. A vehicle lateral deviation compensation device for autonomous driving, characterized in that, The vehicle lateral deviation compensation device under autonomous driving includes: The calculation module is used to calculate the basic predicted steering wheel angle, including feedforward and general feedback terms, based on the vehicle's driving status and planned trajectory information. A construction module is used to build and update a time-domain response mapping table based on real-time driving data. The time-domain response mapping table contains the mapping relationship between the historical steering wheel input angle and the equivalent steering wheel angle of the vehicle's actual yaw response. The query module is used to perform a forward query on the basic predicted steering wheel angle based on the time domain response mapping table to obtain the equivalent steering wheel angle of the predicted response, and to perform a reverse query on the equivalent steering wheel angle of the target response after converting the target yaw rate to obtain the target steering wheel angle required to meet the target response. The compensation module is used to calculate additional compensation when the difference between the basic predicted steering wheel angle and the target steering wheel angle exceeds a preset free zone threshold and the vehicle is in a preset state. The processing module is used to perform speed limiting and suppression processing on the additional compensation amount, and to superimpose the processed additional compensation amount into the ordinary feedback item to generate the final target steering wheel angle.
9. A vehicle lateral deviation compensation device for autonomous driving, characterized in that, The vehicle lateral deviation compensation device under autonomous driving includes a processor, a memory, and a vehicle lateral deviation compensation program under autonomous driving stored in the memory and executable by the processor, wherein when the vehicle lateral deviation compensation program under autonomous driving is executed by the processor, it implements the steps of the vehicle lateral deviation compensation method under autonomous driving as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a vehicle lateral deviation compensation program under autonomous driving, wherein when the vehicle lateral deviation compensation program under autonomous driving is executed by a processor, it implements the steps of the vehicle lateral deviation compensation method under autonomous driving as described in any one of claims 1 to 7.
