Vehicle control method and device, electronic equipment and storage medium
By acquiring and filtering the visual driving parameters of the lane centerline, and calculating and updating the steering wheel angle control, the accuracy of lane centering control and the stability of autonomous driving are solved, achieving higher control accuracy and stability.
Patent Information
- Application Number
- CN202310986471.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-08-07
AI Technical Summary
Existing technologies cannot guarantee the accuracy of lane centering control and the stability of autonomous vehicles.
By acquiring the observed values of the visual driving parameters at the current moment under the expected trajectory, using the center line of the lane as the reference, the predicted values of the visual driving parameters at the next moment are calculated. The observed values and predicted values are then filtered and updated. Based on the updated observed values, the current steering wheel angle control value is calculated to control the vehicle to travel along the center line of the lane.
It improves the accuracy of lane centering control and the stability of autonomous vehicles, avoiding control inaccuracies and instabilities caused by inaccurate observations.
Smart Images

Figure CN116985796B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of autonomous driving technology, and in particular to a vehicle control method, device, electronic device, and storage medium. Background Technology
[0002] With the development of autonomous driving technology, the application of lane centering control for vehicles through autonomous driving is becoming more and more widespread.
[0003] Existing technologies primarily rely on data collected by cameras to control autonomous vehicles to stay centered in their lanes.
[0004] However, it is difficult to guarantee the accuracy, reliability, and stability of lane centering control and autonomous vehicles. Summary of the Invention
[0005] This invention provides a vehicle control method, device, electronic device, and storage medium, which improves the accuracy of vehicle lane centering control and the stability of autonomous vehicles.
[0006] According to one aspect of the present invention, a vehicle control method is provided, comprising:
[0007] The observation values of the visual driving parameters at the current moment are obtained with the lane centerline as the expected trajectory; wherein, the driving parameters are obtained by real-time acquisition and fitting through an on-board image acquisition device;
[0008] Based on the observed values of the visual driving parameters at the current moment, calculate the predicted values of the visual driving parameters at the next moment;
[0009] The observed values and the predicted values are filtered to obtain the filtering result, and the observed values are then updated.
[0010] The current steering wheel angle control value is calculated based on the updated observation value, and the current vehicle is controlled to stay centered in the current lane based on the current steering wheel angle control value.
[0011] According to another aspect of the present invention, a vehicle control device is provided, comprising:
[0012] The observation acquisition module is used to acquire the observation values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory; wherein, the driving parameters are acquired and fitted in real time by an on-board image acquisition device;
[0013] The prediction value calculation module is used to calculate the predicted value of the visual driving parameters at the next moment based on the observed value of the visual driving parameters at the current moment.
[0014] An observation update module is used to filter the observed values and the predicted values to obtain a filtering result and update the observed values.
[0015] The current vehicle control module is used to calculate the current steering wheel angle control value based on the updated observation value, and control the current vehicle to drive in the center of the current lane based on the current steering wheel angle control value.
[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0017] At least one processor; and
[0018] A memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the vehicle control method according to any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the vehicle control method according to any embodiment of the present invention.
[0021] The technical solution of this invention obtains the observed values of visual driving parameters at the current moment under the expected trajectory with the lane centerline as the target. These driving parameters are obtained through real-time acquisition and fitting by an onboard image acquisition device. Based on the observed values of the visual driving parameters at the current moment, the predicted values of the visual driving parameters for the next moment are calculated. The observed values and predicted values are filtered to obtain the filtered results, and the observed values are updated. Based on the updated observed values, the current steering wheel angle control amount is calculated, and the current vehicle is controlled to stay centered in the current lane based on the current steering wheel angle control amount. This solves the problem of difficulty in ensuring the accuracy, reliability, and stability of lane centering control for autonomous vehicles, thus improving the accuracy, reliability, and stability of lane centering control for autonomous vehicles.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, 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 the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart of a vehicle control method provided according to Embodiment 1 of the present invention;
[0025] Figure 2 This is a flowchart of a vehicle control method provided according to Embodiment 2 of the present invention;
[0026] Figure 3 This is a schematic diagram of the structure of a vehicle control device according to Embodiment 3 of the present invention;
[0027] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the vehicle control method of this invention. Detailed Implementation
[0028] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0030] Example 1
[0031] Figure 1This is a flowchart illustrating a vehicle control method according to Embodiment 1 of the present invention. This embodiment of the invention is applicable to situations involving vehicle control. The method can be executed by a vehicle control device, which can be implemented in hardware and / or software and can be configured in an electronic device that carries vehicle control functions.
[0032] See Figure 1 The vehicle control method shown includes:
[0033] S110. Obtain the observed values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory; wherein, the visual driving parameters are obtained by real-time acquisition and fitting through the on-board image acquisition device.
[0034] Using the lane centerline as the expected trajectory can be understood as driving in the center. Visual driving parameters can be the driving parameters for the lane centerline. These visual driving parameters can be used to control the vehicle's centering. The visual driving parameters can be obtained in real-time through an onboard image acquisition device, which can be an onboard camera. Optionally, the lane centerline obtained by the onboard image acquisition device in real-time can be a cubic polynomial. For example, at position x in front of the vehicle, the coordinates of the lane centerline point can be represented as (x, C0 + C1*x + C2*x). 2 +C3*x 3 The visual driving parameters are defined as follows: C0, C1, C2, and C3 are observed values of visual driving parameters. C0 represents the degree of deviation of the lane line from the vehicle-mounted image acquisition device along the direction perpendicular to the vehicle's orientation; C1 represents the degree of deviation of the lane line relative to the vehicle; C2 represents the lane line curvature; and C3 represents the rate of change of lane line curvature. Accordingly, the visual driving parameters may include at least one of the following: the degree of deviation of the lane line from the vehicle-mounted image acquisition device along the direction perpendicular to the vehicle's orientation; the degree of deviation of the lane line relative to the vehicle's orientation; the lane line curvature; and the rate of change of lane line curvature. Specifically, the degree of deviation of the lane line from the vehicle-mounted image acquisition device along the direction perpendicular to the vehicle's orientation may include the deviation distance or the deviation angle. The degree of deviation of the lane line relative to the vehicle may include the deviation distance or the lane line's orientation angle relative to the vehicle. The observed values of the visual driving parameters can be real-time acquired values.
[0035] Specifically, it can obtain the observation values of visual driving parameters at the current moment under the expected trajectory, which are obtained by real-time acquisition and fitting of the vehicle-mounted image acquisition equipment, with the lane centerline as the target trajectory.
[0036] S120. Based on the observed values of the visual driving parameters at the current moment, calculate the predicted values of the visual driving parameters at the next moment.
[0037] Specifically, the offset between the predicted and observed values can be calculated based on the time difference between the next and current moments, the current vehicle speed, and / or the current vehicle direction. The observed visual driving parameters at the current moment are summed with the offset to calculate the predicted visual driving parameters for the next moment.
[0038] For example, visual driving parameters may include the degree of deviation of the lane line from the onboard image acquisition device along the direction perpendicular to the vehicle's orientation, the degree of deviation of the lane line relative to the vehicle, the lane line curvature, and the rate of change of lane line curvature.
[0039] The predicted value of the rate of change of lane curvature at the next moment can be calculated using the following formula:
[0040] C 3pre =C3;
[0041] In the formula, C 3pre C1 is the predicted value of the lane curvature change rate at the next moment; C2 is the observed value of the lane curvature change rate at the current moment.
[0042] The following formula can be used to calculate the predicted value of the lane curvature at the next moment:
[0043] C 2pre =C2+θ3dx·C 3pre ;
[0044] In the formula, C 2pre C1 is the predicted lane curvature at the next time step; C2 is the observed lane curvature at the current time step; θ3 is the scaling factor; dx is the distance the vehicle has traveled between the next time step and the current time step; C 3pre This is the predicted rate of change of lane curvature at the next moment.
[0045] The following formula can be used to calculate the predicted deviation of the lane line from the vehicle at the next moment:
[0046] C 1pre =C1+θ2dx·C 2pre +θ3dx 2 ·C 3pre ;
[0047] In the formula, C 1pre C1 is the predicted value of the lane line deviation relative to the vehicle at the next moment; C2 is the observed value of the lane line deviation relative to the vehicle at the current moment; C3 is the predicted value of the lane line deviation relative to the vehicle at the next moment. 2pre θ1 is the predicted value of the lane curvature at the next moment; θ2 and θ3 are scaling factors; dx is the distance the vehicle has traveled between the next moment and the current moment; C 3pre This is the predicted rate of change of lane curvature at the next moment.
[0048] The following formula can be used to calculate the predicted deviation of the lane line from the vehicle's image acquisition device along the direction perpendicular to the vehicle's orientation at the next moment:
[0049] C 0pre =C0+θ1dx·C 1pre +θ2dx 2 ·C 2pre +θ3dx 3 ·C 3pre ;
[0050] In the formula, C 0pre C0 is the predicted value of the deviation of the lane line from the vehicle's image acquisition device along the direction perpendicular to the vehicle's orientation at the next moment; C0 is the observed value of the deviation of the lane line from the vehicle's image acquisition device along the direction perpendicular to the vehicle's orientation at the current moment; C1 1pre C is the predicted value of the lane line deviation relative to the vehicle at the next moment; 2pre θ1, θ2, and θ3 are the predicted values of the lane curvature at the next time step; dx is the distance the vehicle has traveled between the next and current time steps; C 3pre This is the predicted rate of change of lane curvature at the next moment.
[0051] S130. Filter the observed and predicted values to obtain the filtering results, and update the observed values.
[0052] Specifically, Kalman filtering or Wiener filtering can be applied to the observed and predicted values to obtain the filtering results and update the observed values.
[0053] S140. Calculate the current steering wheel angle control value based on the updated observation value, and control the current vehicle to drive along the center line of the lane based on the current steering wheel angle control value.
[0054] The current steering wheel angle control value can be the steering wheel angle required to control the current vehicle to travel along the center line of the lane.
[0055] Specifically, the aiming error can be calculated based on the updated observations, and the current steering wheel angle control value can be calculated based on the aiming error and the vehicle's kinematics. The difference between the current steering wheel angle control value and the actual steering wheel angle is calculated and input into the vehicle's PID controller. The PID controller is then used to perform closed-loop control of the steering wheel angle to keep the vehicle traveling along the lane centerline.
[0056] For example, the following steps can be used to achieve centering control of the current vehicle:
[0057] S141. The aiming distance can be determined based on the lane curvature and vehicle speed. The aiming distance increases proportionally with vehicle speed and decreases inversely with road curvature. Optionally, the aiming distance setting can also be obtained by calibrating the current vehicle.
[0058] S142. The following formula can be used to calculate the aiming error:
[0059]
[0060] In the formula, error represents the aiming error; C0, C1, C2, and C3 are the observed values of the updated visual driving parameters at the current moment; where C0 is the observed value of the deviation of the lane line from the vehicle image acquisition device along the direction perpendicular to the vehicle's orientation at the current moment; C1 is the observed value of the deviation of the lane line relative to the vehicle at the current moment; C2 is the observed value of the lane line curvature at the current moment; C3 is the observed value of the rate of change of the lane line curvature at the current moment; X pre This is the pre-aiming distance.
[0061] S143. The following formula can be used to calculate the current steering wheel angle control amount based on the anti-aiming error and the vehicle's kinematics:
[0062]
[0063]
[0064] In the formula, error is the aiming error; v0 is the lateral vehicle speed; v is the longitudinal vehicle speed; a is the desired lateral acceleration; X pre is the aiming distance; SWA is the current steering wheel angle control value; i is the steering gear ratio; L is the wheelbase.
[0065] Step S144: The difference between the current steering wheel angle control value and the current actual steering wheel angle can be input into the PID (Process Identifier) controller. The PID controller can be used to perform closed-loop control of the steering wheel angle. Optionally, the PID controller parameters can be obtained by calibrating the current vehicle.
[0066] The technical solution of this invention obtains the observed values of visual driving parameters at the current moment with the lane centerline as the expected trajectory. These driving parameters are obtained through real-time acquisition and fitting by an onboard image acquisition device. Based on the observed values of the visual driving parameters at the current moment, the predicted values of the visual driving parameters for the next moment are calculated. The observed values and predicted values are filtered to obtain the filtered result, and the observed values are updated. Based on the updated observed values, the current steering wheel angle control amount is calculated, and the current vehicle is controlled to drive along the lane centerline based on the current steering wheel angle control amount. Compared to directly controlling the vehicle to stay centered based on the visual driving parameters, by filtering the observed values of the visual driving parameters at the current moment and the predicted values of the visual driving parameters for the next moment, updating the observed values, and controlling the current vehicle to stay centered based on the updated observed values, this method avoids the problem of inaccurate observed values causing difficulties in ensuring the accuracy, reliability, and stability of lane centering control and autonomous driving vehicles. This improves the accuracy, reliability, and stability of lane centering control and autonomous driving vehicles.
[0067] In an optional embodiment of the present invention, obtaining the observed values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory includes: obtaining the observed values of the visual driving parameters of the vehicle relative to the two lane lines of the current lane at the current moment, as well as the observation accuracy information of the two lane lines; when the observation accuracy information of the two lane lines is greater than or equal to a preset observation accuracy information threshold, calculating the average value of the observed values of the visual driving parameters of the two lane lines to obtain the observed values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory.
[0068] The current lane includes two lane lines, which can be understood as having corresponding lane lines on both the left and right sides of the current vehicle. Observation accuracy information refers to the accuracy of the visual driving parameters observed by the onboard image acquisition equipment for a single lane line. Both lane lines of the current lane have corresponding observation accuracy information. Optionally, the observation accuracy information can be numerical or alphanumeric. Different numerical values or alphanumeric values, from low to high, represent different levels of accuracy. The preset observation accuracy information threshold can be a pre-defined minimum value for observation accuracy information. The preset observation accuracy information threshold can be set and adjusted based on the experience of technical personnel.
[0069] Specifically, the system can obtain the observed values of the visual driving parameters of the vehicle relative to the two lane lines of the current lane at the current moment, as well as the observation accuracy information corresponding to the two lane lines. Each observation accuracy information is compared with a preset observation accuracy information threshold. When the observation accuracy information of the two lane lines is greater than or equal to the preset observation accuracy information threshold, the average value of the observed values of the visual driving parameters of the two lane lines can be calculated to obtain the observed values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory.
[0070] For example, the observation accuracy information can include 0, 1, 2, 3, and 4. This can be understood as the accuracy of the observation values, from smallest to largest, corresponding to 0, 1, 2, 3, and 4 respectively. The preset observation accuracy information threshold can be 2. The observed values of the visual driving parameters of the vehicle relative to the two lane lines of the current lane at the current moment, as well as the observation accuracy information corresponding to the two lane lines, can be obtained. If the observation accuracy information corresponding to both lane lines is greater than or equal to 2, the average of the observed values of the visual driving parameters of the two lane lines can be calculated to obtain the observed values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory.
[0071] This solution enables preliminary detection of the accuracy of observed visual driving parameters, ensuring the accuracy of these observations and thereby improving the accuracy, reliability, and stability of lane centering control and autonomous vehicles.
[0072] In an optional embodiment of the present invention, the method further includes: when either of the observation accuracy information of the two lane lines is less than a preset observation accuracy information threshold, obtaining the observation value of the visual driving parameters at the previous moment and determining it as the observation value of the visual driving parameters at the current moment.
[0073] Specifically, if the accuracy of either lane observation is less than a preset accuracy threshold, the observed value of the visual driving parameters from the previous moment can be obtained. This observed value is then used as the observed value for the visual driving parameters at the current moment.
[0074] Referring to the example above, if either of the accurate observations for the two lane lines is less than 2, then the observed value of the visual driving parameters at the previous moment is obtained. This observed value of the visual driving parameters at the previous moment is then used as the observed value of the visual driving parameters at the current moment.
[0075] This solution improves the fault tolerance of vehicle control while avoiding the use of low-accuracy visual driving parameter observations for lane centering control, thus ensuring the accuracy, reliability, and stability of lane centering control and autonomous vehicles.
[0076] Example 2
[0077] Figure 2This is a flowchart of a vehicle control method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment specifies "filtering the observed and predicted values to obtain the filtered result and updating the observed values" as "obtaining the first historical driving trajectory generated by the current vehicle based on positioning; obtaining the second historical driving trajectory generated by the current vehicle based on the onboard image acquisition device; calculating the maximum value of the lateral position deviation between the first and second historical driving trajectories at the same longitudinal position; when the maximum value of the lateral position deviation is less than or equal to a first set threshold, filtering the observed and predicted values to obtain the filtered result and updating the observed values." This achieves pre-detection of the accuracy of the onboard image acquisition device, further ensuring the accuracy of the updated observed values, thereby improving the accuracy, reliability, and stability of lane centering control and autonomous vehicles. It should be noted that parts not detailed in this embodiment can be found in the descriptions of other embodiments.
[0078] See Figure 2 The vehicle control method shown includes:
[0079] S210. Obtain the observed values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory; wherein, the driving parameters are obtained by real-time acquisition and fitting through on-board image acquisition equipment.
[0080] S220. Based on the observed values of the visual driving parameters at the current moment, calculate the predicted values of the visual driving parameters at the next moment.
[0081] S230: Obtain the first historical driving trajectory of the current vehicle based on its location.
[0082] The first historical driving trajectory can be a driving trajectory generated based on the current vehicle's location information within a historical time period. The data source for the first historical driving trajectory information is location information. Optionally, during the current vehicle's driving process, the vehicle's location information within a historical time period can be recorded, and the first historical driving trajectory can be generated based on the location information.
[0083] Specifically, it can obtain the first historical driving trajectory of the current vehicle based on its location.
[0084] S240. Obtain the second historical driving trajectory of the current vehicle based on the on-board image acquisition device.
[0085] The second historical driving trajectory can be a driving trajectory fitted based on video data collected by the vehicle's onboard image acquisition device within a historical time period. The data source for the second historical driving trajectory is the video data from the onboard image acquisition device. The first and second historical driving trajectories are within the same time period, both being historical time periods. However, the data sources for the first and second historical driving trajectories are different. The first historical driving trajectory is generated based on positioning, while the second historical driving trajectory is generated based on the onboard image acquisition device.
[0086] Specifically, it can obtain the second historical driving trajectory of the current vehicle based on the on-board image acquisition equipment.
[0087] S250. Calculate the maximum value of the lateral position deviation between the first historical driving trajectory and the second historical driving trajectory at the same longitudinal position.
[0088] Lateral position deviation can be used to characterize the difference between the lateral positions of the first and second historical driving trajectories at the same longitudinal position. The maximum value of the lateral position deviation can be used to characterize the degree of difference between the first and second historical driving trajectories.
[0089] Specifically, the difference between the lateral positions of the first and second historical driving trajectories at various same longitudinal positions can be calculated to obtain the lateral position deviation of the first and second historical driving trajectories at various same longitudinal positions. The lateral position deviations are then compared to determine the maximum value.
[0090] S260. When the maximum value of the lateral position deviation is less than or equal to the first set threshold, the observed value and the predicted value are filtered to obtain the filtering result, and the observed value is updated.
[0091] The first set threshold can be a pre-defined lower limit for lateral position deviation. This first set threshold can be used to detect the accuracy of the vehicle-mounted image acquisition device. If the maximum value of the lateral position deviation is less than or equal to the first set threshold, it can be understood that the accuracy of the data source detected by the positioning data source of the vehicle-mounted image acquisition device is high, and filtering can be used for correction.
[0092] Specifically, when the maximum value of the lateral position deviation is less than or equal to the first set threshold, Kalman filtering or Wiener filtering can be applied to the observed and predicted values to obtain the filtering results, and the observed values can be updated with the filtering results.
[0093] S270. Calculate the current steering wheel angle control value based on the updated observation value, and control the current vehicle to travel along the center line of the lane based on the current steering wheel angle control value.
[0094] The technical solution of this invention involves acquiring observed values of visual driving parameters at the current moment, with the lane centerline as the expected trajectory. These driving parameters are obtained through real-time acquisition and fitting by an onboard image acquisition device. Based on the observed values of the visual driving parameters at the current moment, predicted values of the visual driving parameters for the next moment are calculated. This process yields a first historical driving trajectory generated by the current vehicle's positioning, a second historical driving trajectory generated by the onboard image acquisition device, and the maximum value of the lateral position deviation between the first and second historical driving trajectories at the same longitudinal position. When the maximum value of the lateral position deviation is less than or equal to a first preset threshold... The observed and predicted values are filtered to obtain the filtered result, and the observed values are updated. The current steering wheel angle control value is calculated based on the updated observed values, and the current vehicle is controlled to drive along the center line of the lane based on the current steering wheel angle control value. By using a more accurate positioning data source to pre-detect the maximum value of the lateral position deviation of the on-board image acquisition equipment, and if the accuracy of the on-board image acquisition equipment is sufficient, the observed values are updated only by filtering. This achieves the pre-detection of the accuracy of the on-board image acquisition equipment, further ensuring the accuracy of the updated observed values, thereby improving the accuracy, reliability and stability of lane centering control and autonomous vehicle stability.
[0095] In an optional embodiment of the present invention, the method further includes: when the maximum value of the lateral position deviation is greater than a first preset threshold and less than or equal to a second preset threshold, fitting a first historical driving trajectory to obtain a first observed value of the visual driving parameters for the corresponding historical time period; fitting a second historical driving trajectory to obtain a second observed value of the visual driving parameters for the corresponding historical time period; calculating the difference between the first observed value and the second observed value; correcting the observed value of the visual driving parameters at the current moment and the predicted value of the visual driving parameters at the next moment based on the difference; filtering the corrected observed value and the predicted value to obtain a filtering result, and updating the observed value.
[0096] If the maximum value of the lateral position deviation is greater than the first set threshold but less than or equal to the second set threshold, it can be understood that the vehicle-mounted image acquisition device may be malfunctioning, but it can continue to be used after correction. The first observation value can be the observation value corresponding to the historical time period obtained by fitting the first historical driving trajectory. The second observation value can be the observation value corresponding to the historical time period obtained by fitting the second historical driving trajectory. Both the first and second observation values are observation values obtained by fitting historical driving trajectories. However, the historical driving trajectories on which the first and second observation values are based are different. The difference between the first and second observation values can be understood as the difference between the observation value determined by the positioning-based data source and the observation value determined by the data source based on the vehicle-mounted image acquisition device, that is, the deviation between the positioning-based data source and the data source based on the vehicle-mounted image acquisition device. Compared with the vehicle-mounted image acquisition device, the positioning accuracy is higher. Correcting the observed value of the visual driving parameters at the current moment and the predicted value of the visual driving parameters at the next moment by using the difference can be understood as using a more accurate data source to correct a less accurate data source.
[0097] Specifically, when the maximum value of the lateral position deviation is greater than a first preset threshold but less than or equal to a second preset threshold, a cubic polynomial fitting method can be used to fit the first historical driving trajectory to obtain the first observed value of the visual driving parameters for the corresponding historical time period. Similarly, a cubic polynomial fitting method can be used to fit the second historical driving trajectory to obtain the second observed value of the visual driving parameters for the corresponding historical time period. The difference between the first and second observed values can be calculated, and the observed values of the visual driving parameters at the current moment and the predicted values of the visual driving parameters at the next moment can be corrected based on this difference. The corrected observed values and predicted values can then be filtered to obtain the filtered result, which is used to update the observed values.
[0098] This solution first corrects the positioning source of the less accurate vehicle-mounted image acquisition device by using a more accurate positioning data source. Then, it filters the observed and predicted values to obtain the filtered results and update the observed values. This achieves deviation correction and filtering update of the vehicle-mounted image acquisition device, further improving the accuracy, reliability and stability of lane centering control and autonomous vehicles.
[0099] In an optional embodiment of the present invention, the method further includes: when the maximum value of the lateral position deviation is greater than a second preset threshold, controlling the current vehicle to drive at a constant speed and issuing an alarm message to prompt the driver to take over the current vehicle.
[0100] The second set threshold can be a pre-set upper limit for lateral position deviation. This second set threshold can be used to detect the accuracy of the in-vehicle image acquisition device. The first set threshold is less than the second set threshold. This can be understood as the accuracy of the in-vehicle image acquisition device corresponding to the first set threshold being lower than the accuracy of the in-vehicle image acquisition device corresponding to the first set threshold. If the maximum value of the lateral position deviation is greater than the second set threshold, it can be understood that the accuracy of the data source of the in-vehicle image acquisition device is low (e.g., the in-vehicle image acquisition device is malfunctioning), and correction using filtering methods is insufficient to guarantee vehicle driving safety, requiring the driver to take over the current vehicle. Alarm information can be used to prompt the driver to take over the current vehicle. For example, the alarm information may include alarms emitted by audible and visual alarms and / or seat vibration.
[0101] Specifically, when the maximum value of the lateral position deviation is greater than the second set threshold, the vehicle can be controlled to drive at a constant speed and an alarm message can be issued to prompt the driver to take over the vehicle.
[0102] This solution avoids incorrect lane centering control of vehicles when the accuracy of onboard image acquisition equipment is low, reduces the danger of autonomous vehicle driving, further ensures the accuracy and reliability of lane centering control, and thus improves the safety of autonomous vehicle driving.
[0103] In an optional embodiment of the present invention, the method further includes: when the duration of the alarm message is detected to be greater than or equal to a first preset duration and the driver has not yet taken over the current vehicle, controlling the current vehicle to decelerate and stop.
[0104] The first preset duration can be the pre-set detection duration for alarm information.
[0105] Specifically, if the duration of the alarm message is greater than or equal to the first preset duration and the driver has not yet taken over the vehicle, the driver can control the vehicle to slow down and stop.
[0106] This solution further improves the safety of autonomous vehicles.
[0107] Optionally, the main controller of existing automated driving assistance systems is often configured in the vehicle's image acquisition equipment, such as a front-view camera integrated unit. When the vehicle's image acquisition equipment malfunctions, the necessary main controller is lacking for safety control. The redundant controller mentioned above can be lower in cost and computing power compared to the main controller in the vehicle's image acquisition equipment. Optionally, when the redundant controller detects a main controller malfunction, it can perform function degradation. Optionally, function degradation can be divided into three levels. The first level can issue an audible and visual alarm to remind the driver to take over, while maintaining the steering wheel angle at 0 degrees and the vehicle moving at a constant speed. If the driver still does not take over after more than 2 seconds, the second level of function degradation is entered, adding a seat vibration alarm to remind the driver, while maintaining the steering wheel angle at 0 degrees, the vehicle decelerates, and the hazard lights are activated. If the driver still does not take over after more than 4 seconds, the third level of function degradation is entered, increasing the intensity of the audible and visual alarm and the seat vibration alarm, while maintaining the steering wheel angle at 0 degrees, the vehicle decelerates to a stop at a higher deceleration, and the hazard lights are activated.
[0108] This solution reduces the risk of failure when the main controller of the vehicle image acquisition equipment malfunctions, effectively alerts the driver, and implements a degradation strategy, thereby improving safety.
[0109] Example 3
[0110] Figure 3 This is a schematic diagram of a vehicle control device according to Embodiment 3 of the present invention. This embodiment of the invention is applicable to situations involving vehicle control. The device can execute vehicle control methods and can be implemented in hardware and / or software. The device can be configured in an electronic device that carries vehicle control functions.
[0111] See Figure 3 The vehicle control device shown includes: an observation acquisition module 310, a prediction calculation module 320, an observation update module 330, and a current vehicle control module 340. The observation acquisition module 310 acquires the observation values of the visual driving parameters at the current moment, with the lane centerline as the expected trajectory; the driving parameters are obtained by real-time acquisition and fitting using an onboard image acquisition device. The prediction calculation module 320 calculates the predicted values of the visual driving parameters for the next moment based on the observed values of the visual driving parameters at the current moment. The observation update module 330 filters the observed values and predicted values to obtain the filtered results and update the observed values. The current vehicle control module 340 calculates the current steering wheel angle control amount based on the updated observation values and controls the current vehicle to travel along the lane centerline based on the current steering wheel angle control amount.
[0112] The technical solution of this invention obtains the observed values of visual driving parameters at the current moment with the lane centerline as the expected trajectory. These driving parameters are obtained through real-time acquisition and fitting by an onboard image acquisition device. Based on the observed values of the visual driving parameters at the current moment, the predicted values of the visual driving parameters for the next moment are calculated. The observed values and predicted values are filtered to obtain the filtered result, and the observed values are updated. Based on the updated observed values, the current steering wheel angle control amount is calculated, and the current vehicle is controlled to drive along the lane centerline based on the current steering wheel angle control amount. Compared to directly controlling the vehicle to stay centered based on the visual driving parameters, by filtering the observed values of the visual driving parameters at the current moment and the predicted values of the visual driving parameters for the next moment, updating the observed values, and controlling the current vehicle to stay centered based on the updated observed values, this method avoids the problem of inaccurate observed values causing difficulties in ensuring the accuracy, reliability, and stability of lane centering control and autonomous driving vehicles. This improves the accuracy, reliability, and stability of lane centering control and autonomous driving vehicles.
[0113] In an optional embodiment of the present invention, the observation update module 330 includes: a first historical driving trajectory acquisition unit, used to acquire a first historical driving trajectory generated by the current vehicle based on positioning; a second historical driving trajectory acquisition unit, used to acquire a second historical driving trajectory generated by the current vehicle based on an on-board image acquisition device; a maximum lateral position deviation calculation unit, used to calculate the maximum lateral position deviation between the first historical driving trajectory and the second historical driving trajectory at the same longitudinal position; and a first observation update unit, used to filter the observation and the predicted value when the maximum lateral position deviation is less than or equal to a first set threshold, to obtain a filtering result and update the observation for the first time.
[0114] In an optional embodiment of the present invention, the observation update module 330 further includes: a first observation determination unit, configured to fit a first historical driving trajectory to obtain a first observation value of visual driving parameters for a corresponding historical time period when the maximum value of the lateral position deviation is greater than a first preset threshold and less than or equal to a second preset threshold; a second observation determination unit, configured to fit a second historical driving trajectory to obtain a second observation value of visual driving parameters for a corresponding historical time period; an observation difference calculation unit, configured to calculate the difference between the first observation value and the second observation value; an observation correction unit, configured to correct the observed value of visual driving parameters at the current moment and the predicted value of visual driving parameters at the next moment based on the difference; and a second observation update unit, configured to filter the corrected observation value and the predicted value to obtain a filtering result and update the observation value.
[0115] In an optional embodiment of the present invention, the observation update module 330 further includes: an alarm information sending unit, used to control the current vehicle to drive at a constant speed and issue an alarm information when the maximum value of the lateral position deviation is greater than a second preset threshold, so as to prompt the driver to take over the current vehicle.
[0116] In an optional embodiment of the present invention, the observation update module 330 further includes: a deceleration and parking control unit, used to control the current vehicle to decelerate and stop when the duration of the alarm message is greater than or equal to a first preset duration and the driver has not yet taken over the current vehicle.
[0117] In an optional embodiment of the present invention, the observation value acquisition module 310 includes: an observation value acquisition unit, used to acquire the observation values of the visual driving parameters of the vehicle relative to the two lane lines of the current lane at the current moment, and the observation accuracy information of the two lane lines; and a first observation value acquisition unit, used to calculate the average value of the observation values of the visual driving parameters of the two lane lines when the observation accuracy information of the two lane lines is greater than or equal to a preset observation accuracy information threshold, so as to obtain the observation values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory.
[0118] In an optional embodiment of the present invention, the observation value acquisition module 310 further includes: a second observation value acquisition unit, used to acquire the observation value of the visual driving parameters at the previous moment and determine it as the observation value of the visual driving parameters at the current moment when either of the observation accuracy information of the two lane lines is less than a preset observation accuracy information threshold.
[0119] The vehicle control device provided in the embodiments of the present invention can execute the vehicle control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0120] The acquisition, storage, and application of the observed values of visual driving parameters at the current moment with the lane centerline as the expected trajectory, the first historical driving trajectory generated by the current vehicle based on positioning, the second historical driving trajectory generated by the current vehicle based on the camera, and the observed values of driving parameters of the vehicle relative to the two lane lines of the current lane at the current moment in the technical solution of the present invention all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0121] Example 4
[0122] Figure 4A schematic diagram of an electronic device 400 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0123] like Figure 4 As shown, the electronic device 400 includes at least one processor 401 and a memory, such as a read-only memory (ROM) 402 and a random access memory (RAM) 403, communicatively connected to the at least one processor 401. The memory stores computer programs executable by the at least one processor. The processor 401 can perform various appropriate actions and processes based on the computer program stored in the ROM 402 or loaded into the RAM 403 from storage unit 408. The RAM 403 may also store various programs and data required for the operation of the electronic device 400. The processor 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0124] Multiple components in electronic device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of displays, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows electronic device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0125] Processor 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 401 performs the various methods and processes described above, such as vehicle control methods.
[0126] In some embodiments, the vehicle control method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by processor 401, one or more steps of the vehicle control method described above may be performed. Alternatively, in other embodiments, processor 401 may be configured to perform the vehicle control method by any other suitable means (e.g., by means of firmware).
[0127] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0128] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0129] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0130] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0131] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0132] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system. It addresses the shortcomings of traditional physical hosts and VPS (Virtual Private Server) services, such as high management difficulty and weak business scalability.
[0133] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0134] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A vehicle control method, characterized in that, The method includes: The observation values of the visual driving parameters at the current moment are obtained with the lane centerline as the expected trajectory; wherein, the driving parameters are obtained by real-time acquisition and fitting through an on-board image acquisition device; Based on the observed values of the visual driving parameters at the current moment, calculate the predicted values of the visual driving parameters at the next moment; The observed values and the predicted values are filtered to obtain the filtering result, and the observed values are then updated. The current steering wheel angle control value is calculated based on the updated observation value, and the current vehicle is controlled to travel along the center line of the lane based on the current steering wheel angle control value. The step of filtering the observed values and the predicted values to obtain a filtering result and updating the observed values includes: Obtain the first historical driving trajectory of the current vehicle based on its location; Obtain the second historical driving trajectory of the current vehicle based on the on-board image acquisition equipment; Calculate the maximum lateral position deviation between the first historical driving trajectory and the second historical driving trajectory at the same longitudinal position; When the maximum value of the lateral position deviation is less than or equal to a first set threshold, the observed value and the predicted value are filtered to obtain the filtering result, and the observed value is updated. When the maximum value of the lateral position deviation is greater than a first set threshold and less than or equal to a second set threshold, the first historical driving trajectory is fitted to obtain the first observation value of the visual driving parameters for the corresponding historical time period. The second historical driving trajectory is fitted to obtain the second observation value of the visual driving parameters for the corresponding historical time period; Calculate the difference between the first observation and the second observation; The observed values of the visual driving parameters at the current moment and the predicted values of the visual driving parameters at the next moment are corrected based on the difference. The corrected observed values and the predicted values are filtered to obtain the filtering result, and the observed values are then updated. When the maximum value of the lateral position deviation is greater than the second preset threshold, the current vehicle is controlled to travel at a constant speed, and an alarm message is issued to prompt the driver to take over the current vehicle.
2. The method according to claim 1, characterized in that, Also includes: If the duration of the alarm message is greater than or equal to a first preset duration and the driver has not yet taken over the vehicle, the vehicle will be controlled to decelerate and stop.
3. The method according to claim 1, characterized in that, The acquisition of observations of visual driving parameters at the current moment, with the lane centerline as the expected trajectory, includes: Obtain the observed values of the visual driving parameters of the vehicle relative to the two lane lines of the current lane at the current moment, as well as the accurate observation information of the two lane lines; When the observation accuracy information of the two lane lines is greater than or equal to the preset observation accuracy information threshold, the average value of the observed values of the visual driving parameters of the two lane lines is calculated to obtain the observed values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory.
4. The method according to claim 3, characterized in that, Also includes: If either of the two lane line observation accuracy information is less than a preset observation accuracy information threshold, the observation value of the visual driving parameters at the previous moment is obtained and determined as the observation value of the visual driving parameters at the current moment.
5. A vehicle control device, characterized in that, The device includes: The observation acquisition module is used to acquire the observation values of the visual driving parameters at the current moment with the lane centerline as the expected trajectory; wherein, the driving parameters are acquired and fitted in real time by an on-board image acquisition device; The prediction value calculation module is used to calculate the predicted value of the visual driving parameters at the next moment based on the observed value of the visual driving parameters at the current moment. An observation update module is used to filter the observed values and the predicted values to obtain a filtering result and update the observed values. The current vehicle control module is used to calculate the current steering wheel angle control value based on the updated observation value, and control the current vehicle to drive in the center along the current lane based on the current steering wheel angle control value; The observation update module includes: The first historical driving trajectory acquisition unit is used to acquire the first historical driving trajectory of the current vehicle based on its location. The second historical driving trajectory acquisition unit is used to acquire the second historical driving trajectory of the current vehicle based on the vehicle-mounted image acquisition device. The maximum lateral position deviation calculation unit is used to calculate the maximum lateral position deviation between the first historical driving trajectory and the second historical driving trajectory at the same longitudinal position; The first observation update unit is used to filter the observed value and the predicted value to obtain the filtering result and update the observed value when the maximum value of the lateral position deviation is less than or equal to a first set threshold. The first observation value determination unit is used to fit the first historical driving trajectory when the maximum value of the lateral position deviation is greater than a first set threshold and less than or equal to a second set threshold, so as to obtain the first observation value of the visual driving parameters for the corresponding historical time period. The second observation value determination unit is used to fit the second historical driving trajectory to obtain the second observation value of the visual driving parameters for the corresponding historical time period. An observation difference calculation unit is used to calculate the difference between the first observation and the second observation; An observation correction unit is used to correct the observed values of the visual driving parameters at the current moment and the predicted values of the visual driving parameters at the next moment based on the difference. The second observation update unit is used to filter the corrected observation and the predicted value to obtain the filtering result and update the observation; The alarm information sending unit is used to control the current vehicle to drive at a constant speed and issue an alarm information when the maximum value of the lateral position deviation is greater than a second preset threshold, so as to prompt the driver to take over the current vehicle.
6. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the vehicle control method according to any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the vehicle control method according to any one of claims 1-4.
Citation Information
Patent Citations
Road shape prediction device
JP2012252406A
Method and apparatus for predicting drivable lane
WO2023092451A1
