Vehicle control method and device, vehicle and storage medium
By obtaining the vehicle's actual speed and desired speed, and combining the target parameters and the terminal sliding surface calculation method, the vehicle's control force is optimized, solving the problem of the difficulty in accurately determining the vehicle's longitudinal control force and improving the longitudinal control accuracy.
Patent Information
- Application Number
- CN202410077528.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-01-18
AI Technical Summary
The longitudinal control force of a vehicle is difficult to determine accurately, resulting in low longitudinal control precision.
By obtaining the vehicle's actual speed and expected speed at the target time point, and based on the target value of the target parameter, the actual speed, and the expected speed, the control force of the vehicle at the target time point is determined. The control force is then optimized to control the vehicle's movement using the terminal sliding surface and equivalent control law calculation method.
It improves the accuracy of vehicle control at the target time point and enhances longitudinal control precision.
Smart Images

Figure CN117864158B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and more specifically, to a vehicle control method, apparatus, vehicle, and computer-readable storage medium. Background Technology
[0002] Longitudinal control of intelligent driving vehicles is currently one of the key research directions in the industry. At present, the driving conditions of vehicles are quite complex, making it difficult to accurately determine the longitudinal control force, resulting in low longitudinal control accuracy. Summary of the Invention
[0003] This application proposes a vehicle control method, apparatus, vehicle, and computer-readable storage medium to improve the above-mentioned deficiencies.
[0004] In a first aspect, embodiments of this application provide a vehicle control method, the method comprising: acquiring the actual speed and desired speed of a vehicle at a target time point; determining the control force of the vehicle at the target time point based on the target value of a target parameter, the actual speed and the desired speed; the target value of the target parameter is selected from multiple initial values corresponding to the target parameter based on the actual reference speed and desired reference speed of a reference vehicle at each time point within the target time period; and controlling the vehicle to drive based on the control force.
[0005] Secondly, embodiments of this application also provide a vehicle control device, the device comprising: an acquisition module for acquiring the actual speed and desired speed of a vehicle at a target time point; a determination module for determining the control force of the vehicle at the target time point based on the target value of a target parameter, the actual speed, and the desired speed; the target value of the target parameter is selected from multiple initial values corresponding to the target parameter based on the actual reference speed and desired reference speed of a reference vehicle at each time point within the target time period; and a control module for controlling the vehicle's movement based on the control force.
[0006] Thirdly, embodiments of this application also provide a vehicle, characterized in that the vehicle includes: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the above-described methods.
[0007] Fourthly, embodiments of this application also provide a computer-readable storage medium storing processor-executable program code, which, when executed by the processor, causes the processor to perform the above-described method.
[0008] This application provides a vehicle control method, device, vehicle, and computer-readable storage medium. In this application, the target value of the target parameter is selected from multiple initial values corresponding to the target parameter based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period. The accuracy of the target value of the target parameter is high, which makes the accuracy of the control force of the vehicle at the target time point determined based on the target value of the target parameter, the actual speed of the vehicle at the target time point, and the expected speed higher, thereby improving the accuracy of controlling the vehicle based on the control force of the vehicle at the target time point.
[0009] Other features and advantages of the embodiments of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the embodiments of this application. The objects and other advantages of the embodiments of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description
[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 A schematic diagram of a vehicle hardware environment applicable to embodiments of this application is shown.
[0012] Figure 2 A flowchart of a vehicle control method according to an embodiment of this application is shown.
[0013] Figure 3 It shows Figure 2 The flowchart of the steps preceding step S102 in the corresponding embodiment is shown in one embodiment.
[0014] Figure 4 A structural block diagram of a vehicle control device according to an embodiment of this application is shown. Detailed Implementation
[0015] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of them. The components of the embodiments of the present application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without inventive effort are within the scope of protection of the present application.
[0016] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0017] Please see Figure 1 , Figure 1 A schematic diagram of a vehicle hardware environment applicable to an embodiment of this application is shown. The vehicle 100 includes a processor 111 and a memory 112.
[0018] The processor 111 may be a microcontroller unit (MCU) with a built-in memory 112 that stores a program that can execute the contents of the following embodiments, and the processor 111 can execute the program stored in the memory 112.
[0019] The processor 112 may include one or more processors. The processor 111 connects to various parts of the vehicle 100 through various interfaces and lines, and performs various functions of the vehicle 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 112, and calling data stored in the memory 112.
[0020] The memory 112 may include random access memory (RAM) or read-only memory (ROM). The memory 112 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 112 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below.
[0021] Please see Figure 2 , Figure 2 A flowchart of a vehicle control method according to an embodiment of this application is shown. The method is for a vehicle and includes:
[0022] S101. Obtain the vehicle's actual speed and expected speed at the target time point.
[0023] The vehicle can be an electric vehicle or a gasoline-powered vehicle, and can be a sedan, SUV, bus, or truck, etc. The target time point can be any point in time during the vehicle's journey; for example, each current moment during the vehicle's journey can be considered a time point. The intervals between target time points during the vehicle's journey can be the same, for example, all 50ms.
[0024] The actual speed of a vehicle at a target time point refers to the actual speed the vehicle travels at that point during its journey. The expected speed of a vehicle at a target time point refers to the predicted speed at the next time point after the target time point, based on the vehicle's travel information. Travel information can include the vehicle's speed, heading angle, road information, types of obstacles around the vehicle, the speeds of these obstacles, and their heading angles. For example, if the predicted speed at time point (a+1) is b1 based on the vehicle's travel information, then b1 is obtained as the expected speed corresponding to time point a.
[0025] S102. Determine the vehicle's control force at the target time point based on the target value of the target parameters, the actual speed, and the desired speed.
[0026] The target value of the target parameter is selected from multiple initial values corresponding to the target parameter based on the actual reference speed and the expected reference speed of the reference vehicle at each time point within the target time period.
[0027] The reference vehicle can be a vehicle of the same model as the aforementioned vehicle, or it can be a different model. The reference vehicle can be a brand new vehicle that has never been driven, or it can be a vehicle that has traveled a certain mileage.
[0028] The target parameters can include multiple parameters. For example, the target parameters can include a first parameter, a second parameter, a third parameter, a fourth parameter, a fifth parameter, a sixth parameter, a seventh parameter, and an eighth parameter. Target parameters can be divided into two categories: Category I parameters and Category II parameters. Specifically, when the target parameters include the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters, Category I parameters include the first, second, third, and fourth parameters, while Category II parameters include the fifth, sixth, seventh, and eighth parameters.
[0029] The target time period can refer to any period of time before the target time point. The length of the target time period can be set based on requirements, for example, the target time period is a period of 5 minutes before the target time point. A moment within the target time period is considered a time point. The intervals between time points within the target time period can be equal, and the interval duration can be set according to requirements, for example, the interval between all time points within the target time period is 50ms.
[0030] Each parameter in the target parameters can have multiple initial values, and the initial value corresponding to each parameter constitutes the initial value of the target parameter. Based on the multiple initial values corresponding to the target parameters, the actual reference speed of the reference vehicle at each time point within the target time period, and the expected reference speed, a target value is selected from the multiple initial values corresponding to the target parameters. The target value of the target parameters includes the individual target values of each parameter in the target parameters.
[0031] In one implementation, S102 may include: determining the vehicle's speed tracking error based on the actual speed and the desired speed; determining the vehicle's design equivalent control rate and actual equivalent control rate at the target time point based on the target value of the target parameter and the speed tracking error; and determining the vehicle's control force at the target time point based on the design equivalent control rate and the actual equivalent control rate.
[0032] The difference between the actual speed and the desired speed can be calculated as the vehicle's speed tracking error. Then, based on the target values of the target parameters and the speed tracking error, the design equivalent control rate and the actual equivalent control rate of the vehicle at the target time point are determined. Next, the design equivalent control rate and the actual equivalent control rate are summed to obtain the summed equivalent control rate. Finally, the summed equivalent control rate is multiplied by the time interval to obtain the control force. The time interval can refer to the interval between various time points during the vehicle's operation, and this time interval can be the same as the interval between various time points in the aforementioned target time period.
[0033] Optionally, the target parameters include a first type of parameters and a second type of parameters. In this case, the first type of parameters includes a first parameter, a second parameter, a third parameter, and a fourth parameter, and the second type of parameters includes a fifth parameter, a sixth parameter, a seventh parameter, and an eighth parameter. Based on the target values of the target parameters and the speed tracking error, the design equivalent control rate and the actual equivalent control rate of the vehicle at the target time point are determined, including: determining the terminal sliding surface of the vehicle at the target time point based on the target values of the first type of parameters and the speed tracking error; determining the design equivalent control rate of the vehicle at the target time point based on the terminal sliding surface and the target values of the second type of parameters; and determining the actual equivalent control rate of the vehicle at the target time point based on the air density at the target time point, the frontal area of the vehicle at the target time point, the drag coefficient of the vehicle at the target time point, the mass of the vehicle, the actual speed, the desired speed, the speed tracking error, and the target values of the first type of parameters.
[0034] Specifically, the calculation process for the vehicle's terminal sliding surface in this embodiment can refer to Formula 1, which is as follows:
[0035]
[0036] Where s is the terminal sliding surface, e is the velocity tracking error, α is the target value of the first parameter, β is the target value of the second parameter, g1 is the target value of the third parameter, g2 is the target value of the fourth parameter, and sign is the sign function. is the derivative of e. Where, if the input value in sign is greater than 0, sign outputs 1; if the input value in sign is 0, sign outputs 0; if the input value in sign is less than 0, sign outputs -1.
[0037] In this embodiment, the calculation process of the vehicle's design equivalent control rate at the target time point can refer to Formula 2, which is as follows:
[0038]
[0039] Among them, U sw To design the equivalent control rate, The target value for the fifth parameter, χ is the target value for the sixth parameter, g3 is the target value for the seventh parameter, and g3 is the target value for the eighth parameter.
[0040] The calculation process of the vehicle's actual equivalent control rate at the target time point in this embodiment can refer to Formula 3, which is as follows:
[0041]
[0042] Among them, U eq The effective control law is denoted by m, where m is the mass of the vehicle and v is the actual speed of the vehicle.d For the vehicle's desired speed, The derivative of the vehicle's actual speed. C is the derivative of the derivative of the vehicle's actual speed. d ρ is the drag coefficient, A is the frontal area, and ρ is the air density.
[0043] Accordingly, the calculation process for the vehicle's control force refers to Formula 4, which is as follows:
[0044]
[0045] Where T is the time interval between various points in time during the vehicle's journey.
[0046] First, a longitudinal dynamics model of the vehicle can be established:
[0047]
[0048] Among them, M e F is the engine torque (also called driving force) of the vehicle. b For the braking force of the vehicle, i t Where i is the transmission ratio of the vehicle, i0 is the final drive ratio of the vehicle, f is the rolling resistance coefficient (the resistance of the tires rolling during vehicle operation), and r is the final drive ratio of the vehicle. w Let η be the tire radius of the vehicle, η be the transmission efficiency, and g be the acceleration due to gravity.
[0049] The aforementioned longitudinal dynamics model can be rewritten as Equation 5, which is as follows:
[0050]
[0051] Wherein, U represents the difference between driving force and braking force. Since driving and braking are usually independent, it can refer to driving force or braking force. D(t) is the total disturbance of the vehicle at time point t in the control process. D(t) fluctuates within a certain range at different time points and does not change abruptly.
[0052] As mentioned above, the speed tracking error e = vv d Combining the aforementioned dynamic model, we can obtain Formula Six, which is as follows:
[0053]
[0054] in, For v d The derivative of the derivative.
[0055] However, when the terminal sliding surface is as shown in Formula 1 above, the derivative of the terminal sliding surface is as follows:
[0056]
[0057] Among them, the derivative on the terminal sliding surface is subject to the constraint relationship shown in Formula 7, which is as follows:
[0058]
[0059] However, the characteristic of the terminal sliding mode control method is that the control law consists of the design equivalent control law obtained by solving the terminal sliding surface and the sliding surface switching control law, and the design equivalent control law is the derivative of the terminal sliding surface, that is, Therefore, based on the aforementioned Formulas 6 and 7, we can obtain the calculation formula for the design equivalent control rate (that is, Formula 2).
[0060] After obtaining the calculation formula for the design equivalent control rate, according to By combining the calculation formula for the design equivalent control rate, the calculation formula for the actual equivalent control rate (i.e., Formula 3) can be determined.
[0061] S103. Control the vehicle's movement based on control force.
[0062] The control force obtained can be either the driving force or the braking force of the vehicle. If the control force is the driving force, the vehicle is controlled to move according to the control force. If the control force is the braking force, the vehicle is controlled to brake according to the control force.
[0063] In this embodiment, the target value of the target parameter is selected from multiple initial values corresponding to the target parameter based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period. The high accuracy of the target value of the target parameter results in a high accuracy of the control force of the vehicle at the target time point determined based on the target value of the target parameter, the actual speed of the vehicle at the target time point, and the expected speed. This improves the accuracy of controlling the vehicle based on the control force of the vehicle at the target time point.
[0064] In another embodiment, such as Figure 3 As shown, before step S102, the method may further include:
[0065] S201. Obtain the multiple parameter solutions corresponding to the t-th iteration process.
[0066] Where t∈[1,N], t is an integer, and N is the preset maximum number of iterations; the multiple parameter solutions in the first iteration process are randomly generated; each parameter solution includes the initial value of the target parameter.
[0067] As mentioned above, the target parameters can include the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters. Correspondingly, each parameter solution can include the initial values for the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters. The preset maximum number of iterations can be set according to requirements; for example, the preset maximum number of iterations could be 20.
[0068] In this embodiment, each of the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters can be assigned its own range. Within each of these ranges, multiple initial values for each parameter in the first iteration are randomly generated. Each of these initial values in the first iteration constitutes a parameter solution for the first iteration.
[0069] For example, set the interval range for each of the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters, and determine 10 values for each of the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters. Based on the initial value corresponding to each of the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters, construct a parameter solution for the first iteration process, thus obtaining 10 parameter solutions for the first iteration process.
[0070] S202. Based on each parameter solution corresponding to the t-th iteration process, obtain the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period, and obtain the target parameter solution from the multiple parameter solutions corresponding to the t-th iteration process.
[0071] First, for each parameter solution corresponding to the t-th iteration process, the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period under that parameter solution can be determined. By traversing each parameter solution corresponding to the t-th iteration process, the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period under each parameter solution corresponding to the t-th iteration process can be obtained. Then, based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period under each parameter solution corresponding to the t-th iteration process, the target parameter solution is obtained from the multiple parameter solutions corresponding to the t-th iteration process.
[0072] Prior to S202, the method may further include: obtaining the actual simulated speed at the p-th time point within the target time period as the reference vehicle's actual reference speed at the p-th time point and the expected simulated speed as the expected reference speed; p∈[1,M], where p is an integer and M is the number of time points within the target time period; the actual simulated speed at the first time point is zero; the expected simulated speed at the p-th time point is sampled from a preset expected simulated speed curve; for each parameter solution corresponding to the t-th iteration process, determining the control force at the p-th time point under the parameter solution based on the actual reference speed and expected reference speed at the p-th time point under the parameter solution; and obtaining the control force corresponding to the p-th time point under the parameter solution based on the correspondence between the preset control force and the preset acceleration. The acceleration is used as the acceleration at the p-th time point in the parameter solution; the preset acceleration corresponding to the preset control force is the acceleration of the target vehicle when the target vehicle is controlled according to the preset control force during the driving process; if p+1≤M, the actual reference speed at the (p+1)-th time point in the parameter solution is determined according to the acceleration at the p-th time point in the parameter solution; p is incremented by 1, and the process is returned to execute the step of determining the control force at the p-th time point in the parameter solution for each parameter solution corresponding to the t-th iteration process, based on the actual reference speed and expected reference speed at the p-th time point in the parameter solution, until p+1>M, thus obtaining the actual reference speed and expected reference speed of the reference vehicle at each time point in the target time period for each parameter solution corresponding to the t-th iteration process.
[0073] The expected reference speed curve can be defined according to requirements. It includes the expected simulated speed for each time point within the target time period. Generally, the expected simulated speed at the first time point and the last time point within the target time period are both 0. The expected simulated speed collected at each time point within the target time period serves as the expected reference speed for the reference vehicle.
[0074] Based on the actual reference speed and the expected reference speed at time point p, the speed tracking error at time point p is determined as the reference speed tracking error at time point p. For any one of the multiple parameter solutions corresponding to the t-th iteration process, the parameter solution includes an initial value for each of the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters. Based on the initial values for each of the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters and the reference speed tracking error at time point p, the control force at time point p under the constraint of the parameter solution is calculated according to the methods of Formulas 1 to 4 mentioned above (wherein, the values of other vehicle parameters involved, such as the final drive ratio and rolling resistance coefficient, can be values under specific driving conditions, which are not limited in this application). This control force is then used as the control force at time point p under the parameter solution.
[0075] During the actual driving process of a target vehicle, the correspondence between control force and acceleration can be collected to obtain the correspondence between preset control force and preset acceleration. This correspondence can include braking correspondence and driving correspondence; by collecting the relationship between braking force and acceleration, the braking correspondence is obtained, and by collecting the relationship between driving force and acceleration, the driving correspondence is obtained.
[0076] During the target vehicle's movement, when braking is applied, the acceleration at that moment is collected. This braking force is used as a preset braking force, and the acceleration is used as a preset acceleration to construct a braking correspondence. Similarly, during the target vehicle's movement, when driving is applied, the acceleration at that moment is collected. This driving force is used as a preset driving force, and the acceleration is used as a preset acceleration to construct a driving correspondence. The aforementioned actual driving process of the target vehicle can refer to its movement on flat ground under windless conditions.
[0077] For each time point within the target time period, the sign of the difference between the actual reference speed and the expected reference speed at that time point determines whether it is a braking process or a driving process. Furthermore, it determines whether to determine the control force at the p-th time point based on the braking or driving correspondence. Specifically, when the difference between the actual and expected reference speeds is positive, it is determined to be a braking process; when the difference is negative, it is determined to be a driving process.
[0078] It is worth mentioning that the drive torque response exhibits nonlinear characteristics. Therefore, real-vehicle data of the target vehicle can be collected using a constant set of 5 drive parameters to establish a 3D map of the "drive force-speed-acceleration" correspondence, thus obtaining the drive correspondence. That is, in the drive correspondence, the preset drive force and preset speed constitute a preset data pair, and this preset data pair corresponds to a preset acceleration. At this time, for the p-th time point, based on the control force and actual reference speed at the p-th time point, the actual data pair at the p-th time point can be determined, and the acceleration corresponding to the actual data pair at the p-th time point can be determined according to the drive correspondence, which is then used as the acceleration at the p-th time point. The braking torque response is approximately linear. Therefore, real-vehicle data of the target vehicle can be collected using a constant set of 2 braking forces, recording the speed and acceleration information during the process, and establishing a 2D table indicating the "braking force-acceleration" correspondence to obtain the braking correspondence.
[0079] At the first time point in the target time period, the actual reference speed of the reference vehicle is 0. The expected simulation speed at the first time point is directly sampled from the expected reference speed curve as the expected reference speed. Based on the actual reference speed and the expected reference speed at the first time point, the control force at the first time point is determined. Then, based on the correspondence between the preset control force and the preset acceleration, the acceleration corresponding to the control force at the first time point is found and used as the acceleration at the first time point.
[0080] Then, based on the acceleration at the first time point and the time intervals between time points within the target time period, the velocity increment between the first and second time points is determined as the gear shift value corresponding to the first time point. The actual reference velocity at the first time point and the sum of the gear shift values are calculated to obtain the actual reference velocity at the second time point. Simultaneously, the expected reference velocity at the second time point can be sampled from the expected reference velocity curve.
[0081] For any time point after the first time point in the target time period, continue using the method of determining the actual reference speed of the second time point based on the actual reference speed of the first time point, and so on, to determine the actual reference speed of the Pth time point. Repeat this process for all M time points to obtain the actual reference speed and expected reference speed for each time point within the target time period for each parameter solution in the t-th iteration.
[0082] After obtaining the actual reference speed and expected reference speed at each time point within the target time period for each parameter solution corresponding to the t-th iteration process, the target parameter solution can be obtained from the multiple parameter solutions corresponding to the t-th iteration process based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period for each parameter solution corresponding to the t-th iteration process.
[0083] In one embodiment, S202 may include: for each parameter solution corresponding to the t-th iteration process, determining the speed tracking error of the reference vehicle at each time point within the target time period based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period under the parameter solution; and obtaining the target parameter solution from multiple parameter solutions under the t-th iteration process based on the speed tracking error of the reference vehicle at each time point within the target time period under each parameter solution corresponding to the t-th iteration process.
[0084] For each parameter solution corresponding to the t-th iteration process, the difference between the actual reference speed and the expected reference speed of the reference vehicle at each time point within the target time period under the parameter solution can be calculated as the speed tracking error of the reference vehicle at each time point within the target time period under the parameter solution. Then, based on the speed tracking error of the reference vehicle at each time point within the target time period under each parameter solution corresponding to the t-th iteration process, the target parameter solution can be obtained from the multiple parameter solutions under the t-th iteration process.
[0085] Specifically, based on the speed tracking error of the reference vehicle at each time point within the target time period under each parameter solution corresponding to the t-th iteration process, the target parameter solution is obtained from multiple parameter solutions under the t-th iteration process. This includes: weighted summing of the speed tracking error with the largest absolute value and the cumulative speed tracking error of the reference vehicle within the target time period under each parameter solution corresponding to the t-th iteration process to obtain the target calculation result for each parameter solution corresponding to the t-th iteration process; the cumulative speed tracking error is the cumulative result of the absolute value of the speed tracking error of the reference vehicle within the target time period; and the parameter solution with the lowest target calculation result is obtained from multiple parameter solutions under the t-th iteration process as the target parameter solution corresponding to the t-th iteration process.
[0086] The aforementioned process of calculating the objective result can be summarized as the process of calculating the function value of the objective function, which is:
[0087] F = q1max(|e|) + q2sum(|e|)
[0088] Where F is the function value of the objective function (i.e., the objective calculation result), q1 and q2 are the weights, and e is the velocity tracking error at any point in time within the objective time period.
[0089] For each parameter solution corresponding to the t-th iteration process, take an initial value corresponding to the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters in the parameter solution to determine a target calculation result corresponding to the parameter solution. Iterate through all parameter solutions corresponding to the t-th iteration process to obtain all target calculation results corresponding to the t-th iteration process. Obtain the parameter solution with the smallest target calculation result as the target parameter solution corresponding to the t-th iteration process.
[0090] S203. If t+1≤N, determine the multiple parameter solutions corresponding to the (t+1)th iteration process based on the objective parameter solution corresponding to the t-th iteration process and the firefly optimization algorithm.
[0091] It is understandable that, for any given iteration, based on the target parameter solution obtained in the current iteration, multiple parameter solutions for the next iteration are generated according to the Firefly optimization algorithm.
[0092] When t+1≤N, it means that the preset maximum number of iterations has not yet been reached, and more iterations are needed. At this point, after determining the multiple parameter solutions corresponding to the (t+1)th iteration process, S204 is executed.
[0093] S204. Increment t by 1. Then return to execute S202. That is, if the preset maximum number of iterations has not been reached, repeat S202 to S204.
[0094] S205. If t+1 > 5N, obtain the initial value of the objective parameter from the objective parameter solution corresponding to the last iteration process as the objective value of the objective parameter.
[0095] The process is repeated until it is determined that t+1 > 5N, indicating that the preset maximum number of iterations has been reached. The target parameter solution corresponding to the last iteration is then obtained, and the initial values of the target parameters are used as their respective target values. That is, the initial values of the first, second, third, fourth, fifth, sixth, seventh, and eighth parameters in the target parameter solution corresponding to the last iteration are used as their respective target values.
[0096] In this embodiment, the aforementioned correspondence, including braking and driving correspondence, is obtained based on the actual driving data of the target vehicle. The accuracy of the correspondence is high, making the acceleration at each time point in the determined target time period more accurate.
[0097] Meanwhile, the actual and expected reference speeds of the reference vehicle are calculated through simulation, without the need to control the reference vehicle's movement. This reduces the efficiency of obtaining the actual and expected reference speeds of the reference vehicle, improves the efficiency of obtaining the actual and expected reference speeds of the reference vehicle, and thus improves the efficiency of obtaining the target values of the target parameters.
[0098] In addition, this application uses the firefly algorithm to iterate the initial value of the target parameter to obtain the target value of the target parameter, which makes the accuracy of the target value of the target parameter higher, thereby improving the accuracy of the vehicle's control force at the target time point, realizing the rapid deployment of the algorithm and the effective improvement of the vehicle speed tracking control accuracy.
[0099] See appendix Figure 4 , Figure 4 This illustration shows a structural block diagram of a vehicle control device according to one embodiment of this application. For use in a vehicle, the device 1200 includes:
[0100] The acquisition module 1210 is used to acquire the vehicle's actual speed and expected speed at the target time point;
[0101] The determination module 1220 is used to determine the control force of the vehicle at the target time point based on the target value of the target parameter, the actual speed, and the expected speed; the target value of the target parameter is selected from multiple initial values corresponding to the target parameter based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period.
[0102] The control module 1230 is used to control the vehicle's movement based on the control force.
[0103] Optionally, the determining module 1220 is further configured to determine the vehicle's speed tracking error based on the actual speed and the desired speed; determine the vehicle's design equivalent control rate and actual equivalent control rate at the target time point based on the target value of the target parameter and the speed tracking error; and determine the vehicle's control force at the target time point based on the design equivalent control rate and the actual equivalent control rate.
[0104] Optionally, the target parameters include a first type of parameter and a second type of parameter; the determining module 1220 is further configured to determine the terminal sliding surface of the vehicle at the target time point based on the target value of the first type of parameter and the speed tracking error; determine the design equivalent control rate of the vehicle at the target time point based on the terminal sliding surface and the target value of the second type of parameter; and determine the actual equivalent control rate of the vehicle at the target time point based on the air density at the target time point, the frontal area of the vehicle at the target time point, the wind resistance coefficient of the vehicle at the target time point, the mass of the vehicle, the actual speed, the desired speed, the speed tracking error, and the target value of the first type of parameter.
[0105] Optionally, the device further includes a parameter acquisition module for acquiring multiple parameter solutions corresponding to the t-th iteration process; t∈[1,N], where t is an integer and N is a preset maximum number of iterations; the multiple parameter solutions corresponding to the first iteration process are randomly generated; each parameter solution includes an initial value of the target parameter; based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period under each parameter solution corresponding to the t-th iteration process, the target parameter solution is acquired from the multiple parameter solutions corresponding to the t-th iteration process; if t+1≤N, based on the target parameter solution corresponding to the t-th iteration process and the Firefly optimization algorithm, the multiple parameter solutions corresponding to the (t+1)-th iteration process are determined; t is incremented by 1, and the process returns to the step of acquiring the target parameter solution from the multiple parameter solutions corresponding to the t-th iteration process based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period under each parameter solution corresponding to the t-th iteration process, until t+1>N, and the initial value of the target parameter is acquired from the target parameter solution corresponding to the last iteration process as the target value of the target parameter.
[0106] Optionally, the parameter acquisition module is further configured to, for each parameter solution corresponding to the t-th iteration process, determine the speed tracking error of the reference vehicle at each time point within the target time period based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period under the parameter solution; and obtain the target parameter solution from multiple parameter solutions under the t-th iteration process based on the speed tracking error of the reference vehicle at each time point within the target time period under each parameter solution corresponding to the t-th iteration process.
[0107] Optionally, the parameter acquisition module is further configured to perform a weighted summation of the speed tracking error with the largest absolute value and the cumulative speed tracking error of the reference vehicle within the target time period for each parameter solution corresponding to the t-th iteration process, to obtain the target calculation result for each parameter solution corresponding to the t-th iteration process; the cumulative speed tracking error is the cumulative result of the absolute value of the speed tracking error of the reference vehicle within the target time period; and the parameter solution with the lowest target calculation result is obtained from the multiple parameter solutions under the t-th iteration process as the target parameter solution corresponding to the t-th iteration process.
[0108] Optionally, the parameter acquisition module is further configured to acquire the actual simulated speed at the p-th time point within the target time period as the reference vehicle's actual reference speed at the p-th time point and the expected simulated speed as the expected reference speed; p∈[1,M], where p is an integer and M is the number of time points within the target time period; the actual simulated speed at the first time point is zero; the expected simulated speed at the p-th time point is sampled from a preset expected simulated speed curve; for each parameter solution corresponding to the t-th iteration process, the control force at the p-th time point under the parameter solution is determined based on the actual reference speed and expected reference speed at the p-th time point under the parameter solution; and the acceleration corresponding to the control force at the p-th time point under the parameter solution is acquired based on the correspondence between the preset control force and the preset acceleration. The acceleration at time point p is used as a parameter solution. The preset acceleration corresponding to the preset control force is the acceleration of the target vehicle when the target vehicle is controlled according to the preset control force during the driving process. If p+1≤M, the actual reference speed at time point (p+1) is determined based on the acceleration at time point p. P is incremented by 1, and the process is repeated for each parameter solution corresponding to the t-th iteration process. The control force at time point p is determined based on the actual reference speed and expected reference speed at time point p, until p+1>M. This process yields the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period for each parameter solution corresponding to the t-th iteration process.
[0109] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0110] Furthermore, the functions in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module.
[0111] Furthermore, the functions in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module.
[0112] On the other hand, this application also provides a computer-readable storage medium storing program code that can be called by a processor to execute the methods described in the above method embodiments.
[0113] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or a cluster of ROMs. Optionally, computer-readable storage media include non-transitory computer-readable storage media. The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.
[0114] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A vehicle control method, characterized in that, The method includes: Obtain the vehicle's actual speed and expected speed at the target time point; The control force of the vehicle at the target time point is determined based on the target value of the target parameter, the actual speed, and the expected speed; the target value of the target parameter is selected from multiple initial values corresponding to the target parameter based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period. The vehicle is driven according to the control force; The step of determining the vehicle's control force at the target time point based on the target value of the target parameter, the actual speed, and the desired speed includes: The speed tracking error of the vehicle is determined based on the actual speed and the expected speed. Based on the target values of the target parameters and the speed tracking error, determine the design equivalent control rate and the actual equivalent control rate of the vehicle at the target time point; The control force of the vehicle at the target time point is determined based on the design equivalent control rate and the actual equivalent control rate. The target parameters include a first type of parameter and a second type of parameter; The step of determining the design equivalent control rate and actual equivalent control rate of the vehicle at the target time point based on the target value of the target parameter and the speed tracking error includes: Based on the target value of the first type of parameter and the speed tracking error, the terminal sliding surface of the vehicle at the target time point is determined; Based on the terminal sliding surface and the target value of the second type of parameter, the design equivalent control rate of the vehicle at the target time point is determined; The actual equivalent control rate of the vehicle at the target time point is determined based on the air density at the target time point, the frontal area of the vehicle at the target time point, the drag coefficient of the vehicle at the target time point, the mass of the vehicle, the actual speed, the desired speed, the speed tracking error, and the target value of the first type of parameter.
2. The method according to claim 1, characterized in that, Before determining the control force of the vehicle at the target time point based on the target value of the target parameter, the actual speed, and the expected speed, the method further includes: Obtain multiple parameter solutions corresponding to the t-th iteration process; t∈[1,N], where t is an integer and N is the preset maximum number of iterations; the multiple parameter solutions corresponding to the 1st iteration process are randomly generated; each parameter solution includes the initial value of the target parameter; Based on each parameter solution corresponding to the t-th iteration process, the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period are obtained, and the target parameter solution is obtained from the multiple parameter solutions corresponding to the t-th iteration process. If t+1≤N, based on the objective parameter solution corresponding to the t-th iteration process and the firefly optimization algorithm, determine the multiple parameter solutions corresponding to the (t+1)-th iteration process; Increment t by 1, and return to the step of solving the actual reference speed and expected reference speed of the reference vehicle at each time point in the target time period according to each parameter solution corresponding to the t-th iteration process, and obtaining the target parameter solution from the multiple parameter solutions corresponding to the t-th iteration process, until t+1>N, and obtain the initial value of the target parameter from the target parameter solution corresponding to the last iteration process as the target value of the target parameter.
3. The method according to claim 2, characterized in that, The step of obtaining the target parameter solution from multiple parameter solutions corresponding to the t-th iteration process, based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period according to each parameter solution corresponding to the t-th iteration process, includes: For each parameter solution corresponding to the t-th iteration process, the speed tracking error of the reference vehicle at each time point in the target time period is determined based on the actual reference speed and expected reference speed of the reference vehicle at each time point in the target time period under the parameter solution. Based on each parameter solution corresponding to the t-th iteration process, the speed tracking error of the reference vehicle at each time point within the target time period is calculated, and the target parameter solution is obtained from the multiple parameter solutions under the t-th iteration process.
4. The method according to claim 3, characterized in that, The step of solving the speed tracking error of the reference vehicle at each time point within the target time period according to each parameter solution corresponding to the t-th iteration process, and obtaining the target parameter solution from multiple parameter solutions under the t-th iteration process, includes: For each parameter solution corresponding to the t-th iteration process, the maximum absolute value of the speed tracking error and the cumulative speed tracking error of the reference vehicle within the target time period are weighted and summed to obtain the target calculation result for each parameter solution corresponding to the t-th iteration process; the cumulative speed tracking error is the cumulative result of the absolute value of the speed tracking error of the reference vehicle within the target time period; The parameter solution with the lowest target calculation result is obtained from the multiple parameter solutions under the t-th iteration process and used as the target parameter solution corresponding to the t-th iteration process.
5. The method according to claim 2, characterized in that, Before obtaining the target parameter solution from the multiple parameter solutions corresponding to the t-th iteration process by solving the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period according to each parameter solution corresponding to the t-th iteration process, the method further includes: The actual simulated speed at the p-th time point within the target time period is obtained as the reference vehicle's actual reference speed at the p-th time point, and the expected simulated speed is obtained as the expected reference speed; p∈[1,M], where p is an integer and M is the number of time points within the target time period; the actual simulated speed at the first time point is zero; the expected simulated speed at the p-th time point is sampled from the preset expected simulated speed curve; For each parameter solution corresponding to the t-th iteration process, the control force at the p-th time point is determined based on the actual reference velocity and the expected reference velocity at the p-th time point under the parameter solution. Based on the correspondence between preset control force and preset acceleration, the acceleration corresponding to the control force at the p-th time point under the parameter solution is obtained and used as the acceleration at the p-th time point under the parameter solution; the preset acceleration corresponding to the preset control force is the acceleration of the target vehicle when the target vehicle is controlled according to the preset control force during the driving process; If p+1≤M, the actual reference velocity at the (p+1)th time point is determined by solving the acceleration at the p-th time point based on the parameters. Increment p by 1, return to execute the step of each parameter solution corresponding to the t-th iteration process, determine the control force at the p-th time point based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period based on the parameter solution, until p+1>M, and obtain the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period based on the parameter solution of each parameter solution corresponding to the t-th iteration process.
6. A vehicle control device, characterized in that, The device includes: The acquisition module is used to obtain the vehicle's actual speed and expected speed at the target time point; The determination module is used to determine the control force of the vehicle at the target time point based on the target value of the target parameter, the actual speed, and the expected speed; the target parameter includes a first type of parameter and a second type of parameter, and the target value of the target parameter is selected from multiple initial values corresponding to the target parameter based on the actual reference speed and expected reference speed of the reference vehicle at each time point within the target time period; The control module is used to control the vehicle's movement according to the control force; The determining module includes: The first determining unit is used to determine the speed tracking error of the vehicle based on the actual speed and the expected speed. The second determining unit is used to determine the design equivalent control rate and the actual equivalent control rate of the vehicle at the target time point based on the target value of the target parameter and the speed tracking error. The third determining unit is used to determine the control force of the vehicle at the target time point based on the design equivalent control rate and the actual equivalent control rate. The second determining unit includes: The first determining subunit is used to determine the terminal sliding surface of the vehicle at the target time point based on the target value of the first type of parameter and the speed tracking error. The second determining subunit is used to determine the design equivalent control rate of the vehicle at the target time point based on the terminal sliding surface and the target value of the second type of parameter. The third determining subunit is used to determine the actual equivalent control rate of the vehicle at the target time point based on the air density at the target time point, the frontal area of the vehicle at the target time point, the wind resistance coefficient of the vehicle at the target time point, the mass of the vehicle, the actual speed, the desired speed, the speed tracking error, and the target value of the first type of parameters.
7. A vehicle, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores processor-executable program code, which, when executed by the processor, causes the processor to perform the method according to any one of claims 1-5.
Citation Information
Patent Citations
Vehicle control method and device and electronic equipment
CN114919423A
Automatic driving system, machine readable storage medium and device for host vehicle
CN117022255A
