Vehicle control method, vehicle-mounted control device, vehicle, and storage medium
By using the state-space model of the vehicle dynamics model, combined with feedforward compensation, feedback control, and integral compensation, the problem of decreased control accuracy and response performance in autonomous driving is solved, achieving fast and accurate vehicle control and trajectory tracking.
Patent Information
- Application Number
- CN202511353720.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-19
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2045-09-19
AI Technical Summary
In existing technologies, during the autonomous driving process of vehicles, the real-time operating conditions of the actual scene cannot be captured in a timely manner because the tracking error control is used alone, resulting in a decrease in vehicle control accuracy and response performance.
By adopting a state-space model based on vehicle dynamics, and combining feedforward compensation, feedback control, and integral compensation, a comprehensive control command is determined to control the vehicle quickly and accurately, thereby improving the tracking accuracy of the preset trajectory.
While ensuring the continuity and smoothness of vehicle control, improve the response speed performance and the accuracy of tracking the preset trajectory during the autonomous driving process.
Smart Images

Figure CN120902771B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of autonomous driving technology, and in particular to a vehicle control method, an on-board control device, a vehicle, and a storage medium. Background Technology
[0002] In the field of autonomous driving technology, a preset trajectory is typically planned in advance, and the vehicle is controlled to follow this trajectory. Existing technologies usually control the vehicle in real time based on its tracking error (e.g., the error between the actual speed at the current position and the preset speed, or the error between the actual position and the preset position), enabling the vehicle to automatically follow the preset trajectory. However, due to the diverse operating conditions in real-world scenarios, controlling the vehicle solely based on its tracking error often fails to capture the real-time conditions of the actual environment in a timely manner, resulting in delayed vehicle control, decreased control accuracy, and consequently, reduced responsiveness and accuracy in tracking the preset trajectory during autonomous driving. Therefore, how to control the vehicle quickly and accurately to improve responsiveness and accuracy in tracking the preset trajectory during autonomous driving is a pressing technical problem that needs to be solved. Summary of the Invention
[0003] This application provides a vehicle control method, an on-board control device, a vehicle, and a storage medium, aiming to solve the technical problem of how to control a vehicle quickly and accurately, so as to improve the response performance and the accuracy of tracking a preset trajectory during the autonomous driving process.
[0004] A vehicle control method, comprising: The system acquires the vehicle's current status data, target status data, and current scene data. The current status data is the status data collected at the current location, the target status data is the preset status data corresponding to the target tracking point, and the current scene data refers to the scene data of the vehicle driving at the current location. Based on the target state data, determine the feedforward compensation amount; A state-space model based on a vehicle dynamics model is used to process the current state data and the target state data to determine the feedback control quantity. Based on the current state data, the target state data, and the current scene data, determine the integral compensation amount; Based on the feedforward compensation amount, the feedback control amount, and the integral compensation amount, a comprehensive control command is determined, and the target component is controlled to operate according to the comprehensive control command.
[0005] In this embodiment, the feedback control quantity is determined based on the target state data of the target tracking point. This allows the target component to be driven before an error occurs at the current position, shortening the time delay for vehicle control and facilitating rapid vehicle control, thus improving the response speed performance during autonomous driving. A state-space model based on the vehicle dynamics model is used to process the current state data and target state data to determine the feedback control quantity, ensuring the continuity and stability of vehicle control. Based on the current state data, target state data, and current scene data, an integral compensation quantity is determined. This quantity incorporates current scene data reflecting actual emergency situations in the current scenario and is used to compensate for errors corresponding to the feedback control quantity, reducing errors and enabling rapid and precise vehicle control, improving vehicle speed and the accuracy of tracking a preset trajectory. This method, while ensuring the continuity and stability of vehicle control, enables rapid and precise vehicle control based on a comprehensive control command determined by the feedforward compensation quantity, feedback control quantity, and integral compensation quantity, improving the vehicle's response speed and the accuracy of tracking a preset trajectory.
[0006] Preferably, the target state data includes the target acceleration corresponding to the target tracking point; The feedforward compensation amount is determined based on the target acceleration and pre-calibrated feedforward compensation parameters.
[0007] In this embodiment, the product of the feedforward compensation parameter and the target acceleration at the target tracking point is determined as the feedforward compensation amount. An "open-loop" drive command is generated in advance based on the target acceleration to effectively shorten the initial response delay of the vehicle control system. The target component is driven to execute the control command corresponding to the feedforward compensation amount before the error actually occurs, providing a "first driving force" for rapid dynamic response.
[0008] Preferably, the current state data includes the current longitudinal velocity and current longitudinal position corresponding to the current position; the target state data includes the target longitudinal velocity and target longitudinal position corresponding to the target tracking point; The process of using a state-space model constructed based on a vehicle dynamics model to process the current state data and the target state data to determine the feedback control quantity includes: The objective function is determined based on the current longitudinal velocity and current longitudinal position corresponding to the current position, and the target longitudinal velocity and target longitudinal position corresponding to the target tracking point; Based on the control input amplitude limit and control input rate of change limit in the state-space model, the constraint conditions are determined. Based on the constraints, the state-space model is solved in a rolling manner. When the objective function is minimized, a target control sequence is determined. The target control sequence is a sequence of control inputs formed by multiple preset tracking points in a preset trajectory within a future time period. The target tracking point is the first preset tracking point in the preset trajectory. Based on the target control sequence, determine the feedback control quantity corresponding to the target tracking point.
[0009] In this embodiment, the state-space model is solved by rolling according to the objective function and constraints to obtain a feedback control quantity that can control the vehicle more accurately. This feedback control quantity enables the vehicle to track the target tracking point more accurately and stably.
[0010] Preferably, determining the integral compensation amount based on the current state data, target state data, and current scene data includes: When at least one of the target state data and the current scene data satisfies the dynamic scene condition, the integral compensation amount is determined based on the current state data and the target state data. When neither the target state data nor the current scene data meets the dynamic scene conditions, the integral compensation amount is determined to be 0.
[0011] In this embodiment, the integral compensation amount is determined based on whether the target state data and the current scene data meet the dynamic scene conditions. This allows the feedback control amount to be compensated based on the integral compensation amount, reducing errors and enabling precise vehicle control to ensure the accuracy of the controlled vehicle in tracking the preset trajectory.
[0012] Preferably, the current scene data includes planning behavior signals; the target state data includes the target acceleration and target jerk corresponding to the target tracking point; The dynamic scenario conditions include planning behavior enabling conditions and target state enabling conditions; The enabling condition for the planning behavior includes the planning behavior signal being an emergency signal, and the emergency signal includes an emergency acceleration signal and an emergency deceleration signal; The target state enabling condition includes the absolute value of the target acceleration being greater than a preset acceleration threshold, and the absolute value of the target jerk being greater than a preset jerk threshold.
[0013] In this embodiment, based on the planning behavior signal, it is determined whether the dynamic scene planning conditions are met; based on the target acceleration and target jerk, it is determined whether the planning behavior enabling conditions are met; based on the dynamic scene planning conditions and the planning behavior enabling conditions, it is determined whether the dynamic scene conditions are met. In order to determine the integral compensation amount based on whether the dynamic scene conditions are met, the feedback control amount is compensated, the error is reduced, the accuracy of vehicle control is improved, and the accuracy of vehicle tracking of the preset trajectory is improved.
[0014] Preferably, the current state data includes the current velocity corresponding to the current position; the target state data includes the target velocity corresponding to the target tracking point; The step of determining the integral compensation amount based on the current state data and the target state data includes: When at least one of the target state data and the current scene data satisfies the dynamic scene condition, an enable signal value is determined; Integrate the speed difference corresponding to the target time period to determine the target integral value; the speed difference is the difference between the target speed and the current speed; the target time period is the time interval between the current position and the target tracking point on the preset trajectory; The target integral value is corrected using the enable signal and the integral gain coefficient to determine the initial compensation amount; The initial compensation amount is processed based on the upper limit and lower limit of the integral compensation to determine the integral compensation amount.
[0015] In this embodiment, the target integral value is determined by integrating the difference between the target speed and the current speed. The integral compensation amount is then determined based on the target integral value. This effectively determines the difference between the current speed and the target speed, and establishes a more accurate integral compensation amount. The initial compensation amount is processed based on the upper and lower limits of the integral compensation to determine the final integral compensation amount. This approach avoids insufficient compensation, which would lead to inadequate compensation and excessive error, resulting in insufficient control accuracy. Conversely, it avoids overshoot and oscillation caused by excessive compensation, which would affect the smoothness of vehicle control.
[0016] Preferably, the integrated control command is the sum of the feedforward compensation amount, the feedback control amount, and the integral compensation amount.
[0017] In this embodiment, by comprehensively considering the feedforward compensation amount, the feedback control amount, and the integral compensation amount, a comprehensive control command for controlling the vehicle to follow the preset trajectory is obtained. While ensuring the continuity and stability of vehicle control based on the feedback control amount, it is possible not only to quickly and accurately control the vehicle based on the feedforward compensation amount, thereby improving the response speed of the vehicle, but also to perform error compensation based on the integral compensation amount, thereby improving the accuracy of vehicle control and thus improving the accuracy of the vehicle following the preset trajectory.
[0018] An in-vehicle control device includes a processor and a memory, wherein, Memory, used to store computer programs; The processor is used to execute the program stored in the memory to implement the vehicle control method described above.
[0019] A vehicle including the aforementioned on-board control equipment.
[0020] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the vehicle control method described above. Attached Figure Description
[0021] Figure 1 This is a flowchart of a vehicle control method provided in an embodiment of this application; Figure 2 This is another flowchart of a vehicle control method provided in one embodiment of this application; Figure 3 This is another flowchart of a vehicle control method provided in one embodiment of this application; Figure 4 This is another flowchart of a vehicle control method provided in one embodiment of this application; Figure 5 This is a structural diagram of the vehicle control device provided in the embodiments of this application. Detailed Implementation
[0022] To make the technical problems, technical solutions, and beneficial effects solved by this application clearer, the following detailed description is provided in conjunction with embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0023] This application provides a vehicle control method, comprising: acquiring current state data, target state data, and current scene data corresponding to the vehicle; wherein the current state data is state data collected at the current location, the target state data is state data of a target tracking point in a preset trajectory, and the current scene data refers to scene data of the vehicle driving at the current location; determining a feedforward compensation amount based on the target state data; processing the current state data and target state data using a state space model constructed based on a vehicle dynamics model to determine a feedback control amount; determining an integral compensation amount based on the current state data, target state data, and current scene data; determining a comprehensive control command based on the feedforward compensation amount, feedback control amount, and integral compensation amount; and controlling the target component to operate according to the comprehensive control command. This method is used to quickly and accurately control the vehicle to improve the response performance and accuracy of tracking a preset trajectory during autonomous driving.
[0024] like Figure 1 As shown, this application provides a vehicle control method, which is applied to... Figure 5 Taking the vehicle-mounted control equipment as an example, the explanation includes the following steps: S101: Obtain the current status data, target status data, and current scene data corresponding to the vehicle. The current status data is the status data collected at the current location, the target status data is the status data of the target tracking point in the preset trajectory, and the current scene data refers to the scene data of the vehicle driving at the current location. S102: Determine the feedforward compensation amount based on the target state data; S103: Using a state-space model built on a vehicle dynamics model, the current state data and target state data are processed to determine the feedback control quantity; S104: Determine the integral compensation amount based on the current state data, target state data, and current scene data; S105: Determine the integrated control command based on the feedforward compensation, feedback control, and integral compensation, and control the target component to work according to the integrated control command.
[0025] The current state data refers to the state data collected at the current location. The target state data refers to the state data of the target tracking point in the preset trajectory. The target tracking point refers to the tracking point set in the preset trajectory in the vehicle's autonomous driving scenario. The preset trajectory refers to the preset trajectory that the vehicle needs to follow. The target tracking point refers to the preset tracking point in the preset trajectory that has the closest longitudinal distance to the current location. The preset tracking point refers to the tracking point set in the preset trajectory at a time interval corresponding to a certain preset duration. In this embodiment, in a preset trajectory, at each... The time interval is set by establishing a preset tracking point, and multiple preset tracking points are determined to facilitate vehicle control. The time interval reaches a preset tracking point to achieve the purpose of tracking the preset trajectory. This is the preset duration. The longitudinal direction is the direction of vehicle travel. The longitudinal distance is the distance along the longitudinal direction; for example, the current location's longitudinal coordinates are... The preset trajectory contains M preset tracking points, where the coordinates of the i-th preset tracking point in the vertical direction are... ,Will The coordinates of each preset tracking point in the longitudinal direction among the M target tracking points. Distance calculations are performed to determine the preset tracking point j with the smallest distance, and this preset tracking point j is then designated as the target tracking point corresponding to the current position. Current scene data refers to the scene data of the vehicle traveling at its current position.
[0026] As an example, in step S101, the vehicle control device acquires the current state data and current scene data corresponding to the current position collected in real time by the data acquisition device. Based on the current state data, it determines the target tracking point that is closest to the current position in the longitudinal direction on the preset trajectory, and retrieves the target state data corresponding to the target tracking point from the preset trajectories pre-stored in the system database. Understandably, during the process of controlling the vehicle to perform autonomous driving according to the preset trajectory, multiple preset tracking points are usually set on the preset trajectory to facilitate the control of the vehicle to follow the preset tracking points and achieve tracking of the preset trajectory.
[0027] Among them, the feedforward compensation amount refers to the data that can be used to control the vehicle based on the target state data.
[0028] As an example, in step S102, after determining the target state data corresponding to the target tracking point, the vehicle control device directly processes the target state data corresponding to the target tracking point to determine the feedforward compensation amount for controlling the vehicle at the target tracking point. There is no need to process the data at the current position. The feedforward compensation amount determined by this method can provide a driving control amount for vehicle control, which is used to drive the target component before the error at the current position occurs, shortening the time delay of vehicle control, so as to quickly control the vehicle and improve the response speed performance during the autonomous driving process.
[0029] Among them, the feedback control quantity refers to the control quantity determined using the state-space model.
[0030] As an example, in step S103, the on-board control device establishes a state space model based on the vehicle dynamics model, such as a model predictive control (MPC) model. Based on the current state data corresponding to the current position and the target state data corresponding to the target tracking point, the state space model is solved in a rolling manner over a future time period to predict the control inputs corresponding to N preset tracking points in the future time period. The first control input among the N control inputs is determined as the feedback control quantity, so that the comprehensive control command can be determined based on the feedback control quantity to ensure the stability and safety of the vehicle during automatic driving.
[0031] The integral compensation quantity is used to compensate for errors in the feedback control quantity based on the current scenario data.
[0032] As an example, in step S104, after determining the current scene data corresponding to the current position, the vehicle control device performs integral control on the current state data and the target state data based on the current scene data, determines the integral compensation amount corresponding to the current scene data, and realizes error compensation of the feedback control amount based on the integral compensation amount. Understandably, when using a state-space model to predict the control input corresponding to the target tracking point, prediction is usually based on the error between the current state data and the target state data to ensure the continuity and smoothness of the vehicle in the time domain. However, when there are emergencies in the current actual scenario, it usually leads to an interruption in the continuity of vehicle control in the time domain. Since the state-space model does not consider the situation in the current actual scenario, it usually causes a lag in vehicle control, which in turn increases the error and leads to a decrease in tracking accuracy. In this example, the current scene data is acquired in real time at the current location to reflect various emergencies in the current actual scenario. Based on the current scene data, integral control is performed on the current state data and the target state data to determine the integral compensation amount corresponding to the current scene data. This compensates for the error of the feedback control amount caused by various emergencies in the current actual scenario, reduces the error of the feedback control amount, and improves the accuracy of the vehicle tracking the preset trajectory.
[0033] The integrated control command refers to the control input for the vehicle determined after comprehensively considering the speed and accuracy of vehicle control. The target component refers to the component that executes the integrated control command.
[0034] As an example, in step S105, the on-board control device processes the feedforward compensation amount, feedback control amount, and integral compensation amount according to a preset method to determine the comprehensive control command for controlling the vehicle, so that the target components of the vehicle can quickly and accurately control the vehicle according to the comprehensive control command, thereby improving the speed of the controlled vehicle and the accuracy of the vehicle tracking the preset trajectory while ensuring the continuity and stability of vehicle control.
[0035] In this embodiment, the feedback control quantity is determined based on the target state data of the target tracking point. This allows the target component to be driven before an error occurs at the current position, shortening the time delay for vehicle control and facilitating rapid vehicle control, thus improving the response speed performance during autonomous driving. A state-space model based on the vehicle dynamics model is used to process the current state data and target state data to determine the feedback control quantity, ensuring the continuity and stability of vehicle control. Based on the current state data, target state data, and current scene data, an integral compensation quantity is determined. This quantity incorporates current scene data reflecting actual emergency situations in the current scenario and is used to compensate for errors corresponding to the feedback control quantity, reducing errors and enabling rapid and precise vehicle control, improving vehicle speed and the accuracy of tracking a preset trajectory. This method, while ensuring the continuity and stability of vehicle control, enables rapid and precise vehicle control based on a comprehensive control command determined by the feedforward compensation quantity, feedback control quantity, and integral compensation quantity, improving the vehicle's response speed and the accuracy of tracking a preset trajectory.
[0036] In one embodiment, the target state data includes the target acceleration corresponding to the target tracking point; The feedforward compensation amount is determined based on the target acceleration and pre-calibrated feedforward compensation parameters.
[0037] Here, target acceleration refers to the preset acceleration corresponding to the target tracking point. Feedforward compensation parameters refer to pre-calibrated parameters.
[0038] As an example, the onboard control device acquires the target acceleration corresponding to the target tracking point that is closest to the current position in the longitudinal direction. The pre-calibrated feedforward compensation parameters Target acceleration corresponding to the target tracking point The product of these is determined as the feedforward compensation amount. .Right now = .
[0039] In this embodiment, the product of the feedforward compensation parameter and the target acceleration at the target tracking point is determined as the feedforward compensation amount. An "open-loop" drive command is generated in advance based on the target acceleration to effectively shorten the initial response delay of the vehicle control system. The target component is driven to execute the control command corresponding to the feedforward compensation amount before the error actually occurs, providing a "first driving force" for rapid dynamic response.
[0040] In one embodiment, the current state data includes the current longitudinal velocity and the current longitudinal position corresponding to the current position; the target state data includes the target longitudinal velocity and the target longitudinal position corresponding to the target tracking point. like Figure 2 As shown, step S103, which involves using a state-space model constructed based on the vehicle dynamics model to process the current state data and the target state data to determine the feedback control quantity, includes: S201: Determine the objective function based on the current longitudinal velocity and current longitudinal position corresponding to the current position, and the target longitudinal velocity and target longitudinal position corresponding to the target tracking point; S202: Determine the constraints based on the control input amplitude limit and control input rate of change limit in the state-space model; S203: Based on the constraints, the state-space model is solved in a rolling manner. When the objective function is minimized, the target control sequence is determined. The target control sequence is a sequence of control inputs formed by multiple preset tracking points in the preset trajectory within the future time period. The target tracking point is the first preset tracking point in the preset trajectory. S204: Determine the feedback control quantity corresponding to the target tracking point based on the target control sequence.
[0041] Here, the current longitudinal speed refers to the vehicle's speed in the longitudinal direction at the current position. The current longitudinal position refers to the vehicle's position in the longitudinal direction at the current location. The target longitudinal speed refers to the preset speed of the vehicle in the longitudinal direction at the target tracking point. The target longitudinal position refers to the preset position of the vehicle in the longitudinal direction at the target tracking point. In this example, the vehicle's longitudinal direction is the direction of travel along the vehicle's body. For example, for the vehicle's body, its longitudinal coordinate is the horizontal coordinate. Where i refers to the i-th preset tracking point among M preset tracking points. In particular, when i=0, it represents the current position.
[0042] As an example, in step S201, the on-board control device processes the current longitudinal speed and current longitudinal position corresponding to the current position, and the target longitudinal speed and target longitudinal position corresponding to the target tracking point, to determine an objective function that can predict the control inputs corresponding to multiple preset tracking points in the preset trajectory over a future time period. Understandably, since the preset tracking point is a tracking point in the preset trajectory, and the target tracking point is the tracking point closest to the current position in the longitudinal direction, the target tracking point is the first preset tracking point in the future time period.
[0043] Among these, control input refers to the control quantity used to control the vehicle via the accelerator or brake. Control input amplitude limit refers to the range of limitations on the magnitude of the control input. Control input rate of change limit refers to the range of limitations on the rate of change of the control input.
[0044] As an example, in step S202, the on-board control device determines the control input amplitude limit and control input rate of change limit in the state-space model as constraints. The control input amplitude limit is as follows: The control input rate of change is limited to: , This is the control input for the (i+1)th preset tracking point. The rate of change of the control input at the (i+1)th preset tracking point. To control the minimum input value, To control the maximum value of the input. To control the minimum rate of change of the input, This is to control the maximum rate of change of the input. Understandably, a control input is given at the i-th preset tracking point to control the (i+1)-th preset tracking point. Therefore, This is the control input for the (i+1)th preset tracking point. Let be the rate of change of the control input at the (i+1)th preset tracking point. In this example, constraints are set for the state-space model to ensure the feasibility of solving the state-space model based on these constraints.
[0045] The target control sequence refers to the sequence of control inputs corresponding to each preset tracking point predicted during the process of solving the constraints and objective function.
[0046] As an example, in step S203, the on-board control device solves the state-space model by performing a rolling solution over a future time period. When the objective function is minimized and the control input meets preset conditions, the target control sequence corresponding to the control input of each preset tracking point within the future time period is determined. This completes the solution of the state-space model.
[0047] As an example, in step S204, the on-board control device will send the target control sequence. The first control input in This is determined to be a feedback control variable. Understandably, the first preset tracking point is the target tracking point, which is the preset tracking point that is closest to the current position in the longitudinal direction. This represents the control input used to control the target tracking point at the current position. By performing a rolling solution to the constraints and objective function over a future time period, the first control input in the resulting target control sequence is relatively close to the input of the target tracking point. Therefore, the first control input in the target control sequence is... By identifying the feedback control quantity corresponding to the target tracking point, the vehicle can be controlled more accurately at the current position, enabling the vehicle to track the target tracking point more precisely.
[0048] In this embodiment, the state-space model is solved by rolling according to the objective function and constraints to obtain a feedback control quantity that can control the vehicle more accurately. This feedback control quantity enables the vehicle to track the target tracking point more accurately and stably.
[0049] In one embodiment, the objective function is determined based on the current error term corresponding to the current position and the error function term corresponding to the target tracking point; The current error term is determined based on the longitudinal position error and the longitudinal velocity error corresponding to the current position. The longitudinal position error corresponding to the current position is determined based on the current longitudinal position and the reference longitudinal position; the longitudinal velocity error corresponding to the current position is determined based on the current longitudinal velocity and the reference longitudinal velocity. The error function term is determined based on the longitudinal position error and the longitudinal velocity error corresponding to multiple preset tracking points within a future time period, wherein the first preset tracking point is the target tracking point; The longitudinal position error corresponding to the preset tracking point is determined based on the predicted longitudinal position and the reference longitudinal position corresponding to the preset tracking point; the reference longitudinal position corresponding to the target tracking point is the target longitudinal position. The longitudinal velocity error corresponding to the preset tracking point is determined based on the predicted longitudinal velocity and the reference longitudinal velocity corresponding to the preset tracking point; the reference longitudinal velocity corresponding to the target tracking point is the target longitudinal velocity.
[0050] As an example, in step S201, the vehicle control device determines the state space model as follows: At that time, the longitudinal velocity error and longitudinal position error corresponding to the current position, as well as the target longitudinal velocity and target longitudinal position corresponding to the target tracking point, are processed to determine the objective function. Among them, This represents the longitudinal position error corresponding to the (i+1)th preset tracking point. The longitudinal velocity error corresponding to the (i+1)th preset tracking point. This refers to the control input at the i-th preset tracking point, used to control the (i+1)-th preset tracking point. When i=0, This represents the longitudinal position error corresponding to the current position. This represents the longitudinal velocity error corresponding to the current position. This refers to the control input entered at the current position to control the target tracking point (i.e., the first preset tracking point in the preset trajectory). In this example, the objective function is determined using the following two methods: Method 1, the objective function is Where N is the number of preset tracking points in the future time period of the preset trajectory, and N < M, where M is the total number of preset tracking points in the preset trajectory, and when i=0, for , where i ≠ 0, is the current error term. This is the error function term.
[0051] in, = ,in, This represents the longitudinal position error corresponding to the current position. This represents the longitudinal velocity error corresponding to the current position.
[0052] ,in, This represents the current vertical position corresponding to the current position. The reference longitudinal position is the current longitudinal position corresponding to the current position. The current longitudinal position corresponding to the current position is the actual longitudinal position in the current position. The reference longitudinal position corresponding to the current position is the pre-set longitudinal position of the vehicle at the current moment. = ,in, This represents the current longitudinal velocity corresponding to the current position. The reference longitudinal speed is the speed at the current position, which is the actual longitudinal speed of the vehicle at the current position. The reference longitudinal speed is the preset longitudinal speed of the vehicle at the current position.
[0053] = ,in, The longitudinal position error corresponding to the i-th preset tracking point is... The longitudinal velocity error corresponding to the i-th preset tracking point is... ,in, This represents the current longitudinal position corresponding to the i-th preset tracking point. Let be the reference longitudinal position corresponding to the i-th preset tracking point. The current longitudinal position corresponding to the i-th preset tracking point is the longitudinal position of the i-th preset tracking point predicted by rolling solution over a future time period. The reference longitudinal position corresponding to the i-th preset tracking point is the preset longitudinal position that the i-th preset tracking point should have. In particular, when i=1, the first preset tracking point is the target tracking point, and the reference longitudinal position corresponding to the first preset tracking point is the target longitudinal position corresponding to the target tracking point. = ,in, The current longitudinal velocity corresponding to the i-th preset tracking point. This refers to the reference longitudinal velocity corresponding to the i-th preset tracking point. The current longitudinal velocity corresponding to the i-th preset tracking point is the longitudinal velocity of the i-th preset tracking point predicted by rolling solution over a future time period. The current longitudinal velocity corresponding to the i-th preset tracking point is the preset longitudinal velocity that the i-th preset tracking point should possess. In particular, when i=1, the first preset tracking point is the target tracking point, and the reference longitudinal velocity corresponding to the first preset tracking point is the target longitudinal velocity corresponding to the target tracking point.
[0054] Method 2, the objective function is ,in, This is the control input corresponding to the i-th preset tracking point. When i=0, This is the control input used to control the target tracking point at the current position. In this example, the control input is acceleration.
[0055] In this embodiment, an objective function is determined based on the longitudinal velocity error and longitudinal position error corresponding to the current position, as well as the longitudinal position error and longitudinal velocity error corresponding to multiple preset tracking points within a future time period, so as to accurately solve the state space model based on the objective function.
[0056] In one embodiment, such as Figure 3 As shown, step S104, which involves determining the integral compensation amount based on the current state data, target state data, and current scene data, includes: S301: When at least one of the target state data and the current scene data satisfies the dynamic scene condition, determine the integral compensation amount based on the current state data and the target state data; S302: When neither the target state data nor the current scene data meets the dynamic scene conditions, the integral compensation amount is determined to be 0.
[0057] Among them, dynamic scene conditions are used to determine whether it is necessary to determine the integral compensation amount.
[0058] As an example, in step S301, when the vehicle control device determines that the target state data meets the dynamic scene conditions, the current scene data meets the dynamic scene conditions, or the target state data and the current scene data meet the dynamic scene conditions, it determines that there is an emergency in the current scene. In order to ensure the accuracy of controlling the vehicle to track the preset trajectory, it determines the integral compensation amount based on the current state data corresponding to the current position and the target state data corresponding to the target tracking point, which is used to compensate the feedback control amount.
[0059] As an example, in step S302, when the vehicle control device determines that neither the target state data nor the current scene data meets the dynamic scene conditions, it determines that there is no emergency in the current scene, and there is no need to compensate the feedback control quantity, and determines that the integral compensation quantity is 0.
[0060] In this embodiment, the integral compensation amount is determined based on whether the target state data and the current scene data meet the dynamic scene conditions. This allows the feedback control amount to be compensated based on the integral compensation amount, reducing errors and enabling precise vehicle control to ensure the accuracy of the controlled vehicle in tracking the preset trajectory.
[0061] In one embodiment, the current scene data includes planning behavior signals; the target state data includes the target acceleration and target jerk corresponding to the target tracking point; Dynamic scenario conditions include planning behavior enabling conditions and target state enabling conditions; The enabling conditions for planning behavior include that the planning behavior signal is an emergency signal, and the emergency signal includes emergency acceleration signal and emergency deceleration signal; The target state enable conditions include the absolute value of the target acceleration being greater than a preset acceleration threshold, and the absolute value of the target jerk being greater than a preset jerk threshold.
[0062] Among them, the planned behavior signal refers to the signal used to reflect whether there is an emergency in the current scenario. Emergency situations include, but are not limited to, emergency braking and emergency acceleration. Target acceleration refers to the acceleration that the vehicle needs to achieve at the target tracking point corresponding to its current position. Target jerk refers to the change in the target acceleration of the vehicle at the target tracking point. The planned behavior enabling condition refers to the condition used to determine whether to determine the integral compensation amount based on the planned behavior signal. The target state enabling condition refers to the condition used to determine whether to determine the integral compensation amount based on the target state data. Emergency signals refer to signals used to characterize emergency situations, such as emergency acceleration signals and emergency deceleration signals. Specifically, an emergency acceleration signal is the signal required to control the vehicle's emergency acceleration. An emergency deceleration signal is the signal required to control the vehicle's emergency deceleration. Preset acceleration thresholds are preset thresholds used to determine the magnitude of the target acceleration, and preset jerk thresholds are preset thresholds used to determine the magnitude of the target jerk.
[0063] As an example, the vehicle control device acquires the planned behavior signal in the current scene data. When it determines that the planned behavior signal is an emergency acceleration signal or an emergency deceleration signal, it determines that the planned behavior signal is an emergency signal and that the planned behavior signal meets the planning behavior enabling conditions.
[0064] The vehicle control equipment acquires the target acceleration and target jerk from the target state data. When it is determined that the absolute value of the target acceleration is greater than a preset acceleration threshold and the absolute value of the target jerk is greater than a preset jerk threshold, the target state data is determined to meet the planning behavior enablement conditions.
[0065] When the vehicle control device determines that there are three situations, namely, the planning behavior signal meets the planning behavior enabling condition and the target state data does not meet the planning behavior enabling condition, the planning behavior signal does not meet the planning behavior enabling condition and the target state data meets the planning behavior enabling condition, or the planning behavior signal meets the planning behavior enabling condition and the target state data meets the planning behavior enabling condition, it determines that at least one of the target state data and the current scene data meets the dynamic scene condition, and further executes step S301 to determine the integral compensation amount based on the current state data of the current position and the target state data of the target tracking point. Understandably, when the planned behavior signal is an emergency signal, and / or the absolute values of the target acceleration and target jerk are large, it indicates that there is a situation in the current scenario that requires an emergency change in motion state. Due to dynamic lag in control and model mismatch, the error cannot be eliminated in time and will persist, leading to a decrease in the accuracy of vehicle control, affecting control smoothness, and reducing the accuracy of vehicle tracking of the preset trajectory. Therefore, when it is determined that there is a situation in the scenario that requires an emergency change in motion state, it is necessary to determine the integral compensation amount to compensate the feedback control amount, reduce the error, and improve the accuracy of vehicle control.
[0066] In this embodiment, based on the planning behavior signal, it is determined whether the dynamic scene planning conditions are met; based on the target acceleration and target jerk, it is determined whether the planning behavior enabling conditions are met; based on the dynamic scene planning conditions and the planning behavior enabling conditions, it is determined whether the dynamic scene conditions are met. In order to determine the integral compensation amount based on whether the dynamic scene conditions are met, the feedback control amount is compensated, the error is reduced, the accuracy of vehicle control is improved, and the accuracy of vehicle tracking of the preset trajectory is improved.
[0067] In one embodiment, the current state data includes the current velocity corresponding to the current position; the target state data includes the target velocity corresponding to the target tracking point.
[0068] Here, "current speed" refers to the vehicle's actual speed at its current position. "Target speed" refers to the preset speed corresponding to the target tracking point. Understandably, to control the vehicle's precise tracking along a preset trajectory, multiple preset tracking points are typically set on the trajectory, each corresponding to a preset speed. The target tracking point is the preset tracking point with the closest longitudinal distance to the current position, and it also corresponds to a preset speed, which is the target speed.
[0069] In one embodiment, such as Figure 4 As shown, step S301, which determines the integral compensation amount based on the current state data and the target state data, includes: S401: Determine the enable signal value when at least one of the target state data and the current scene data satisfies the dynamic scene condition; S402: Integrate the velocity difference corresponding to the target time period to determine the target integral value; the velocity difference is the difference between the target velocity and the current velocity; the target time period is the time interval between the current position and the target tracking point on the preset trajectory; S403: The target integral value is corrected using the enable signal and integral gain coefficient to determine the initial compensation amount; S404: Based on the upper limit and lower limit of integral compensation, process the initial compensation amount to determine the integral compensation amount.
[0070] The enable signal value is a signal value used to characterize the integral compensation amount that needs to be determined.
[0071] As an example, in step S401, when the vehicle control device determines that at least one of the target state data and the current scene data meets the dynamic scene conditions, it determines that the enable signal value is 1 to start the integrator and determine the integral compensation amount. When the vehicle control device determines that neither the target state data nor the current scene data meets the dynamic scene conditions, it determines that the enable signal value is 0 to freeze the integrator and determines that the integral compensation amount is 0.
[0072] The target integral value refers to the integral value corresponding to the difference between the target speed and the current speed.
[0073] As an example, in step S402, when the on-board control device determines that the enable signal value is 1, it integrates the difference between the target speed corresponding to the target tracking point and the current speed corresponding to the current position over the target time period between the current position and the target tracking point to determine the target integral value, i.e., the target integral value. for: ,in, For the target speed, This represents the current speed.
[0074] Here, the integral gain signal refers to the pre-calibrated signal used to correct the target integral value. The initial compensation amount refers to the initially determined integral compensation amount.
[0075] As an example, in step S403, the on-board control device uses an enable signal and an integral gain coefficient to calculate the target integral value. Perform correction processing to determine the initial compensation amount. .in, =SwichValue K SwitchValue is the enable signal, and K is the integral gain coefficient.
[0076] The upper limit of points compensation refers to the maximum value of points compensation. The lower limit of points compensation refers to the minimum value of points compensation.
[0077] As an example, in step S404, the on-board control device determines the initial compensation amount. Whether it falls between the upper and lower limits of the points compensation, in determining the initial compensation amount When the integral compensation is between the upper limit and the lower limit, determine the initial compensation amount. To meet the preset requirements for feedback compensation, the initial compensation amount is... Determined as integral compensation amount In determining the initial compensation amount If the amount is not between the upper and lower limits of the points compensation, further determine the initial compensation amount. Greater than the maximum compensation limit or the initial compensation amount If the value is less than the lower limit of integral compensation, the initial compensation amount is determined. When the amount exceeds the points compensation limit, the points compensation limit will be set as the points compensation amount. In determining the initial compensation amount When the value is less than the lower limit of integral compensation, the lower limit of integral compensation shall be determined as the integral compensation amount. Understandably, to ensure the accuracy of compensation, the amount of points-based compensation needs to be controlled. Between the upper and lower limits of integral compensation, it avoids insufficient compensation due to too small a compensation level, resulting in excessive error and thus insufficient control precision. It also avoids overshoot and oscillation due to too large a compensation level, which would affect the smoothness of vehicle control.
[0078] In this embodiment, the target integral value is determined by integrating the difference between the target speed and the current speed. The integral compensation amount is then determined based on the target integral value. This effectively determines the difference between the current speed and the target speed, and establishes a more accurate integral compensation amount. The initial compensation amount is processed based on the upper and lower limits of the integral compensation to determine the final integral compensation amount. This approach avoids insufficient compensation, which would lead to inadequate compensation and excessive error, resulting in insufficient control accuracy. Conversely, it avoids overshoot and oscillation caused by excessive compensation, which would affect the smoothness of vehicle control.
[0079] In one embodiment, the integrated control command is the sum of the feedforward compensation amount, the feedback control amount, and the integral compensation amount.
[0080] As an example, the onboard control equipment determines the comprehensive control command by summing the feedforward compensation, feedback control, and integral compensation. ,in, For integrated control commands, This is the feedforward compensation amount. For feedback control, This is the amount of points compensation.
[0081] In this embodiment, by comprehensively considering the feedforward compensation amount, the feedback control amount, and the integral compensation amount, a comprehensive control command for controlling the vehicle to follow the preset trajectory is obtained. While ensuring the continuity and stability of vehicle control based on the feedback control amount, it is possible not only to quickly and accurately control the vehicle based on the feedforward compensation amount, thereby improving the response speed of the vehicle, but also to perform error compensation based on the integral compensation amount, thereby improving the accuracy of vehicle control and thus improving the accuracy of the vehicle following the preset trajectory.
[0082] This application also provides an in-vehicle control device 50, please refer to... Figure 5 It includes a processor 510 and a memory 520, wherein the memory 510 is used to store computer programs; and the processor 520 is used to execute the programs stored in the memory 510 to implement the vehicle control method described in any embodiment of this application.
[0083] This application embodiment also provides a vehicle control system, including the vehicle-mounted control device, data acquisition device, and target component as described in the above embodiments. The vehicle-mounted control device is connected to the data acquisition device and the target component, respectively, and is used to determine a comprehensive control command based on the current status data of the vehicle, the target status data, and the current scene data collected by the data acquisition device, and control the target component to work according to the comprehensive control command.
[0084] This application also provides a vehicle that includes the vehicle control device described in the above embodiments.
[0085] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the vehicle control method described in any embodiment of this application.
[0086] In this application, "multiple" refers to two or more.
[0087] In this application, unless otherwise expressly defined, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0088] The terms “first,” “second,” “third,” “fourth,” etc., in this application (if present) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0089] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0090] Unless otherwise specified, all steps in this application may be performed sequentially or randomly. For example, if the method includes steps A and B, it means that the method may include steps A and B performed sequentially, or it may include steps B and A performed sequentially. For example, if the method may also include step C, it means that step C may be added to the method in any order. For example, the method may include steps A, B, and C, or it may include steps A, C, and B, or it may include steps C, A, and B, etc.
[0091] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A vehicle control method, characterized in that, include: The system acquires the vehicle's current status data, target status data, and current scene data. The current status data is the status data collected at the current location, the target status data is the preset status data corresponding to the target tracking point, and the current scene data refers to the scene data of the vehicle driving at the current location. Based on the target state data, determine the feedforward compensation amount; A state-space model based on a vehicle dynamics model is used to process the current state data and the target state data to determine the feedback control quantity. When at least one of the target state data and the current scene data satisfies the dynamic scene condition, the integral compensation amount is determined based on the current state data and the target state data. When neither the target state data nor the current scene data satisfies the dynamic scene conditions, the integral compensation amount is determined to be 0; the current scene data includes planning behavior signals; the target state data includes the target acceleration and target jerk corresponding to the target tracking point; The dynamic scenario conditions include planning behavior enabling conditions and target state enabling conditions; The enabling condition for the planning behavior includes the planning behavior signal being an emergency signal, and the emergency signal includes an emergency acceleration signal and an emergency deceleration signal; The target state enabling condition includes the absolute value of the target acceleration being greater than a preset acceleration threshold, and the absolute value of the target jerk being greater than a preset jerk threshold. Based on the feedforward compensation amount, the feedback control amount, and the integral compensation amount, a comprehensive control command is determined, and the target component is controlled to operate according to the comprehensive control command.
2. The vehicle control method according to claim 1, characterized in that, The target state data includes the target acceleration corresponding to the target tracking point; The feedforward compensation amount is determined based on the target acceleration and pre-calibrated feedforward compensation parameters.
3. The vehicle control method according to claim 1, characterized in that, The current status data includes the current longitudinal velocity and current longitudinal position corresponding to the current position; the target status data includes the target longitudinal velocity and target longitudinal position corresponding to the target tracking point. The process of using a state-space model constructed based on a vehicle dynamics model to process the current state data and the target state data to determine the feedback control quantity includes: The objective function is determined based on the current longitudinal velocity and current longitudinal position corresponding to the current position, and the target longitudinal velocity and target longitudinal position corresponding to the target tracking point; Based on the control input amplitude limit and control input rate of change limit in the state-space model, the constraint conditions are determined. Based on the constraints, the state-space model is solved in a rolling manner. When the objective function is minimized, a target control sequence is determined. The target control sequence is a sequence of control inputs formed by multiple preset tracking points in a preset trajectory within a future time period. The target tracking point is the first preset tracking point in the preset trajectory. Based on the target control sequence, determine the feedback control quantity corresponding to the target tracking point.
4. The vehicle control method according to claim 1, characterized in that, The current status data includes the current velocity corresponding to the current position; The target status data includes the target velocity corresponding to the target tracking point; The step of determining the integral compensation amount based on the current state data and the target state data includes: When at least one of the target state data and the current scene data satisfies the dynamic scene condition, an enable signal value is determined; Integrate the speed difference corresponding to the target time period to determine the target integral value; the speed difference is the difference between the target speed and the current speed; the target time period is the time interval between the current position and the target tracking point on the preset trajectory; The target integral value is corrected using the enable signal and the integral gain coefficient to determine the initial compensation amount; The initial compensation amount is processed based on the upper limit and lower limit of the integral compensation to determine the integral compensation amount.
5. The vehicle control method according to claim 1, characterized in that, The integrated control command is the sum of the feedforward compensation amount, the feedback control amount, and the integral compensation amount.
6. A vehicle-mounted control device, characterized in that, Including processor and memory, among which, Memory, used to store computer programs; A processor for executing a program stored in memory to implement the vehicle control method according to any one of claims 1-5.
7. A vehicle, characterized in that, Includes the vehicle control device as described in claim 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the vehicle control method according to any one of claims 1-5.
Citation Information
Patent Citations
Longitudinal control method and system for automatic driving vehicle and vehicle
CN116653988A
Vehicle trajectory tracking controller parameter self-learning method and device
CN117572764A
