Vehicle simulation control method, device, electronic equipment and storage medium
By introducing the avoidance coefficient and the aggressiveness coefficient into the traffic simulation software, adjusting the driving parameter thresholds, and simulating the avoidance behavior of emergency vehicles, the problem of large differences between the simulation results and the actual results in the existing technology is solved, and the accuracy of the automatic driving simulation results is improved. .
Patent Information
- Application Number
- CN202110485099.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-04-30
AI Technical Summary
Existing traffic simulation software is insufficient in simulating emergency vehicle driving scenarios, resulting in large differences between simulation results and actual applications, reducing the accuracy of simulation results, and being unable to effectively assist decision-making in autonomous driving applications.
By introducing the avoidance coefficient and the aggressiveness coefficient, the driving parameter thresholds are adjusted according to the position relationship and driving behavior of the virtual vehicle, and the avoidance behavior of emergency vehicles towards other vehicles is simulated, thereby improving the accuracy of the simulation results.
The accuracy of the simulation results is improved, making it closer to reality and able to more effectively assist the practical application of autonomous driving technology.
Smart Images

Figure CN113110487B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving simulation technology, and in particular to a vehicle simulation control method, device, electronic equipment and storage medium. Background Art
[0002] With the development of artificial intelligence and science and technology, autonomous driving technology has become more and more popular. Among them, autonomous driving technology can enable vehicles to travel at a higher speed on actual roads. In related technologies, in order to ensure that autonomous driving technology can maintain better performance in actual applications, simulation experiments can be conducted in traffic simulation software before actual application.
[0003] Relevant traffic laws and regulations clearly stipulate that emergency vehicles (such as police cars, fire trucks, ambulances, engineering rescue vehicles, etc.) can use sirens and sign lights when performing emergency tasks, and are not restricted by driving routes, driving directions, driving speeds, and signal lights, provided that safety is ensured. However, the traffic simulation software in related technologies does not adequately simulate driving scenarios involving emergency vehicles during simulation experiments, resulting in large differences between simulation results and actual applications, reducing the accuracy of simulation results, making it difficult for simulation results to reflect actual situations, and failing to provide effective auxiliary decision-making basis for actual autonomous driving applications. Summary of the invention
[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0005] The embodiments of the present invention provide a vehicle simulation control method, device, electronic device and storage medium, which can improve the accuracy of simulation results and make the simulation results closer to reality.
[0006] On the one hand, an embodiment of the present invention provides a vehicle simulation control method, comprising:
[0007] Controlling the first virtual vehicle to travel according to a driving parameter threshold;
[0008] When the current driving distance between the second virtual vehicle and the first virtual vehicle is less than or equal to the target distance, obtaining the avoidance coefficient of the first virtual vehicle and the lane position relationship between the first virtual vehicle and the second virtual vehicle, the second virtual vehicle is traveling behind the first virtual vehicle, and the avoidance coefficient is used to represent the active degree of avoidance of the first virtual vehicle to the second virtual vehicle;
[0009] The driving parameter threshold is adjusted according to the lane position relationship and the avoidance coefficient.
[0010] On the other hand, an embodiment of the present invention further provides a vehicle simulation control device, comprising:
[0011] A driving control module, used for controlling the driving of the first virtual vehicle according to a driving parameter threshold;
[0012] an acquisition module, configured to acquire an avoidance coefficient of the first virtual vehicle and a lane position relationship between the first virtual vehicle and the second virtual vehicle in response to a current driving distance between the second virtual vehicle and the first virtual vehicle being less than or equal to a target distance, wherein the second virtual vehicle travels behind the first virtual vehicle, and the avoidance coefficient is used to characterize an active degree of avoidance of the first virtual vehicle to the second virtual vehicle;
[0013] A parameter adjustment module is used to adjust the driving parameter threshold according to the lane position relationship and the avoidance coefficient.
[0014] Furthermore, the parameter adjustment module is specifically used for:
[0015] Acquiring an aggressiveness coefficient of the first virtual vehicle, where the aggressiveness coefficient is used to characterize an aggressiveness of driving the first virtual vehicle;
[0016] Determining an adjustment method of the driving parameter threshold according to the lane position relationship;
[0017] Based on the adjustment method, the driving parameter threshold is adjusted according to the aggressiveness coefficient and the avoidance coefficient.
[0018] Furthermore, the driving parameter threshold includes a driving speed threshold, and the parameter adjustment module is specifically used for:
[0019] When the first virtual vehicle and the second virtual vehicle are respectively traveling on two adjacent simulation lanes, the driving parameter threshold is determined to be adjusted in a manner of reducing the driving speed threshold.
[0020] Furthermore, the parameter adjustment module is specifically used for:
[0021] Obtaining the driving speed threshold currently set for the first virtual vehicle;
[0022] Obtaining a first adjustment parameter according to the radicality coefficient;
[0023] Obtaining a second adjustment parameter according to the avoidance coefficient;
[0024] The first adjustment parameter is adjusted using the second adjustment parameter, and the driving speed threshold is reduced according to the adjusted first adjustment parameter.
[0025] Furthermore, the driving parameter threshold includes a driving safety distance threshold, and the parameter adjustment module is specifically used for:
[0026] When the first virtual vehicle and the second virtual vehicle are respectively traveling on two adjacent simulation lanes, the driving parameter threshold is determined to be adjusted in a manner of increasing the driving safety distance threshold.
[0027] Furthermore, the parameter adjustment module is specifically used for:
[0028] Obtaining the driving safety distance threshold currently set for the first virtual vehicle;
[0029] Obtaining a third adjustment parameter according to the radicality coefficient;
[0030] Obtaining a fourth adjustment parameter according to the avoidance coefficient;
[0031] The third adjustment parameter is adjusted using the fourth adjustment parameter, and the safe driving distance threshold is increased according to the adjusted third adjustment parameter.
[0032] Furthermore, the parameter adjustment module is also used for:
[0033] Get the currently set distance threshold;
[0034] The distance threshold is adjusted according to the aggressiveness coefficient.
[0035] Furthermore, the parameter adjustment module is also used for:
[0036] The first virtual vehicle is controlled to be prohibited from changing lanes to a simulated lane in which the second virtual vehicle is traveling.
[0037] Furthermore, the driving parameter threshold includes a driving speed threshold, and the parameter adjustment module is specifically used for:
[0038] When the first virtual vehicle and the second virtual vehicle are traveling in the same simulation lane, the driving parameter threshold is determined to be adjusted by increasing the driving speed threshold.
[0039] Furthermore, the parameter adjustment module is specifically used for:
[0040] Obtaining the driving speed threshold currently set for the first virtual vehicle;
[0041] Obtaining a fifth adjustment parameter according to the radicality coefficient;
[0042] Obtaining a sixth adjustment parameter according to the avoidance coefficient;
[0043] The fifth adjustment parameter is adjusted using the sixth adjustment parameter, and the driving speed threshold is increased according to the adjusted fifth adjustment parameter.
[0044] Further, the first virtual vehicle and the second virtual vehicle are traveling in a simulation area, and a first simulation lane and a second simulation lane are adjacent to each other in the simulation area. The driving parameter threshold includes a first lane change safety distance threshold and a second lane change safety distance threshold. The parameter adjustment module is specifically used for:
[0045] When the first virtual vehicle and the second virtual vehicle are both traveling in the first simulation lane, the adjustment method of determining the driving parameter threshold is to reduce the first lane change safety distance threshold and the second lane change safety distance threshold, the first lane change safety distance threshold is the distance threshold between the first virtual vehicle and the leading vehicle in the second simulation lane, and the second lane change safety distance threshold is the distance threshold between the first virtual vehicle and the following vehicle in the second simulation lane.
[0046] Furthermore, the parameter adjustment module is specifically used for:
[0047] Obtaining the first lane-changing safety distance threshold and the second lane-changing safety distance threshold currently set for the first virtual vehicle;
[0048] Obtaining a seventh adjustment parameter according to the radicality coefficient;
[0049] Obtaining an eighth adjustment parameter according to the avoidance coefficient;
[0050] The seventh adjustment parameter is adjusted using the eighth adjustment parameter, and the first lane-changing safety distance threshold and the second lane-changing safety distance threshold are reduced according to the adjusted seventh adjustment parameter.
[0051] Furthermore, the parameter adjustment module is also used for:
[0052] Based on the reduced first lane change safety distance threshold and the second lane change safety distance threshold, when the first virtual vehicle still fails to successfully change lanes from the first simulation lane to the second simulation lane within the time threshold, obtaining a currently set driving speed threshold of the first virtual vehicle;
[0053] The driving speed threshold is increased according to the aggressiveness coefficient and the avoidance coefficient.
[0054] Furthermore, the parameter adjustment module is also used for:
[0055] Get the time threshold currently set;
[0056] The time threshold is adjusted according to the aggressiveness coefficient.
[0057] On the other hand, an embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned vehicle simulation control method when executing the computer program.
[0058] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the above-mentioned vehicle simulation control method.
[0059] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned vehicle simulation control method.
[0060] The embodiments of the present invention include at least the following beneficial effects: the embodiments of the present invention control the driving of the first virtual vehicle according to the driving parameter threshold value, and in response to the current driving distance between the second virtual vehicle and the first virtual vehicle being less than or equal to the target distance, obtain the avoidance coefficient of the first virtual vehicle and the lane position relationship between the first virtual vehicle and the second virtual vehicle, the second virtual vehicle travels behind the first virtual vehicle, the avoidance coefficient is used to characterize the degree of active avoidance of the first virtual vehicle to the second virtual vehicle, and adjust the driving parameter threshold value according to the lane position relationship and the avoidance coefficient. Since the embodiments of the present invention introduce the avoidance coefficient and adjust the driving parameter threshold value of the first virtual vehicle according to the lane position relationship between the first virtual vehicle and the second virtual vehicle and the avoidance coefficient of the first virtual vehicle, when the second virtual vehicle is an emergency vehicle, the influence of the second virtual vehicle on the driving behavior of the first virtual vehicle can be simulated, thereby improving the accuracy of the simulation results and making the simulation results closer to reality.
[0061] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0063] Figure 1 is a schematic diagram of an optional architecture of a vehicle simulation control system provided by an embodiment of the present invention;
[0064] Figure 2 is a flow chart of a vehicle simulation control method provided by an embodiment of the present invention;
[0065] Figure 3 is a specific flow chart of adjusting the driving parameter threshold according to the lane position relationship and the avoidance coefficient provided by an embodiment of the present invention;
[0066] Figure 4 is a specific flow chart of adjusting the driving parameter threshold according to the aggressiveness coefficient and the avoidance coefficient provided by an embodiment of the present invention;
[0067] Figure 5 A schematic diagram of an exemplary scenario of reducing a driving speed threshold provided by an embodiment of the present invention;
[0068] Figure 6 is another specific flow chart of adjusting the driving parameter threshold according to the aggressiveness coefficient and the avoidance coefficient provided by an embodiment of the present invention;
[0069] Figure 7 is another specific flow chart of adjusting the driving parameter threshold according to the aggressiveness coefficient and the avoidance coefficient provided by an embodiment of the present invention;
[0070] Figure 8 is a schematic diagram of an exemplary scenario of increasing the driving speed threshold provided by an embodiment of the present invention;
[0071] Fig. 9 is another specific flow chart of adjusting the driving parameter threshold according to the aggressiveness coefficient and the avoidance coefficient provided by an embodiment of the present invention;
[0072] Fig.10 is a schematic diagram of an exemplary scenario of reducing a first lane change safety distance threshold and a second lane change safety distance threshold provided by an embodiment of the present invention;
[0073] Fig.11 is a schematic diagram of an exemplary scenario of controlling a first virtual vehicle to change lanes according to a congestion level provided by an embodiment of the present invention;
[0074] Fig.12 is a flow chart of a vehicle simulation control method provided by an embodiment of the present invention when a first virtual vehicle and a second virtual vehicle are respectively traveling on two adjacent simulation lanes;
[0075] Fig.13 is a flow chart of a vehicle simulation control method provided by an embodiment of the present invention when a first virtual vehicle and a second virtual vehicle are traveling on the same simulation lane;
[0076] Fig.14is a structural schematic diagram of a vehicle simulation control device provided by an embodiment of the present invention;
[0077] Fig.15 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0078] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0079] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:
[0080] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0081] Autonomous driving technology: usually includes high-precision maps, environmental perception, behavioral decision-making, path planning, motion control and other technologies. Autonomous driving technology has broad application prospects.
[0082] It should be noted that artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines, so that machines have the functions of perception, reasoning and decision-making.
[0083] In addition, artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0084] Autonomous driving simulation platform: a platform for testing autonomous driving of simulated vehicles in a simulated real environment. It integrates industrial-grade vehicle dynamics models, professional game engines, 3D reconstruction technology, and virtual-real traffic flow technology. It can complete simulation experiments of all modules on real vehicles, such as perception, decision-making, and control algorithms. It also supports stand-alone and cloud deployment. One system meets the use requirements of the full-stack algorithm; it supports simulation of highways and expressways.
[0085] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields; for example, common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care and smart customer service, etc.; with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role. In the embodiment of the present invention, the application of artificial intelligence in automatic driving technology will be explained.
[0086] In related technologies, in order to ensure that autonomous driving technology can maintain better performance in actual applications, simulation experiments can be carried out in traffic simulation software before actual application.
[0087] In real life, relevant traffic laws and regulations clearly stipulate that emergency vehicles (such as police cars, fire trucks, ambulances, engineering rescue vehicles, etc.) can use sirens and sign lights when performing emergency tasks, and are not restricted by driving routes, driving directions, driving speeds, and signal lights, provided that safety is ensured. However, the traffic simulation software in related technologies does not adequately simulate driving scenarios involving emergency vehicles during simulation experiments, resulting in large differences between simulation results and actual applications, reducing the accuracy of simulation results, making it difficult for simulation results to reflect actual situations, and failing to provide effective auxiliary decision-making basis for actual autonomous driving applications.
[0088] Based on this, the embodiments of the present invention provide a vehicle simulation control method, device, electronic device and storage medium, which can improve the accuracy of simulation results and make the simulation results closer to reality.
[0089] Reference Figure 1 , is a schematic diagram of an optional architecture of a vehicle simulation control system provided by an embodiment of the present invention, such as Figure 1As shown, the electronic device 110 is connected to the server 130 via the network 120, and the network 120 can be a wide area network or a local area network, or a combination of the two. During the vehicle simulation process, the display screen of the electronic device 110 will display the simulation interface 140. In some embodiments, the server 130 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, or the server 130 can also be a node server in the blockchain network. The electronic device 110 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a smart home appliance, a vehicle-mounted terminal, etc., but is not limited thereto. The electronic device and the server can be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiments of the present invention.
[0090] Understandably, Figure 1 In the vehicle simulation control system shown, the electronic device 110 needs to obtain relevant data from the server 130 to perform vehicle simulation. In other embodiments, the electronic device 110 can also complete the vehicle simulation locally without obtaining data from the server 130, or, when the server 130 is provided with a display screen, the server 130 can also complete the vehicle simulation alone.
[0091] The vehicle simulation control method provided in the embodiment of the present invention can be exemplarily applied to an autonomous driving simulation platform, which can be run on Figure 1 In the electronic device 110 shown, the electronic device 110 executes the vehicle simulation control method provided by the embodiment of the present invention through an automatic driving simulation platform to simulate the driving behavior of the vehicle in a traffic environment.
[0092] In the vehicle simulation control method provided by the embodiment of the present invention, a car-following algorithm and a lane-changing algorithm may be exemplarily applied to determine the driving behavior of the vehicle.
[0093] Here are some related parameters:
[0094] Driving speed threshold: represents the maximum speed expected for the vehicle to travel. The larger the driving speed threshold is, the faster the vehicle will accelerate as much as possible to reach the driving speed threshold in the absence of other interferences.
[0095] Current driving speed: represents the actual speed of the vehicle.
[0096] Driving safety distance threshold: represents the shortest acceptable distance between the vehicle and the vehicle in front of it in the same lane. The larger the driving safety distance threshold, the more the vehicle tends to keep a farther distance from the vehicle in front for following driving.
[0097] Current vehicle distance: represents the current actual distance between the vehicle and the vehicle ahead in the same lane.
[0098] Lane change safety distance threshold: represents the shortest acceptable distance between a vehicle and the leading vehicle or the following vehicle in the adjacent lane. The smaller the lane change safety distance threshold, the more likely the vehicle will change lanes when the distance between the leading vehicle or the following vehicle is smaller.
[0099] Current lane change distance: represents the current actual distance between the vehicle and the leading vehicle or the following vehicle in the adjacent lane.
[0100] It can be understood that the above distances all refer to longitudinal distances.
[0101] The longitudinal driving behavior is determined by the following algorithm. That is, in each simulation step, the vehicle updates its acceleration / speed / position according to the speed of the preceding vehicle in the same lane and the distance between the vehicle and the vehicle. If conditions permit, the vehicle will accelerate to the driving speed threshold. Figure 1 , the longitudinal driving behavior is the driving behavior of the vehicle 141 in the current lane. The lateral driving behavior is determined by the lane changing algorithm. The lane changing algorithm is rule-based, that is, the vehicle will start and complete a lane change process based on the judgment of lane changing intention and safety rules. Under the premise that the vehicle has the intention to change lanes, the safety principles that usually need to be considered include whether the current lane changing distance is greater than the lane changing safety distance threshold. Figure 1 , the lateral driving behavior is that the vehicle 141 changes lanes from the current lane to the adjacent lane.
[0102] The vehicle simulation control method provided by the embodiment of the present invention is described below in conjunction with the accompanying drawings.
[0103] Reference Figure 2 An embodiment of the present invention provides a vehicle simulation control method, which is exemplarily applied to an autonomous driving simulation platform. The method includes but is not limited to the following steps 201 to 203.
[0104] Step 201: Controlling the driving of a first virtual vehicle according to a driving parameter threshold.
[0105] Among them, the driving parameter threshold is used to determine the target value of the current driving parameter of the first virtual vehicle. The automatic driving simulation platform updates the current driving parameter of the first virtual vehicle according to the driving parameter threshold. The current driving parameter of the first virtual vehicle is used to characterize the current driving state of the first virtual vehicle. For example, the current driving parameter may include the aforementioned current driving speed, current vehicle spacing or current lane change distance. Correspondingly, the driving parameter threshold may include the aforementioned driving speed threshold, driving safety distance threshold or lane change safety distance threshold. The driving parameter threshold is a global parameter, which is assigned to the corresponding virtual vehicle before the simulation starts. During the entire simulation process, the virtual vehicle simulates driving according to the driving parameter threshold set by itself. The driving parameter thresholds of different virtual vehicles may be different. The first virtual vehicle simulates driving according to its corresponding driving parameter threshold. The first virtual vehicle, i.e., the target vehicle to be controlled in the embodiment of the present invention, may be any virtual vehicle in the simulation environment.
[0106] Step 202: When the current driving distance between the second virtual vehicle and the first virtual vehicle is less than or equal to the target distance, the avoidance coefficient of the first virtual vehicle and the lane position relationship between the first virtual vehicle and the second virtual vehicle are obtained.
[0107] The target distance may be set according to actual conditions, for example, 10 meters, 20 meters, etc., and is not limited in the embodiment of the present invention.
[0108] Among them, the second virtual vehicle can be the emergency vehicle mentioned above, and the second virtual vehicle and the first virtual vehicle are two different vehicles. In the scenario provided by the embodiment of the present invention, the second virtual vehicle travels behind the first virtual vehicle. For example, a Frenet coordinate system (s, t) can be established. From the perspective of the driving direction, the vehicle with a smaller longitudinal displacement (s coordinate, the distance traveled along the simulated lane) travels behind the vehicle with a larger longitudinal displacement. In a real scenario, when the driver notices that an emergency vehicle is approaching behind him, the emergency vehicle will have a certain impact on the driver. For example, the driver will operate the vehicle to avoid the emergency vehicle. However, in the relevant technology, it is not considered to simulate such driving behavior, that is, in the relevant simulation environment, even if the emergency vehicle appears behind a virtual vehicle, the virtual vehicle will not have any avoidance behavior, which distorts the final simulation result and cannot provide an effective auxiliary decision-making basis for actual autonomous driving applications, such as subsequent application scenarios such as path planning for emergency vehicles.
[0109] Based on this, the embodiment of the present invention introduces an avoidance coefficient, wherein the avoidance coefficient is used to characterize the active degree of avoidance of the first virtual vehicle to the second virtual vehicle. The avoidance coefficient can be any floating point number between 0 and 1. The avoidance coefficient can be assigned to the corresponding virtual vehicle before the simulation starts. The avoidance coefficients of different virtual vehicles can be different, so that the reactions of different drivers to emergency vehicles in real scenarios can be simulated. For example, some drivers may actively avoid emergency vehicles, some drivers may make decisions based on the distance between the emergency vehicle and themselves, and some drivers may not even perform any avoidance actions. In a possible implementation, the larger the avoidance coefficient, the higher the active degree of avoidance of the first virtual vehicle to the second virtual vehicle, that is, when the second virtual vehicle approaches, the first virtual vehicle is more inclined to perform related avoidance actions. Of course, it can also be set that the larger the avoidance coefficient, the lower the active degree of avoidance of the first virtual vehicle to the second virtual vehicle, depending on the actual simulation requirements. The embodiment of the present invention takes the larger the avoidance coefficient, the higher the active degree of avoidance of the first virtual vehicle to the second virtual vehicle as an example for explanation.
[0110] In a possible implementation, the avoidance coefficient may be set by the electronic device acquiring a virtual attribute of the first virtual vehicle, and the virtual attribute may be at least one of the driver's age, the driver's gender, the vehicle type, the region, and the purpose of travel. The value of the avoidance coefficient is determined according to the virtual attribute, for example, the older the driver, the greater the avoidance coefficient; the smaller the avoidance coefficient is for a sports car, etc. Alternatively, the specific value of the avoidance coefficient may be set by using the electronic device to generate a random number.
[0111] Among them, the current driving distance between the second virtual vehicle and the first virtual vehicle can be the distance between the front of the first virtual vehicle and the front of the second virtual vehicle, or the distance between the rear of the first virtual vehicle and the front of the second virtual vehicle, or the distance between the rearview mirror of the first virtual vehicle and the front of the second virtual vehicle, or the distance between the center of mass of the first virtual vehicle and the center of mass of the second virtual vehicle, which is not limited in this embodiment of the present invention.
[0112] Among them, the lane position relationship between the first virtual vehicle and the second virtual vehicle refers to the position relationship between the simulated lane on which the first virtual vehicle is currently traveling and the simulated lane on which the second virtual vehicle is currently traveling. For example, the first virtual vehicle and the second virtual vehicle can travel in the same simulated lane, or the first virtual vehicle and the second virtual vehicle can travel in two adjacent simulated lanes respectively.
[0113] Step 203: Adjust the driving parameter threshold according to the lane position relationship and the avoidance coefficient.
[0114] Among them, when the second virtual vehicle exceeds the first virtual vehicle, the driving parameter threshold of the first virtual vehicle can be restored to the initial value set at the beginning of the simulation, and the simulated driving continues according to the initial driving parameter threshold.
[0115] In an embodiment of the present invention, the autonomous driving simulation platform controls the driving of the first virtual vehicle according to a driving parameter threshold value. In response to the current driving distance between the second virtual vehicle and the first virtual vehicle being less than or equal to the distance threshold value, the autonomous driving simulation platform obtains the avoidance coefficient of the first virtual vehicle and the lane position relationship between the first virtual vehicle and the second virtual vehicle, and then adjusts the driving parameter threshold value according to the lane position relationship and the avoidance coefficient. Since the avoidance coefficient is introduced and the driving parameter threshold value of the first virtual vehicle is adjusted according to the lane position relationship between the first virtual vehicle and the second virtual vehicle and the avoidance coefficient of the first virtual vehicle, the influence of the second virtual vehicle on the driving behavior of the first virtual vehicle can be simulated, thereby improving the accuracy of the simulation results and making the simulation results closer to reality.
[0116] It should be emphasized that in the vehicle simulation control method provided in the embodiment of the present invention, the autonomous driving simulation platform adjusts the driving parameter threshold of the first virtual vehicle instead of adjusting the current driving parameters of the first virtual vehicle. Therefore, the first virtual vehicle may not immediately perform the relevant avoidance action, so that the first virtual vehicle can adjust its own driving state according to the current driving environment. The autonomous driving simulation platform does not directly change the current driving state of the virtual vehicle mechanically. Moreover, since the driving parameter threshold is a global parameter, the driving parameter threshold of the first virtual vehicle is effective for all other virtual vehicles, thereby making the simulation result closer to reality.
[0117] Reference Figure 3 In the above step 203, the driving parameter threshold is adjusted according to the lane position relationship and the avoidance coefficient, which can specifically include the following steps 301 to 303.
[0118] Step 301: Obtain an aggressiveness coefficient of a first virtual vehicle.
[0119] Among them, the aggressiveness coefficient is used to characterize the driving aggressiveness of the first virtual vehicle. Similarly, the aggressiveness coefficient can also be assigned to the corresponding virtual vehicle before the simulation starts. During the entire simulation process, the virtual vehicle simulates driving according to the aggressiveness coefficient set by itself, and the aggressiveness coefficients of different virtual vehicles may be different. The aggressiveness coefficient can also be any floating point number between 0 and 1. In a possible implementation, the larger the aggressiveness coefficient, the higher the driving aggressiveness of the first virtual vehicle. Of course, it can also be set that the larger the aggressiveness coefficient, the lower the driving aggressiveness of the first virtual vehicle, depending on the actual simulation requirements. The embodiment of the present invention takes the example that the larger the aggressiveness coefficient, the higher the driving aggressiveness of the first virtual vehicle.
[0120] Similarly, in a possible implementation, the setting of the above-mentioned aggressiveness coefficient can be set by the electronic device acquiring a virtual attribute of the first virtual vehicle, where the virtual attribute can be at least one of the driver's age, the driver's gender, the vehicle type, the region, or the purpose of travel, and the value of the aggressiveness coefficient is determined according to the above-mentioned virtual attribute. Alternatively, the specific value of the aggressiveness coefficient can be set by using a random number generated by the electronic device.
[0121] Step 302: Determine the adjustment method of the driving parameter threshold according to the lane position relationship.
[0122] As mentioned above, the first virtual vehicle and the second virtual vehicle may have different lane position relationships. In an embodiment of the present invention, in order to achieve the avoidance of the second virtual vehicle by the first virtual vehicle, different lane position relationships between the first virtual vehicle and the second virtual vehicle have corresponding adjustment methods for driving parameter thresholds.
[0123] Step 303: Based on the adjustment method of the driving parameter threshold, the driving parameter threshold is adjusted according to the aggressiveness coefficient and the avoidance coefficient.
[0124] After determining the adjustment method of the driving parameter threshold, the driving parameter threshold is adjusted according to the aggressiveness coefficient and the avoidance coefficient based on the corresponding adjustment method. By introducing the aggressiveness coefficient and adjusting the driving parameter threshold in combination with the aggressiveness coefficient and the avoidance coefficient, the rationality of the adjustment of the driving parameter threshold can be improved, making the simulation results closer to reality.
[0125] The following describes the adjustment method of the driving parameter threshold in the embodiment of the present invention according to different situations.
[0126] In a possible implementation, the driving parameter threshold may be a driving speed threshold, and the result of the above step 302 may be: when the first virtual vehicle and the second virtual vehicle are respectively driving on two adjacent simulated lanes, the driving parameter threshold is determined to be adjusted by reducing the driving speed threshold. Since the first virtual vehicle and the second virtual vehicle are respectively driving on two adjacent simulated lanes, when the driving speed threshold of the first virtual vehicle is reduced, if the driving environment permits, the current driving speed of the first virtual vehicle will be reduced, so that the third virtual vehicle driving on the same simulated lane as the second virtual vehicle has space to change lanes to the simulated lane currently driven by the first virtual vehicle, thereby freeing up driving space for the second virtual vehicle and achieving an avoidance effect on the second virtual vehicle.
[0127] Among them, reducing the driving speed threshold of the first virtual vehicle may result in the following two situations:
[0128] In one case, the current driving speed of the first virtual vehicle is equal to the driving speed threshold. After the driving speed threshold is reduced, the current driving speed of the first virtual vehicle will be reduced accordingly to achieve an avoidance effect on the second virtual vehicle.
[0129] Another situation is that the current driving speed of the first virtual vehicle is less than the driving speed threshold. After the driving speed threshold is reduced, if the current driving speed of the first virtual vehicle is greater than the reduced driving speed threshold, the current driving speed of the first virtual vehicle will be reduced to achieve the avoidance effect of the second virtual vehicle; if the current driving speed of the first virtual vehicle is still less than the reduced driving speed threshold, it may be that the current driving environment does not support the first virtual vehicle to travel at the original driving speed threshold (for example, congestion), but at this time, since the driving speed threshold is reduced, even if the current driving environment meets the conditions, the current driving speed of the first virtual vehicle will at most increase to the reduced driving speed threshold, which can also provide lane change space for the third virtual vehicle to achieve the avoidance effect of the second virtual vehicle.
[0130] In summary, when the first virtual vehicle and the second virtual vehicle are respectively driving on two adjacent simulated lanes, the avoidance effect of the second virtual vehicle can be achieved by reducing the driving speed threshold of the first virtual vehicle, so as to simulate the driving behavior of the driver seeing the emergency vehicle in the real situation, and the above method is not a mechanical adjustment of the current driving speed of the first virtual vehicle, which is conducive to improving the vehicle simulation effect and making the simulation results closer to reality.
[0131] Based on this, refer to Figure 4 In the above step 303, the driving parameter threshold is adjusted according to the aggressiveness coefficient and the avoidance coefficient, which can be specifically achieved through the following steps 401 to 404.
[0132] Step 401: Obtain the current driving speed threshold of the first virtual vehicle;
[0133] In a possible implementation, when the driving speed threshold of the first virtual vehicle has not changed, the driving speed threshold currently set for the first virtual vehicle is the driving speed threshold set at the beginning of the simulation.
[0134] Step 402: Obtain a first adjustment parameter according to the aggressiveness coefficient;
[0135] Step 403: Obtain a second adjustment parameter according to the avoidance coefficient;
[0136] Step 404: Use the second adjustment parameter to adjust the first adjustment parameter, and reduce the driving speed threshold according to the adjusted first adjustment parameter.
[0137] In a possible implementation, when the first virtual vehicle and the second virtual vehicle are respectively traveling in two adjacent simulated lanes, the driving speed threshold needs to be reduced, so the first adjustment parameter and the second adjustment parameter can both be less than 1, and then the first adjustment parameter is further determined by combining the relationship between the aggressiveness coefficient and the driving aggressiveness, and the second adjustment parameter is determined by combining the relationship between the avoidance coefficient and the avoidance initiative. In addition, the first adjustment parameter related to the aggressiveness coefficient is adjusted by using the second adjustment parameter related to the avoidance coefficient, so that the application of the aggressiveness coefficient is more in line with reality.
[0138] When the aggressiveness coefficient is larger, it indicates that the driving aggressiveness of the first virtual vehicle is higher, and the first adjustment parameter may be A; when the avoidance coefficient is larger, the first virtual vehicle is more proactive in avoiding the second virtual vehicle, and the second adjustment parameter may be 1-F. Based on this, the adjusted driving speed threshold may be expressed by the following formula:
[0139] V f1 =(1-F)*A*V f
[0140] Among them, V f is the driving speed threshold, V f1 is the adjusted driving speed threshold. Therefore, since both F and A are less than 1, when A is smaller (the first virtual vehicle's driving aggression is lower) and F is larger (the first virtual vehicle's avoidance of the second virtual vehicle is more proactive), the driving speed threshold is reduced more, and more lane change space is freed up for the third virtual vehicle.
[0141] On this basis, in a possible implementation, the congestion degree coefficient of the simulated lane currently traveled by the first virtual vehicle can also be introduced to adjust the driving speed threshold. The congestion degree coefficient is used to characterize the congestion degree of the simulated lane currently traveled by the first virtual vehicle. When the congestion degree coefficient is larger, the congestion degree of the simulated lane currently traveled by the first virtual vehicle is higher, and the driving speed threshold can be reduced more at this time. If B represents the congestion degree of the simulated lane currently traveled by the first virtual vehicle, the adjusted driving speed threshold can be expressed by the following formula:
[0142] V f1 =(1-B)*(1-F)*A*V f
[0143] Alternatively, when the aggressiveness coefficient is larger, the driving aggressiveness of the first virtual vehicle is lower, and the first adjustment parameter may be 1-A; when the avoidance coefficient is larger, the avoidance initiative of the first virtual vehicle to the second virtual vehicle is lower, and the second adjustment parameter may be F. Based on this, the adjusted driving speed threshold may be expressed by the following formula:
[0144] V f1 =F*(1-A)*V f
[0145] Among them, V f is the driving speed threshold, V f1 is the adjusted driving speed threshold. Therefore, since both F and A are less than 1, when A is larger (the first virtual vehicle's driving aggression is lower) and F is smaller (the first virtual vehicle's avoidance of the second virtual vehicle is more proactive), the driving speed threshold is reduced more, and more lane change space is freed up for the third virtual vehicle.
[0146] The following is an exemplary scenario to illustrate the adjustment of the above driving speed threshold. Figure 5 , a first simulation lane 501 and a second simulation lane 502 are adjacent to each other in the simulation area, a first virtual vehicle 503 travels on the second simulation lane 502, a second virtual vehicle travels on the first simulation lane 501, and the second virtual vehicle 504 travels behind the first virtual vehicle 503, and a third virtual vehicle 505 travels on the first simulation lane 501 and in front of the second virtual vehicle 504. When the current driving distance d1 between the first virtual vehicle 503 and the second virtual vehicle 504 is less than or equal to the target distance, the automatic driving simulation platform will reduce the driving speed threshold of the first virtual vehicle 503. If conditions permit, the current driving speed of the first virtual vehicle 503 will gradually decrease, thereby providing lane changing space for the third virtual vehicle 505, thereby achieving the avoidance effect of the second virtual vehicle 504.
[0147] In a possible implementation, the driving parameter threshold may also be a driving safety distance threshold, and the result of the above step 302 may also be: when the first virtual vehicle and the second virtual vehicle are respectively driving on two adjacent simulated lanes, the driving parameter threshold is determined to be adjusted by increasing the driving safety distance threshold. Since the first virtual vehicle and the second virtual vehicle are respectively driving on two adjacent simulated lanes, when the driving safety distance threshold of the first virtual vehicle is increased, the current driving speed of the first virtual vehicle will decrease to increase the distance between the first virtual vehicle and the vehicle in front, so that the third virtual vehicle driving on the same simulated lane as the second virtual vehicle has space to change lanes to the simulated lane currently driven by the first virtual vehicle, thereby freeing up driving space for the second virtual vehicle and achieving the effect of avoiding the second virtual vehicle.
[0148] Similarly, increasing the safe driving distance threshold of the first virtual vehicle may result in the following two situations:
[0149] In one case, the current vehicle spacing of the first virtual vehicle is equal to the safe driving distance threshold. After the safe driving distance threshold is increased, the current vehicle spacing of the first virtual vehicle will increase accordingly, and the current driving speed of the first virtual vehicle will decrease to achieve the avoidance effect of the second virtual vehicle.
[0150] Another situation is that the current inter-vehicle distance of the first virtual vehicle is greater than the safe driving distance threshold. After the safe driving distance threshold is increased, if the current inter-vehicle distance of the first virtual vehicle is less than the increased safe driving distance threshold, the first virtual vehicle will increase the current inter-vehicle distance and the current driving speed will decrease to achieve the avoidance effect of the second virtual vehicle; if the current inter-vehicle distance of the first virtual vehicle is still greater than the increased safe driving distance threshold, it may be that the current driving environment does not support the first virtual vehicle to reduce the current inter-vehicle distance (for example, congestion), but at this time, due to the increase in the safe driving distance threshold, even if the current driving environment meets the conditions, the current inter-vehicle distance of the first virtual vehicle will be reduced to the increased safe driving distance threshold at most, which can also provide lane change space for the third virtual vehicle to achieve the avoidance effect of the second virtual vehicle.
[0151] In summary, when the first virtual vehicle and the second virtual vehicle are driving on two adjacent simulated lanes respectively, the avoidance effect of the second virtual vehicle can be achieved by increasing the driving safety distance threshold of the first virtual vehicle, so as to simulate the driving behavior of the driver seeing the emergency vehicle in the real situation, and the above method is not a mechanical adjustment of the current vehicle distance of the first virtual vehicle, which is conducive to improving the vehicle simulation effect and making the simulation result closer to reality.
[0152] Based on this, refer to Figure 6In the above step 303, the driving parameter threshold is adjusted according to the aggressiveness coefficient and the avoidance coefficient, which can also be implemented through the following steps 601 to 604.
[0153] Step 601: Obtain the current safe driving distance threshold of the first virtual vehicle;
[0154] In a possible implementation, when the safe driving distance threshold of the first virtual vehicle has not changed, the safe driving distance threshold currently set for the first virtual vehicle is the safe driving distance threshold set at the beginning of the simulation.
[0155] Step 602: Obtain a third adjustment parameter according to the aggressiveness coefficient;
[0156] Step 603: Obtain a fourth adjustment parameter according to the avoidance coefficient;
[0157] Step 604: Use the fourth adjustment parameter to adjust the third adjustment parameter, and increase the driving safety distance threshold according to the adjusted third adjustment parameter.
[0158] In a possible implementation, when the first virtual vehicle and the second virtual vehicle are respectively driving on two adjacent simulated lanes, the driving safety distance threshold needs to be increased, so the third adjustment parameter and the fourth adjustment parameter can both be greater than 1, and then the third adjustment parameter is further determined by combining the relationship between the aggressiveness coefficient and the driving aggressiveness, and the fourth adjustment parameter is determined by combining the relationship between the avoidance coefficient and the avoidance initiative. In addition, the third adjustment parameter related to the aggressiveness coefficient is adjusted by using the fourth adjustment parameter related to the avoidance coefficient, so that the application of the aggressiveness coefficient is more in line with reality.
[0159] When the aggressiveness coefficient is larger, it indicates that the driving aggressiveness of the first virtual vehicle is higher, and the third adjustment parameter may be 2-A; when the avoidance coefficient is larger, the first virtual vehicle is more proactive in avoiding the second virtual vehicle, and the second adjustment parameter may be 1+F. Based on this, the adjusted driving safety distance threshold may be expressed by the following formula:
[0160] D1=(1+F)*(2-A)*D
[0161] Among them, D is the driving safety distance threshold, and D1 is the adjusted driving safety distance threshold. Therefore, since both F and A are greater than 1, when A is smaller (the first virtual vehicle's driving aggression is less) and F is larger (the first virtual vehicle's avoidance of the second virtual vehicle is more proactive), the driving safety distance threshold increases more, and more lane change space is freed up for the third virtual vehicle.
[0162] On this basis, similarly, the congestion degree coefficient of the simulation lane where the first virtual vehicle is currently traveling can also be introduced to adjust the driving safety distance threshold. When the congestion degree coefficient is larger, the increase in the driving safety distance threshold will become smaller. If B represents the congestion degree of the simulation lane where the first virtual vehicle is currently traveling, the adjusted driving speed threshold can be expressed by the following formula:
[0163] D1=(1-B)*(1+F)*(2-A)*D
[0164] Alternatively, when the aggressiveness coefficient is larger, the driving aggressiveness of the first virtual vehicle is lower, and the first adjustment parameter may be 1+A; when the avoidance coefficient is larger, the avoidance initiative of the first virtual vehicle to the second virtual vehicle is lower, and the second adjustment parameter may be 2-F. Based on this, the adjusted driving speed threshold may be expressed by the following formula:
[0165] D1=(2-F)*(1+A)*D
[0166] Among them, D is the driving safety distance threshold, and D1 is the adjusted driving safety distance threshold. Therefore, since both F and A are greater than 1, when A is larger (the first virtual vehicle's driving aggression is less) and F is smaller (the first virtual vehicle's avoidance of the second virtual vehicle is more proactive), the driving safety distance threshold increases more, and more lane change space is freed up for the third virtual vehicle.
[0167] Figure 5 The exemplary scenario shown can also be used to illustrate the adjustment of the above-mentioned safe driving distance threshold. When the current driving distance d1 between the first virtual vehicle 503 and the second virtual vehicle 504 is less than or equal to the target distance, the autonomous driving simulation platform will increase the safe driving distance threshold. If conditions permit, the autonomous driving simulation platform will increase the safe driving distance threshold of the first virtual vehicle 503. The first virtual vehicle 503 will reduce the current driving speed to increase the current vehicle distance until the current vehicle distance reaches the safe driving distance threshold, thereby providing the third virtual vehicle 505 with space to change lanes and achieve the avoidance effect of the second virtual vehicle 504.
[0168] In one possible implementation, when the first virtual vehicle and the second virtual vehicle are respectively traveling in two adjacent simulated lanes, and the second virtual vehicle is traveling within a target distance range behind the first virtual vehicle, the first virtual vehicle maintains traveling at the adjusted driving speed threshold and driving safety distance threshold. If the first virtual vehicle changes lanes to another simulated lane adjacent to the second simulated lane (not the simulated lane where the second virtual vehicle is located), the driving speed threshold and the driving safety distance threshold can be restored to the values set at the beginning of the simulation.
[0169] It can be understood that the above-mentioned adjustments to the driving speed threshold and the driving safety distance threshold can be performed either one or both when the conditions are met. When the driving speed threshold and the driving safety distance threshold are both adjusted, the first virtual vehicle's avoidance of the second virtual vehicle can be adapted to more driving environments, making the simulation results closer to reality.
[0170] It can be understood that when there are adjacent simulated lanes on both sides of the simulated lane where the second virtual vehicle is currently traveling, the above-mentioned vehicle simulation control method can act on the adjacent simulated lanes on both sides respectively.
[0171] In a possible implementation, the currently set target distance can also be obtained, and the target distance can be adjusted according to the aggressiveness coefficient. When the aggressiveness coefficient of the first virtual vehicle is higher, the target distance can be smaller, that is, the closer the second virtual vehicle is to the first virtual vehicle, the first virtual vehicle will perform the corresponding action, so that the simulation result is closer to reality. For example, if the currently set target distance of the first virtual vehicle is 20 meters and the aggressiveness coefficient of the first virtual vehicle is 0.5, the target distance can be adjusted to 10 meters.
[0172] In one possible implementation, when the first virtual vehicle and the second virtual vehicle are respectively traveling in two adjacent simulated lanes, it can also affect the lateral driving behavior of the first virtual vehicle, controlling the first virtual vehicle to prohibit lane changing to the simulated lane where the second virtual vehicle is traveling, so as to ensure that the first virtual vehicle does not occupy the driving space of the second virtual vehicle.
[0173] In a possible implementation, when the driving parameter threshold is a driving speed threshold, the result of the above step 302 may also be: when the first virtual vehicle and the second virtual vehicle are traveling in the same simulation lane, the driving parameter threshold is determined to be adjusted by increasing the driving speed threshold. Since the first virtual vehicle and the second virtual vehicle are traveling in the same simulation lane, when the driving speed threshold of the first virtual vehicle is increased, if the driving environment permits, the current driving speed of the first virtual vehicle will increase, thereby freeing up driving space for the second virtual vehicle, thereby achieving an avoidance effect on the second virtual vehicle.
[0174] Among them, increasing the driving speed threshold of the first virtual vehicle may result in the following two situations:
[0175] In one case, after the driving speed threshold is increased, the current driving speed of the first virtual vehicle will increase accordingly to achieve an avoidance effect on the second virtual vehicle.
[0176] Another situation is that after the driving speed threshold is increased, if the current driving speed of the first virtual vehicle still cannot reach the increased driving speed threshold, it may be that the current driving environment does not support the first virtual vehicle to travel at a faster speed (such as congestion). However, at this time, since the driving speed threshold has been increased, when the driving environment is qualified, the current driving speed of the first virtual vehicle will increase to the increased driving speed threshold, thereby achieving the avoidance effect of the second virtual vehicle.
[0177] In summary, when the first virtual vehicle and the second virtual vehicle are traveling in the same simulated lane, the avoidance effect of the second virtual vehicle can be achieved by reducing the driving speed threshold of the first virtual vehicle, so as to simulate the driving behavior of the driver seeing the emergency vehicle in the real situation, and the above method is not a mechanical adjustment of the current driving speed of the first virtual vehicle, which is conducive to improving the vehicle simulation effect and making the simulation results closer to reality.
[0178] Based on this, refer to Figure 7 In the above step 303, the driving parameter threshold is adjusted according to the aggressiveness coefficient and the avoidance coefficient, which can also be implemented by the following steps 701 to 704.
[0179] Step 701: Obtain the current driving speed threshold of the first virtual vehicle;
[0180] Step 702: Obtain a fifth adjustment parameter according to the aggressiveness coefficient;
[0181] Step 703: Obtain a sixth adjustment parameter according to the avoidance coefficient;
[0182] Step 704: Use the sixth adjustment parameter to adjust the fifth adjustment parameter, and increase the driving speed threshold according to the adjusted first adjustment parameter.
[0183] In a possible implementation, when the first virtual vehicle and the second virtual vehicle are traveling in the same simulation lane, the driving speed threshold needs to be increased, so the fifth adjustment parameter and the sixth adjustment parameter can both be greater than 1, and then the fifth adjustment parameter is further determined by combining the relationship between the aggressiveness coefficient and the driving aggressiveness, and the sixth adjustment parameter is determined by combining the relationship between the avoidance coefficient and the avoidance initiative. In addition, the fifth adjustment parameter related to the aggressiveness coefficient is adjusted by using the sixth adjustment parameter related to the avoidance coefficient, so that the application of the aggressiveness coefficient is more in line with reality.
[0184] When the aggressiveness coefficient is larger, indicating that the driving aggressiveness of the first virtual vehicle is higher, the fifth adjustment parameter may be 1+A; when the avoidance coefficient is larger, the first virtual vehicle is more proactive in avoiding the second virtual vehicle, the sixth adjustment parameter may be 1+F. Based on this, the adjusted driving speed threshold may be expressed by the following formula:
[0185] V f1 =(1+F)*(1+A)*V f
[0186] Among them, V f is the driving speed threshold, V f1 is the adjusted driving speed threshold. Therefore, when A is larger (the first virtual vehicle drives more aggressively) and F is larger (the first virtual vehicle actively avoids the second virtual vehicle), the driving speed threshold increases more, and more driving space is freed up for the second virtual vehicle.
[0187] On this basis, in a possible implementation, the congestion degree coefficient of the simulated lane where the first virtual vehicle is currently traveling can also be introduced to adjust the driving speed threshold. When the congestion degree coefficient is larger, the congestion degree of the simulated lane where the first virtual vehicle is currently traveling is higher, and the increase in the driving safety distance threshold will become smaller. If B represents the congestion degree of the simulated lane where the first virtual vehicle is currently traveling, the adjusted driving speed threshold can be expressed by the following formula:
[0188] V f1 =(1-B)*(1+F)*(1+A)*V f
[0189] Alternatively, when the aggressiveness coefficient is larger, the driving aggressiveness of the first virtual vehicle is lower, and the fifth adjustment parameter may be 2-A; when the avoidance coefficient is larger, the avoidance initiative of the first virtual vehicle to the second virtual vehicle is lower, and the sixth adjustment parameter may be 2-F. Based on this, the adjusted driving speed threshold may be expressed by the following formula:
[0190] V f1 =(2-F)*(2-A)*V f
[0191] Among them, V f is the driving speed threshold, V f1 is the adjusted driving speed threshold. Therefore, when A is smaller (the first virtual vehicle drives more aggressively) and F is smaller (the first virtual vehicle actively avoids the second virtual vehicle), the driving speed threshold increases more, and more driving space is freed up for the second virtual vehicle.
[0192] The following is an exemplary scenario to illustrate the adjustment of the above driving speed threshold. Figure 8, the first virtual vehicle 802 and the second virtual vehicle 803 are both traveling on the first simulation lane 801, and the second virtual vehicle 803 is traveling behind the first virtual vehicle 802. When the current driving distance d1 between the first virtual vehicle 802 and the second virtual vehicle 803 is less than or equal to the target distance, the autonomous driving simulation platform will increase the driving speed threshold of the first virtual vehicle 802. If conditions permit, the current driving speed of the first virtual vehicle 802 will gradually increase, thereby providing driving space for the second virtual vehicle 803 and achieving the avoidance effect of the second virtual vehicle 803.
[0193] In a possible implementation, the above method of increasing the driving speed threshold can be applied to a scenario where there is only one simulated lane in the simulation area. When there is only one simulated lane in the simulation area, it can be determined whether there is a condition to pull over. If there is a condition to pull over, the first virtual vehicle can pull over first. If there is no condition to pull over, the driving speed threshold of the first virtual vehicle is increased.
[0194] In a possible implementation, when the number of simulated lanes in the simulation area is more than two, the driving parameter threshold may include a first lane change safety distance threshold and a second lane change safety distance threshold. The result of the above step 302 may also be: when the first virtual vehicle and the second virtual vehicle are both traveling in the same simulated lane, the adjustment method of determining the driving parameter threshold is to reduce the first lane change safety distance threshold and the second lane change safety distance threshold, wherein the first lane change safety distance threshold is the distance threshold between the first virtual vehicle and the leading vehicle in the second simulated lane, and the first lane change safety distance threshold may be the distance threshold between the front of the first virtual vehicle and the front of the leading vehicle in the second simulated lane, or also It can be the distance threshold between the front of the first virtual vehicle and the rear of the leading vehicle in the second simulated lane, or it can be the distance threshold between the center of mass of the first virtual vehicle and the center of mass of the leading vehicle in the second simulated lane; the second lane change safety distance threshold is the distance threshold between the first virtual vehicle and the following vehicle in the second simulated lane, and the first lane change safety distance threshold can be the distance threshold between the front of the first virtual vehicle and the front of the following vehicle in the second simulated lane, or it can be the distance threshold between the rear of the first virtual vehicle and the front of the following vehicle in the second simulated lane, or it can be the distance threshold between the center of mass of the first virtual vehicle and the center of mass of the following vehicle in the second simulated lane. Since the first virtual vehicle and the second virtual vehicle are traveling in the same simulated lane, when the first lane change safety distance threshold and the second lane change safety distance threshold are reduced, if the driving environment permits, the first virtual vehicle will change lanes to the simulated lane adjacent to the simulated lane it is currently traveling in, so as to achieve the effect of avoiding the second virtual vehicle.
[0195] Based on this, refer to Fig. 9 In the above step 303, the driving parameter threshold is adjusted according to the aggressiveness coefficient and the avoidance coefficient, which can be specifically achieved by following the steps 901 to 904.
[0196] Step 901: Obtaining a first lane-changing safety distance threshold and a second lane-changing safety distance threshold currently set for a first virtual vehicle;
[0197] In a possible implementation, when the first lane change safety distance threshold and the second lane change safety distance threshold of the first virtual vehicle have not changed, the first lane change safety distance threshold and the second lane change safety distance threshold currently set for the first virtual vehicle are the first lane change safety distance threshold and the second lane change safety distance threshold set at the beginning of the simulation.
[0198] Step 902: Obtain a seventh adjustment parameter according to the aggressiveness coefficient;
[0199] Step 903: obtaining an eighth adjustment parameter according to the avoidance coefficient;
[0200] Step 904: Use the eighth adjustment parameter to adjust the seventh adjustment parameter, and reduce the first lane-changing safety distance threshold and the second lane-changing safety distance threshold according to the adjusted seventh adjustment parameter.
[0201] In a possible implementation, when the first virtual vehicle and the second virtual vehicle are respectively driving in two adjacent simulated lanes, the first lane change safety distance threshold and the second lane change safety distance threshold need to be reduced, so the seventh adjustment parameter and the eighth adjustment parameter can be both less than 1, and then the seventh adjustment parameter is further determined by combining the relationship between the aggressiveness coefficient and the driving aggressiveness, and the eighth adjustment parameter is determined by combining the relationship between the avoidance coefficient and the avoidance initiative. In addition, the seventh adjustment parameter related to the aggressiveness coefficient is adjusted by using the eighth adjustment parameter related to the avoidance coefficient, so that the application of the aggressiveness coefficient is more in line with reality.
[0202] When the aggressiveness coefficient is larger, indicating that the driving aggressiveness of the first virtual vehicle is higher, the seventh adjustment parameter may be A; when the avoidance coefficient is larger, the first virtual vehicle is more proactive in avoiding the second virtual vehicle, the eighth adjustment parameter may be 1-F. Based on this, the adjusted first lane change safety distance threshold may be expressed by the following formula:
[0203] G TP1 =(1-F)*(1-A)*G TP
[0204] Among them, G TP is the first lane change safety distance threshold, G TP1is the adjusted first lane change safety distance threshold. Therefore, since both F and A are less than 1, the larger A is (the more aggressive the driving of the first virtual vehicle is) and the larger F is (the more proactive the first virtual vehicle is in avoiding the second virtual vehicle), the more the first lane change safety distance threshold decreases, and the first virtual vehicle is more inclined to change lanes to the adjacent simulated lane. The principle of reducing the second lane change safety distance threshold is similar and will not be repeated here.
[0205] On this basis, in a possible implementation, the congestion degree coefficient of the simulated lane adjacent to the simulated lane currently traveled by the first virtual vehicle can also be introduced to adjust the first lane change safety distance threshold. When the congestion degree coefficient is larger, the congestion degree of the simulated lane currently traveled by the first virtual vehicle is higher. At this time, the reduction amplitude of the first lane change safety distance threshold can be reduced, so that the lane change tendency of the first virtual vehicle is reduced to avoid making the adjacent simulated lane more congested. If B represents the congestion degree of the simulated lane currently traveled by the first virtual vehicle, the adjusted first lane change safety distance threshold can be expressed by the following formula:
[0206] G TP1 =B*(1-F)*(1-A)*G TP
[0207] Alternatively, when the aggressiveness coefficient is larger, indicating that the driving aggressiveness of the first virtual vehicle is lower, the seventh adjustment parameter may be A; when the avoidance coefficient is larger, the first virtual vehicle's avoidance initiative to the second virtual vehicle is lower, the eighth adjustment parameter may be F. Based on this, the adjusted first lane change safety distance threshold may be expressed by the following formula:
[0208] G TP1 =F*A*G TP
[0209] Among them, G TP is the first lane change safety distance threshold, G TP1 is the adjusted first lane change safety distance threshold. Therefore, when A is smaller (the first virtual vehicle drives more aggressively) and F is smaller (the first virtual vehicle actively avoids the second virtual vehicle), the first lane change safety distance threshold decreases more, and the first virtual vehicle is more inclined to change lanes to the adjacent simulated lane. The principle of reducing the second lane change safety distance threshold is similar and will not be repeated here.
[0210] It can be understood that when the first virtual vehicle changes lanes to a simulated lane adjacent to the simulated lane in which it is currently traveling, the simulated lanes in which the first virtual vehicle and the second virtual vehicle are currently traveling become adjacent lanes. At this time, the first virtual vehicle can be controlled according to the aforementioned vehicle simulation control method when the first virtual vehicle and the second virtual vehicle are respectively traveling in two adjacent simulated lanes.
[0211] The following is an exemplary scenario to illustrate the adjustment of the first lane change safety distance threshold and the second lane change safety distance threshold. Fig.10 , a first simulation lane 1001 and a second simulation lane 1002 are adjacently arranged in the simulation area, a first virtual vehicle 1003 and a second virtual vehicle 1004 are both traveling on the first simulation lane 1001, and the second virtual vehicle 1004 is traveling behind the first virtual vehicle 1003, a third virtual vehicle 1005 is traveling on the second simulation lane 1002 and is the leading vehicle of the first virtual vehicle 1003, a fourth virtual vehicle 1006 is traveling on the second simulation lane 1002 and is the following vehicle of the first virtual vehicle 1003, and a third virtual vehicle 1005 is traveling on the second simulation lane 1002 and is the following vehicle of the first virtual vehicle 1003. The first current lane change distance d2 between the first virtual vehicle 1003 and the third virtual vehicle 1005 and the second current lane change distance d3 between the first virtual vehicle 1003 and the fourth virtual vehicle 1006 are used to determine whether the first virtual vehicle 1003 is qualified to change lanes to the second simulated lane 1002. When the first current lane change distance d2 is greater than the first lane change safety distance threshold, and the second current lane change distance d3 is greater than the second lane change safety distance threshold, it can be considered that the first virtual vehicle 1003 is qualified to change lanes to the second simulated lane 1002. When the current driving distance d1 between the first virtual vehicle 1003 and the second virtual vehicle 1004 is less than or equal to the target distance, the automatic driving simulation platform will reduce the first lane change safety distance threshold and the second lane change safety distance threshold of the first virtual vehicle 1003. If conditions permit, the first virtual vehicle 1003 will be more inclined to change lanes to the second simulated lane 1002, thereby providing driving space for the second virtual vehicle 1004 and achieving the avoidance effect of the second virtual vehicle 1004.
[0212] In a possible implementation, even based on the reduced first lane change safety distance threshold and the second lane change safety distance threshold, there may be a situation where the current lane change distance of the first virtual vehicle cannot meet the lane change safety distance threshold. At this time, it can be judged that when the first virtual vehicle has not successfully changed lanes from the first simulation lane to the second simulation lane within the time threshold, the driving speed threshold currently set for the first virtual vehicle is obtained, and the driving speed threshold is increased according to the aggressiveness coefficient and the avoidance coefficient. If conditions permit, the current driving speed of the first virtual vehicle will gradually increase, thereby providing driving space for the second virtual vehicle and achieving an avoidance effect on the second virtual vehicle. Among them, the principle of increasing the driving speed threshold has been explained in detail before and will not be repeated here. The time threshold can be set according to actual needs, and the embodiment of the present invention is not limited. For example, it can be 10 seconds, 20 seconds, etc.
[0213] In a possible implementation, the currently set time threshold can also be obtained, and the time threshold can be adjusted according to the aggressiveness coefficient of the first virtual vehicle. For example, when the aggressiveness coefficient indicates that the first virtual vehicle has a higher driving aggressiveness, the time threshold can be reduced, that is, the length of time willing to wait when the driving aggressiveness is higher is shortened accordingly, so that the simulation result is closer to reality. It can be understood that when the aggressiveness coefficient indicates that the first virtual vehicle has a lower driving aggressiveness, the time threshold can be increased, that is, the length of time willing to wait when the driving aggressiveness is lower is increased accordingly.
[0214] In a possible implementation, when the first virtual vehicle and the second virtual vehicle are traveling in the same simulated lane and there are simulated lanes on both sides of the adjacent lanes, the order in which the first virtual vehicle changes lanes can be determined according to a preset rule. For example, the first virtual vehicle can be determined based on the degree of congestion, and the first virtual vehicle has priority to change lanes to an adjacent simulated lane with a relatively low degree of congestion. Fig.11 , the first simulated lane 1101 in the simulation area is respectively provided with the adjacent second simulated lane 1102 and the third simulated lane 1103, and the congestion level of the second simulated lane 1102 is higher than that of the third simulated lane 1103. Then, the relationship between the current lane changing distance of the first virtual vehicle 1104 for the third simulated lane 1103 and the lane changing safety distance threshold will be preferentially judged. If the conditions are met, the first virtual vehicle 1104 changes lanes to the third simulated lane 1103.
[0215] It is understandable that the above Figure 4 , Figure 6 , Figure 7 and Fig. 9 In the various adjustment methods of the driving parameter thresholds shown, the avoidance coefficient involved can be the same. Of course, different avoidance coefficients can also be set for different control scenarios, that is, the avoidance coefficient is a general term, for example, the avoidance coefficient can include a deceleration coefficient, an acceleration coefficient, and a lane change coefficient. Figure 4 Get the second adjustment parameter, Figure 6 The avoidance coefficient of the fourth adjustment parameter is the deceleration coefficient. Figure 7 The avoidance coefficient of the sixth adjustment parameter is the acceleration coefficient. Fig. 9 The avoidance coefficient of the eighth adjustment parameter is obtained as the lane change coefficient.
[0216] The vehicle simulation control method provided by the embodiment of the present invention is described below in detail.
[0217] Reference Fig.12 , is a flow chart of a vehicle simulation control method provided by an embodiment of the present invention when a first virtual vehicle and a second virtual vehicle are respectively traveling on two adjacent simulation lanes:
[0218] Step 1201: Controlling the first virtual vehicle to travel according to the driving speed threshold and driving safety distance threshold assigned at the beginning of the simulation;
[0219] Step 1202: Determine whether the second virtual vehicle is traveling behind the first virtual vehicle and whether the current driving distance between the first virtual vehicle and the second virtual vehicle is less than the target distance. If so, jump to step 1203; otherwise, jump to step 1204;
[0220] Step 1203: adjusting the driving speed threshold and driving safety distance threshold of the first virtual vehicle according to the avoidance coefficient and the aggressiveness coefficient of the first virtual vehicle, and prohibiting the first virtual vehicle from changing lanes to the simulated lane where the second virtual vehicle is located, and jumping to step 1202;
[0221] Step 1204 : restore the driving speed threshold and driving safety distance threshold of the first virtual vehicle to the values assigned at the beginning of the simulation, and jump to step 1201 .
[0222] Reference Fig.13 , is a flow chart of a vehicle simulation control method when a first virtual vehicle and a second virtual vehicle are traveling on the same simulation lane provided by an embodiment of the present invention:
[0223] Step 1301: Controlling the first virtual vehicle to travel according to the driving speed threshold and driving safety distance threshold assigned at the beginning of the simulation;
[0224] Step 1302: Determine whether the second virtual vehicle is traveling behind the first virtual vehicle and whether the current driving distance between the first virtual vehicle and the second virtual vehicle is less than the target distance. If so, jump to step 1303; otherwise, jump to step 1304;
[0225] Step 1303: Determine whether there is only one simulated lane in the simulated area, if so, jump to step 1305, if not, jump to step 1310;
[0226] Step 1304: restore the driving speed threshold of the first virtual vehicle to the value assigned at the beginning of the simulation, continue driving on the current simulation lane, and jump to step 1301;
[0227] Step 1305: Determine whether there are conditions for pull-over parking. If yes, jump to step 1306; otherwise, jump to step 1309;
[0228] Step 1306: Control the first virtual vehicle to park on the side of the road;
[0229] Step 1307: Determine whether the second virtual vehicle is traveling behind the first virtual vehicle and whether the current driving distance between the first virtual vehicle and the second virtual vehicle is less than the target distance. If so, jump to step 1306; otherwise, jump to step 1308;
[0230] Step 1308: Continue driving in the current simulated lane and jump to step 1301;
[0231] Step 1309: adjusting the driving speed threshold of the first virtual vehicle according to the avoidance coefficient and the aggressiveness coefficient of the first virtual vehicle, and jumping to step 1302;
[0232] Step 1310: adjusting the lane change safety distance threshold of the first virtual vehicle according to the avoidance coefficient and the aggressiveness coefficient of the first virtual vehicle;
[0233] Step 1311: judging whether the adjacent simulated lane meets the lane change condition according to the adjusted lane change safety distance threshold, if yes, skip to step 1314, otherwise skip to step 1312;
[0234] Step 1312: Determine whether the lane change condition is still not met after exceeding the time threshold. If so, jump to step 1313; otherwise, jump to step 1311;
[0235] Step 1313: adjusting the driving speed threshold of the first virtual vehicle according to the avoidance coefficient and the aggressiveness coefficient of the first virtual vehicle, and jumping to step 1311;
[0236] Step 1314: Control the first virtual vehicle to change lanes to an adjacent simulation lane;
[0237] Step 1315: restore the driving speed threshold of the first virtual vehicle to the value assigned at the beginning of the simulation, and continue driving on the adjacent simulation lane.
[0238] Fig.12 and Fig.13 The vehicle simulation control method shown can simulate the influence of the second virtual vehicle on the driving behavior of the first virtual vehicle by adjusting the driving speed threshold, driving safety distance threshold or lane change safety distance threshold of the first virtual vehicle according to the lane position relationship between the first virtual vehicle and the second virtual vehicle and the avoidance coefficient and aggressiveness coefficient of the first virtual vehicle, thereby improving the accuracy of the simulation results and making the simulation results closer to reality. Since the adjustment of the driving speed threshold, driving safety distance threshold or lane change safety distance threshold of the first virtual vehicle according to the avoidance coefficient and aggressiveness coefficient of the first virtual vehicle has been described in detail above, it will not be repeated here.
[0239] It is to be understood that, although each step in the above-mentioned each flow chart is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in the present embodiment, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flow chart can include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of the steps or stages in other steps or other steps.
[0240] Reference Fig.14 The embodiment of the present invention further provides a vehicle simulation control device, comprising:
[0241] A driving control module 1401 is used to control the driving of the first virtual vehicle according to the driving parameter threshold;
[0242] an acquisition module 1402, configured to acquire an avoidance coefficient of the first virtual vehicle and a lane position relationship between the first virtual vehicle and the second virtual vehicle in response to the current driving distance between the second virtual vehicle and the first virtual vehicle being less than or equal to the target distance, wherein the second virtual vehicle travels behind the first virtual vehicle, and the avoidance coefficient is used to characterize the degree of initiative of the first virtual vehicle in avoiding the second virtual vehicle;
[0243] The parameter adjustment module 1403 is used to adjust the driving parameter threshold according to the lane position relationship and the avoidance coefficient.
[0244] Since the avoidance coefficient is introduced through the acquisition module 1402, and the parameter adjustment module 1403 adjusts the driving parameter threshold of the first virtual vehicle according to the lane position relationship between the first virtual vehicle and the second virtual vehicle and the avoidance coefficient of the first virtual vehicle, when the second virtual vehicle is an emergency vehicle, the influence of the second virtual vehicle on the driving behavior of the first virtual vehicle can be simulated, thereby improving the accuracy of the simulation results and making the simulation results closer to reality.
[0245] Furthermore, the parameter adjustment module 1403 is specifically used for:
[0246] Obtaining an aggressiveness coefficient of the first virtual vehicle, where the aggressiveness coefficient is used to characterize the driving aggressiveness of the first virtual vehicle;
[0247] Determine the adjustment method of the driving parameter threshold according to the lane position relationship;
[0248] Based on the adjustment method, the driving parameter threshold is adjusted according to the aggressiveness coefficient and the avoidance coefficient.
[0249] Furthermore, the driving parameter threshold includes a driving speed threshold. The parameter adjustment module 1403 is specifically used for:
[0250] When the first virtual vehicle and the second virtual vehicle are respectively traveling on two adjacent simulation lanes, the driving parameter threshold is determined to be adjusted in a manner of reducing the driving speed threshold.
[0251] Furthermore, the parameter adjustment module 1403 is specifically used for:
[0252] Obtaining a currently set driving speed threshold of the first virtual vehicle;
[0253] Obtaining a first adjustment parameter according to the radicality coefficient;
[0254] Obtaining a second adjustment parameter according to the avoidance coefficient;
[0255] The first adjustment parameter is adjusted using the second adjustment parameter, and the driving speed threshold is reduced according to the adjusted first adjustment parameter.
[0256] Furthermore, the driving parameter threshold includes a driving safety distance threshold. The parameter adjustment module 1403 is specifically used for:
[0257] When the first virtual vehicle and the second virtual vehicle are respectively traveling on two adjacent simulation lanes, the driving parameter threshold is determined to be adjusted in a manner of increasing a driving safety distance threshold.
[0258] Furthermore, the parameter adjustment module 1403 is specifically used for:
[0259] Obtaining a currently set safe driving distance threshold for the first virtual vehicle;
[0260] The third adjustment parameter is obtained according to the radical degree coefficient;
[0261] Obtaining a fourth adjustment parameter according to the avoidance coefficient;
[0262] The third adjustment parameter is adjusted using the fourth adjustment parameter, and the driving safety distance threshold is increased according to the adjusted third adjustment parameter.
[0263] Furthermore, the parameter adjustment module 1403 is also used for:
[0264] Get the currently set distance threshold;
[0265] Adjust the distance threshold based on the aggressiveness factor.
[0266] Furthermore, the parameter adjustment module 1403 is also used for:
[0267] The first virtual vehicle is controlled to be prohibited from changing lanes to the simulated lane in which the second virtual vehicle is traveling.
[0268] Furthermore, the driving parameter threshold includes a driving speed threshold. The parameter adjustment module 1403 is specifically used for:
[0269] When the first virtual vehicle and the second virtual vehicle are traveling in the same simulation lane, the driving parameter threshold is determined to be adjusted by increasing the driving speed threshold.
[0270] Furthermore, the parameter adjustment module 1403 is specifically used for:
[0271] Obtaining a currently set driving speed threshold of the first virtual vehicle;
[0272] The fifth adjustment parameter is obtained according to the radicality coefficient;
[0273] Obtaining a sixth adjustment parameter according to the avoidance coefficient;
[0274] The fifth adjustment parameter is adjusted using the sixth adjustment parameter, and the driving speed threshold is increased according to the adjusted fifth adjustment parameter.
[0275] Further, the first virtual vehicle and the second virtual vehicle travel in a simulation area, and the simulation area is provided with adjacent first simulation lanes and second simulation lanes. The driving parameter thresholds include a first lane change safety distance threshold and a second lane change safety distance threshold. The parameter adjustment module 1403 is specifically used for:
[0276] When the first virtual vehicle and the second virtual vehicle are both traveling in the first simulation lane, the adjustment method of determining the driving parameter threshold is to reduce the first lane change safety distance threshold and the second lane change safety distance threshold, the first lane change safety distance threshold is the distance threshold between the first virtual vehicle and the leading vehicle in the second simulation lane, and the second lane change safety distance threshold is the distance threshold between the first virtual vehicle and the following vehicle in the second simulation lane.
[0277] Furthermore, the parameter adjustment module 1403 is specifically used for:
[0278] Obtain a first lane-changing safety distance threshold and a second lane-changing safety distance threshold currently set for the first virtual vehicle;
[0279] The seventh adjustment parameter is obtained according to the radicality coefficient;
[0280] An eighth adjustment parameter is obtained according to the avoidance coefficient;
[0281] The seventh adjustment parameter is adjusted using the eighth adjustment parameter, and the first lane-changing safety distance threshold and the second lane-changing safety distance threshold are reduced according to the adjusted seventh adjustment parameter.
[0282] Furthermore, the parameter adjustment module 1403 is also used for:
[0283] Based on the reduced first lane change safety distance threshold and the second lane change safety distance threshold, when the first virtual vehicle still fails to successfully change lanes from the first simulation lane to the second simulation lane within the time threshold, obtaining a currently set driving speed threshold of the first virtual vehicle;
[0284] The driving speed threshold is increased according to the aggressiveness factor and the avoidance factor.
[0285] Furthermore, the parameter adjustment module 1403 is also used for:
[0286] Get the currently set time threshold;
[0287] Adjust the time threshold based on the aggressiveness factor.
[0288] In addition, an embodiment of the present invention further provides an electronic device that can perform vehicle simulation. The electronic device is described below in conjunction with the accompanying drawings. Fig.15 , an embodiment of the present invention provides an electronic device, which may be a terminal device or a server. The terminal device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a vehicle-mounted computer, etc., and the terminal device is taken as an example of a mobile phone:
[0289] Fig.15 FIG. 1 is a block diagram of a portion of a mobile phone provided by an embodiment of the present invention. Fig.15 The mobile phone includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a sensor 1550, an audio circuit 1560, a wireless fidelity (WiFi) module 1570, a processor 1580, and a power supply 1590. Those skilled in the art will understand that Fig.15 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0290] Combine the following Fig.15 A detailed introduction to the various components of the mobile phone:
[0291] The RF circuit 1510 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 1580 for processing; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit 1510 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit 1510 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0292] The memory 1520 can be used to store software programs and modules. The processor 1580 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1520. The memory 1520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1520 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0293] The input unit 1530 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1531 or near the touch panel 1531 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1531 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1580, and can receive and execute the command sent by the processor 1580. In addition, the touch panel 1531 can be implemented in various categories such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1531, the input unit 1530 may further include other input devices 1532. Specifically, the other input devices 1532 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0294] The display unit 1540 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1540 may include a display panel 1541. Optionally, the display panel 1541 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 1531 may cover the display panel 1541. When the touch panel 1531 detects a touch operation on or near it, it is transmitted to the processor 1580 to determine the category of the touch event. Subsequently, the processor 1580 provides corresponding visual output on the display panel 1541 according to the category of the touch event. Although in Fig.15 In the embodiment, the touch panel 1531 and the display panel 1541 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 1531 and the display panel 1541 can be integrated to realize the input and output functions of the mobile phone.
[0295] The mobile phone may also include at least one sensor 1550, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1541 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1541 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0296] The audio circuit 1560, the speaker 1561, and the microphone 1562 can provide an audio interface between the user and the mobile phone. The audio circuit 1560 can transmit the received audio data to the speaker 1561 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1560 and converted into audio data, and then the audio data is output to the processor 1580 for processing, and then sent to another mobile phone through the RF circuit 1510, or the audio data is output to the memory 1520 for further processing.
[0297] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 1570. It provides users with wireless broadband Internet access. Fig.15 A WiFi module 1570 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0298] The processor 1580 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 1520, and calling data stored in the memory 1520, it executes various functions of the mobile phone and processes data, thereby performing overall detection of the mobile phone. Optionally, the processor 1580 may include one or more processing units; preferably, the processor 1580 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1580.
[0299] The mobile phone also includes a power supply 1590 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1580 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0300] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0301] In this embodiment, the processor 1580 included in the terminal device is capable of executing the instant messaging method of the previous embodiment.
[0302] An embodiment of the present invention further provides a computer-readable storage medium, which is used to store program codes, and the program codes are used to execute the instant messaging execution method of each of the aforementioned embodiments.
[0303] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the instant messaging method of each of the above embodiments.
[0304] The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0305] It should be understood that in the present invention, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0306] It should be understood that in the description of the embodiments of the present invention, multiple (or multiple items) means more than two, greater than, less than, exceed, etc. are understood to exclude the number, and above, below, within, etc. are understood to include the number.
[0307] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0308] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0309] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0310] If the integrated unit is implemented in the form of 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. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0311] It should also be understood that the various implementations provided in the embodiments of the present invention can be combined arbitrarily to achieve different technical effects.
[0312] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A vehicle simulation control method, It is characterized in that include: Controlling the first virtual vehicle to travel according to a driving parameter threshold, wherein the driving parameter threshold includes a driving speed threshold, or the driving parameter threshold includes a driving safety distance threshold, or the driving parameter threshold includes a first lane change safety distance threshold and a second lane change safety distance threshold; When the current driving distance between the second virtual vehicle and the first virtual vehicle is less than or equal to the target distance, the aggressiveness coefficient and the avoidance coefficient of the first virtual vehicle and the lane position relationship between the first virtual vehicle and the second virtual vehicle are obtained, the second virtual vehicle travels behind the first virtual vehicle, the avoidance coefficient is used to characterize the active degree of avoidance of the first virtual vehicle to the second virtual vehicle, the aggressiveness coefficient is used to characterize the driving aggressiveness of the first virtual vehicle, and the second virtual vehicle is an emergency vehicle; The corresponding adjustment parameter is constructed by the avoidance coefficient, and the corresponding adjustment parameter is constructed by the aggressiveness coefficient. The adjusted driving parameter threshold is obtained according to the product of the adjustment parameter corresponding to the avoidance coefficient, the adjustment parameter corresponding to the aggressiveness coefficient and the driving parameter threshold. The adjustment method of the driving parameter threshold is determined according to the lane position relationship and the type of the driving parameter threshold. The first virtual vehicle is controlled to travel according to the adjusted driving parameter threshold.
2. The vehicle simulation control method according to claim 1, It is characterized in that The driving parameter threshold includes a driving speed threshold. When the first virtual vehicle and the second virtual vehicle are respectively driving on two adjacent simulation lanes, the driving parameter threshold is adjusted by reducing the driving speed threshold.
3. The vehicle simulation control method according to claim 2, It is characterized in that The step of constructing a corresponding adjustment parameter by using the avoidance coefficient, constructing a corresponding adjustment parameter by using the aggressiveness coefficient, and obtaining the adjusted driving parameter threshold value according to the product of the adjustment parameter corresponding to the avoidance coefficient, the adjustment parameter corresponding to the aggressiveness coefficient, and the driving parameter threshold value includes: Obtaining the driving speed threshold currently set for the first virtual vehicle; Obtaining a first adjustment parameter according to the radicality coefficient; Obtaining a second adjustment parameter according to the avoidance coefficient; The reduced driving speed threshold is obtained according to the product of the first adjustment parameter, the second adjustment parameter and the driving parameter threshold.
4. The vehicle simulation control method according to claim 1, It is characterized in that The driving parameter threshold includes a driving safety distance threshold. When the first virtual vehicle and the second virtual vehicle are respectively driving on two adjacent simulation lanes, the driving parameter threshold is adjusted by increasing the driving safety distance threshold.
5. The vehicle simulation control method according to claim 4, It is characterized in that The step of constructing a corresponding adjustment parameter by using the avoidance coefficient, constructing a corresponding adjustment parameter by using the aggressiveness coefficient, and obtaining the adjusted driving parameter threshold value according to the product of the adjustment parameter corresponding to the avoidance coefficient, the adjustment parameter corresponding to the aggressiveness coefficient, and the driving parameter threshold value includes: Obtaining the driving safety distance threshold currently set for the first virtual vehicle; Obtaining a third adjustment parameter according to the radicality coefficient; Obtaining a fourth adjustment parameter according to the avoidance coefficient; The increased driving safety distance threshold is obtained according to the product of the third adjustment parameter, the fourth adjustment parameter and the driving parameter threshold.
6. The vehicle simulation control method according to claim 1, It is characterized in that The driving parameter threshold includes a driving speed threshold. When the first virtual vehicle and the second virtual vehicle are driving on the same simulation lane, the driving parameter threshold is adjusted by increasing the driving speed threshold.
7. The vehicle simulation control method according to claim 6, It is characterized in that The step of constructing a corresponding adjustment parameter by using the avoidance coefficient, constructing a corresponding adjustment parameter by using the aggressiveness coefficient, and obtaining the adjusted driving parameter threshold value according to the product of the adjustment parameter corresponding to the avoidance coefficient, the adjustment parameter corresponding to the aggressiveness coefficient, and the driving parameter threshold value includes: Obtaining the driving speed threshold currently set for the first virtual vehicle; Obtaining a fifth adjustment parameter according to the radicality coefficient; Obtaining a sixth adjustment parameter according to the avoidance coefficient; The increased driving speed threshold is obtained according to the product of the fifth adjustment parameter, the sixth adjustment parameter and the driving parameter threshold.
8. The vehicle simulation control method according to claim 1, It is characterized in that The first virtual vehicle and the second virtual vehicle are traveling in a simulation area, and a first simulated lane and a second simulated lane are adjacent to each other in the simulation area. The driving parameter thresholds include a first lane change safety distance threshold and a second lane change safety distance threshold. When the first virtual vehicle and the second virtual vehicle are both traveling in the first simulation lane, the adjustment method of the driving parameter thresholds is determined to be to reduce the first lane change safety distance threshold and the second lane change safety distance threshold. The first lane change safety distance threshold is a distance threshold between the first virtual vehicle and a leading vehicle in the second simulation lane, and the second lane change safety distance threshold is a distance threshold between the first virtual vehicle and a following vehicle in the second simulation lane.
9. The vehicle simulation control method according to claim 8, It is characterized in that The step of constructing a corresponding adjustment parameter by using the avoidance coefficient, constructing a corresponding adjustment parameter by using the aggressiveness coefficient, and obtaining the adjusted driving parameter threshold value according to the product of the adjustment parameter corresponding to the avoidance coefficient, the adjustment parameter corresponding to the aggressiveness coefficient, and the driving parameter threshold value includes: Obtaining the first lane-changing safety distance threshold and the second lane-changing safety distance threshold currently set for the first virtual vehicle; Obtaining a seventh adjustment parameter according to the radicality coefficient; Obtaining an eighth adjustment parameter according to the avoidance coefficient; The reduced first lane-changing safety distance threshold and the second lane-changing safety distance threshold are obtained according to the product of the seventh adjustment parameter, the eighth adjustment parameter and the driving parameter threshold.
10. The vehicle simulation control method according to claim 8 or 9, It is characterized in that The method of constructing a corresponding adjustment parameter by the avoidance coefficient and a corresponding adjustment parameter by the aggressiveness coefficient, and obtaining the adjusted driving parameter threshold value according to the product of the adjustment parameter corresponding to the avoidance coefficient, the adjustment parameter corresponding to the aggressiveness coefficient and the driving parameter threshold value, further includes: Based on the reduced first lane change safety distance threshold and the second lane change safety distance threshold, when the first virtual vehicle still fails to successfully change lanes from the first simulation lane to the second simulation lane within the time threshold, obtaining a currently set driving speed threshold of the first virtual vehicle; The driving speed threshold is increased according to the aggressiveness coefficient and the avoidance coefficient.
11. The vehicle simulation control method according to claim 10, It is characterized in that The vehicle simulation control method further comprises: Get the time threshold currently set; The time threshold is adjusted according to the aggressiveness coefficient.
12. A vehicle simulation control device, It is characterized in that include: a driving control module, configured to control the driving of the first virtual vehicle according to a driving parameter threshold, wherein the driving parameter threshold includes a driving speed threshold, or the driving parameter threshold includes a driving safety distance threshold, or the driving parameter threshold includes a first lane change safety distance threshold and a second lane change safety distance threshold; an acquisition module, configured to acquire an aggressiveness coefficient and an avoidance coefficient of the first virtual vehicle and a lane position relationship between the first virtual vehicle and the second virtual vehicle when the current driving distance between the second virtual vehicle and the first virtual vehicle is less than or equal to a target distance, wherein the second virtual vehicle travels behind the first virtual vehicle, the avoidance coefficient is used to characterize the active degree of avoidance of the first virtual vehicle to the second virtual vehicle, and the aggressiveness coefficient is used to characterize the driving aggressiveness of the first virtual vehicle, and the second virtual vehicle is an emergency vehicle; a parameter adjustment module, configured to construct a corresponding adjustment parameter through the avoidance coefficient, construct a corresponding adjustment parameter through the aggressiveness coefficient, obtain the adjusted driving parameter threshold value according to the product of the adjustment parameter corresponding to the avoidance coefficient, the adjustment parameter corresponding to the aggressiveness coefficient and the driving parameter threshold value, wherein the adjustment method of the driving parameter threshold value is determined according to the lane position relationship and the type of the driving parameter threshold value; The driving control module is further used to control the driving of the first virtual vehicle according to the adjusted driving parameter threshold.
13. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the vehicle simulation control method according to any one of claims 1 to 11 when executing the computer program.
14. A computer-readable storage medium storing a program, wherein the program is executed by a processor to implement the vehicle simulation control method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Simulation driving method and device for vehicle, electronic equipment and computer readable storage medium
CN112230565A
Intelligent control system and method for avoiding ambulance
CN112455426A
