Vehicle control method and device, vehicle, storage medium and program product
Through the linear quadratic Gaussian LQG control method and Monte Carlo simulation, combined with Kalman filter processing, the problem of autonomous vehicles being interfered by random disturbances and noise in the open road environment is solved, and the robustness and accuracy of the control system are improved. , improving the safety of vehicle operation.
Patent Information
- Application Number
- CN202410693030.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-10-01
AI Technical Summary
Autonomous driving vehicles are susceptible to random disturbances and noise interference in open road environments, resulting in low control system accuracy and large tracking errors, affecting control performance.
The linear quadratic Gaussian LQG control method is used, combined with Monte Carlo simulation and Kalman filter processing, to construct the state equation and observation equation of the vehicle control system, calculate the random robust cost function, and obtain the optimal control function to improve the robustness of the control system sex.
It improves the accuracy of vehicle control, reduces the probability of collision, and improves the safety of vehicle operation.
Smart Images

Figure CN118722689A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of intelligent transportation, and in particular to a vehicle control method, device, vehicle, storage medium and program product. Background Art
[0002] In order to execute the reference path or trajectory obtained from the motion planning module, the autonomous driving vehicle uses a deterministic control method in the related art to calculate the optimal control result to execute the desired motion trajectory and eliminate tracking errors.
[0003] In actual engineering applications, autonomous vehicles are easily subject to various disturbances that cannot be measured in advance in an open road environment. Therefore, the control system of autonomous vehicles is often random. Deterministic control methods do not consider the impact of various random disturbances on autonomous vehicles, nor do they consider the noise interference to the state during the measurement process. If deterministic control methods are used, the accuracy of the control system will be low due to the inaccuracy of the control model, and the tracking error will be more easily affected by external disturbances, thus affecting the final control performance. Summary of the invention
[0004] A technical problem to be solved by the present disclosure is to provide a vehicle control method, device, vehicle, storage medium and program product, which can improve the safety of vehicle operation.
[0005] According to one aspect of the present disclosure, a vehicle control method is proposed, including: constructing a state equation and an observation equation of a vehicle control system according to a vehicle state parameter of the vehicle, a control amount of an operating mechanism corresponding to the vehicle state parameter, and system noise and measurement noise; obtaining a linear quadratic Gaussian LQG control function of the vehicle control system according to the state equation and the observation equation; performing a Monte Carlo simulation according to the state equation, the observation equation and the LQG control function to obtain an indicator function, wherein the indicator function includes a control performance index of the vehicle state parameter under the control amount of the corresponding operating mechanism; obtaining an instability probability of each control performance index according to the value of the indicator function; obtaining a random robust cost function of the vehicle control system according to the instability probability of each control performance index; obtaining an optimal control function with the goal of minimizing the random robust cost function; and controlling the vehicle control system according to the optimal control function.
[0006] In some embodiments, the state equation includes: the expected value of the vehicle state parameter at the current moment, the control amount of the operating mechanism at the current moment, the system noise at the current moment, and the corresponding relationship between the expected value of the vehicle state parameter at the next moment; the observation equation includes: the expected value of the vehicle state parameter at the current moment, the measurement noise at the current moment, and the corresponding relationship between the observed value of the vehicle state parameter at the current moment.
[0007] In some embodiments, the LQG control function includes the estimated values of the vehicle state parameters at the current moment and the feedback gain matrix, and the corresponding relationship between the control quantity of the operating mechanism, wherein, based on the state equation and the observation equation, the LQG control function of the vehicle control system includes: based on the state equation and the observation equation, Kalman filtering is performed to obtain the estimated value of the total state of the vehicle at the current moment, wherein the total state of the vehicle includes vehicle state parameters, system noise and measurement noise; from the estimated value of the total state of the vehicle at the current moment, the estimated value of the vehicle state parameters at the current moment is extracted; according to the first target value of the weight matrix of the vehicle state parameters and the first target value of the weight matrix of the control quantity, the feedback gain matrix is obtained; and the corresponding relationship between the estimated value of the vehicle state parameters at the current moment and the feedback gain matrix and the control quantity of the operating mechanism is constructed.
[0008] In some embodiments, Kalman filtering is performed based on the state equation and the observation equation to obtain an estimated value of the vehicle's total state at the current moment, including: obtaining a priori error covariance matrix at each moment based on the variance of the initial state of the vehicle's total state; obtaining the Kalman gain at each moment based on the priori error covariance matrix at each moment; and obtaining an estimated value of the vehicle's total state at the current moment based on the estimated and observed values of the vehicle's state parameters at the previous moment, the estimated and observed values of the system noise, the estimated and observed values of the measurement noise, the Kalman gain, and the control value of the operating mechanism.
[0009] In some embodiments, obtaining the LQG control function of the vehicle control system also includes: obtaining an index value corresponding to the deviation of the vehicle state parameters at the current moment according to the deviation between the estimated value and the predicted value of the vehicle state parameters at the current moment, and the weight matrix of the vehicle state parameters; obtaining an index value corresponding to the control amount at the current moment according to the control amount of the operating mechanism at the current moment and the weight matrix of the control amount; obtaining the vehicle state parameter deviation according to the index value corresponding to the deviation of the vehicle state parameters at each moment within a predetermined time period and the index value corresponding to the control amount; and obtaining the first target value of the weight matrix of the vehicle state parameters and the first target value of the weight matrix of the control amount with the goal of minimizing the vehicle state parameter deviation.
[0010] In some embodiments, the instability probability of each control performance indicator is obtained according to the value of the indicator function, including: determining the number of Monte Carlo simulations; for each Monte Carlo simulation, initializing the system noise in the state equation and the measurement noise in the observation equation, and performing Monte Carlo simulation on the basis of the initialized system noise and measurement noise to obtain the value of the indicator function for the current time, wherein if the control performance indicator is greater than or equal to a first threshold, the value of the indicator function is 1, if the control performance indicator is less than a second threshold, the value of the indicator function is 0, if the control performance indicator is greater than or equal to the second threshold and less than the first threshold, the value of the indicator function is the ratio of the difference between the control performance indicator and the second threshold to the difference between the first threshold and the second threshold; and calculating the average value of the indicator function obtained from each Monte Carlo simulation to obtain the instability probability of each control performance indicator.
[0011] In some embodiments, the control performance indicator includes at least one of a settling time, a peak time, an overshoot, a fluctuation, and an absolute value of a stable error.
[0012] In some embodiments, obtaining the optimal control function with the goal of minimizing the random robust cost function includes: obtaining the second target value of the weight matrix of the vehicle state parameters and the second target value of the weight matrix of the control quantity in the optimal control function with the goal of minimizing the random robust cost function, wherein, controlling the vehicle control system according to the optimal control function includes: controlling the vehicle control system according to the second target value of the weight matrix of the vehicle state parameters and the second target value of the weight matrix of the control quantity.
[0013] In some embodiments, obtaining the random robust cost function of the vehicle control system according to the instability probability of each control performance indicator includes: performing weighted summation on the squares of the instability probabilities of multiple control performance indicators to obtain the random robust cost function of the vehicle control system.
[0014] In some embodiments, the vehicle state parameters include speed parameters and position parameters.
[0015] According to another aspect of the present disclosure, a vehicle control device is also proposed, including: a first processing module, configured to construct a state equation and an observation equation of a vehicle control system according to a vehicle state parameter of the vehicle, a control amount of an operating mechanism corresponding to the vehicle state parameter, and system noise and measurement noise; a second processing module, configured to obtain a linear quadratic Gaussian LQG control function of the vehicle control system according to the state equation and the observation equation; a third processing module, configured to perform a Monte Carlo simulation according to the state equation, the observation equation and the LQG control function to obtain an indicator function, wherein the indicator function includes a control performance index of the vehicle state parameter under the control amount of the corresponding operating mechanism; a fourth processing module, configured to obtain an instability probability of each control performance index according to the value of the indicator function; a fifth processing module, configured to obtain a random robust cost function of the vehicle control system according to the instability probability of each control performance index, and obtain an optimal control function with the goal of minimizing the random robust cost function; and a control module, configured to control the vehicle control system according to the optimal control function.
[0016] According to another aspect of the present disclosure, a vehicle control device is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the vehicle control method as described above based on instructions stored in the memory.
[0017] According to another aspect of the present disclosure, a vehicle is also provided, comprising: the above-mentioned vehicle control device.
[0018] According to another aspect of the present disclosure, a computer-readable storage medium is also provided, on which computer program instructions are stored, and when the instructions are executed by a processor, the vehicle control method as described above is implemented.
[0019] According to another aspect of the present disclosure, a computer program product is also provided, including a computer program or instructions, and the computer program or instructions implement the above-mentioned vehicle control method when executed by a processor.
[0020] In the disclosed embodiment, during the vehicle control process, the system noise and measurement noise of the vehicle are taken into consideration, and the LQG and SRAD algorithms are used to obtain the optimal control function of the vehicle control system. The optimal control function is used to control the vehicle control system, thereby improving the accuracy of vehicle control, reducing the probability of vehicle collision, and thereby improving the safety of vehicle operation.
[0021] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0023] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0024] Figure 1 Schematic diagram of some embodiments of the vehicle control method disclosed herein;
[0025] Figure 2 Schematic diagram of the flow chart of other embodiments of the vehicle control method disclosed in the present invention;
[0026] Figure 3 Schematic diagram of the flow chart of other embodiments of the vehicle control method disclosed in the present invention;
[0027] Figure 4 It is a schematic diagram of the structure of some embodiments of the vehicle control device disclosed in the present invention;
[0028] Figure 5 Schematic diagrams of structures of other embodiments of the vehicle control device disclosed in the present invention;
[0029] Figure 6 It is a schematic diagram of the structure of some embodiments of the vehicle disclosed herein;
[0030] Figure 7 Schematic diagrams of the structures of other embodiments of the vehicle disclosed herein. DETAILED DESCRIPTION
[0031] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0032] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0033] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0034] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0035] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0036] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0037] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0038] Figure 1 The present invention is a flowchart of some embodiments of the vehicle control method disclosed herein.
[0039] In step 110, the state equation and observation equation of the vehicle control system are constructed according to the vehicle state parameters of the vehicle, the control amount of the operating mechanism corresponding to the vehicle state parameters, and the system noise and measurement noise.
[0040] In some embodiments, the vehicle is an autonomous driving vehicle, such as an unmanned vehicle, or a vehicle with an autonomous driving function.
[0041] When an autonomous driving vehicle performs a task on a real open road, it will be affected by various external forces that cannot be accurately measured in advance and various random interference factors, such as random interference in system measurements caused by sensors and random interference in the task environment. Therefore, a random system model is used in this embodiment to control the vehicle, and the vehicle control system is a closed-loop system.
[0042] In some embodiments, the vehicle state parameters include vehicle position information, speed information, etc. The control mechanism corresponding to the vehicle speed includes, for example, an accelerator pedal, and the control mechanism corresponding to the vehicle position includes, for example, a steering control mechanism, an accelerator pedal, and the like.
[0043] In some embodiments, the state equation includes: the expected value of the vehicle state parameter at the current moment, the control amount of the operating mechanism at the current moment, the system noise at the current moment, and the corresponding relationship between the expected value of the vehicle state parameter at the next moment; the observation equation includes: the expected value of the vehicle state parameter at the current moment, the measurement noise at the current moment, and the corresponding relationship between the observed value of the vehicle state parameter at the current moment.
[0044]
[0045] For example, as shown in formula (1), X(k) is the expected value of the vehicle's position or speed at the kth moment, and k is a natural number; X(k+1) is the expected value of the vehicle's position or speed at the k+1th moment; U(k) is the control amount of the vehicle's steering mechanism at the kth moment; W(k) is the system noise at the kth moment, such as the sensor transmission error; V(k) is the measurement noise at the kth moment, such as the sensor's measurement interference; Z(k) is the observed value of the vehicle's position or speed at the kth moment; A is the state matrix, B is the control matrix, and H is the observation matrix, wherein the state matrix, the control matrix, and the observation matrix are known matrices determined according to actual conditions.
[0046] Random interference often exhibits Gaussian distribution characteristics under the combined effect of various insignificant random factors. Therefore, in this embodiment, it is assumed that the system noise and measurement noise obey Gaussian distribution. The mean of the system noise is E[W(g)]=0, and the variance of the system noise is E[W′(g)(W′(j)) T ]=Q * δ gj , Q * is the system noise variance matrix, the mean of the measurement noise is E[V(g)]=0, and the variance of the measurement noise is E[V′(g)(V′(j)) T ]=R * δ gj , R * is the measurement noise variance matrix. Assuming that the system noise and the measurement noise are uncorrelated, their covariance is 0, that is: E[W * (g)(V′(j)) T ]=0, Among them, g and j are natural numbers, representing different vehicle state parameters.
[0047] In step 120, the LQG (Linear Quadratic Gaussian) control function of the vehicle control system is obtained according to the state equation and the observation equation. Figure 2 shown.
[0048] For example, the control law of a vehicle control system is
[0049]
[0050] Among them, K c is called the feedback gain matrix, is the state estimation value corresponding to the vehicle state parameter obtained by the Kalman filter, Related to formula (1).
[0051] In step 130, Monte Carlo simulation is performed according to the state equation, the observation equation and the LQG control function to obtain an indicator function, wherein the indicator function includes a control performance index of the vehicle state parameter under the control amount of the corresponding operating mechanism.
[0052] In some embodiments, the indicator function is I(H(θ), G(d)), where H(θ) corresponds to formula (1), θ represents the uncertain parameters of the controlled object, such as zero-mean system noise and measurement noise that obeys Gaussian distribution; G(d) is the controller, that is, the LQG control function, corresponding to formula (2), and d represents the designed state parameter.
[0053] In some embodiments, in order to increase the robustness in the random system, this embodiment combines SRAD (StocasticRobustness Analysis and Design) to optimize the controller G(d). The SRAD method is essentially a coordinated synthesis of the system stability probability and the system performance estimation, and mainly includes two parts: SRA (Stochastic Robustness Analysis), which is used to analyze the stochastic robustness of the control system; SRD (Stochastic Robustness Design), which is used to perform random robust design on the controller. When performing random robust design on the optimal controller, the corresponding weights can be formulated by the probability corresponding to each indicator after several MCE (Monte Carlo Emulation) according to the index requirements for system stability and system performance in actual problems. The SRAD method can be widely applied to the analysis and design of linear or nonlinear control systems.
[0054] In step 140, the instability probability of each control performance indicator is obtained according to the value of the indicator function.
[0055] In some embodiments, the number of Monte Carlo simulations is determined; for each Monte Carlo simulation, the system noise in the state equation and the measurement noise in the observation equation are initialized, and based on the initialized system noise and measurement noise, Monte Carlo simulation is performed to obtain the value of the indicator function for the current time, wherein if the control performance index is greater than or equal to a first threshold, the value of the indicator function is 1; if the control performance index is less than a second threshold, the value of the indicator function is 0; if the control performance index is greater than or equal to the second threshold and less than the first threshold, the value of the indicator function is the ratio of the difference between the control performance index and the second threshold to the difference between the first threshold and the second threshold; and the values of the indicator function obtained from each Monte Carlo simulation are averaged to obtain the instability probability of each control performance index.
[0056] For example, the instability probability of the system is calculated based on Monte Carlo estimation, and then the instability probability is used to describe the unacceptable behavior of the closed-loop system caused by the change of the uncertain parameters of the system, including the instability of the closed-loop system and the performance indicators that fail to meet the standards. The instability probability of each control performance indicator is:
[0057]
[0058] Where N represents the number of MCE simulations, and the value of N can be selected according to the required accuracy. When N→∞, the estimated value tends to the exact value. The parabolic membership distribution function is introduced so that the value of the indicator function can change continuously between 0 and 1, that is, I(·) is defined as
[0059]
[0060] Wherein, a and b are the permissible ranges of the performance indicators, where a is the lower limit and also the optimal value, and b is the upper limit and also the maximum permissible value, which can be adjusted according to the actual situation of the autonomous driving vehicle; x is the actual indicator value. The control performance indicator x includes at least one of the adjustment time, peak time, overshoot, fluctuation, and the absolute value of the stability error.
[0061] When the performance characteristics of the vehicle control system represented by formula (1) are within the unacceptable range, the indicator function I(·) takes 1, and takes 0 when the indicator is met. The transition process changes continuously between 0 and 1. In each Monte Carlo simulation, the uncertain parameter θ is reinitialized so that each simulation is treated as a single independent sampling test, and the corresponding probability estimation is performed. Finally, the probability mean of all tests is used to describe the acceptability of the performance characteristics of the closed-loop system.
[0062] In step 150 , a stochastic robust cost function of the vehicle control system is obtained according to the instability probability of each control performance indicator.
[0063] In some embodiments, a weighted sum is performed on the squares of the instability probabilities of a plurality of control performance indicators to obtain a random robust cost function of the vehicle control system.
[0064] For example, stochastic robustness design (SRD) is used to perform stochastic robustness design on the controller. SRD consists of two parts: controller structure design and modern optimization algorithm. The control structure is G(d), and d determines the performance of the control gain. The stochastic robustness cost function J(·) of the vehicle control system is
[0065]
[0066] Where M is the number of state parameters d that examine the stability and robustness of the vehicle control system, w i is the weight of the performance index of the i-th design parameter, p i (d) is the probability estimate of the i-th state parameter, that is, the instability probability of the i-th control performance indicator.
[0067] In step 160, an optimal control function is obtained with the goal of minimizing the stochastic robust cost function.
[0068] In some embodiments, the ultimate goal of SRAD is to minimize the cost function J(d) to obtain the stochastic robust optimal controller G(d * The optimization process based on modern optimization algorithms is: Substitute the selected control parameters into the closed-loop system model each time, use the SRA method to perform Monte Carlo simulation on the vehicle control system, obtain the corresponding stochastic robust cost function, and obtain the minimum value of the cost function J(d * ), thus obtaining the stochastic robust optimal controller G(d * ). Since the vehicle control system is a closed-loop system, each time the optimization is performed, it is determined whether the cost function J(d) meets the conditions. If so, the optimal control function is output. If not, the optimization is continued.
[0069] In this embodiment, the second target value of the weight matrix of the vehicle state parameters and the second target value of the weight matrix of the control amount in the optimal control function are obtained with the goal of minimizing the random robust cost function.
[0070] In step 170 , the vehicle control system is controlled according to the optimal control function.
[0071] In some embodiments, the vehicle control system is controlled according to the second target value of the weight matrix of the vehicle state parameters and the second target value of the weight matrix of the control amount.
[0072] In the above embodiment, during the vehicle control process, the system noise and measurement noise of the vehicle are taken into consideration, and the LQG and SRAD algorithms are used to obtain the optimal control function of the vehicle control system. The optimal control function is used to control the vehicle control system, thereby improving the accuracy of vehicle control, reducing the probability of vehicle collision, and thus improving the safety of vehicle operation.
[0073] Figure 2 Schematic diagram of the flow chart of other embodiments of the vehicle control method disclosed in the present invention. In this embodiment, the LQG control function of the vehicle control system is obtained according to the state equation and the observation equation.
[0074] In step 210, Kalman filtering is performed based on the state equation and the observation equation to obtain an estimated value of the overall state of the vehicle at the current moment, wherein the overall state of the vehicle includes vehicle state parameters, system noise, and measurement noise.
[0075] In some embodiments, the prior error covariance matrix at each moment is obtained based on the variance of the initial state of the vehicle's overall state.
[0076]
[0077] P(k+1)=A * P(k)+P(k)A *T -P(k)H′ T R *-1 H′P(k)+G′Q * G′ T (7)
[0078] Wherein, formula (7) is the matrix Riccati equation, which is used to solve the linear square estimation problem; P(0) is the variance of the initial state of the vehicle state parameter, is the initial value set, is the initial value of the Kalman filter estimate; P(k) is the prior error covariance matrix at the kth moment, P(k+1) is the prior error covariance matrix at the k+1th moment, is the state estimation matrix corresponding to the total state of the vehicle, is the control matrix corresponding to the total state of the vehicle, is the measurement matrix corresponding to the total state of the vehicle, is the observation matrix corresponding to the total state of the vehicle.
[0079] In some embodiments, the Kalman gain at each moment is obtained according to the prior error covariance matrix at each moment.
[0080] For example, K(k) = P(k)H′ T R *-1 , where K(k) is the Kalman gain at the kth moment.
[0081] In some embodiments, an estimated value of the overall state of the vehicle at the current moment is obtained based on the estimated and observed values of the vehicle state parameters at the previous moment, the estimated and observed values of the system noise, the estimated and observed values of the measurement noise, the Kalman gain, and the control value of the operating mechanism at the previous moment.
[0082] For example, is the state estimator, is the estimate of the vehicle state parameter at the kth moment, is the system noise estimate at the kth moment, is the measurement noise estimate at the kth moment, is the observed value at the kth moment.
[0083] In step 220, the estimated value of the vehicle state parameter at the current moment is extracted from the estimated value of the vehicle overall state at the current moment.
[0084] In some embodiments, the obtained Extracted from
[0085] In step 230, a feedback gain matrix is obtained according to the first target value of the weight matrix of the vehicle state parameters and the first target value of the weight matrix of the control amount.
[0086] In some embodiments, the feedback gain matrix K c The solution is composed of the state matrix A, the control matrix B, and the weight matrix Q of the vehicle state parameters G , and the weight matrix R of the control quantity G The weight matrix Q of the vehicle state parameters is obtained by solving the matrix Riccati difference equation as shown in formula (8). G is a symmetric positive semidefinite matrix.
[0087] SA+A T S-SBR G -1 B T S+Q G =0 (8)
[0088] Feedback gain matrix K c equal:
[0089]
[0090] Formula (8) and formula (7) are two dual algebraic Riccati difference equations. Formula (8) obtains the LQR optimal controller problem. These two dual problems constitute the solution to the LQG problem.
[0091] In some embodiments, Figure 3 As shown, the weight matrix Q of the vehicle state parameters is obtained G The weight matrix R of the first target value and the control amount G The first target value.
[0092] In step 240, a corresponding relationship between the estimated value of the vehicle state parameter at the current moment and the feedback gain matrix and the control amount of the operating mechanism is constructed.
[0093] For example, as shown in formula (2), the LQG control function is obtained.
[0094] In this embodiment, the optimal control problem of the system under random interference should consider the optimal estimation and optimal control problems at the same time. According to the separation theorem, the optimal control system is composed of two parts: one part is the deterministic optimal controller; the other part is the optimal linear filter connected in series with it. Step 210 gives the optimal state observer based on Kalman filtering, and step 240 gives the deterministic optimal controller. The state feedback of this corresponding relationship uses the state estimation value obtained by the optimal state observer.
[0095] Figure 3 Schematic diagram of the flow chart of other embodiments of the vehicle control method disclosed in the present invention.
[0096] In step 310, based on the deviation between the estimated value and the predicted value of the vehicle state parameter at the current moment and the weight matrix of the vehicle state parameter, an index value corresponding to the deviation of the vehicle state parameter at the current moment is obtained.
[0097] For example, Among them, X1(k) is the deviation between the estimated value and the predicted value of the vehicle state parameter at the kth moment. T (k)Q G X1(k) is the index value corresponding to the deviation amount of the vehicle state parameter at the kth moment.
[0098] In step 320, the index value corresponding to the control amount at the current moment is obtained according to the control amount of the operating mechanism at the current moment and the weight matrix of the control amount.
[0099] For example, U T (k)R G U(k) is the index value corresponding to the control quantity at the kth moment.
[0100] In step 330, the vehicle state parameter deviation is obtained according to the index value corresponding to the deviation amount of the vehicle state parameter at each moment in the predetermined time period and the index value corresponding to the control amount.
[0101] For example, is the vehicle state parameter deviation, and N is the total number of moments in the predetermined time period.
[0102] In step 340, with the goal of minimizing the deviation of the vehicle state parameters, a first target value of the weight matrix of the vehicle state parameters and a first target value of the weight matrix of the control amount are obtained.
[0103] For example, according to the formula Get Q G and R G The value of .
[0104] The quadratic Gaussian control problem is to find the optimal control based on the optimal estimated state to minimize the control index function. In this embodiment, by solving Q G and R G The value of can be further based on the state equation of the linear stochastic system to obtain the LQG control function.
[0105] Figure 4 This is a schematic diagram of the structure of some embodiments of the vehicle control device of the present disclosure, which includes a first processing module 410, a second processing module 420, a third processing module 430, a fourth processing module 440, a fifth processing module 450 and a control module 460.
[0106] The first processing module 410 is configured to construct a state equation and an observation equation of the vehicle control system according to the vehicle state parameters of the vehicle, the control amount of the operating mechanism corresponding to the vehicle state parameters, and the system noise and the measurement noise.
[0107] In some embodiments, the vehicle is an autonomous driving vehicle, such as an unmanned vehicle, or a vehicle with an autonomous driving function.
[0108] In some embodiments, the vehicle state parameters include vehicle position information, speed information, etc. The control mechanism corresponding to the vehicle speed includes, for example, an accelerator pedal, and the control mechanism corresponding to the vehicle position includes, for example, a steering control mechanism, an accelerator pedal, and the like.
[0109] In some embodiments, the state equation includes: the expected value of the vehicle state parameter at the current moment, the control amount of the operating mechanism at the current moment, the system noise at the current moment, and the corresponding relationship between the expected value of the vehicle state parameter at the next moment; the observation equation includes: the expected value of the vehicle state parameter at the current moment, the measurement noise at the current moment, and the corresponding relationship between the observed value of the vehicle state parameter at the current moment.
[0110] For example, the state equation and observation equation of the vehicle control system are obtained according to formula (1).
[0111] The second processing module 420 is configured to obtain the LQG control function of the vehicle control system according to the state equation and the observation equation.
[0112] In some embodiments, the LQG control function includes the estimated value of the vehicle state parameter at the current moment and the feedback gain matrix, and the corresponding relationship between the control amount of the operating mechanism.
[0113] For example, based on the state equation and the observation equation, Kalman filtering is performed to obtain an estimated value of the vehicle's total state at the current moment, wherein the vehicle's total state includes vehicle state parameters, system noise, and measurement noise; from the estimated value of the vehicle's total state at the current moment, the estimated value of the vehicle's state parameters at the current moment is extracted; according to the first target value of the weight matrix of the vehicle's state parameters and the first target value of the weight matrix of the control quantity, a feedback gain matrix is obtained; and a corresponding relationship between the estimated value of the vehicle's state parameters at the current moment and the feedback gain matrix and the control quantity of the operating mechanism is constructed.
[0114] When calculating the estimated value of the vehicle's total state at the current moment, the prior error covariance matrix at each moment is obtained based on the variance of the initial state of the vehicle's total state; the Kalman gain at each moment is obtained based on the prior error covariance matrix at each moment; and the estimated value of the vehicle's total state at the current moment is obtained based on the estimated and observed values of the vehicle's state parameters at the previous moment, the estimated and observed values of the system noise, the estimated and observed values of the measurement noise, the Kalman gain, and the control value of the operating mechanism.
[0115] The first target value of the weight matrix of the vehicle state parameters and the first target value of the weight matrix of the control quantity are determined according to the following algorithm: according to the value of the control quantity of the operating mechanism corresponding to the vehicle state parameters at the current moment and the weight matrix of the control quantity, the index value corresponding to the control quantity at the current moment is obtained; according to the index value corresponding to the deviation of the vehicle state parameters at each moment in a predetermined time period and the index value corresponding to the control quantity, the vehicle state parameter deviation is obtained; and with the minimum vehicle state parameter deviation as the goal, the first target value of the weight matrix of the vehicle state parameters and the first target value of the weight matrix of the control quantity are obtained.
[0116] The third processing module 430 is configured to perform Monte Carlo simulation according to the state equation, the observation equation and the LQG control function to obtain an indicator function, which includes a control performance index of the vehicle state parameter under the control amount of the corresponding operating mechanism.
[0117] In some embodiments, the indicator function is I(H(θ), G(d)), where H(θ) corresponds to formula (1), θ represents the uncertain parameters of the controlled object, such as zero-mean system noise and measurement noise that obeys Gaussian distribution; G(d) is the controller, that is, the LQG control function, corresponding to formula (2), and d represents the designed state parameter.
[0118] In some embodiments, the control performance indicator includes at least one of a settling time, a peak time, an overshoot, a fluctuation, and an absolute value of a stable error.
[0119] The fourth processing module 440 is configured to obtain the instability probability of each control performance indicator according to the value of the indicator function.
[0120] In some embodiments, the number of Monte Carlo simulations is determined; for each Monte Carlo simulation, the system noise in the state equation and the measurement noise in the observation equation are initialized, and based on the initialized system noise and the measurement noise, a Monte Carlo simulation is performed to obtain the value of the indicator function for the current time, wherein if the control performance index is greater than or equal to a first threshold, the value of the indicator function is 1; if the control performance index is less than a second threshold, the value of the indicator function is 0; if the control performance index is greater than or equal to the second threshold and less than the first threshold, the value of the indicator function is the ratio of the difference between the control performance index and the second threshold to the difference between the first threshold and the second threshold; and the values of the indicator function obtained from each Monte Carlo simulation are averaged to obtain the instability probability of each control performance index.
[0121] For example, as shown in formula (3), the instability probability of each control performance indicator is obtained.
[0122] The fifth processing module 450 is configured to obtain a random robust cost function of the vehicle control system according to the instability probability of each control performance indicator, and obtain an optimal control function with the goal of minimizing the random robust cost function.
[0123] In some embodiments, a weighted sum is performed on the squares of the instability probabilities of a plurality of control performance indicators to obtain a random robust cost function of the vehicle control system.
[0124] For example, the random robust cost function of the vehicle control system is obtained as shown in formula (5). Substitute the selected control parameters into the closed-loop system model each time, use the SRA method to perform Monte Carlo simulation on the vehicle control system, and obtain the corresponding random robust cost function. Through continuous optimization search, the minimum value J(d * ), thus obtaining the stochastic robust optimal controller G(d * ). Since the vehicle control system is a closed-loop system, each time the optimization is performed, it is determined whether the cost function J(d) meets the conditions. If so, the optimal control function is output. If not, the optimization is continued.
[0125] In some embodiments, the second target value of the weight matrix of the vehicle state parameters and the second target value of the weight matrix of the control amount in the optimal control function are obtained with the goal of minimizing the random robust cost function.
[0126] The control module 460 is configured to control the vehicle control system according to the optimal control function.
[0127] In some embodiments, the vehicle control system is controlled according to the second target value of the weight matrix of the vehicle state parameters and the second target value of the weight matrix of the control amount.
[0128] In the above embodiment, during the vehicle control process, the system noise and measurement noise of the vehicle are taken into consideration, and the LQG and SRAD algorithms are used to obtain the optimal control function of the vehicle control system. The optimal control function is used to control the vehicle control system, thereby improving the accuracy of vehicle control, reducing the probability of vehicle collision, and thus improving the safety of vehicle operation.
[0129] Figure 5 Schematic diagram of the structure of some other embodiments of the vehicle control device of the present disclosure, the vehicle control device includes a memory 510 and a processor 520. Wherein: the memory 510 can be a disk, a flash memory or any other non-volatile storage medium. The memory is used to store the instructions in the above embodiments. The processor 520 is coupled to the memory 510 and can be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller. The processor 520 is used to execute the instructions stored in the memory.
[0130] In some embodiments, the processor 520 is coupled to the memory 510 via a BUS 530. The traffic light detection device 500 can also be connected to an external storage device 550 via a storage interface 540 to call external data, and can also be connected to a network or another computer system (not shown) via a network interface 560. No further detailed description will be given here.
[0131] In this embodiment, by storing data instructions in a memory and then processing the instructions through a processor, the accuracy of the vehicle control system can be improved and the safety of vehicle operation can be improved.
[0132] In some other embodiments of the present disclosure, a vehicle is also protected. The vehicle includes the vehicle control device in the above embodiment.
[0133] In some embodiments, the vehicle is an unmanned vehicle, such as Figure 6 and 7 As shown in the figure, the unmanned vehicle mainly consists of four parts: chassis module, automatic driving module, cargo box module and remote monitoring and streaming module.
[0134] The autonomous driving module includes a core processing unit (Orin or Xavier module), a traffic light recognition camera, front, rear, left, and right surround cameras, a multi-line laser radar, a positioning module (such as Beidou, GPS, etc.), and an inertial navigation unit. The camera and the autonomous driving module can communicate with each other. In order to increase the transmission speed and reduce the wiring harness, GMSL link communication can be used.
[0135] The chassis module mainly includes batteries, power management devices, chassis controllers, motor drivers, and power motors. The battery provides power for the entire unmanned vehicle system. The power management device converts the battery output into different voltage levels that can be used by each functional module and controls power on and off. The chassis controller receives motion commands from the autonomous driving module and controls the steering, forward, backward, braking, etc. of the unmanned vehicle.
[0136] The remote monitoring streaming module consists of the front monitoring camera, the rear monitoring camera, the left monitoring camera, the right monitoring camera and the streaming module. This module transmits the video data collected by the monitoring camera to the backend server for backend operators to view. The wireless communication module communicates with the backend server through the antenna, enabling backend operators to remotely control the unmanned vehicle.
[0137] The cargo box module is the cargo carrying device of the unmanned vehicle. The cargo box module is also provided with a display interaction module, which is used for the interaction between the unmanned vehicle and the user. The user can perform operations such as picking up, storing, and purchasing goods through the display interaction module. The type of cargo box can be changed according to actual needs. For example, in a logistics scenario, the cargo box can include multiple sub-boxes of different sizes, which can be used to load goods for delivery. In a retail scenario, the cargo box can be set as a transparent box so that users can intuitively see the products for sale.
[0138] In some embodiments, Figure 7 As shown, the unmanned vehicle includes a display interaction module, a chassis, a left blind spot radar, a right blind spot radar, a rear blind spot radar, a laser radar, a right camera, and a cargo box. The functions of the display interaction module, the chassis, the left blind spot radar, the right blind spot radar, the rear blind spot radar, the laser radar, the right camera, and the cargo box can be referred to the above description and will not be repeated here.
[0139] In other embodiments, a computer-readable storage medium stores computer program instructions, which implement the steps of the methods in the above-mentioned embodiments when executed by a processor. It should be understood by those skilled in the art that the embodiments of the present disclosure may be provided as methods, devices, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0140] In some embodiments, a computer program product is protected, including a computer program or instructions, which implement the above-mentioned vehicle control method when executed by a processor.
[0141] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0144] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0145] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0146] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A vehicle control method, include: Constructing a state equation and an observation equation of a vehicle control system according to a vehicle state parameter of the vehicle, a control amount of an operating mechanism corresponding to the vehicle state parameter, and system noise and measurement noise; According to the state equation and the observation equation, a linear quadratic Gaussian LQG control function of the vehicle control system is obtained; Performing Monte Carlo simulation according to the state equation, the observation equation and the LQG control function to obtain an indicator function, wherein the indicator function includes a control performance index of the vehicle state parameter under the control amount of the corresponding operating mechanism; According to the value of the indicator function, the instability probability of each of the control performance indicators is obtained; According to the instability probability of each of the control performance indicators, a random robust cost function of the vehicle control system is obtained; Taking minimizing the stochastic robust cost function as the goal, an optimal control function is obtained; and The vehicle control system is controlled according to the optimal control function.
2. The vehicle control method according to claim 1, in, The state equation includes: the corresponding relationship between the expected value of the vehicle state parameter at the current moment, the control amount of the operating mechanism at the current moment, the system noise at the current moment, and the expected value of the vehicle state parameter at the next moment; and The observation equation includes: the expected value of the vehicle state parameter at the current moment, the measurement noise at the current moment, and the corresponding relationship between the observed value of the vehicle state parameter at the current moment.
3. The vehicle control method according to claim 1, in, The LQG control function includes the estimated value of the vehicle state parameter at the current moment and the feedback gain matrix, and the corresponding relationship between the control amount of the control mechanism, wherein, according to the state equation and the observation equation, the LQG control function of the vehicle control system includes: Based on the state equation and the observation equation, Kalman filtering is performed to obtain an estimated value of the vehicle's overall state at the current moment, wherein the vehicle's overall state includes the vehicle state parameters, the system noise, and the measurement noise; Extracting the estimated value of the vehicle state parameter at the current moment from the estimated value of the vehicle overall state at the current moment; Obtaining the feedback gain matrix according to the first target value of the weight matrix of the vehicle state parameter and the first target value of the weight matrix of the control amount; and Construct a corresponding relationship between the estimated value of the vehicle state parameter at the current moment and the feedback gain matrix, and the control amount of the operating mechanism.
4. The vehicle control method according to claim 3, in, Based on the state equation and the observation equation, Kalman filtering is performed to obtain an estimated value of the total state of the vehicle at the current moment, including: According to the variance of the initial state of the vehicle's total state, a priori error covariance matrix at each moment is obtained; Obtaining the Kalman gain at each moment according to the prior error covariance matrix at each moment; and Based on the estimated and observed values of the vehicle state parameters at the previous moment, the estimated and observed values of the system noise, the estimated and observed values of the measurement noise, the Kalman gain and the control amount of the operating mechanism, an estimated value of the overall state of the vehicle at the current moment is obtained.
5. The vehicle control method according to claim 3, in, Obtaining the LQG control function of the vehicle control system also includes: According to the deviation between the estimated value and the predicted value of the vehicle state parameter at the current moment and the weight matrix of the vehicle state parameter, an index value corresponding to the deviation amount of the vehicle state parameter at the current moment is obtained; According to the control amount of the control mechanism at the current moment and the weight matrix of the control amount, obtaining the index value corresponding to the control amount at the current moment; Obtaining a vehicle state parameter deviation according to an index value corresponding to the deviation amount of the vehicle state parameter at each moment in a predetermined time period and an index value corresponding to the control amount; and With the goal of minimizing the deviation of the vehicle state parameters, a first target value of the weight matrix of the vehicle state parameters and a first target value of the weight matrix of the control amount are obtained.
6. The vehicle control method according to claim 1, in, According to the value of the indicator function, the instability probability of each of the control performance indicators is obtained, including: Determine the number of Monte Carlo simulations; For each Monte Carlo simulation, the system noise in the state equation and the measurement noise in the observation equation are initialized, and Monte Carlo simulation is performed on the basis of the initialized system noise and the measurement noise to obtain the value of the indicator function for the current time, wherein if the control performance index is greater than or equal to a first threshold, the value of the indicator function is 1, if the control performance index is less than a second threshold, the value of the indicator function is 0, if the control performance index is greater than or equal to the second threshold and less than the first threshold, the value of the indicator function is the ratio of the difference between the control performance index and the second threshold and the difference between the first threshold and the second threshold; and The values of the indicator function obtained from each Monte Carlo simulation are averaged to obtain the instability probability of each control performance indicator.
7. The vehicle control method according to claim 6, in, The control performance index includes at least one of adjustment time, peak time, overshoot, fluctuation, and absolute value of stability error.
8. The vehicle control method according to claim 3, in, With the goal of minimizing the stochastic robust cost function, the optimal control function is obtained, including: Taking minimizing the stochastic robust cost function as the goal, obtaining a second target value of the weight matrix of the vehicle state parameter and a second target value of the weight matrix of the control amount in the optimal control function, Wherein, controlling the vehicle control system according to the optimal control function includes: The vehicle control system is controlled according to the second target value of the weight matrix of the vehicle state parameters and the second target value of the weight matrix of the control amount.
9. The vehicle control method according to claim 1, in, According to the instability probability of each of the control performance indicators, the random robust cost function of the vehicle control system is obtained, including: The squares of the instability probabilities of the plurality of control performance indicators are weighted and summed to obtain a random robust cost function of the vehicle control system.
10. The vehicle control method according to any one of claims 1 to 9, in, The vehicle state parameters include speed parameters and position parameters.
11. A vehicle control device, include: A first processing module is configured to construct a state equation and an observation equation of a vehicle control system according to a vehicle state parameter of the vehicle, a control amount of a control mechanism corresponding to the vehicle state parameter, and system noise and measurement noise; A second processing module is configured to obtain a linear quadratic Gaussian LQG control function of the vehicle control system according to the state equation and the observation equation; A third processing module is configured to perform Monte Carlo simulation according to the state equation, the observation equation and the LQG control function to obtain an indicator function, wherein the indicator function includes a control performance index of a vehicle state parameter under the control amount of a corresponding operating mechanism; A fourth processing module is configured to obtain the instability probability of each of the control performance indicators according to the value of the indicator function; A fifth processing module is configured to obtain a stochastic robust cost function of the vehicle control system according to the instability probability of each of the control performance indicators, and obtain an optimal control function with the goal of minimizing the stochastic robust cost function; as well as The control module is configured to control the vehicle control system according to the optimal control function.
12. A vehicle control device, include: Memory; as well as A processor coupled to the memory, the processor being configured to execute the vehicle control method according to any one of claims 1 to 10 based on instructions stored in the memory.
13. A vehicle, include: The vehicle control device according to claim 11 or 12.
14. A computer-readable storage medium having computer program instructions stored thereon, wherein the instructions, when executed by a processor, implement the vehicle control method according to any one of claims 1 to 10.
15. A computer program product, comprising a computer program or instructions, wherein when the computer program or instructions are executed by a processor, the vehicle control method according to any one of claims 1 to 10 is implemented.
