Decoupling debugging method, device, computer equipment and medium for vehicle controller
By decomposing the heading error, lateral error and curvature feedforward control of the vehicle control process, and adjusting the corresponding control parameters, the oscillation problem caused by the coupling of lateral error and heading error in the Ackerman chassis vehicle is solved, and the control accuracy and safety are improved.
Patent Information
- Application Number
- CN202410524644.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-04-29
AI Technical Summary
During the lateral tracking control process of Ackermann chassis vehicles, due to the coupling characteristics of lateral errors and heading errors, motion oscillation problems occur, affecting the control accuracy and safety of the vehicle controller.
By decomposing the vehicle control process into heading error feedback control, lateral error feedback control and curvature feedforward control, and adjusting the heading control parameters, lateral control parameters and curvature feedforward control parameters respectively, the vehicle controller can be decoupled and debugged to solve the coupling problem. , improve control accuracy and avoid oscillation.
It effectively improves the control accuracy of the vehicle controller, avoids oscillation problems, and improves the stability and safety of the vehicle.
Smart Images

Figure CN118092405B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a decoupling debugging method, device, computer equipment, storage medium and computer program product for a vehicle controller. Background Art
[0002] With the development of vehicle control technology, autonomous driving has been widely used. In the process of vehicle lateral tracking control, heading error and lateral error are both important debugging targets. Usually, when both lateral error and heading error are stably converged within the index range, it means that the vehicle has good control quality.
[0003] However, due to the motion characteristics of the Ackerman chassis, the change processes of the lateral error and the heading error are coupled, which can easily lead to motion oscillation problems during the control process. As a result, the control accuracy of the vehicle controller cannot meet the requirements, and continuous oscillation can easily cause safety problems. Summary of the invention
[0004] Based on this, it is necessary to provide a decoupling debugging method, device, computer equipment, storage medium and computer program product for a vehicle controller that can improve the control accuracy of the vehicle controller and avoid oscillation in order to solve the above technical problems.
[0005] In a first aspect, the present invention provides a decoupling debugging method for a vehicle controller, comprising:
[0006] Based on a first driving environment, adjusting a heading control parameter of the vehicle controller; the first driving environment includes a straight-line driving environment and an environment with an initial heading error, and in the first driving environment, a curvature feedforward control of the vehicle controller does not work, and a lateral error feedback control instruction is zero;
[0007] When the initial heading error converges, adjusting the lateral control parameter of the vehicle controller to increase the lateral error feedback control instruction until the lateral error converges;
[0008] Based on the second driving environment, the curvature feedforward control operation of the vehicle controller is controlled, and the curvature feedforward control parameters of the vehicle controller are adjusted to obtain a debugged vehicle controller.
[0009] In one of the embodiments, after the lateral error converges, the method further includes: obtaining a lateral error feedback control instruction of the vehicle controller based on a third driving environment, the third driving environment including an environment with an initial lateral error; and adjusting the lateral control parameters of the vehicle controller according to the control state of the lateral error feedback control instruction.
[0010] In one embodiment, adjusting the lateral control parameters of the vehicle controller according to the control state of the lateral error feedback control instruction includes: acquiring the corresponding control state according to the lateral error feedback control instruction; when it is determined that the vehicle controller has a lateral control deviation according to the control state, adjusting the lateral control parameters of the vehicle controller according to the lateral control deviation until the lateral control deviation converges; the lateral control deviation includes a deviation in the control amount or a deviation in the control duration.
[0011] In one embodiment, adjusting the heading control parameters of the vehicle controller based on the first driving environment includes: obtaining a heading error feedback control instruction of the vehicle controller based on the first driving environment; obtaining a corresponding control state according to the heading error feedback control instruction; when it is determined according to the control state that the vehicle controller has a heading control deviation, adjusting the heading control parameters of the vehicle controller according to the heading control deviation until the heading control deviation converges; the heading control deviation includes a deviation in the control amount or a deviation in the control duration.
[0012] In one embodiment, the vehicle controller includes a curvature feedforward controller and a lateral heading error collaborative controller; before adjusting the heading control parameters of the vehicle controller based on the first driving environment, the method also includes: establishing a vehicle lateral dynamics model based on the motion characteristics of the Ackerman chassis and determining the corresponding dynamic equations; splitting the vehicle lateral dynamics model to obtain a split state space model and a curvature compensation model; the curvature compensation model is implemented based on the curvature feedforward controller, and the curvature feedforward controller compensates for the curvature of the tracking trajectory of the vehicle based on the adjusted feedforward control parameters, and the state space model is implemented based on the lateral heading error collaborative controller, and the lateral heading error collaborative controller collaboratively controls the lateral error and heading error of the vehicle based on the adjusted lateral control parameters and heading control parameters.
[0013] In one embodiment, the lateral and heading error collaborative controller includes a lateral error feedback controller and a heading error feedback controller; after the lateral dynamics model of the vehicle is split to obtain a split state space model and a curvature compensation model, the method further includes: based on the lateral error and heading error of the vehicle, decomposing the state space model to obtain a decomposed lateral error dynamics model and a heading error dynamics model; the lateral error dynamics model is implemented based on the lateral error feedback controller, and the lateral error feedback controller controls the lateral error of the vehicle based on the adjusted lateral control parameters, and the heading error dynamics model is implemented based on the heading error feedback controller, and the heading error feedback controller controls the heading error of the vehicle based on the adjusted heading control parameters.
[0014] In one of the embodiments, after obtaining the decomposed lateral error dynamic model and heading error dynamic model, the method further includes: based on the coupling relationship between the lateral error and heading error of the vehicle, decoupling the lateral error and heading error in the lateral error dynamic model to obtain a decoupled lateral error feedback dynamic sub-model and a lateral error compensation sub-model, wherein the lateral error compensation sub-model is used to characterize the corresponding decoupling compensation; decoupling the lateral error and heading error in the heading error dynamic model to obtain a decoupled heading error feedback dynamic sub-model and a heading error compensation sub-model, wherein the heading error compensation sub-model is used to characterize the corresponding decoupling compensation.
[0015] In a second aspect, the present invention further provides a decoupling debugging device for a vehicle controller, the device comprising:
[0016] a first adjustment module, configured to adjust a heading control parameter of the vehicle controller based on a first driving environment; the first driving environment includes a straight driving environment and an environment with an initial heading error, and in the first driving environment, a curvature feedforward control of the vehicle controller does not work, and a lateral error feedback control instruction is zero;
[0017] A second adjustment module is used to adjust the lateral control parameters of the vehicle controller when the initial heading error converges, so as to increase the lateral error feedback control instruction until the lateral error converges;
[0018] The third adjustment module is used to control the curvature feedforward control operation of the vehicle controller based on the second driving environment, adjust the curvature feedforward control parameters of the vehicle controller, and obtain a debugged vehicle controller.
[0019] In a third aspect, the present invention further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in the first aspect when executing the computer program.
[0020] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in the first aspect.
[0021] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect.
[0022] The above-mentioned decoupling debugging method, device, computer equipment, storage medium and computer program product of the vehicle controller adjust the heading control parameters of the vehicle controller based on the first driving environment, and adjust the lateral control parameters of the vehicle controller when the initial heading error converges to increase the lateral error feedback control instruction until the lateral error converges, and then control the curvature feedforward control work of the vehicle controller based on the second driving environment, and adjust the curvature feedforward control parameters of the vehicle controller to obtain a debugged vehicle controller. This embodiment decomposes the control process into heading error feedback control, lateral error feedback control and curvature feedforward control, and completes the tasks of heading error elimination, lateral error elimination and curvature compensation respectively, so as to realize parameter debugging of the vehicle controller, thereby solving the coupling problem between lateral error and heading error in the lateral control process of the Ackerman chassis vehicle, so as to improve the control accuracy of the vehicle controller and avoid oscillation problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 A schematic flow chart of a decoupling debugging method for a vehicle controller in one embodiment;
[0025] Figure 2 A schematic diagram of a flow chart of the steps of adjusting the heading control parameters in one embodiment;
[0026] Figure 3 A schematic diagram of a heading error control state in an embodiment;
[0027] Figure 4 A schematic diagram of a debugging process in an embodiment;
[0028] Figure 5 A schematic diagram of a flow chart of a step of fine-tuning a lateral control parameter in an embodiment;
[0029] Figure 6 A schematic diagram of a debugging process for fine-tuning lateral control parameters in one embodiment;
[0030] Figure 7 is a schematic diagram of an error in an embodiment;
[0031] Figure 8 A schematic diagram of a two-degree-of-freedom simplified model of a vehicle in one embodiment;
[0032] Fig. 9 It is a flowchart of a decoupling debugging method of a vehicle controller in another embodiment;
[0033] Fig.10 It is a structural block diagram of a decoupling debugging device of a vehicle controller in one embodiment;
[0034] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0036] Due to the motion characteristics of the Ackerman chassis, the change processes of the lateral error and the heading error are coupled, which can easily lead to motion oscillation problems during the control process. As a result, the control accuracy of the vehicle controller cannot meet the requirements, and continuous oscillation can easily cause safety problems.
[0037] Based on this, the present invention provides a decoupling debugging method for a vehicle controller, which adjusts the heading control parameters of the vehicle controller based on a first driving environment; wherein the first driving environment includes a straight driving environment and an environment with an initial heading error, and in the first driving environment, the curvature feedforward control of the vehicle controller does not work, and the lateral error feedback control instruction is zero; when the initial heading error converges, the lateral control parameters of the vehicle controller are adjusted to increase the lateral error feedback control instruction until the lateral error converges; based on the second driving environment, the curvature feedforward control is controlled to work, and the curvature feedforward control parameters of the vehicle controller are adjusted to obtain a debugged vehicle controller. It decomposes the control process into heading error feedback control, lateral error feedback control and curvature feedforward control, and completes the tasks of heading error elimination, lateral error elimination and curvature compensation respectively, so as to realize parameter debugging of the vehicle controller, thereby solving the coupling problem between lateral error and heading error in the lateral control process of the Ackerman chassis vehicle, so as to improve the control accuracy of the vehicle controller and avoid oscillation problems.
[0038] In one embodiment, Figure 1 As shown, a decoupling debugging method for a vehicle controller is provided, which may specifically include the following steps:
[0039] Step 102: Adjust the heading control parameters of the vehicle controller based on the first driving environment.
[0040] Among them, the heading control parameter is a relevant parameter for the vehicle controller to perform heading control. Specifically, the heading control parameter can control the size of the heading error feedback control instruction. The first driving environment includes a straight driving environment and an environment with an initial heading error, and in the first driving environment, the curvature feedforward control of the vehicle controller does not work, and the lateral error feedback control instruction is zero. Specifically, the straight driving environment refers to a driving environment that only has a straight driving path without the influence of curves. The environment with an initial heading error can be a pre-set environment with a certain heading angle error. The range of the initial heading error can be any value between 20 degrees and 90 degrees, that is, in the first driving environment, the vehicle has a heading error of any angle within this range.
[0041] Since the first driving environment is a straight driving environment with only a straight driving path, curvature compensation is not required in this environment, so the curvature feedforward control of the vehicle controller can be disabled. In addition, in order to achieve the decoupling of heading control and lateral control, the lateral error of the vehicle can be temporarily not controlled during the debugging of the heading control parameters, so the lateral error feedback control instruction can be made zero.
[0042] In this embodiment, based on the straight-line driving environment and the first driving environment with an initial heading error, the heading control parameters of the vehicle controller can be adjusted, that is, based on the heading error feedback of the vehicle in this scenario, the heading control parameters of the vehicle controller are debugged so that the heading error control effect does not overshoot and is asymptotically convergent.
[0043] Step 104 , when the initial heading error converges, adjust the lateral control parameters of the vehicle controller to increase the lateral error feedback control instruction until the lateral error converges.
[0044] Among them, the lateral control parameter is a relevant parameter of the vehicle controller for lateral control. Specifically, the lateral control parameter can control the size of the lateral error feedback control instruction. In this embodiment, the lateral error feedback control instruction is increased by adjusting the lateral control parameter of the vehicle controller.
[0045] Specifically, after adjusting the heading control parameters of the vehicle controller through the above steps so that the initial heading error converges, the lateral control parameters of the vehicle controller can be further adjusted, that is, the lateral error control is added, and the lateral error feedback control instructions are increased from small to large until the lateral error converges. At this point, for a straight-line driving environment, the comprehensive control effect of the lateral error and the heading error can be achieved.
[0046] Step 106, based on the second driving environment, controlling the curvature feedforward control operation of the vehicle controller, adjusting the curvature feedforward control parameters of the vehicle controller, and obtaining a debugged vehicle controller.
[0047] The second driving environment includes a curved driving environment. The curvature feedforward control parameter is a relevant parameter for the vehicle controller to perform curvature control. Specifically, the curvature feedforward control parameter can compensate for the curvature error of the tracking trajectory.
[0048] In this embodiment, in a curved driving environment, the vehicle controller can perform curvature feedforward control to adjust the curvature feedforward control parameters of the vehicle controller, that is, obtain the tracking trajectory curvature error of the vehicle for the curved driving environment, and adjust the feedforward control parameters of the vehicle controller according to the tracking trajectory curvature error until the tracking trajectory curvature error converges, thereby obtaining a debugged vehicle controller.
[0049] In the above-mentioned decoupling debugging method of the vehicle controller, based on the first driving environment, the heading control parameters of the vehicle controller are adjusted, and when the initial heading error converges, the lateral control parameters of the vehicle controller are adjusted to increase the lateral error feedback control instruction until the lateral error converges, and then based on the second driving environment, the curvature feedforward control work of the vehicle controller is controlled, and the curvature feedforward control parameters of the vehicle controller are adjusted to obtain a debugged vehicle controller. This embodiment decomposes the control process into heading error feedback control, lateral error feedback control and curvature feedforward control, and completes the tasks of heading error elimination, lateral error elimination and curvature compensation respectively, so as to realize parameter debugging of the vehicle controller, thereby solving the coupling problem between lateral error and heading error in the lateral control process of the Ackerman chassis vehicle, so as to improve the control accuracy of the vehicle controller and avoid oscillation problems.
[0050] In an exemplary embodiment, Figure 2 As shown, in step 102, adjusting the heading control parameters of the vehicle controller based on the first driving environment may specifically include:
[0051] Step 202: Based on the first driving environment, obtain a heading error feedback control instruction of the vehicle controller.
[0052] The heading error feedback control instruction is a control instruction generated based on the heading error feedback of the vehicle in the first driving environment and used to eliminate the corresponding heading error. The size of the heading error feedback control instruction is determined by the heading control parameter of the vehicle controller, specifically, the heading control parameter includes the debugging gain and weight of the heading, etc.
[0053] In this embodiment, in the process of adjusting the heading control parameters of the vehicle controller, it is first necessary to obtain the heading error feedback control instructions of the vehicle controller based on the first driving environment, and then debug the heading control parameters based on the control effect.
[0054] Step 204: Acquire the corresponding control state according to the heading error feedback control instruction.
[0055] The control state is the control effect of the vehicle heading angle after the corresponding control is performed based on the heading error feedback control instruction. Figure 3 As shown, the control state may include possible trajectories after the implementation of heading control, that is, possible trajectories after the heading control is implemented on the vehicle at A, such as the state of heading angle overshoot (corresponding to the overconvergence trajectory in the figure), the state of undershoot (corresponding to the underconvergence trajectory in the figure), the state of asymptotic convergence (corresponding to the asymptotic convergence trajectory in the figure), etc.
[0056] Step 206 , when it is determined according to the control state that the vehicle controller has a heading control deviation, adjust the heading control parameters of the vehicle controller according to the heading control deviation until the heading control deviation converges.
[0057] The heading control deviation includes the deviation of the control amount or the deviation of the control duration. Specifically, the control amount refers to the control amount of the heading angle. When the control amount of the heading angle is insufficient, the control state is under-adjusted, that is, there is a control deviation of insufficient control amount of the heading angle. Therefore, the heading control parameters of the vehicle controller can be adjusted. For example, the control amount of the heading angle can be increased by adjusting the debugging gain and weight of the heading, so that the heading control deviation converges.
[0058] When the control amount of the heading angle is too large, the control state is an overshoot state, that is, there is a control deviation of the overshoot of the heading angle control amount, which will cause oscillation in this state. Therefore, the heading control parameters of the vehicle controller can be adjusted. For example, the heading adjustment gain and weight can be adjusted to reduce the control amount of the heading angle, so that the heading control deviation converges.
[0059] When the control time of the heading angle is greater than the preset heading control time, that is, when the preset heading control time is reached, the state of asymptotic convergence has not been reached, there is a control deviation of the control time. Therefore, the heading control parameters of the vehicle controller can be adjusted, for example, the debugging gain and weight of the heading can be adjusted to increase or decrease the control amount of the heading angle, thereby improving the convergence speed of the heading control deviation.
[0060] In this embodiment, based on the first driving environment, a heading error feedback control instruction of the vehicle controller is obtained, and a corresponding control state is obtained according to the heading error feedback control instruction. When it is determined according to the control state that the vehicle controller has a heading control deviation, the heading control parameters of the vehicle controller are adjusted according to the heading control deviation until the heading control deviation converges, thereby realizing the debugging of the heading control parameters of the vehicle controller.
[0061] For example, the debugging process of step 102 and step 104 can be specifically referred to as follows: Figure 4Schematic diagram shown. Among them, position A is the starting position of the first driving environment, at which the vehicle has an initial heading error, that is, there is a heading error between the actual driving trajectory of the vehicle and the straight target trajectory. In the process from A to B, under the action of the initial heading error, the lateral error begins to increase from small to large, and at the same time, the heading error begins to decrease under the action of the heading error feedback control instruction; point B is the critical point, after reaching point B, the heading error decreases to zero, and the lateral error increases to the maximum value; thereafter, in the process from B to C, under the action of the lateral error feedback control instruction, the heading begins to increase in the opposite direction again, and the lateral error begins to decrease; then, in the process from C to D, the lateral error decreases, and the heading error increases in the opposite direction to a certain inflection point. Under the action of the heading error feedback control instruction, as the lateral error decreases, the heading error also begins to decrease, and finally at D, the two errors converge synchronously, thereby achieving a comprehensive control effect of the lateral error and the heading error.
[0062] In an exemplary embodiment, Figure 5 As shown, in step 104, after the lateral error converges, the method may further include:
[0063] Step 502: acquiring a lateral error feedback control instruction of a vehicle controller based on a third driving environment.
[0064] The third driving environment includes an environment with an initial lateral error, and the environment with an initial heading error may be a pre-set environment with a certain lateral error, that is, in the third driving environment, the vehicle has a certain lateral error. It can be understood that the range of the initial lateral error may be determined based on the width of the lane in the vehicle driving environment, which may be at least the width of one lane.
[0065] The lateral error feedback control command is a control command generated based on the lateral error feedback of the vehicle in the third driving environment and used to eliminate the corresponding lateral error. The size of the lateral error feedback control command is determined by the heading control parameters of the vehicle controller. Specifically, the lateral control parameters include the lateral debugging gain and weight, etc.
[0066] In this embodiment, the effect of the lateral error feedback control of the vehicle controller can be verified based on the third driving environment, and when the effect does not meet the requirements, the lateral control parameters of the vehicle controller can be further adjusted to improve the control accuracy of the vehicle controller. Specifically, the lateral error feedback control instruction of the vehicle controller can be obtained based on the third driving environment, and the lateral control parameters can be debugged based on subsequent steps.
[0067] Step 504 , adjusting the lateral control parameters of the vehicle controller according to the control state of the lateral error feedback control instruction.
[0068] The control state is the control effect of the lateral error of the vehicle after the corresponding control is performed based on the lateral error feedback control instruction. Specifically, the control state may include a state of lateral distance overshoot, undershoot, and asymptotic convergence, etc. Therefore, in this embodiment, the lateral control parameters of the vehicle controller can be adjusted according to the control state of the lateral error feedback control instruction.
[0069] In practical applications, the corresponding control state can be obtained according to the lateral error feedback control instruction, and when it is determined that the vehicle controller has a lateral control deviation according to the control state, the lateral control parameter of the vehicle controller is adjusted according to the lateral control deviation until the lateral control deviation converges. The lateral control deviation includes the deviation of the control amount or the deviation of the control duration.
[0070] The control amount refers to the control amount of the lateral distance. When the control amount of the lateral distance is insufficient, the control state is under-adjusted, that is, there is a control deviation of insufficient control amount of the lateral distance. When the control amount of the lateral distance is too large, the control state is over-adjusted, that is, there is a control deviation of over-adjustment of the control amount of the lateral distance. When the control time of the lateral distance is greater than the preset lateral control time, that is, when the preset lateral control time is reached, it has not reached the state of asymptotic convergence, there is a control deviation of the control time.
[0071] It can be understood that when the control state is a state of asymptotic convergence, it means that the size of the lateral error feedback control instruction is appropriate, that is, there is no need to adjust the lateral control parameters of the vehicle controller. When the control state is a state of lateral distance overshoot, it means that the lateral error feedback control instruction is too large, so the lateral control parameters of the vehicle controller can be adjusted, for example, by adjusting the lateral debugging gain and weight to reduce the control amount, so that the lateral error converges.
[0072] When the control state is a state of lateral distance under-adjustment, it means that the lateral error feedback control instruction is too small. Therefore, the lateral control parameters of the vehicle controller can be adjusted. For example, the lateral debugging gain and weight can be adjusted to increase the control amount so that the lateral error converges.
[0073] When the control time of the lateral distance is greater than the preset lateral control time, that is, when the preset lateral control time is reached, the state of asymptotic convergence has not been reached, there is a control deviation of the control time. Therefore, the lateral control parameters of the vehicle controller can be adjusted, for example, the lateral debugging gain and weight can be adjusted to increase or decrease the control amount of the lateral distance, thereby improving the convergence speed of the lateral control deviation.
[0074] In the above embodiment, the lateral error feedback control instruction of the vehicle controller is obtained based on the third driving environment, and the lateral control parameter of the vehicle controller is adjusted according to the control state of the lateral error feedback control instruction. Thus, the effect of the lateral error feedback control of the vehicle controller is verified, and when the effect does not meet the requirements, the lateral control parameter of the vehicle controller is further adjusted to further improve the lateral control accuracy of the vehicle controller.
[0075] For example, the above Figure 5 The debugging process shown can be specifically referred to as Figure 6 The overall effect is similar to Figure 4 In the B~D stage, for the sake of convenience, this embodiment uses Figure 6 The stages E to G shown are used as an example for explanation.
[0076] Among them, the E position is the starting position of the third driving environment. At this time, the vehicle has an initial lateral error, that is, there is a lateral error between the actual position of the vehicle and the straight target trajectory. From E to F, the lateral error decreases and the heading error increases in the opposite direction. F is the maximum position of the heading error, that is, the heading error inflection point; from F to G, the lateral error continues to decrease, and the heading error decreases again. Finally, at G, the two errors converge synchronously. In this process, the lateral control parameters are debugged to further improve the lateral control accuracy of the vehicle controller.
[0077] In one embodiment, the debugging ideas and control ideas of the above decoupling debugging method are further given below. Based on analyzing the root cause of the oscillation, the above regularized decoupling debugging method is adopted to decompose the parameter debugging target, and finally form a comprehensive effect to achieve synchronous convergence and solve the motion oscillation problem. As shown in Figure 7, based on the lateral error and heading error, from the analysis of its theoretical characteristics, there is a control coupling characteristic, which is specifically manifested as follows:
[0078] (1) The heading error converges first: When the synchronous convergence condition is not met, it is assumed that the heading error converges to near zero, and the actual motion trajectory is approximately parallel to the target trajectory. However, the lateral error has not yet converged, and further steering is required to reduce the lateral error. However, the steering process will cause the heading error to increase, making it impossible to maintain the heading error convergence.
[0079] (2) The case where the lateral error converges first: When the synchronous convergence condition is not met, assuming that the lateral error converges to near zero, but the heading error has not yet converged, then due to the heading error, the subsequent lateral error will increase again, and the lateral error cannot be maintained.
[0080] (3) Motion oscillation effect: that is, in the absence of synchronous convergence, the motion process will continuously switch between the above situation (1) and situation (2), thus causing motion oscillation.
[0081] (4) Synchronous convergence condition: The lateral error and heading error need to converge to the required accuracy values at the same time.
[0082] Based on this, in the above step 102, before adjusting the heading control parameters of the vehicle controller based on the first driving environment, the above method may also include: establishing a vehicle lateral dynamics model based on the motion characteristics of the Ackerman chassis and determining the corresponding dynamic equations; splitting the vehicle lateral dynamics model to obtain a split state space model and a curvature compensation model. Among them, the curvature compensation model is implemented based on a curvature feedforward controller, and the curvature feedforward controller compensates for the curvature of the vehicle's tracking trajectory based on the adjusted feedforward control parameters; the state space model is implemented based on a lateral heading error collaborative controller, and the lateral heading error collaborative controller collaboratively controls the lateral error and heading error of the vehicle based on the adjusted lateral control parameters and heading control parameters. It can be understood that in this embodiment, the vehicle controller can be split into a curvature feedforward controller and a lateral heading error collaborative controller.
[0083] Specifically, the two-degree-of-freedom simplified model of the vehicle is as follows: Figure 8 As shown, the vehicle lateral dynamics model can be established based on the motion characteristics of the Ackerman chassis, and its corresponding dynamic equation can be expressed as:
[0084] ,in:
[0085] ,
[0086] ,
[0087] in, is the lateral error, is the derivative of the corresponding lateral error, is the heading error, is the derivative corresponding to the heading error, m is the mass, and are the front and rear wheel cornering stiffness, and are the distances from the front and rear wheels to the center of gravity of the vehicle, u is the vehicle speed, is the vehicle moment of inertia, is the front wheel swing angle, is the expected turning angle rate, which is related to the vehicle speed and the curvature of the tracking curve.
[0088] Specifically, the above dynamic equation can be simplified into the vehicle lateral dynamic model:
[0089]
[0090] in, , , similarly:
[0091] ,
[0092] ,
[0093] By further simplifying the equations, the vehicle lateral dynamics model is split to obtain the split state space model and curvature compensation model:
[0094]
[0095] In this form, is a standard state space equation, i.e., a state space model, which can be solved by a feedback control algorithm; It is related to the curvature of the tracking trajectory and is a curvature compensation model. It is used for curvature compensation and can be solved by open-loop control instructions. Therefore, the control form can be divided into the control form of the lateral heading error cooperative controller and the control form of the curvature feedforward controller. Among them, the problem of lateral heading error cooperative control can be solved by a variety of feedback controllers, such as LQR (linear quadratic regulator), MPC (Model Predictive Control), sliding film control and other control algorithms to design lateral heading error cooperative controllers. It can also use PID (Proportion Integration Differentiation) and other algorithms combined with certain planning methods to carry out decoupling control design.
[0096] Because it is used to control The lateral heading error cooperative controller is a simplified controller of the two-degree-of-freedom vehicle dynamics system. Its state quantity It includes lateral error and heading error, so it can be conceptually divided into lateral error feedback controller and heading error feedback controller. That is, based on the lateral error and heading error of the vehicle, the above state space model is decomposed to obtain the decomposed lateral error dynamic model and heading error dynamic model. Among them, the lateral error dynamic model is implemented based on the lateral error feedback controller, and the lateral error feedback controller controls the lateral error of the vehicle based on the adjusted lateral control parameters; the heading error dynamic model is implemented based on the heading error feedback controller, and the heading error feedback controller controls the heading error of the vehicle based on the adjusted heading control parameters.
[0097] therefore, The two-degree-of-freedom vehicle dynamics system can be further decomposed into:
[0098]
[0099] Expand to get:
[0100] in, is the lateral error dynamics model, It is the heading error dynamics model.
[0101] The bold term is a coupling term, so it can be obtained that there is a coupling relationship between the lateral error feedback controller and the heading error feedback controller. If the dynamic coupling term is decoupled, the lateral error and the heading error can be decoupled. Specifically, based on the coupling relationship between the lateral error and the heading error of the vehicle, the lateral error and the heading error in the lateral error dynamics model can be decoupled to obtain the decoupled lateral error feedback dynamics sub-model and the lateral error compensation sub-model. Among them, the lateral error compensation sub-model is used to characterize the corresponding decoupling compensation; the lateral error and the heading error in the heading error dynamics model can also be decoupled to obtain the decoupled heading error feedback dynamics sub-model and the heading error compensation sub-model, wherein the heading error compensation sub-model is used to characterize the corresponding decoupling compensation.
[0102] Specifically, by decoupling the lateral error and heading error in the lateral error dynamics model, we can obtain:
[0103]
[0104] in, is the decoupled lateral error feedback dynamics sub-model, It is the lateral error compensation sub-model.
[0105] By decoupling the lateral error and heading error in the lateral error dynamics model, we can obtain:
[0106]
[0107] in, is the decoupled heading error feedback dynamics sub-model, It is the heading error compensation sub-model.
[0108] Based on the above dynamic disassembly process, the corresponding vehicle controller can be set as a curvature feedforward controller plus a lateral heading error cooperative controller, or as a curvature feedforward controller plus a lateral error feedback controller and a heading error feedback controller. Therefore, it can guide the design of a new chassis control algorithm. Then, through the above decoupling debugging method, the control parameters of the vehicle controller can be decoupled and debugged.
[0109] In an exemplary embodiment, Fig. 9 As shown, the decoupling debugging method of the above vehicle controller is further described below, which may specifically include the following steps:
[0110] Step 902, setting a straight line debugging scene.
[0111] That is, setting the debugging scene for a straight-line driving environment.
[0112] Step 904, set the feedforward to zero.
[0113] That is, the curvature feedforward control of the vehicle controller is set to not work.
[0114] Step 906, setting the lateral error feedback control instruction to zero.
[0115] That is, the lateral feedback control of the vehicle controller is set to be inoperative.
[0116] Step 908, setting an initial heading error scenario.
[0117] That is, at the beginning of debugging, the vehicle has a heading error within a certain angle range. Specifically, the angle range of the initial heading error can be any value between 20 degrees and 90 degrees.
[0118] Step 910, debugging the heading control parameters to make the heading error converge.
[0119] Specifically, based on the heading error feedback of the vehicle in this scenario, the heading control parameters of the vehicle controller can be debugged so that the heading error converges, that is, the heading error control effect does not overshoot and is asymptotically convergent.
[0120] Step 912, debug the lateral control parameters to make the lateral error converge.
[0121] After adjusting the heading control parameters of the vehicle controller through the above steps so that the initial heading error converges, the lateral control parameters of the vehicle controller can be further adjusted, that is, the lateral error control is added, and the lateral error feedback control instructions are increased from small to large until the lateral error converges.
[0122] Step 914, setting an initial lateral error scenario.
[0123] In this scenario, the vehicle has a certain lateral error. Specifically, the range of the initial lateral error can be determined based on the width of the lane in the vehicle driving environment, which can be at least the width of one lane.
[0124] Step 916, verify the lateral control effect and fine-tune the lateral control parameters as needed.
[0125] That is, in the initial lateral error scenario, the corresponding control state is obtained according to the lateral error feedback control instruction, and when it is determined that the vehicle controller has a lateral control deviation according to the control state, the lateral control parameters of the vehicle controller are fine-tuned according to the lateral control deviation until the lateral control deviation converges. If it is determined that the vehicle controller does not have a lateral control deviation, there is no need to adjust the lateral control parameters of the vehicle controller.
[0126] Step 918, setting the curve debugging scene.
[0127] That is, setting the debugging scene for the curved driving environment.
[0128] Step 920, adjusting the curvature feedforward control parameters to achieve tracking of the curve trajectory.
[0129] Specifically, in a curved driving environment, the vehicle controller can perform curvature feedforward control to adjust the curvature feedforward control parameters of the vehicle controller, that is, obtain the curvature error of the vehicle's tracking trajectory for the curved driving environment, and adjust the feedforward control parameters of the vehicle controller according to the tracking trajectory curvature error until the tracking trajectory curvature error converges, that is, the tracking of the curved trajectory is achieved, thereby obtaining a debugged vehicle controller.
[0130] The above decoupling debugging method decomposes the control process into heading error feedback control, lateral error feedback control and curvature feedforward control, and completes the tasks of heading error elimination, lateral error elimination and curvature compensation respectively, so as to realize the parameter debugging of the vehicle controller, so that the debugging process has rules to follow, which can not only improve the efficiency of parameter debugging, but also save the debugging time cost, and at the same time reduce the trial and error probability of certain dangerous scenes (such as high-speed operation), avoid debugging risks, and improve debugging safety. It can also solve the coupling problem between lateral error and heading error in the lateral control process of Ackerman chassis vehicles, so as to improve the control accuracy of the vehicle controller, avoid oscillation problems, and improve the stability and comfort of the vehicle.
[0131] It can be understood that the above decoupling debugging method is universal and can be applied to the parameter debugging process of various lateral control schemes using the Ackerman chassis, and has good compatibility.
[0132] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0133] Based on the same inventive concept, an embodiment of the present invention also provides a decoupling debugging device for a vehicle controller for implementing the decoupling debugging method for a vehicle controller involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the decoupling debugging device for one or more vehicle controllers provided below can refer to the limitations of the decoupling debugging method for a vehicle controller above, and will not be repeated here.
[0134] In an exemplary embodiment, Fig.10 As shown, a decoupling debugging device for a vehicle controller is provided, comprising: a first adjustment module 1002, a second adjustment module 1004 and a third adjustment module 1006, wherein:
[0135] A first adjustment module 1002 is used to adjust the heading control parameters of the vehicle controller based on a first driving environment; the first driving environment includes a straight driving environment and an environment with an initial heading error, and in the first driving environment, the curvature feedforward control of the vehicle controller does not work, and the lateral error feedback control instruction is zero;
[0136] A second adjustment module 1004 is used to adjust the lateral control parameters of the vehicle controller when the initial heading error converges, so as to increase the lateral error feedback control instruction until the lateral error converges;
[0137] The third adjustment module 1006 is used to control the curvature feedforward control operation of the vehicle controller based on the second driving environment, adjust the curvature feedforward control parameters of the vehicle controller, and obtain a debugged vehicle controller.
[0138] In an exemplary embodiment, the second adjustment module is also used to: obtain a lateral error feedback control instruction of the vehicle controller based on a third driving environment, wherein the third driving environment includes an environment with an initial lateral error; and adjust the lateral control parameters of the vehicle controller according to the control state of the lateral error feedback control instruction.
[0139] In an exemplary embodiment, the second adjustment module is also used to: obtain a corresponding control state according to the lateral error feedback control instruction; when it is determined that the vehicle controller has a lateral control deviation according to the control state, adjust the lateral control parameters of the vehicle controller according to the lateral control deviation until the lateral control deviation converges; the lateral control deviation includes a deviation in the control amount or a deviation in the control duration.
[0140] In an exemplary embodiment, the first adjustment module is also used to: obtain a heading error feedback control instruction of the vehicle controller based on the first driving environment; obtain a corresponding control state according to the heading error feedback control instruction; when it is determined according to the control state that the vehicle controller has a heading control deviation, adjust the heading control parameters of the vehicle controller according to the heading control deviation until the heading control deviation converges; the heading control deviation includes a deviation in the control amount or a deviation in the control duration.
[0141] In an exemplary embodiment, the vehicle controller includes a curvature feedforward controller and a lateral heading error collaborative controller; the decoupling debugging device of the vehicle controller also includes a model building module and a model splitting module, wherein the model building module is used to establish a vehicle lateral dynamics model based on the motion characteristics of the Ackerman chassis and determine the corresponding dynamic equations; the model splitting module is used to split the vehicle lateral dynamics model to obtain a split state space model and a curvature compensation model; the curvature compensation model is implemented based on the curvature feedforward controller, and the curvature feedforward controller compensates for the curvature of the tracking trajectory of the vehicle based on the adjusted feedforward control parameters, and the state space model is implemented based on the lateral heading error collaborative controller, and the lateral heading error collaborative controller collaboratively controls the lateral error and heading error of the vehicle based on the adjusted lateral control parameters and heading control parameters.
[0142] In an exemplary embodiment, the lateral and heading error collaborative controller includes a lateral error feedback controller and a heading error feedback controller; the model splitting module is also used to: decompose the state space model based on the lateral error and heading error of the vehicle to obtain a decomposed lateral error dynamic model and a heading error dynamic model; the lateral error dynamic model is implemented based on the lateral error feedback controller, and the lateral error feedback controller controls the lateral error of the vehicle based on the adjusted lateral control parameters; the heading error dynamic model is implemented based on the heading error feedback controller, and the heading error feedback controller controls the heading error of the vehicle based on the adjusted heading control parameters.
[0143] In an exemplary embodiment, the model splitting module is also used to: based on the coupling relationship between the lateral error and the heading error of the vehicle, decouple the lateral error and the heading error in the lateral error dynamics model to obtain a decoupled lateral error feedback dynamics sub-model and a lateral error compensation sub-model, and the lateral error compensation sub-model is used to characterize the corresponding decoupling compensation; decouple the lateral error and the heading error in the heading error dynamics model to obtain a decoupled heading error feedback dynamics sub-model and a heading error compensation sub-model, and the heading error compensation sub-model is used to characterize the corresponding decoupling compensation.
[0144] Each module in the above-mentioned decoupling debugging device of the vehicle controller can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0145] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a decoupling debugging method of a vehicle controller is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0146] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0147] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above method when executing the computer program.
[0148] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.
[0149] In one embodiment, a computer program product is provided, comprising a computer program, which implements the steps of the above method when executed by a processor.
[0150] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0151] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0152] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0153] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.
Claims
1. A decoupling debugging method for a vehicle controller, characterized in that: The method comprises: Based on a first driving environment, adjusting a heading control parameter of the vehicle controller; the first driving environment includes a straight-line driving environment and an environment with an initial heading error, and in the first driving environment, a curvature feedforward control of the vehicle controller does not work, and a lateral error feedback control instruction is zero; When the initial heading error converges, adjusting the lateral control parameter of the vehicle controller to increase the lateral error feedback control instruction until the lateral error converges; Based on the second driving environment, controlling the curvature feedforward control operation of the vehicle controller, adjusting the curvature feedforward control parameters of the vehicle controller, and obtaining a debugged vehicle controller; The adjusting the heading control parameter of the vehicle controller based on the first driving environment includes: Based on the first driving environment, obtaining a heading error feedback control instruction of the vehicle controller; Acquire a corresponding control state according to the heading error feedback control instruction; When it is determined according to the control state that the vehicle controller has a heading control deviation, the heading control parameters of the vehicle controller are adjusted according to the heading control deviation until the heading control deviation converges; the heading control deviation includes a deviation in the control amount or a deviation in the control duration.
2. The method according to claim 1, characterized in that After the lateral error converges, the method further includes: acquiring a lateral error feedback control instruction of the vehicle controller based on a third driving environment, wherein the third driving environment includes an environment having an initial lateral error; The lateral control parameter of the vehicle controller is adjusted according to the control state of the lateral error feedback control instruction.
3. The method according to claim 2, characterized in that The step of adjusting the lateral control parameter of the vehicle controller according to the control state of the lateral error feedback control instruction comprises: Acquire a corresponding control state according to the lateral error feedback control instruction; When it is determined that the vehicle controller has a lateral control deviation according to the control state, a lateral control parameter of the vehicle controller is adjusted according to the lateral control deviation until the lateral control deviation converges; the lateral control deviation includes a deviation in the control amount or a deviation in the control duration.
4. The method according to any one of claims 1 to 3, characterized in that: The vehicle controller includes a curvature feedforward controller and a lateral heading error cooperative controller; Before adjusting the heading control parameters of the vehicle controller based on the first driving environment, the method further includes: Establish the vehicle lateral dynamics model based on the kinematic characteristics of the Ackerman chassis and determine the corresponding dynamic equations; The vehicle lateral dynamics model is split to obtain a split state space model and a curvature compensation model; the curvature compensation model is implemented based on the curvature feedforward controller, and the curvature feedforward controller compensates for the curvature of the tracking trajectory of the vehicle based on the adjusted feedforward control parameters; the state space model is implemented based on the lateral and heading error collaborative controller, and the lateral and heading error collaborative controller collaboratively controls the lateral error and heading error of the vehicle based on the adjusted lateral control parameters and heading control parameters.
5. The method according to claim 4, characterized in that The lateral and heading error cooperative controller includes a lateral error feedback controller and a heading error feedback controller; After the vehicle lateral dynamics model is split to obtain a split state space model and a curvature compensation model, the method further includes: Based on the lateral error and heading error of the vehicle, the state space model is decomposed to obtain a decomposed lateral error dynamic model and a heading error dynamic model; the lateral error dynamic model is implemented based on the lateral error feedback controller, and the lateral error feedback controller controls the lateral error of the vehicle based on the adjusted lateral control parameters; the heading error dynamic model is implemented based on the heading error feedback controller, and the heading error feedback controller controls the heading error of the vehicle based on the adjusted heading control parameters.
6. The method according to claim 5, characterized in that After obtaining the decomposed lateral error dynamics model and heading error dynamics model, the method further includes: Based on the coupling relationship between the lateral error and the heading error of the vehicle, the lateral error and the heading error in the lateral error dynamics model are decoupled to obtain a decoupled lateral error feedback dynamics sub-model and a lateral error compensation sub-model, wherein the lateral error compensation sub-model is used to characterize the corresponding decoupling compensation; The lateral error and the heading error in the heading error dynamics model are decoupled to obtain a decoupled heading error feedback dynamics sub-model and a heading error compensation sub-model, wherein the heading error compensation sub-model is used to characterize the corresponding decoupling compensation.
7. A decoupling debugging device for a vehicle controller, characterized in that: The device comprises: a first adjustment module, configured to adjust a heading control parameter of the vehicle controller based on a first driving environment; the first driving environment includes a straight driving environment and an environment with an initial heading error, and in the first driving environment, a curvature feedforward control of the vehicle controller does not work, and a lateral error feedback control instruction is zero; A second adjustment module is used to adjust the lateral control parameters of the vehicle controller when the initial heading error converges, so as to increase the lateral error feedback control instruction until the lateral error converges; A third adjustment module, used to control the curvature feedforward control operation of the vehicle controller based on the second driving environment, adjust the curvature feedforward control parameters of the vehicle controller, and obtain a debugged vehicle controller; The first adjustment module is specifically used to: obtain the heading error feedback control instruction of the vehicle controller based on the first driving environment; obtain the corresponding control state according to the heading error feedback control instruction; when it is determined according to the control state that the vehicle controller has a heading control deviation, adjust the heading control parameters of the vehicle controller according to the heading control deviation until the heading control deviation converges; the heading control deviation includes a deviation in the control amount or a deviation in the control duration.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Vehicle trajectory control method and system, computer equipment and readable storage medium
CN111428382A
Vehicle automatic driving transverse control method and system
CN111487971A
