Vehicle control method and device
By installing millimeter-wave radar on the vehicle to acquire real-time motion data of vehicles ahead, filtering out vehicles that may affect the vehicle and controlling their speed to maintain a safe distance, the problem of inaccurate vehicle control in existing technologies is solved, thus improving safety.
Patent Information
- Application Number
- CN202211145632.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-09-20
AI Technical Summary
Existing vehicle control technologies are susceptible to unforeseen circumstances and environmental factors, leading to inaccurate control and potential safety hazards.
By installing millimeter-wave radar on the vehicle to acquire real-time motion data of vehicles ahead, target vehicles that may affect the vehicle's driving can be screened out. Based on the motion data of the target vehicles and the vehicle's own motion data, the target speed can be determined, and the vehicle can be controlled to maintain a safe distance.
It enables precise control of vehicles, improves control accuracy, and reduces the occurrence of safety accidents.
Smart Images

Figure CN115675462B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of driver assistance, and more specifically, to a vehicle control method and apparatus. Background Technology
[0002] Currently, with the rapid growth of the national economy and the significant improvement in people's living standards, more and more people are choosing to travel by car. However, the surge in the number of cars has led to frequent road congestion. Existing following technology mainly relies on manual control, which is highly susceptible to unexpected situations and environmental factors. This results in inaccurate vehicle control and increases the risk of accidents.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides a vehicle control method and apparatus to at least solve the technical problem of low control accuracy in related technologies for controlling vehicles.
[0005] According to one aspect of the present invention, a vehicle control method is provided, comprising: acquiring motion data of a second vehicle sensed by a millimeter-wave radar installed on the first vehicle during the driving of a first vehicle, wherein the second vehicle is used to characterize a vehicle driving in front of the first vehicle; filtering the second vehicles based on the motion data of the second vehicle to obtain a target vehicle, wherein the target vehicle is used to characterize a vehicle among the second vehicles that has an impact on the driving of the first vehicle; determining a target speed of the first vehicle based on the motion data of the target vehicle and the motion data of the first vehicle, wherein the target speed is used to control the distance between the first vehicle and the target vehicle to be greater than or equal to a safe distance; and controlling the first vehicle based on the target speed.
[0006] Optionally, the motion data of the second vehicle is used to filter the second vehicle to obtain the target vehicle, including: filtering out motion data of the second vehicle that does not meet the preset conditions to obtain the motion data of the third vehicle; processing the motion data of the third vehicle to obtain the target lateral distance of the third vehicle, wherein the target lateral distance is used to characterize the maximum lateral distance by which the third vehicle affects the driving of the first vehicle; and filtering the motion data of the third vehicle based on the target lateral distance to obtain the target vehicle.
[0007] Optionally, filtering out motion data from the motion data of the second vehicle that does not meet the preset conditions to obtain motion data of the third vehicle includes: comparing the lateral distance in the motion data of the second vehicle with a first preset distance, and comparing the longitudinal distance in the motion data of the second vehicle with a second preset distance; in response to the lateral distance in the motion data of the fourth vehicle being greater than or equal to the first preset distance, or the longitudinal distance in the motion data of the fourth vehicle being greater than or equal to the second preset distance, determining that the motion data of the fourth vehicle does not meet the preset conditions; and filtering out the motion data of the fourth vehicle from the motion data of the second vehicle to obtain motion data of the third vehicle.
[0008] Optionally, the second preset distance is determined based on the vehicle speed of the first vehicle.
[0009] Optionally, the motion data of the third vehicle is processed to obtain the target lateral distance of the third vehicle, including: processing the motion data of the third vehicle to determine a target time period, wherein the target time period is used to characterize the time period during which the third vehicle has an impact on the driving of the first vehicle in the longitudinal direction; determining the target lateral distance of the third vehicle based on the target time period and the motion data of the third vehicle; and obtaining the target motion data based on the target lateral distance of the third vehicle.
[0010] Optionally, the motion data of the third vehicle is processed to determine a target time period, including: in response to the longitudinal speed of the third vehicle being greater than a preset speed, determining a target time period based on the longitudinal distance and longitudinal speed of the third vehicle and a second preset distance; in response to the longitudinal speed of the third vehicle being less than a preset speed, determining a target time period based on the longitudinal distance and longitudinal speed of the third vehicle.
[0011] Optionally, the target lateral distance of the third vehicle is determined based on the target time period and the motion data of the third vehicle, including: determining the target lateral distance of the third vehicle based on the target time period, the lateral distance of the third vehicle, and the longitudinal speed.
[0012] Optionally, the motion data of the third vehicle is filtered based on the target lateral distance to obtain the target vehicle, including: obtaining the third vehicle whose target lateral distance is less than a third preset distance to obtain candidate vehicles; and obtaining the vehicle with the smallest longitudinal distance among the candidate vehicles to obtain the target vehicle.
[0013] Optionally, the third preset distance is determined based on the width of the first vehicle.
[0014] Optionally, based on the motion data of the target vehicle and the motion data of the first vehicle, the target speed of the first vehicle is determined, including: constructing kinematic models of the target vehicle and the first vehicle; inputting the longitudinal speed and longitudinal distance of the target vehicle, the vehicle speed of the first vehicle, the preset response time, and the second preset distance into the kinematic model to obtain the target speed.
[0015] Optionally, controlling the first vehicle based on the target speed includes: acquiring the vehicle speed of the first vehicle as sensed by sensors installed on the first vehicle; determining a first control quantity and a second control quantity based on the target speed and the vehicle speed of the first vehicle; controlling the accelerator pedal of the first vehicle based on the first control quantity; and controlling the brake pedal of the first vehicle based on the second control quantity.
[0016] According to another aspect of the present invention, a vehicle control device is also provided, comprising: an acquisition module, configured to acquire motion data of a second vehicle sensed by a millimeter-wave radar installed on the first vehicle during the driving of a first vehicle, wherein the second vehicle is used to characterize a vehicle driving in front of the first vehicle; a filtering module, configured to filter the second vehicle based on the motion data of the second vehicle to obtain a target vehicle, wherein the target vehicle is used to characterize a vehicle among the second vehicles that has an impact on the driving of the first vehicle; a determination module, configured to determine a target speed of the first vehicle based on the motion data of the target vehicle and the motion data of the first vehicle, wherein the target speed is used to control the distance between the first vehicle and the target vehicle to be greater than or equal to a safe distance; and a control module, configured to control the first vehicle based on the target speed.
[0017] According to another aspect of the present invention, a vehicle is also provided, comprising: a millimeter-wave radar for sensing motion data of other vehicles traveling in front of the vehicle during vehicle operation; and a controller connected to the millimeter-wave radar for filtering second vehicles based on motion data of the second vehicle to obtain target vehicles, determining a target speed of the first vehicle based on motion data of the target vehicle and motion data of the first vehicle, and controlling the first vehicle based on the target speed, wherein the target vehicle is used to characterize a vehicle among the second vehicles that has an impact on the driving of the first vehicle, and the target speed is used to control the distance between the first vehicle and the target vehicle to be greater than or equal to a safe distance.
[0018] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform any of the above-described vehicle control methods.
[0019] According to another aspect of the present invention, a processor is also provided, which is used to run a program, wherein the program executes any of the vehicle control methods described above.
[0020] In this embodiment of the invention, during the movement of the first vehicle, motion data of a second vehicle sensed by a millimeter-wave radar installed on the first vehicle is acquired. The second vehicle represents a vehicle traveling in front of the first vehicle. Based on the motion data of the second vehicle, target vehicles are selected, representing vehicles among the second vehicles that affect the movement of the first vehicle. Based on the motion data of the target vehicles and the motion data of the first vehicle, a target speed of the first vehicle is determined, whereby the target speed is used to control the distance between the first vehicle and the target vehicles to be greater than or equal to a safe distance. The first vehicle is then controlled based on the target speed. It is noteworthy that the control of the first vehicle is achieved by real-time acquisition of motion data of target vehicles among the second vehicles that affect the movement of the first vehicle using millimeter-wave radar. This achieves the goal of accurately controlling the first vehicle, thereby improving the control accuracy of the first vehicle and solving the technical problem of low control accuracy in related technologies. Attached Figure Description
[0021] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0022] Figure 1 This is a flowchart of a vehicle control method according to an embodiment of the present invention;
[0023] Figure 2 This is a framework diagram of an optional vehicle following control according to an embodiment of the present invention;
[0024] Figure 3 This is an optional overall block diagram of a vehicle-following system based on millimeter-wave radar according to an embodiment of the present invention;
[0025] Figure 4 This is a flowchart of an optional vehicle-following target selection according to an embodiment of the present invention;
[0026] Figure 5 This is a flowchart of an optional target threat calculation according to an embodiment of the present invention;
[0027] Figure 6 This is a schematic diagram of the structure of a vehicle control device according to an embodiment of the present invention;
[0028] Figure 7 This is a schematic diagram of a vehicle structure according to an embodiment of the present invention. Detailed Implementation
[0029] 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.
[0030] 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.
[0031] Example 1
[0032] According to an embodiment of the present invention, an embodiment of a vehicle control method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0033] Figure 1 This is a flowchart of a vehicle control method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0034] Step S102: During the driving of the first vehicle, the motion data of the second vehicle sensed by the millimeter-wave radar installed on the first vehicle is acquired, wherein the second vehicle is used to represent the vehicle driving in front of the first vehicle.
[0035] The first vehicle mentioned above can be a vehicle being driven by the target, or a vehicle with autonomous driving capabilities driven by the target, but is not limited to these. The target can be the driver of the first vehicle.
[0036] The millimeter-wave radar mentioned above can be any type of radar on a vehicle capable of acquiring motion data; no specific limitation is made in this embodiment. It should be noted that after the millimeter-wave radar acquires motion data, it can transmit the data to the vehicle's control system via the vehicle's controller area network (CAN) bus for processing and analysis, enabling timely and accurate control of the vehicle.
[0037] In one optional embodiment, the radar output is presented in Cluster and Object modes. A Cluster is a radar reflection containing information such as position, velocity, and signal strength, which is updated in each detection cycle. An Object is a radar reflection with historical and dimensional information, composed of a group of tracked Clusters. This embodiment uses the output data of the Object mode as an example, but is not limited to this.
[0038] The second vehicle mentioned above can be any vehicle other than the first vehicle, and can be one or more vehicles. All second vehicles are traveling in front of the first vehicle. It should be noted that because vehicles traveling in front of the first vehicle may suddenly slow down, change lanes, or make a U-turn, which could easily affect the driving safety of the first vehicle, the second vehicle is defined as the vehicle traveling in front of the first vehicle.
[0039] The aforementioned motion data can be various types of data that can affect the driving state of the second vehicle. For example, it can be the longitudinal distance and lateral distance between the second vehicle and the first vehicle, as well as the lateral velocity, longitudinal velocity, lateral acceleration, and longitudinal acceleration of the second vehicle, but it is not limited to these.
[0040] In one optional embodiment, when the first vehicle is driving, a millimeter-wave radar pre-installed on the vehicle can collect motion data of the second vehicle by sending pulses in real time. The second vehicle can be a vehicle driving in front of the first vehicle, and can be one or more vehicles. The specific number is determined by the actual driving environment and is not specifically limited in this embodiment of the invention.
[0041] Table 1
[0042] Signal start bit length Minimum value Maximum value resolution unit Target identifier 0 8 0 255 1 Longitudinal distance 19 13 -500 +1138.2 0.2 m lateral distance 24 11 -204.6 +204.8 0.2 m Longitudinal velocity 46 10 -128.00 127.75 0.25 m / s Lateral velocity 53 9 -64.00 63.75 0.25 m / s
[0043] Table 1 is an optional radar reflection information table with historical and dimensional information according to an embodiment of the present invention. It is a CAN matrix, as shown in Table 1. The CAN matrix message is obtained according to the table header, and the decimal number of the data frame is calculated according to the start bit and length in the table. Then, the decimal value of the physical quantity is calculated according to the following formula:
[0044] Physical quantity = decimal value of data frame * res + offset
[0045] Where res is the resolution of the data volume, and offset is the offset value, with the minimum value being the offset value.
[0046] Obtaining the motion data of the second vehicle using the above methods can provide a data foundation for subsequent selection of target vehicles, thereby ensuring accurate control of the first vehicle based on the motion data of the target vehicle.
[0047] Step S104: Based on the motion data of the second vehicle, the second vehicle is filtered to obtain target vehicles, wherein the target vehicles are used to characterize the second vehicles that have an impact on the driving of the first vehicle.
[0048] Optionally, the target vehicle can be obtained by: filtering out motion data of the second vehicle that does not meet the preset conditions to obtain motion data of the third vehicle; processing the motion data of the third vehicle to obtain the target lateral distance of the third vehicle, wherein the target lateral distance is used to characterize the maximum lateral distance by which the third vehicle affects the driving of the first vehicle; and filtering the motion data of the third vehicle based on the target lateral distance to obtain the target vehicle.
[0049] The aforementioned preset conditions can be set by the user in advance; furthermore, the preset conditions can be conditions set by the user in advance to filter out target vehicles that affect the driving of the first vehicle. The specific preset conditions are determined based on motion data collected by millimeter-wave radar.
[0050] The aforementioned third vehicle can be a vehicle that meets the preset conditions after being filtered by preset conditions. It can be one vehicle or multiple vehicles. The specific number is determined by the actual driving situation and is not specifically limited in this embodiment.
[0051] In one optional embodiment, before filtering the motion data, to prevent abnormal jumps in the data collected by the millimeter-wave radar due to external environmental factors, directly using the jump data would significantly affect the selection of the target vehicle, leading to inaccurate control of the first vehicle and potentially causing safety accidents. Therefore, it is necessary to first filter the collected motion data to eliminate data jumps.
[0052] The specific processing formula is as follows:
[0053] D = D0 * 0.8 + d * 0.2,
[0054] Where: D represents the processed data, D0 represents the processed data from the previous frame, and d represents the newly acquired data. Using the complementary filtering algorithm described in the above formula can eliminate data jumps to a certain extent.
[0055] In another optional embodiment, after obtaining the motion data of the second vehicle, the motion data can first be filtered to prevent data jumps from affecting the selection of the target vehicle; secondly, the filtered motion data can be filtered out based on preset conditions to obtain the motion data of the third vehicle. It should be noted that the filtering of motion data can be based on multiple preset conditions to perform hierarchical screening of the motion data, but is not limited to this.
[0056] Optionally, the motion data of the third vehicle can be obtained by: comparing the lateral distance in the motion data of the second vehicle with a first preset distance, and comparing the longitudinal distance in the motion data of the second vehicle with a second preset distance; in response to the lateral distance in the motion data of the fourth vehicle being greater than or equal to the first preset distance, or the longitudinal distance in the motion data of the fourth vehicle being greater than or equal to the second preset distance, determining that the motion data of the fourth vehicle does not meet the preset conditions; and filtering the motion data of the fourth vehicle from the motion data of the second vehicle to obtain the motion data of the third vehicle.
[0057] Optionally, the second preset distance is determined based on the vehicle speed of the first vehicle.
[0058] The aforementioned first preset distance can be the maximum lateral safety distance between the second vehicle and the first vehicle. The specific value is not limited; in this embodiment, 7 meters is used as an example. It should be noted that because the lane width is 3.5 meters and the two lanes are 7 meters wide, when the second vehicle is two lanes away from the first vehicle, even if the second vehicle suddenly decelerates or changes lanes, it will not affect the driving safety of the first vehicle. Therefore, in this embodiment, 7 meters is used as an example.
[0059] In one alternative embodiment, the first preset distance can be H. safe That is, the maximum lateral safety distance, which can be H. lat However, it is not limited to this.
[0060] The aforementioned second preset distance can be the maximum longitudinal safe distance between the second vehicle and the first vehicle. The specific value is determined based on the actual speed of the second vehicle and the first vehicle, and is not specifically limited in this embodiment.
[0061] In another alternative embodiment, the second preset distance can be l safe *1.5, which is the maximum safe longitudinal distance, where l safeThe longitudinal safety distance between the second vehicle and the first vehicle is 1.5, where 1.5 is the longitudinal target filtering coefficient. The longitudinal distance can be H. lng However, it is not limited to this.
[0062] The aforementioned fourth vehicle can be a vehicle that does not meet the preset conditions after being filtered by preset conditions. It can be one vehicle or multiple vehicles. The specific number is determined by the actual driving situation and is not specifically limited in this embodiment.
[0063] In another alternative embodiment, the lateral distance H in the motion data of the second vehicle can first be... lat Distance H from the first preset distance safe The comparison was performed, and the longitudinal distance H in the motion data of the second vehicle was also analyzed. lng Distance l from the second preset distance safe *1.5 Compare the motion data of the fourth vehicle. If the lateral distance in the motion data of the fourth vehicle is greater than or equal to the first preset distance, or the longitudinal distance in the motion data of the fourth vehicle is greater than or equal to the second preset distance, it can be determined that the motion data of the fourth vehicle does not meet the preset conditions. Then the motion data of the fourth vehicle can be filtered out to obtain the motion data of the third vehicle.
[0064] In another alternative embodiment, the safe distance between vehicles dynamically changes with vehicle speed; therefore, vehicle speed must be taken into account when setting the safe distance between the first and second vehicles. Existing vehicles are equipped with positioning and navigation systems that can obtain vehicle speed; therefore, according to road safety regulations, the safe distance can be set as shown in the following formula:
[0065]
[0066] Among them, l safe Let v be the longitudinal safety distance between the second vehicle and the first vehicle, and v be the real-time speed of the first vehicle.
[0067] Optionally, the motion data of the third vehicle is processed to obtain the target lateral distance of the third vehicle, including: processing the motion data of the third vehicle to determine a target time period, wherein the target time period is used to characterize the time period during which the third vehicle has an impact on the driving of the first vehicle in the longitudinal direction; determining the target lateral distance of the third vehicle based on the target time period and the motion data of the third vehicle; and obtaining the target motion data based on the target lateral distance of the third vehicle.
[0068] Optionally, the target time period can be determined by the following methods: in response to the longitudinal speed of the third vehicle being greater than a preset speed, the target time period is determined based on the longitudinal distance and longitudinal speed of the third vehicle, and a second preset distance; in response to the longitudinal speed of the third vehicle being less than a preset speed, the target time period is determined based on the longitudinal distance and longitudinal speed of the third vehicle.
[0069] The longitudinal speed of the third vehicle mentioned above can be v x The preset speed mentioned above can be 0; the target time period mentioned above can be T.
[0070] In one optional embodiment, the longitudinal distance between the first vehicle and the third vehicle over a future period can first be calculated based on their longitudinal distance and longitudinal speed, using the following formula:
[0071] L x =H lng +v x *t,
[0072] Among them, H lng v represents the current longitudinal distance of the third vehicle. x L represents the current longitudinal speed of the third vehicle. x Let be the longitudinal distance at time t.
[0073] In another alternative embodiment, the longitudinal speed v of the third vehicle can first be... x Compared with a preset speed of 0, in response to the longitudinal speed of the third vehicle being greater than the preset speed, the target time period is determined based on the longitudinal distance and longitudinal speed of the third vehicle, and a second preset distance.
[0074] For example, when v x When the value is greater than 0, the target time period is the time during which the second vehicle is within the longitudinal safety distance, i.e., L. x ≤l safe Through calculation, it can be obtained
[0075] Among them, l safe H is the second preset distance. lng v is the longitudinal distance of the third vehicle. x t1 represents the longitudinal speed of the third vehicle, and t1 represents the target time period during which the longitudinal speed of the third vehicle is greater than the preset speed.
[0076] In response to the longitudinal speed of the third vehicle being less than the preset speed, a target time period is determined based on the longitudinal distance and longitudinal speed of the third vehicle.
[0077] For example, when v x When <0, the target time period is the period during which the third vehicle gradually approaches the first vehicle, i.e., L.x ≥0, which can be obtained through calculation
[0078] Among them, H lng v is the longitudinal distance of the third vehicle. x t1 represents the longitudinal speed of the third vehicle, and t2 represents the target time period during which the longitudinal speed of the third vehicle is less than the preset speed.
[0079] Optionally, the target lateral distance of the third vehicle can be determined by the following method: based on the target time period, and the lateral distance and longitudinal speed of the third vehicle, the target lateral distance of the third vehicle is determined.
[0080] The aforementioned target lateral distance can be the lateral distance between the third vehicle and the first vehicle within the target time period. The target lateral distance can indicate the minimum distance at which the third vehicle will affect the driving safety of the first vehicle. When the lateral distance between the third vehicle and the first vehicle is less than the target lateral distance, it indicates that the third vehicle will affect the driving safety of the first vehicle.
[0081] The lateral distance of the third vehicle at time t can be H. lat The longitudinal velocity of the third vehicle at time t can be v. y .
[0082] In one alternative embodiment, the lateral distance of the third vehicle can first be determined as follows:
[0083] L y =H lat +v y *t,
[0084] Among them, L y H is the lateral distance of the third vehicle. lat Let v be the lateral distance of the third vehicle at time t. y Let be the longitudinal velocity of the third vehicle at time t. Based on the target time period calculated previously, the following target lateral distance can be obtained.
[0085] When v x >0,v y >0,H lat When the value is greater than 0, the lateral distance of the target is m1 = L. y | t=0 =H lat ;
[0086] When v x >0,v y >0,H lat When L < 0, the target lateral distance is the minimum modulus value within the time interval (0~t1). At this time, when L y | t=t1When L > 0, m2 = 0; when L y | t=t1 When <0, m2=|L y | t=t1 |;
[0087] When v x >0,v y <0,H lat When L > 0, the most threatening lateral distance of the target is the minimum modulus value within the time interval (0~t1). At this time, when L y | t=t1 When L < 0, m3 = 0; when L y | t=t1 When >0, m3=|L y | t=t1 |;
[0088] When v x >0,v y <0,H lat When <0, the most threatening lateral distance for the target is m4=|L y | t=0 |=|H lat |;
[0089] When v x <0,v y >0,H lat When the value is greater than 0, the most threatening lateral distance for the target is m5 = L. y | t=0 =H lat ;
[0090] When v x <0,v y >0,H lat When L < 0, the most threatening lateral distance of the target is the minimum modulus value in the time interval (0~t2). At this time, when L y | t=t2 When L > 0, m6 = 0; when L y | t=t2 When <0, m6=|L y | t=t2 |;
[0091] When v x <0,v y <0,H lat When L > 0, the most threatening lateral distance of the target is the minimum modulus value within the time interval (0~t2). At this time, when L y | t=t2 When L < 0, m7 = 0; when L y | t=t2 When >0, m7=|L y | t=t2|;
[0092] When v x <0,v y <0,H lat When <0, the most threatening lateral distance for the target is m8=|L y | t=0 |=|H lat |
[0093] Optionally, the motion data of the third vehicle is filtered based on the target lateral distance to obtain the target vehicle, including: obtaining the third vehicle whose target lateral distance is less than a third preset distance to obtain candidate vehicles; and obtaining the vehicle with the smallest longitudinal distance among the candidate vehicles to obtain the target vehicle.
[0094] Optionally, the third preset distance is determined based on the width of the first vehicle.
[0095] The aforementioned third preset distance can be a lateral safety distance taking into account the width of the first vehicle, and can be expressed as: Among them, H safe B is the lateral safety distance, B is the width of the first vehicle, and k is the safety factor, which can be 1.5, but is not limited to this.
[0096] In one alternative embodiment, the target lateral distance of the third vehicle can first be compared with a third preset distance. If the target lateral distance is less than the third preset distance, a candidate vehicle can be determined.
[0097] In another optional embodiment, after obtaining candidate vehicles, the vehicle with the smallest longitudinal distance from the first vehicle can be selected, which is the target vehicle.
[0098] It should be noted that there can be one or more candidate vehicles, all of which pose a threat to the first vehicle's driving. Among these targets, the most threatening target should be selected as the target vehicle, and a safe distance should be maintained between it and the first vehicle so that it can drive safely.
[0099] Step S106: Based on the motion data of the target vehicle and the motion data of the first vehicle, determine the target speed of the first vehicle, wherein the target speed is used to control the distance between the first vehicle and the target vehicle to be greater than or equal to the safe distance.
[0100] Optionally, based on the motion data of the target vehicle and the motion data of the first vehicle, the target speed of the first vehicle is determined, including: constructing kinematic models of the target vehicle and the first vehicle; inputting the longitudinal speed and longitudinal distance of the target vehicle, the vehicle speed of the first vehicle, the preset response time, and the second preset distance into the kinematic model to obtain the target speed.
[0101] The aforementioned kinematic model can be a vehicle model constructed through geometric relationships, and can be represented as L. x =H lng +v x *t, where L x Let H be the longitudinal distance between the target vehicle and the first vehicle at time t. lng v is the longitudinal distance of the target vehicle. x Let be the relative lateral speed of the target vehicle.
[0102] Specifically, since the vehicles are not stationary, the relative longitudinal distance and the longitudinal distance at a certain moment need to be calculated to obtain the current accurate longitudinal distance. Without considering lane changes by the main vehicle, the speed difference, v, is obtained based on the longitudinal speed of the target vehicle and the current speed of the first vehicle. x = v0 - v, where v0 is the current longitudinal velocity and v is the velocity of the first vehicle. Then, based on the longitudinal distance and longitudinal velocity of the target vehicle, the kinematic model of the first and target vehicles is determined. Specifically, the relative longitudinal distance between the first and target vehicles at time t is obtained by multiplying the current relative velocity of the first and target vehicles by time, thus compensating for distance errors caused by vehicle motion. Finally, the accurate longitudinal distance between the first and target vehicles at time t is calculated by summing the relative longitudinal distance at time t and the longitudinal distance between the first and target vehicles, i.e., L. x =H lng +v x *t, where Lx is the longitudinal distance at time t, and H lng v is the longitudinal distance of the target vehicle. x Let L be the relative lateral velocity of the target vehicle, thus simplifying the above calculation process to obtain L. x =H lng To achieve safe following and maintain a safe distance, the longitudinal distance between the first vehicle and the target vehicle must be equal to the safe distance, i.e., L = (v0 - v) * t. x =l safe When the response time is T, this response time can be set according to the corresponding requirements. Within the response time T, the distance the first vehicle needs to move to follow and maintain safe driving is obtained by using the difference between the safe distance and the longitudinal distance. Then, the speed within the response time is obtained by dividing the distance moved by the response time. Finally, the desired speed of the first vehicle is obtained by using the difference between the current longitudinal speed and the speed within the response time. Assuming that the current longitudinal speed of the target vehicle remains constant, the longitudinal relative speed v is used as a basis for calculation. x Compared with the current speed v of the first vehicle c This expresses the relationship between the longitudinal relative velocity and the forward velocity of the first vehicle, i.e., v0 = v x +v c Furthermore, the desired speed required for the first vehicle to achieve the following purpose can be calculated, namely:
[0103]
[0104] Step S108: Control the first vehicle based on the target speed.
[0105] Optionally, controlling the first vehicle based on the target speed includes: acquiring the vehicle speed of the first vehicle as sensed by sensors installed on the first vehicle; determining a first control quantity and a second control quantity based on the target speed and the vehicle speed of the first vehicle; controlling the accelerator pedal of the first vehicle based on the first control quantity; and controlling the brake pedal of the first vehicle based on the second control quantity.
[0106] The aforementioned sensor can be a speed sensor, a device used to sense the vehicle's current speed. The first control variable can be the magnitude of the vehicle's acceleration, i.e., the throttle control variable; the second control variable can be the magnitude of the vehicle's deceleration, i.e., the braking control variable.
[0107] Figure 2 This is a framework diagram of an optional vehicle following control according to an embodiment of the present invention, such as... Figure 2 As shown, based on the previously calculated desired speed v, the vehicle's current speed v can be obtained using its built-in sensors. c In this embodiment of the invention, a PID (Proportion Inregulation Differentiation) controller is used as an example for explanation. The PID controller calculates the desired speed v and the current speed v. c The system calculates the throttle and brake control values and feeds them back to the vehicle's powertrain. The powertrain then controls the vehicle's current speed based on these values and feeds them back to the system in real time. The system also uses a positioning and navigation system to update the current speed, further enabling adjustments to the vehicle's speed based on real-time changes.
[0108] Figure 3 This is an optional overall block diagram of a millimeter-wave radar-based vehicle following system according to an embodiment of the present invention, such as... Figure 3 As shown, the millimeter-wave radar sends pulses in real time to acquire data and transmits the acquired data to the vehicle's control system via the CAN bus. The acquired data actually corresponds to the physical quantities of the target's motion. The radar can detect the physical quantities of multiple targets. According to the radar protocol, it can detect up to 100 targets. With so many targets, it is impossible to track and perform subsequent calculations on all of them. Therefore, deciding which vehicle to follow is a problem that needs to be solved. Based on the acquired data, the user formulates a target following strategy and kinematic model through the control system. Finally, the target vehicle can be obtained through control quantity calculation.
[0109] Figure 4 This is a flowchart of an optional vehicle-following target selection according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps:
[0110] Step S41, Target data acquisition;
[0111] Step S42, data filtering;
[0112] Step S44: Determine whether the horizontal distance is less than the first preset distance. If it is greater than the first preset distance, proceed to step S44; if it is less than the first preset distance, proceed to step S45.
[0113] Step S44: Filter out the data;
[0114] Step S45: Determine whether the longitudinal distance is less than the second preset distance. If it is greater than the second preset distance, proceed to step S46; if it is less than the second preset distance, proceed to step S47.
[0115] Step S46: Filter the data;
[0116] Step S47: Input the data into the target threat prediction model for processing;
[0117] Step S48: Determine whether the predicted lateral distance is less than the target lateral distance. If it is greater than the target lateral distance, proceed to step S49; if it is less than the target lateral distance, proceed to step S410.
[0118] Step S49: Perform data filtering;
[0119] Step S410: Compare the longitudinal distance with the minimum longitudinal distance;
[0120] Step S411: Obtain the target vehicle.
[0121] Figure 5 This is a flowchart of an optional target threat calculation according to an embodiment of the present invention, such as... Figure 5 As shown, the process includes the following steps:
[0122] Step S51: Determine if the longitudinal velocity is greater than 0. If it is, proceed to step S52; if it is less than 0, proceed to step S510.
[0123] Step S52, the longitudinal threat time period is obtained as t1;
[0124] Step S53: Determine if the lateral velocity is greater than 0. If it is, proceed to step S54; if it is less than 0, proceed to step S57.
[0125] Step S54: Determine if the horizontal distance is greater than 0. If it is, proceed to step S55; if it is less than 0, proceed to step S56.
[0126] Step S55, determine the lateral distance threat value as m1;
[0127] Step S56, determine the lateral distance threat value as m2;
[0128] Step S57: Determine if the horizontal distance is greater than 0. If it is, proceed to step S58; if it is less than 0, proceed to step S59.
[0129] Step S58, determine the lateral distance threat value as m3;
[0130] Step S59, determine the lateral distance threat value as m5;
[0131] Step S510, the longitudinal threat time period is obtained as t2;
[0132] Step S511: Determine if the lateral velocity is greater than 0. If it is, proceed to step S512; if it is less than 0, proceed to step S515.
[0133] Step S512: Determine if the horizontal distance is greater than 0. If it is, proceed to step S513; if it is less than 0, proceed to step S514.
[0134] Step S513, determine the lateral distance threat value as m5;
[0135] Step S514, determine the lateral distance threat value as m6;
[0136] Step S515: Determine if the horizontal distance is greater than 0. If it is, proceed to step S516; if it is less than 0, proceed to step S517.
[0137] Step S516, determine the lateral distance threat value as m7;
[0138] Step S517: Determine the lateral distance threat value as m8.
[0139] Example 2
[0140] According to another aspect of the present invention, a vehicle control device is also provided, which can execute the vehicle control method provided in Embodiment 1 above. The specific implementation method and preferred application scenario are the same as those in Embodiment 1 above, and will not be repeated here.
[0141] Figure 6 This is a schematic diagram of the structure of a vehicle control device according to an embodiment of the present invention, such as... Figure 6As shown, the device includes: an acquisition module 62, used to acquire motion data of a second vehicle sensed by a millimeter-wave radar installed on the first vehicle during the movement of the first vehicle, wherein the second vehicle is used to represent a vehicle traveling in front of the first vehicle; a filtering module 64, used to filter the second vehicle based on the motion data of the second vehicle to obtain target vehicles, wherein the target vehicles are used to represent vehicles among the second vehicles that have an impact on the movement of the first vehicle; a determination module 66, used to determine the target speed of the first vehicle based on the motion data of the target vehicle and the motion data of the first vehicle, wherein the target speed is used to control the distance between the first vehicle and the target vehicle to be greater than or equal to a safe distance; and a control module 68, used to control the first vehicle based on the target speed.
[0142] Optionally, the filtering module includes: a filtering unit for filtering out motion data of the second vehicle that does not meet preset conditions to obtain motion data of the third vehicle; a processing unit for processing the motion data of the third vehicle to obtain the target lateral distance of the third vehicle, wherein the target lateral distance is used to characterize the maximum lateral distance by which the third vehicle affects the driving of the first vehicle; and a filtering unit for filtering the motion data of the third vehicle based on the target lateral distance to obtain the target vehicle.
[0143] Optionally, the filtering unit includes: a comparison subunit, configured to compare the lateral distance in the motion data of the second vehicle with a first preset distance, and compare the longitudinal distance in the motion data of the second vehicle with a second preset distance; a first determination subunit, configured to determine that the motion data of the fourth vehicle does not meet the preset conditions in response to the lateral distance in the motion data of the fourth vehicle being greater than or equal to the first preset distance, or the longitudinal distance in the motion data of the fourth vehicle being greater than or equal to the second preset distance; and a filtering subunit, configured to filter the motion data of the fourth vehicle from the motion data of the second vehicle to obtain the motion data of the third vehicle.
[0144] Optionally, the second preset distance is determined based on the vehicle speed of the first vehicle.
[0145] Optionally, the processing unit includes: a processing subunit for processing the motion data of the third vehicle and determining a target time period, wherein the target time period is used to characterize the time period during which the third vehicle has an impact on the driving of the first vehicle in the longitudinal direction; a second determining subunit for determining the target lateral distance of the third vehicle based on the target time period and the motion data of the third vehicle; and a first acquiring subunit for obtaining the target motion data based on the target lateral distance of the third vehicle.
[0146] Optionally, the processing subunit is further configured to: in response to the longitudinal speed of the third vehicle being greater than a preset speed, determine a target time period based on the longitudinal distance and longitudinal speed of the third vehicle and a second preset distance; and in response to the longitudinal speed of the third vehicle being less than a preset speed, determine a target time period based on the longitudinal distance and longitudinal speed of the third vehicle.
[0147] Optionally, the second determining subunit is further configured to: determine the target lateral distance of the third vehicle based on the target time period and the lateral distance and longitudinal speed of the third vehicle.
[0148] Optionally, the filtering unit includes: a second acquisition subunit, used to acquire a third vehicle whose target lateral distance is less than a third preset distance, to obtain a candidate vehicle; and a third acquisition subunit, used to acquire the vehicle with the smallest longitudinal distance among the candidate vehicles, to obtain the target vehicle.
[0149] Optionally, the third preset distance is determined based on the width of the first vehicle.
[0150] Optionally, the determining module includes: a construction unit for constructing kinematic models of the target vehicle and the first vehicle; and an input unit for inputting the longitudinal velocity and longitudinal distance of the target vehicle, the vehicle velocity of the first vehicle, a preset response time, and a second preset distance into the kinematic model to obtain the target velocity.
[0151] Optionally, the control module includes: an acquisition unit for acquiring the vehicle speed of the first vehicle as sensed by a sensor installed on the first vehicle; a determination unit for determining a first control quantity and a second control quantity based on the target speed and the vehicle speed of the first vehicle; a first control unit for controlling the accelerator pedal of the first vehicle based on the first control quantity; and a second control unit for controlling the brake pedal of the first vehicle based on the second control quantity.
[0152] Example 3
[0153] According to another aspect of the embodiments of the present invention, a vehicle is also provided, such as Figure 7 As shown, Figure 7 This is a schematic diagram of a vehicle structure according to an embodiment of the present invention, including: a millimeter-wave radar 71, used to sense the motion data of other vehicles traveling in front of the vehicle during vehicle operation; and a controller 72, connected to the millimeter-wave radar, used to filter second vehicles based on the motion data of the second vehicle to obtain a target vehicle, determine the target speed of the first vehicle based on the motion data of the target vehicle and the motion data of the first vehicle, and control the first vehicle based on the target speed, wherein the target vehicle is used to characterize the second vehicle that has an impact on the driving of the first vehicle, and the target speed is used to control the distance between the first vehicle and the target vehicle to be greater than or equal to a safe distance.
[0154] Example 4
[0155] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform any of the vehicle control methods described in the above embodiments.
[0156] Example 5
[0157] According to another aspect of the present invention, a processor is also provided, which is used to run a program, wherein the program executes the vehicle control method of any one of the above embodiments.
[0158] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0159] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0160] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0161] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0162] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0163] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0164] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A vehicle control method, characterized in that, include: During the movement of the first vehicle, motion data of the second vehicle sensed by the millimeter-wave radar installed on the first vehicle is acquired, wherein the second vehicle is used to represent the vehicle driving in front of the first vehicle; Based on the motion data of the second vehicle, the second vehicle is filtered to obtain the target vehicle, wherein... Based on the motion data of the target vehicle and the motion data of the first vehicle, a target speed of the first vehicle is determined, wherein the target speed is used to control the distance between the first vehicle and the target vehicle to be greater than or equal to a safe distance. The first vehicle is controlled based on the target speed; The process of filtering the second vehicle's motion data to obtain a target vehicle includes: filtering out motion data of the second vehicle that does not meet preset conditions to obtain motion data of a third vehicle; processing the motion data of the third vehicle to obtain a target lateral distance of the third vehicle, wherein the target lateral distance is used to characterize the maximum lateral distance by which the third vehicle affects the driving of the first vehicle; and filtering the motion data of the third vehicle based on the target lateral distance to obtain the target vehicle. Processing the motion data of the third vehicle to obtain the target lateral distance of the third vehicle includes: processing the motion data of the third vehicle to determine a target time period, wherein the target time period is used to characterize the time period during which the third vehicle has an impact on the driving of the first vehicle in the longitudinal direction; and determining the target lateral distance of the third vehicle based on the target time period and the motion data of the third vehicle.
2. The method according to claim 1, characterized in that, Motion data of the second vehicle that does not meet preset conditions is filtered out to obtain motion data of the third vehicle, including: The lateral distance in the motion data of the second vehicle is compared with the first preset distance, and the longitudinal distance in the motion data of the second vehicle is compared with the second preset distance; In response to the lateral distance in the motion data of the fourth vehicle being greater than or equal to the first preset distance, or the longitudinal distance in the motion data of the fourth vehicle being greater than or equal to the second preset distance, the motion data of the fourth vehicle is determined to be the motion data that does not meet the preset conditions. The motion data of the fourth vehicle is filtered out from the motion data of the second vehicle to obtain the motion data of the third vehicle.
3. The method according to claim 1, characterized in that, The motion data of the third vehicle is processed to determine the target time period, including: In response to the longitudinal speed of the third vehicle being greater than a preset speed, the target time period is determined based on the longitudinal distance and longitudinal speed of the third vehicle, and a second preset distance; In response to the longitudinal speed of the third vehicle being less than the preset speed, the target time period is determined based on the longitudinal distance and longitudinal speed of the third vehicle.
4. The method according to claim 1, characterized in that, The motion data of the third vehicle are filtered based on the target lateral distance to obtain the target vehicle, including: A third vehicle whose lateral distance from the target is less than a third preset distance is obtained to obtain candidate vehicles; The vehicle with the smallest longitudinal distance among the candidate vehicles is obtained as the target vehicle.
5. The method according to claim 1, characterized in that, Based on the motion data of the target vehicle and the motion data of the first vehicle, the target speed of the first vehicle is determined, including: Construct kinematic models of the target vehicle and the first vehicle; The target speed is obtained by inputting the longitudinal speed and longitudinal distance of the target vehicle, the speed of the first vehicle, the preset response time, and the second preset distance into the kinematic model.
6. The method according to claim 1, characterized in that, Controlling the first vehicle based on the target speed includes: The vehicle speed of the first vehicle is obtained from the sensors installed on the first vehicle. Based on the target speed and the vehicle speed of the first vehicle, a first control quantity and a second control quantity are determined; The accelerator pedal of the first vehicle is controlled based on the first control quantity; The brake pedal of the first vehicle is controlled based on the second control quantity.
7. A vehicle control device, characterized in that, include: The acquisition module is used to acquire motion data of a second vehicle sensed by a millimeter-wave radar installed on the first vehicle during the driving process of the first vehicle, wherein the second vehicle is used to represent a vehicle driving in front of the first vehicle. A filtering module is used to filter the second vehicle based on the motion data of the second vehicle to obtain target vehicles, wherein the target vehicles are used to characterize the second vehicles that have an impact on the driving of the first vehicle; The determining module is used to determine the target speed of the first vehicle based on the motion data of the target vehicle and the motion data of the first vehicle, wherein the target speed is used to control the distance between the first vehicle and the target vehicle to be greater than or equal to a safe distance; A control module is used to control the first vehicle based on the target speed; The filtering module includes: a filtering unit for filtering out motion data of the second vehicle that does not meet preset conditions to obtain motion data of the third vehicle; a processing unit for processing the motion data of the third vehicle to obtain the target lateral distance of the third vehicle, wherein the target lateral distance is used to characterize the maximum lateral distance by which the third vehicle affects the driving of the first vehicle; and a filtering unit for filtering the motion data of the third vehicle based on the target lateral distance to obtain the target vehicle. The processing unit includes: a processing subunit, used to process the motion data of the third vehicle and determine a target time period, wherein the target time period is used to characterize the time period during which the third vehicle has an impact on the driving of the first vehicle in the longitudinal direction; and a second determining subunit, used to determine the target lateral distance of the third vehicle based on the target time period and the motion data of the third vehicle.
8. A vehicle, characterized in that, include: Millimeter-wave radar is used to sense the motion data of other vehicles traveling in front of a vehicle while the vehicle is in motion; The controller, connected to the millimeter-wave radar, is used to filter the second vehicle based on the motion data of the second vehicle to obtain a target vehicle, determine the target speed of the first vehicle based on the motion data of the target vehicle and the motion data of the first vehicle, and control the first vehicle based on the target speed. The target vehicle is used to characterize the second vehicle that has an impact on the driving of the first vehicle, and the target speed is used to control the distance between the first vehicle and the target vehicle to be greater than or equal to a safe distance. The controller is further configured to: filter out motion data of the second vehicle that does not meet preset conditions to obtain motion data of the third vehicle; process the motion data of the third vehicle to obtain the target lateral distance of the third vehicle, wherein the target lateral distance is used to characterize the maximum lateral distance by which the third vehicle affects the driving of the first vehicle; and filter the motion data of the third vehicle based on the target lateral distance to obtain the target vehicle. The motion data of the third vehicle is processed to determine a target time period, wherein the target time period is used to characterize the time period during which the third vehicle has an impact on the driving of the first vehicle in the longitudinal direction; based on the target time period and the motion data of the third vehicle, the target lateral distance of the third vehicle is determined.
Citation Information
Patent Citations
Automobile lane changing control method and device, automobile and storage medium
CN110782707A
