Vehicle driving simulation method and device, electronic equipment and computer storage medium

By acquiring and processing vehicle driving data, calculating the departure time and adjusting the starting point, the problem of unrealistic vehicle driving scene simulation in existing traffic simulations is solved, and the accuracy and authenticity of the simulation are improved.

CN118798017APending Publication Date: 2024-10-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310444450.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-13
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing traffic simulation technology is difficult to simulate real vehicle driving scenarios because it fails to fully consider the constraints of vehicles while driving, resulting in immature data preparation and simulation rule configuration.

Method used

By obtaining the driving data of the vehicle on the target road section, the preset departure time of the vehicle in the simulation scene is calculated, and the starting point is determined and adjusted according to the sequence of the departure time to ensure the accurate starting position of the vehicle in the simulation scene.

Benefits of technology

It improves the authenticity and accuracy of vehicle driving simulation and ensures that the simulation results are closer to the actual vehicle driving conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798017A_ABST
    Figure CN118798017A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a vehicle driving simulation method and device, electronic equipment and a computer storage medium. The method comprises the steps of obtaining driving data of a vehicle on a target road section; calculating a preset departure moment of the vehicle in a simulation scene based on the driving data; according to the sequence of the departure moments of the vehicles, determining preset departure points of the vehicles in the simulation scene in sequence; adjusting the preset starting point meeting the position adjustment condition to obtain an adjusted preset starting point; and performing driving simulation on the vehicle in the simulation scene by taking the preset departure moment as the starting moment of vehicle driving and taking the preset departure point or the adjusted preset departure point as the starting position of vehicle driving. According to the embodiment of the invention, the authenticity and accuracy of vehicle driving simulation can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a vehicle driving simulation method, device, computer equipment and readable storage medium. Background Art

[0002] Traffic simulation is a technology that uses computers to simulate traffic flow. It can help professionals such as traffic planners, urban planners, and traffic engineers evaluate the effects of different traffic plans and predict future traffic conditions.

[0003] However, current traffic simulation is still immature in terms of data preparation and simulation rule configuration. For example, most traffic simulations only take traffic data such as the number of vehicles and speed on a road section as input, and do not consider the limitations faced by vehicles in actual driving when configuring simulation rules, making it difficult for current traffic simulations to simulate more realistic vehicle driving scenarios. Summary of the invention

[0004] The embodiments of the present application provide a vehicle driving simulation method, device, system, electronic device and computer storage medium, which can improve the authenticity and accuracy of vehicle driving simulation.

[0005] A first aspect of an embodiment of the present application provides a vehicle driving simulation method, the method comprising:

[0006] Obtaining the driving data of the vehicle on the target road section;

[0007] Based on the driving data, calculating a preset departure time of the vehicle in a simulation scenario;

[0008] Determining the preset starting points of the vehicles in the simulation scene in sequence according to the order of the departure times of the vehicles;

[0009] Adjusting the preset starting point that meets the position adjustment condition to obtain an adjusted preset starting point;

[0010] The preset departure time is used as the starting time of the vehicle's travel, the preset starting point or the adjusted preset starting point is used as the starting position of the vehicle's travel, and the vehicle's travel simulation is performed in the simulation scene.

[0011] Accordingly, a second aspect of an embodiment of the present application provides a vehicle driving simulation device, the device comprising:

[0012] A data acquisition unit, used to acquire the driving data of the vehicle on the target road section;

[0013] A time calculation unit, used to calculate a preset departure time of the vehicle in a simulation scenario based on the driving data;

[0014] A departure point determination unit, used to sequentially determine the preset departure points of the vehicles in the simulation scene according to the order of the departure times of the vehicles;

[0015] A starting point adjustment unit, used to adjust a preset starting point that meets the position adjustment condition to obtain an adjusted preset starting point;

[0016] A driving simulation unit is used to use the preset departure time as the starting time of the vehicle's driving, and the preset starting point or the adjusted preset starting point as the starting position of the vehicle's driving, to simulate the driving of the vehicle in the simulation scene.

[0017] Optionally, the starting point adjustment unit includes:

[0018] a first target lane search subunit, configured to search a target lane matching the vehicle from a candidate lane set, and if the target lane exists in the candidate lane set, select the target lane, and determine the starting point of the target lane as the adjusted preset starting point, wherein the candidate lane set is a set of lanes that have not been selected in the current lane selection round;

[0019] The second target lane search subunit is used for searching the target lane based on the selected lane set if the target lane does not exist in the candidate lane set, and selecting the target lane if the target lane is found, and determining the starting point of the target lane as the adjusted preset starting point, wherein the selected lane set is a set of lanes that have been selected in the current lane selection round.

[0020] Optionally, the target lane first search subunit includes:

[0021] A selected lane set duplication subunit, used to duplicate the selected lane set at the current moment to obtain a first selected lane set having the same elements as the selected lane set;

[0022] a lane set first updating subunit, configured to move the lane corresponding to the preset starting point into the selected lane set;

[0023] A third target lane search subunit is used to search for the target lane from the candidate lane set, and if the target lane exists, select the target lane;

[0024] The selected lane set updating subunit is used to move the target lane into the selected lane set and clear the first selected lane set.

[0025] Optionally, the target lane second search subunit includes:

[0026] A first iterative search subunit, configured to iteratively search for the target lane from the first selected lane set if the target lane does not exist in the candidate lane set, wherein each iterative search operation corresponds to one searched lane;

[0027] a first selected lane updating subunit, configured to remove the searched lane from the first selected lane set if the searched lane is not the target lane, to obtain an updated first selected lane set;

[0028] The second iterative search subunit is used to perform the iterative search operation in the updated first selected lane set until the target lane is found.

[0029] Optionally, the vehicle driving simulation device further includes:

[0030] A vehicle type acquisition unit, used to acquire the type of each vehicle in a candidate vehicle set, wherein the candidate vehicle set is:

[0031] The vehicle replacement unit is used to select a vehicle of a different type from the candidate vehicle set to replace the vehicle for driving simulation if the target lane is not found after the iterative search operation is completed.

[0032] Optionally, the vehicle driving simulation device further includes:

[0033] A first preset departure time obtaining unit, used to obtain the preset departure time of the vehicle;

[0034] The second acquisition unit for the preset departure time is used to postpone the preset departure time if the target lane is not found after the iterative search operation is completed.

[0035] Optionally, the starting point determination unit includes:

[0036] A candidate lane set acquisition subunit is used to acquire a set of candidate lanes on which the vehicle can travel in the target road section in a current lane selection round, wherein the candidate lane set is a set of lanes that have not been selected in the current lane selection round;

[0037] a first starting point determining subunit, configured to select a starting lane for the vehicle from the candidate lane set, and determine a starting point of the starting lane as a preset starting point for the vehicle;

[0038] a lane set second updating subunit, configured to remove the departure lane from the candidate lane set and move it into the selected lane set, wherein the selected lanes are a set of lanes that have been selected in the current lane selection round;

[0039] a first starting point determining subunit, configured to repeatedly perform the above operation of determining a preset starting point for a first vehicle for which a preset starting point has not been determined, to obtain a preset starting point for the first vehicle, until the elements in the candidate lane set are empty, and the current lane selection round is terminated;

[0040] The second starting point determination subunit is used to repeatedly perform the operation of determining the preset starting point for the second vehicle for which the preset starting point has not been determined in the next one or more lane selection rounds until the preset starting points of all the second vehicles are obtained.

[0041] Optionally, the time calculation unit includes:

[0042] A first vehicle flow data acquisition subunit is used to acquire the vehicle flow data of the target road section during a target period of time;

[0043] The time calculation subunit is used to determine the preset departure time of the vehicle based on the duration of the target time period and the traffic flow data.

[0044] Optionally, the data acquisition unit includes:

[0045] A second vehicle flow data acquisition subunit is used to acquire the vehicle flow data of the target road section during a target period of time;

[0046] The vehicle flow matrix construction subunit is used to construct the vehicle flow matrix of the target road section according to the vehicle flow data.

[0047] Optionally, the vehicle flow matrix construction subunit is further specifically used for:

[0048] An initial traffic flow matrix is ​​constructed by taking the starting point of each sub-target road section in the target road section as a row of the matrix and taking the end point of each sub-target road section as a column of the matrix;

[0049] The vehicle flow data is used as matrix elements to fill the initial vehicle flow matrix to obtain the vehicle flow matrix of the target road section.

[0050] Optionally, the vehicle driving simulation device further includes:

[0051] A duration acquisition unit, used to acquire the data duration corresponding to the driving data and the simulation duration of the driving simulation for the vehicle;

[0052] The driving simulation ending unit is used to end the driving simulation when the simulation duration is greater than or equal to the data duration.

[0053] A third aspect of an embodiment of the present application provides an electronic device, including:

[0054] Processors and storage media;

[0055] The processor is used to implement each instruction;

[0056] The storage medium is used to store a plurality of instructions, and the instructions are used to be loaded by a processor and execute the above-mentioned vehicle driving simulation method.

[0057] The fourth aspect of the embodiments of the present application also provides a computer-readable storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the steps in any vehicle driving simulation method provided in the embodiments of the present application.

[0058] The fifth aspect of the embodiments of the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements any vehicle driving simulation method provided in the embodiments of the present application.

[0059] It can be seen that by applying the embodiment of the present application, the driving data of the vehicle on the target road section can be obtained first, and then the preset departure time of the vehicle in the simulation scene can be calculated based on the driving data. Then, according to the order of the departure time of the vehicle, the preset starting point of the vehicle in the simulation scene is determined in sequence, and then the preset starting point that meets the position adjustment condition is adjusted to obtain the adjusted preset starting point. Finally, the preset departure time is used as the starting time of the vehicle's driving, and the preset starting point or the adjusted preset starting point is used as the starting position of the vehicle's driving, and the vehicle driving simulation is performed in the simulation scene.

[0060] Through the above method, not only can the preset departure time of the vehicle be accurately determined based on the detailed vehicle driving data, so as to preliminarily determine the preset departure point for the vehicle in an orderly manner according to the preset departure time. In addition, before the vehicle driving simulation is performed, it will also detect whether the preliminarily determined preset departure point matches the vehicle, and make timely position rationality adjustments for the unmatched preset departure point, so as to improve the authenticity and accuracy of the vehicle driving simulation in the virtual scene. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0062] Figure 1 is a schematic diagram of an application scenario of a data classification system provided in an embodiment of the present application;

[0063] Figure 2 It is a flow chart of a vehicle driving simulation method provided in an embodiment of the present application;

[0064] Figure 3 is another flow chart of the vehicle driving simulation method provided by an embodiment of the present application;

[0065] Figure 4 is a schematic diagram of the topological structure of the target road section provided in an embodiment of the present application;

[0066] Figure 5 is a schematic diagram of constructing a vehicle flow matrix provided in an embodiment of the present application;

[0067] Figure 6 is a schematic diagram of a traffic flow matrix at different time periods provided in an embodiment of the present application;

[0068] Figure 7 is a schematic diagram of the location of a preset starting point of a target section provided in an embodiment of the present application;

[0069] Figure 8 is another flow chart of the vehicle driving simulation method provided by an embodiment of the present application;

[0070] Fig. 9 is a structural schematic diagram of a vehicle driving simulation device provided in an embodiment of the present application;

[0071] Fig.10 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0073] 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. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new 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.

[0074] 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 sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0075] Simulation technology is a simulation model technology that uses simulation hardware and simulation software to reflect system behavior or process through simulation experiments with the help of certain numerical calculations and problem solving.

[0076] Vehicle driving simulation of road traffic is an important tool for studying complex traffic problems, especially when a system is too complex to be described by a simple abstract mathematical model. Traffic simulation can clearly assist in analyzing and predicting the location and causes of traffic jams, and compare and evaluate relevant plans for urban planning, traffic engineering, and traffic management, so as to avoid or prepare for problems before they become reality.

[0077] With the research and advancement of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.

[0078] The solution provided in the embodiments of the present application involves technologies such as natural language processing and deep learning of artificial intelligence, which is now illustrated by the following embodiments.

[0079] The present application provides a vehicle driving simulation method, device, electronic device and storage medium.

[0080] Among them, the vehicle driving simulation device can be specifically integrated in a server or a terminal. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be 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, and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch or smart vehicle, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application is not limited here.

[0081] For example, see Figure 1 The vehicle driving simulation device can be integrated on the terminal. Before the simulated vehicle drives in the target lane, the terminal can preliminarily match the vehicle with the preset departure time and preset starting point in the simulation scene, and after performing position rationality detection and adjustment on the preset starting point, use the simulation software installed in the terminal to simulate the vehicle driving.

[0082] It should be noted that the above method performed by the terminal can also be performed by simulation software, and the terminal can be used to provide the simulation software with the driving data of the vehicle. In some embodiments, the simulation software can be TADSIM, Aimsun, VISSIM, PTV Vissim, SUMO and TransModeler, etc., which is not limited in this embodiment.

[0083] Through the above method, not only can the preset departure time of the vehicle be accurately determined based on the detailed vehicle driving data, so as to preliminarily determine the preset departure point for the vehicle in an orderly manner according to the preset departure time. In addition, before the vehicle driving simulation is performed, it will also detect whether the preliminarily determined preset departure point matches the vehicle, and make timely position rationality adjustments for the unmatched preset departure point, so as to improve the authenticity and accuracy of the vehicle driving simulation in the virtual scene.

[0084] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0085] A vehicle driving simulation method comprises: obtaining driving data of a vehicle on a target road section; calculating a preset departure time of the vehicle in a simulation scene based on the driving data; determining preset starting points of the vehicle in the simulation scene in sequence according to the order of the departure times of the vehicles; adjusting the preset starting points that meet position adjustment conditions to obtain adjusted preset starting points; taking the preset departure time as the starting time of the vehicle driving, taking the preset starting point or the adjusted preset starting point as the starting position of the vehicle driving, and simulating the driving of the vehicle in the simulation scene.

[0086] See also Figure 2 In this embodiment, a vehicle driving simulation method is provided, which is applied to a data sorting end, such as Figure 2 As shown, the specific process of the vehicle driving simulation method can be as follows:

[0087] Step 201: Acquire the driving data of the vehicle on the target road section.

[0088] The target road section refers to the real road section to be simulated. It can be understood that since traffic simulation is a technology that uses computers to simulate traffic flow and traffic system operation to evaluate the rationality of roads, public transportation flow and urban planning, before conducting traffic simulation, the target road section to be simulated can be selected as the road section for subsequent driving simulation in the simulation scene.

[0089] In some embodiments, the driving data may be data generated when a single vehicle travels in a target road segment, such as the speed, acceleration, type, and position coordinates of the vehicle.

[0090] In some embodiments, the driving data may also be the traffic volume corresponding to the target time of the target road section of multiple vehicles. For example, the traffic volume of the target road section in the target time period is 30.

[0091] In order to obtain the driving data of the vehicle more intuitively and conveniently, in some embodiments, the topological structure diagram of the target section can be obtained first, and the connection relationship between the nodes of the target section can be represented by the topological structure diagram. In the topological structure diagram of the target section, the nodes can be the starting point and the end point of each sub-target section of the target section.

[0092] like Figure 4 As shown in FIG. 1 , assuming that the starting points are 0, 1, and 3, and the end points are 2, 4, 5, and 6, the target segment includes multiple sub-target segments, such as sub-target segments 02, 04, 05, and 06, etc. Sub-target segment 01 can also be represented as 0-1. This embodiment does not limit the naming and representation of the sub-target segments. Figure 4 For example, A and B represent the upper ramp and the lower ramp, such as the upper ramp A1 and the lower ramp B2, respectively, and the numbers between the ramps can be used to represent the main road between the ramps, for example, the main road between the upper ramp A1 and the lower ramp B2 can be represented as section 12 or section 1-2, so that it can be seen from the topological structure diagram which sub-target sections are one-way lanes.

[0093] Optionally, step 201 may further include:

[0094] Obtaining traffic flow data of the target road section during a target period;

[0095] A traffic flow matrix of the target road section is constructed according to the traffic flow data.

[0096] In some implementations, other vehicle travel data may also be marked in the topological structure diagram of the target road segment. For example, q may be used to represent the traffic volume of each sub-target road segment, such as q 06 represents the traffic volume of sub-target road section 06, q A1Correspondingly, k can also be used to represent the traffic density of the target road section, and v can be used to represent the traffic speed of the target road section. This embodiment does not limit the type and content of the data contained in the topological structure diagram.

[0097] It can be understood that since different target sections contain different numbers of sub-target sections and the traffic flow data corresponding to different time periods are also different, in order to accurately count and display the traffic flow data of different sections or different sub-target sections at different time periods, this can be achieved by constructing a traffic flow matrix.

[0098] Optionally, the step of "constructing a traffic flow matrix of the target road section according to the traffic flow data" includes:

[0099] An initial traffic flow matrix is ​​constructed by taking the starting point of each sub-target road section in the target road section as a row of the matrix and taking the end point of each sub-target road section as a column of the matrix;

[0100] The vehicle flow data is used as matrix elements to fill the initial vehicle flow matrix to obtain the vehicle flow matrix of the target road section.

[0101] The traffic flow matrix, also known as the OD matrix (Origin-Destination Matrix), is a two-dimensional matrix with origins and destinations as rows and columns, used to describe information such as travel volume, flow or traffic demand from a source to a destination. Figure 5 As shown in the figure, assuming that the OD matrix X has m rows and n columns, since the starting points of the sub-target sections constitute the rows of the matrix X and the end points of the sub-target sections constitute the columns of the matrix X, the matrix X represents the m×n traffic flows corresponding to the m starting points of the sub-target sections to the n terminals. Figure 5 For example, q 1n represents the traffic flow of sub-target road section 1n (or 1-n), q mn Represents the traffic flow of sub-target road section m1 (or m-1). Therefore, it can be understood that after obtaining the traffic flow data of each sub-target road section in the target road section, the rows and columns of the initial traffic flow matrix can be constructed according to the starting point and end point of each sub-target road section, and the corresponding traffic flow data can be filled into the initial traffic flow matrix as a matrix element to obtain the traffic flow matrix.

[0102] However, it should be noted that since the traffic flow data also corresponds to different target time periods, different traffic flow matrices need to correspond to different time periods. For example, if the target time period to be simulated is 8:00-9:00, it may include four traffic flow matrices of 8:00-8:15, 8:15-8:30, 8:30-8:45, and 8:45-9:00, each of which covers a duration of 15 minutes, or 8:00-8:05..., 8:55-9:00 includes 12 traffic flow matrices with a coverage duration of 5 minutes. Figure 6 As shown in the figure, the minimum length granularity of each target time period T is 1 minute, so there will be two different traffic flow matrices corresponding to 8:00-8:01 and 8:01-8:02, with the preceding time as a closed interval and the following time as an open interval, i.e. [8:00,8:01). Accordingly, the number of vehicles departing from the corresponding starting point can be calculated from the sum of the elements in each row of the traffic flow matrix, and the number of vehicles heading from each starting point to the corresponding destination can be calculated from the sum of the elements in each column of the traffic flow matrix, for example Figure 6 In the traffic flow matrix at T=8:00-8:01, the traffic flow data from the starting point of the sub-target section in the first row to each end point is 80, and the traffic flow data from each starting point to the end point of the sub-target section in the first column is the sum of the elements in the first column.

[0103] It should also be noted that, in addition to different target time periods, different vehicle types may also correspond to different traffic flow matrices. For example, one traffic flow matrix may be the traffic flow data of sedans, while another traffic flow matrix may be the traffic flow data of buses.

[0104] Step 202: Calculate a preset departure time of the vehicle in a simulation scenario based on the driving data.

[0105] It can be understood that after obtaining the traffic flow matrix, although the traffic flow data of the target section in the target period can be intuitively obtained, in order to further improve the authenticity of the simulation, the preset departure time in the simulation scene can be determined for each vehicle. For example, the preset departure time of vehicle a is 8:00:01, and the preset departure time of vehicle b is 8:00:02, so as to restore the real vehicle driving scene through the preset departure time of the vehicle.

[0106] Optionally, step 202 may include:

[0107] Obtaining traffic flow data of the target road section during a target period;

[0108] Based on the duration of the target time period and the traffic flow data, a preset departure time of the vehicle is determined.

[0109] In some embodiments, the duration of the target time period corresponding to the vehicle flow matrix can be calculated first. For example, the duration of the target time period T=8:00-8:01 can be 60 seconds. Figure 6 Taking the traffic flow matrix in as an example, the departure interval of 80 vehicles in a duration of 60 seconds can be 0.75 seconds. That is, in the target period of the target road section, a vehicle can be simulated to depart every 0.75 seconds, so as to calculate the preset departure time of each vehicle to improve the authenticity of the simulation.

[0110] In some other embodiments, the variance mean T / (Σ j a ij ) and variance normal random number σ·T / (Σ j a ij ), to calculate the preset departure time corresponding to each vehicle. ij Represents the traffic flow data of the target road section ij. Assuming that the variance coefficient is 0.1 and the variance mean is 1, the corresponding variance normal random number can be calculated by the algorithm of the following code. For example, the process of calculating the first 10 preset departure times is:

[0111] import numpy as np

[0112] #Generate a normally distributed random number with a mean of 1 and a variance of 0.1

[0113] mu,sigma=1,0.1

[0114] s=np.random.normal(mu,sigma,1000)

[0115] #Print the first 10 random numbers

[0116] print(s[:10]) [0.97262457 1.11204009 1.08520563 0.85941534 0.99178545 0.98615148 1.02600592 1.08690696 0.91066764 0.88138502]

[0119] Still taking T=8:00-8:01 as an example, the preset departure time of one of the vehicles may be 0.97262457 seconds after 8:00, and the subsequent method of determining the preset departure time is similar.

[0120] Step 203: Determine the preset starting points of the vehicles in the simulation scene in sequence according to the order of the departure times of the vehicles.

[0121] It can be understood that after determining the preset departure time of each vehicle in the simulation scene, in order to further restore the driving scene of the vehicle, a corresponding preset departure point can also be determined for each vehicle. Figure 7 As shown, before the driving simulation begins, a schematic diagram of the target section or sub-target section can be drawn in the UI interface of the simulation software. In order to simulate the vehicle driving scenario, each section can include multiple lanes, and lane separators can be drawn between different lanes. A lane centerline can be set for each lane, and a departure line and an arrival line can be set at the starting point and end point of each lane respectively.

[0122] In some embodiments, the intersection of the departure line and the center line of the lane is the preset departure point of the corresponding lane, and correspondingly, the intersection of the arrival line and the center line of the lane is the preset arrival point of the corresponding lane. During simulation, the vehicle's driving simulation can be completed by driving the center of mass of the vehicle into the simulation scene from the preset departure point and moving the vehicle out of the simulation scene after passing the preset arrival point.

[0123] Optionally, step 203 may include:

[0124] In the current lane selection round, a set of candidate lanes on which the vehicle can travel in the target road section is obtained, where the candidate lane set is a set of lanes that have not been selected in the current lane selection round;

[0125] Selecting a departure lane for the vehicle from the candidate lane set, and determining a starting point of the departure lane as a preset departure point for the vehicle;

[0126] The departure lane is removed from the candidate lane set and moved into the selected lane set, where the selected lanes are a set of lanes that have been selected in the current lane selection round;

[0127] For the first vehicle whose preset starting point has not been determined, the above operation of determining the preset starting point is repeated to obtain the preset starting point of the first vehicle, until the elements in the candidate lane set are empty, and the current lane selection round is terminated;

[0128] In the next one or more lane selection rounds, for the second vehicles whose preset starting points have not been determined, the operation of determining the preset starting points is repeated until the preset starting points of all the second vehicles are obtained.

[0129] It is understandable that in most vehicle driving scenarios, the number of vehicles is greater than the number of lanes, so there are usually multiple vehicles driving in each lane. Figure 7The target road section in is a one-way road section, which may include lane 1, lane 2, lane 3 and lane 4. When the number of vehicles entering the target road section is greater than 4, in order to ease the traffic flow as much as possible and avoid road congestion, multiple vehicles can be evenly distributed to the above four lanes, so that the process of selecting lanes for multiple vehicles will go through multiple lane selection rounds.

[0130] Before selecting a lane for a vehicle, a candidate lane set and a selected lane set can be created first. The candidate lane set is a set of lanes that have not been selected in the current lane selection round, and the selected lane set is a set of lanes that have been selected in the current lane selection round. The elements in the lane set can be the names or numbers of the lanes, such as lane 1, lane 2, etc.

[0131] It can be understood that when selecting a lane for each vehicle, after any lane in the candidate lane set is selected, the lane can be removed from the candidate lane set and moved into the selected lane set, and the above lane selection operation is repeated until the elements in the candidate lane set are empty, that is, all the elements of the candidate lanes are selected and moved into the selected lane set, and the current lane selection round ends. In this way, it can ensure that multiple lanes of the target section are evenly distributed to alleviate the traffic flow pressure of the target section.

[0132] Step 204: Adjust the preset starting point that meets the position adjustment condition to obtain an adjusted preset starting point.

[0133] Among them, the position adjustment condition may include that the lane corresponding to the preset starting point does not match the vehicle. In some embodiments, the mismatch between the two may be that the lane of the preset starting point does not match the type of the vehicle, for example, the lane of the preset starting point is a small motor vehicle lane, and the vehicle to be simulated is a large passenger car. In some embodiments, when the lane and the vehicle type match, the mismatch between the two may also be that there are restrictions that cannot be matched between the lane and the vehicle, for example, there are other vehicles or obstacles at the preset starting point of the lane at the current moment.

[0134] It can be understood that although in step 203, the corresponding preset starting point can be preliminarily determined for each vehicle in turn according to the preset departure time of the vehicle, before the simulation starts, the method of the present application will fully consider the situation where the above preset starting point does not match the vehicle, and make timely and accurate adjustments to the preset starting point that meets the location conditions, thereby not only avoiding errors in simulation data, but also improving the authenticity of vehicle driving simulation.

[0135] Optionally, step 204 may include:

[0136] Searching for a target lane matching the vehicle from a candidate lane set, and if the target lane exists in the candidate lane set, selecting the target lane, and determining the starting point of the target lane as the adjusted preset starting point, wherein the candidate lane set is a set of lanes that have not been selected in the current lane selection round;

[0137] If the target lane does not exist in the candidate lane set, the target lane is searched for based on the selected lane set. If the target lane is found, the target lane is selected, and the starting point of the target lane is determined as the adjusted preset starting point. The selected lane set is a set of lanes that have been selected in the current lane selection round.

[0138] According to the description in step 203, corresponding lanes can be preliminarily determined for multiple vehicles from the candidate lane set in turn in multiple lane selection rounds. However, after considering the fact that the lane where the preset starting point is located does not match the vehicle, the position of the preset starting point needs to be adjusted, which involves the operation of reselecting a lane for the vehicle.

[0139] For the convenience of subsequent description, the candidate lane set is referred to as set C1, and the selected lane set is referred to as set C2. When the preset starting point does not match the vehicle, a lane that has not been selected can be randomly found from set C1. If the preset starting point of the lane no longer meets the position adjustment condition, the lane is determined as the target lane, and the preset starting point of the target lane is determined as the adjusted preset starting point. In some embodiments, when a lane reselected from set C1 cannot be used as the target lane, the search can continue to be traversed in set C1 until a target lane that meets the requirements is selected. Accordingly, after traversing and searching all lanes in set C1 and finding that they cannot be used as the target lane, a lane that can be used as the target lane can be traversed from set C2 to obtain the adjusted preset starting point.

[0140] It can be understood that through the above method, when it is necessary to reselect a lane for the vehicle, a candidate lane can be preferentially searched and selected from the set C1 of the candidate lane set as the target lane. If the target lane cannot be selected from the set C1, then consider traversing and searching for the target lane from the set C2 of the selected lane set, thereby ensuring the uniformity of lane allocation in the target section to the greatest extent, so as to avoid unnecessary traffic flow pressure in the simulation scenario.

[0141] Optionally, the step of “searching for a target lane matching the vehicle from a set of candidate lanes” includes:

[0142] The selected lane set at the current moment is copied to obtain a first selected lane set having the same elements as the selected lane set;

[0143] Moving the lane corresponding to the preset starting point into the selected lane set;

[0144] Searching for the target lane from the candidate lane set, and selecting the target lane if the target lane exists;

[0145] The target lane is moved into the selected lane set, and the first selected lane set is cleared.

[0146] For the convenience of description, the first selected lane set is referred to as set C3. It can be understood that since set C3 is obtained by copying set C2 at the current moment, and after reselecting the lane from set C1, the selected lane will be moved into set C2, so that the entire process of searching and selecting lanes will not update set C3, so that when the target lane cannot be selected from set C1 later, invalid and unavailable lanes can no longer be searched or selected from set C3, thereby significantly improving the efficiency of lane reselection and position adjustment of the preset starting point. Accordingly, if the target lane can be selected from set C1, the lane information in set C3 will not be used later, and set C3 can be cleared.

[0147] Optionally, the step of “searching for the target lane based on the selected lane set” includes:

[0148] If the target lane does not exist in the candidate lane set, iteratively searching for the target lane from the first selected lane set, each iterative search operation corresponding to a searched lane;

[0149] If the searched lane is not the target lane, the searched lane is removed from the first selected lane set to obtain an updated first selected lane set;

[0150] The iterative search operation is performed in the updated first selected lane set until the target lane is found.

[0151] It can be understood that, as described above, when the target lane cannot be selected from set C1, it is possible to preferentially traverse set C3 to search for new lanes to obtain the selected lane information when it is detected that the preset starting point does not match the vehicle, thereby avoiding selecting an invalid and unavailable lane from set C3 that has been selected from set C2, thereby significantly improving the efficiency of lane reselection and position adjustment of the preset starting point.

[0152] Optionally, the method of the present application may further include:

[0153] Obtaining the type of each vehicle in the candidate vehicle set, wherein the candidate vehicle set is a set of lanes that have not been selected in the current lane selection round;

[0154] If the target lane is not found after the iterative search operation is completed, a vehicle of a different type is selected from the candidate vehicle set to replace the vehicle for driving simulation.

[0155] According to the previous description, the reason why the preset starting point does not match the vehicle may be due to the mismatch between the lane and the vehicle type. For example, the lane of the preset starting point is a small motor vehicle lane, and the vehicle to be simulated is a large passenger bus. Therefore, when the target lane cannot be selected from the candidate lane set and the selected lane set, a vehicle of a different type can be re-selected from the candidate vehicle set to be simulated, and a preset starting point that does not meet the position adjustment condition can be randomly matched to the vehicle to ensure smooth driving simulation of the vehicle.

[0156] In some embodiments, for vehicles that are removed from the simulation scene due to restrictions that all lanes do not match, a separate log file recording warnings or errors may be written to facilitate user query after the simulation ends.

[0157] Optionally, the method of the present application may further include:

[0158] Obtaining a preset departure time of the vehicle;

[0159] If the target lane is not found after the iterative search operation is completed, the preset departure time is postponed.

[0160] According to the above description, when the lane at the preset starting point matches the vehicle, the reason why the preset starting point does not match the vehicle may be that there are restrictions that cannot be matched between the lane and the vehicle, such as other vehicles or obstacles at the preset starting point of the lane at the current moment. Therefore, when the target lane cannot be selected from both the candidate lane set and the selected lane set, the preset departure time of the vehicle can be appropriately adjusted first, such as delaying the preset departure time of the vehicle, and then re-determining a new preset departure point for the vehicle with the delayed preset departure time on this basis to ensure smooth driving simulation of the vehicle.

[0161] Step 205: Taking the preset departure time as the starting time of the vehicle's travel, taking the preset starting point or the adjusted preset starting point as the starting position of the vehicle's travel, and performing a travel simulation on the vehicle in the simulation scene.

[0162] Specifically, after the vehicle is generated at the preset starting point or the updated preset starting point of the simulation scene, the vehicle is simulated to travel in the target section at the set initial speed. In some embodiments, the initial speed of the vehicle can be set to the speed limit of the target section, or it can be set to a random value that does not exceed the speed limit of the target section. For example, it can be achieved by a random perturbation algorithm, such as a normally distributed speed value, to ensure the diversity of the vehicle's initial state. It should be ensured that after the initial speed or subsequent driving speed of each vehicle is set, the driving simulation is performed in combination with the calculated preset departure time of the vehicle. It should also be noted that the feasibility of the simulation should be verified in combination with the preset departure time of the vehicle and the set initial speed, and it should be avoided that the vehicle has just been generated in the simulation scene and there is no time to brake because there is a slower vehicle in the lane of the target section and a collision simulation accident occurs.

[0163] Optionally, after step 205, the method of the present application may further include:

[0164] Acquiring the data duration corresponding to the driving data and the simulation duration of driving simulation for the vehicle;

[0165] When the simulation duration is greater than or equal to the data duration, the driving simulation is terminated.

[0166] See also Figure 8 , Figure 8 FIG. 2 is another flow chart of the vehicle driving simulation method provided in the embodiment of the present application. Figure 8 As shown, when the vehicle starts driving simulation, the size relationship between the data duration and the simulation duration can be compared first. When the simulation duration is greater than or equal to the data duration, it means that all simulation periods in the simulation scene have been simulated, and the vehicle driving simulation ends. Specifically, when the vehicle flow matrix of a period corresponds to all vehicles in the target period, when the simulation clock advances to the target period of the next simulation, the same operation is performed from the vehicle flow matrix of the next target period until all simulation periods are completed.

[0167] It is understood that if the simulation duration does not meet the conditions for terminating the simulation, the preset starting points that have not been simulated can be traversed to find the vehicles corresponding to the preset starting points that have not been simulated to simulate driving. Accordingly, after traversing all the preset starting points, it is also necessary to comprehensively search whether there are vehicles that have not been simulated to avoid missing vehicles that have not been simulated, thereby improving the authenticity and accuracy of the vehicle driving simulation.

[0168] It can be seen that by applying the embodiment of the present application, the driving data of the vehicle on the target road section can be obtained first, and then the preset departure time of the vehicle in the simulation scene can be calculated based on the driving data. Then, according to the order of the departure time of the vehicle, the preset starting point of the vehicle in the simulation scene is determined in sequence, and then the preset starting point that meets the position adjustment condition is adjusted to obtain the adjusted preset starting point. Finally, the preset departure time is used as the starting time of the vehicle's driving, and the preset starting point or the adjusted preset starting point is used as the starting position of the vehicle's driving, and the vehicle driving simulation is performed in the simulation scene.

[0169] Through the above method, not only can the preset departure time of the vehicle be accurately determined based on the detailed vehicle driving data, so as to preliminarily determine the preset departure point for the vehicle in an orderly manner according to the preset departure time. In addition, before the vehicle driving simulation is performed, it will also detect whether the preliminarily determined preset departure point matches the vehicle, and make timely position rationality adjustments for the unmatched preset departure point, so as to improve the authenticity and accuracy of the vehicle driving simulation in the virtual scene.

[0170] Among them, another specific process of the above vehicle driving simulation method is as follows, refer to Figure 3 , the method further comprises the following steps:

[0171] Step 301: Obtain traffic flow data of a target road section during a target period of time;

[0172] Step 302: construct a traffic flow matrix of the target road section according to the traffic flow data;

[0173] Step 303: Determine the preset departure time of the vehicle based on the duration of the target period and the traffic flow data;

[0174] Step 304: Obtain a set of candidate lanes on which the vehicle can travel on the target road section;

[0175] Step 305: Select a departure lane for the vehicle from the candidate lane set, and determine the starting point of the departure lane as a preset starting point of the vehicle;

[0176] Step 306: for the first vehicle whose preset departure point has not been determined, repeat the above operation of determining the preset departure point to obtain the preset departure point of the first vehicle;

[0177] Step 307: Repeat the process of determining the preset starting point for the second vehicle for which the preset starting point has not been determined, until the preset starting points of all the second vehicles are obtained;

[0178] Step 308: searching for a target lane matching the vehicle from the candidate lane set, and if the target lane exists in the candidate lane set, selecting the target lane as the adjusted preset starting point;

[0179] Step 309: If the target lane does not exist in the candidate lane set, search for the target lane based on the selected lane set. If the target lane is found, select the target lane as the adjusted preset starting point.

[0180] Step 310: Based on the preset departure time, the preset departure point or the adjusted preset departure point, a driving simulation of the vehicle is performed in a simulation scene.

[0181] The method described in the above embodiment will be further described in detail below.

[0182] like Fig. 9 FIG. 1 is a schematic diagram of the structure of a vehicle driving simulation device provided in an embodiment of the present application, and the device includes:

[0183] The data acquisition unit 401 is used to acquire the driving data of the vehicle on the target road section;

[0184] A time calculation unit 402, configured to calculate a preset departure time of the vehicle in a simulation scenario based on the driving data;

[0185] A starting point determination unit 403, used to sequentially determine the preset starting points of the vehicles in the simulation scene according to the order of the departure times of the vehicles;

[0186] A starting point adjustment unit 404, configured to adjust a preset starting point that meets the position adjustment condition to obtain an adjusted preset starting point;

[0187] The driving simulation unit 405 is used to use the preset departure time as the starting time of the vehicle's driving, and the preset starting point or the adjusted preset starting point as the starting position of the vehicle's driving, to perform driving simulation on the vehicle in the simulation scene.

[0188] Optionally, the starting point adjustment unit 404 includes:

[0189] a first target lane search subunit, configured to search a target lane matching the vehicle from a candidate lane set, and if the target lane exists in the candidate lane set, select the target lane, and determine the starting point of the target lane as the adjusted preset starting point, wherein the candidate lane set is a set of lanes that have not been selected in the current lane selection round;

[0190] The second target lane search subunit is used for searching the target lane based on the selected lane set if the target lane does not exist in the candidate lane set, and selecting the target lane if the target lane is found, and determining the starting point of the target lane as the adjusted preset starting point, wherein the selected lane set is a set of lanes that have been selected in the current lane selection round.

[0191] Optionally, the target lane first search subunit includes:

[0192] A selected lane set duplication subunit, used to duplicate the selected lane set at the current moment to obtain a first selected lane set having the same elements as the selected lane set;

[0193] a lane set first updating subunit, configured to move the lane corresponding to the preset starting point into the selected lane set;

[0194] A third target lane search subunit is used to search for the target lane from the candidate lane set, and if the target lane exists, select the target lane;

[0195] The selected lane set updating subunit is used to move the target lane into the selected lane set and clear the first selected lane set.

[0196] Optionally, the target lane second search subunit includes:

[0197] A first iterative search subunit, configured to iteratively search for the target lane from the first selected lane set if the target lane does not exist in the candidate lane set, wherein each iterative search operation corresponds to one searched lane;

[0198] a first selected lane updating subunit, configured to remove the searched lane from the first selected lane set if the searched lane is not the target lane, to obtain an updated first selected lane set;

[0199] The second iterative search subunit is used to perform the iterative search operation in the updated first selected lane set until the target lane is found.

[0200] Optionally, the vehicle driving simulation device further includes:

[0201] A vehicle type acquisition unit, used to acquire the type of each vehicle in a candidate vehicle set, wherein the candidate vehicle set is:

[0202] The vehicle replacement unit is used to select a vehicle of a different type from the candidate vehicle set to replace the vehicle for driving simulation if the target lane is not found after the iterative search operation is completed.

[0203] Optionally, the vehicle driving simulation device further includes:

[0204] A first preset departure time obtaining unit, used to obtain the preset departure time of the vehicle;

[0205] The second acquisition unit for the preset departure time is used to postpone the preset departure time if the target lane is not found after the iterative search operation is completed.

[0206] Optionally, the starting point determination unit 403 includes:

[0207] A candidate lane set acquisition subunit is used to acquire a set of candidate lanes on which the vehicle can travel in the target road section in a current lane selection round, wherein the candidate lane set is a set of lanes that have not been selected in the current lane selection round;

[0208] a first starting point determining subunit, configured to select a starting lane for the vehicle from the candidate lane set, and determine a starting point of the starting lane as a preset starting point for the vehicle;

[0209] a lane set second updating subunit, configured to remove the departure lane from the candidate lane set and move it into the selected lane set, wherein the selected lanes are a set of lanes that have been selected in the current lane selection round;

[0210] a first starting point determining subunit, configured to repeatedly perform the above operation of determining a preset starting point for a first vehicle for which a preset starting point has not been determined, to obtain a preset starting point for the first vehicle, until the elements in the candidate lane set are empty, and the current lane selection round is terminated;

[0211] The second starting point determination subunit is used to repeatedly perform the operation of determining the preset starting point for the second vehicle for which the preset starting point has not been determined in the next one or more lane selection rounds until the preset starting points of all the second vehicles are obtained.

[0212] Optionally, the time calculation unit 402 includes:

[0213] A first vehicle flow data acquisition subunit is used to acquire the vehicle flow data of the target road section during a target period of time;

[0214] The time calculation subunit is used to determine the preset departure time of the vehicle based on the duration of the target time period and the traffic flow data.

[0215] Optionally, the data acquisition unit 401 includes:

[0216] A second vehicle flow data acquisition subunit is used to acquire the vehicle flow data of the target road section during a target period of time;

[0217] The vehicle flow matrix construction subunit is used to construct the vehicle flow matrix of the target road section according to the vehicle flow data.

[0218] Optionally, the vehicle flow matrix construction subunit is further specifically used for:

[0219] An initial traffic flow matrix is ​​constructed by taking the starting point of each sub-target road section in the target road section as a row of the matrix and taking the end point of each sub-target road section as a column of the matrix;

[0220] The vehicle flow data is used as matrix elements to fill the initial vehicle flow matrix to obtain the vehicle flow matrix of the target road section.

[0221] Optionally, the vehicle driving simulation device further includes:

[0222] A duration acquisition unit, used to acquire the data duration corresponding to the driving data and the simulation duration of the driving simulation for the vehicle;

[0223] The driving simulation ending unit is used to end the driving simulation when the simulation duration is greater than or equal to the data duration.

[0224] It can be seen that by applying the embodiment of the present application, the driving data of the vehicle on the target road section can be obtained first, and then the preset departure time of the vehicle in the simulation scene can be calculated based on the driving data. Then, according to the order of the departure time of the vehicle, the preset starting point of the vehicle in the simulation scene is determined in sequence, and then the preset starting point that meets the position adjustment condition is adjusted to obtain the adjusted preset starting point. Finally, the preset departure time is used as the starting time of the vehicle's driving, and the preset starting point or the adjusted preset starting point is used as the starting position of the vehicle's driving, and the vehicle driving simulation is performed in the simulation scene.

[0225] Through the above method, not only can the preset departure time of the vehicle be accurately determined based on the detailed vehicle driving data, so as to preliminarily determine the preset departure point for the vehicle in an orderly manner according to the preset departure time. In addition, before the vehicle driving simulation is performed, it will also detect whether the preliminarily determined preset departure point matches the vehicle, and make timely position rationality adjustments for the unmatched preset departure point, so as to improve the authenticity and accuracy of the vehicle driving simulation in the virtual scene.

[0226] The present application also provides an electronic device, which may be a terminal, a server, or other device. Fig.10 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:

[0227] The electronic device may include one or more processors 501 of processing cores, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504, and a communication unit 505. Those skilled in the art will appreciate that Fig.10 The electronic device structure shown in the figure does not limit the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.

[0228] The processor 501 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or units stored in the memory 502, and calling data stored in the memory 502, the processor 501 performs various functions of the electronic device and processes data. In some embodiments, the processor 501 may include one or more processing cores; in some embodiments, the processor 501 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 501.

[0229] The memory 502 can be used to store software programs and units. The processor 501 executes various functional applications and data processing by running the software programs and units stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may 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 may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include a high-speed random access memory, and may 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. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0230] The electronic device also includes a power supply 503 for supplying power to various components. In some embodiments, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 503 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0231] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0232] The electronic device may further include a communication unit 505. In some embodiments, the communication unit 505 may include a wireless unit. The electronic device may perform short-range wireless transmission through the wireless unit of the communication unit 505, thereby providing the user with wireless broadband Internet access. For example, the communication unit 505 may be used to help the user send and receive emails, browse web pages, and access streaming media.

[0233] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application programs stored in the memory 502, thereby realizing various functions, as follows:

[0234] Initiating a location verification request to the invited terminal, so that the invited terminal returns location verification information according to the location verification request;

[0235] The location verification information of the invited end is verified. When the location verification information of the invited end and the location verification information of the inviting end pass the location consistency verification, the registration request of the inviting end is successful.

[0236] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0237] From the above, it can be seen that the technical solution of the present application does not require a trusted third party to participate in the collection and management of the data to be classified. It converts the data to be classified in each data terminal into the matrix required for classification calculation, and performs encryption, element position change, random number addition and other processing on the matrix through different data terminals during the classification process. This makes it impossible for any data terminal to completely obtain or tamper with the data from other data terminals, thereby avoiding the leakage and tampering of the data to be classified and improving the efficiency, accuracy and security of data classification.

[0238] Therefore, the vehicle driving simulation method of the present application can solve the technical problems that in the existing data classification process, a large amount of feature data of the data to be classified needs to be obtained from different data sources, which may lead to data leakage and tampering, and it is difficult to find a safe and reliable trusted third party, which reduces the efficiency, accuracy and security of data classification.

[0239] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any vehicle driving simulation method provided in the embodiment of the present application. For example, the instructions can execute the following steps:

[0240] Initiating a location verification request to the invited terminal, so that the invited terminal returns location verification information according to the location verification request;

[0241] The location verification information of the invited end is verified. When the location verification information of the invited end and the location verification information of the inviting end pass the location consistency verification, the registration request of the inviting end is successful.

[0242] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0243] It can be seen that by applying the embodiment of the present application, the driving data of the vehicle on the target road section can be obtained first, and then the preset departure time of the vehicle in the simulation scene can be calculated based on the driving data. Then, according to the order of the departure time of the vehicle, the preset starting point of the vehicle in the simulation scene is determined in sequence, and then the preset starting point that meets the position adjustment condition is adjusted to obtain the adjusted preset starting point. Finally, the preset departure time is used as the starting time of the vehicle's driving, and the preset starting point or the adjusted preset starting point is used as the starting position of the vehicle's driving, and the vehicle driving simulation is performed in the simulation scene.

[0244] Through the above method, not only can the preset departure time of the vehicle be accurately determined based on the detailed vehicle driving data, so as to preliminarily determine the preset departure point for the vehicle in an orderly manner according to the preset departure time. In addition, before the vehicle driving simulation is performed, it will also detect whether the preliminarily determined preset departure point matches the vehicle, and make timely position rationality adjustments for the unmatched preset departure point, so as to improve the authenticity and accuracy of the vehicle driving simulation in the virtual scene.

[0245] Since the instructions stored in the storage medium can execute the steps in any vehicle driving simulation method provided in the embodiments of the present application, the beneficial effects that can be achieved by any vehicle driving simulation method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0246] The above is a detailed introduction to a vehicle driving simulation method, device, system, electronic device and computer storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A vehicle driving simulation method, characterized in that: The method comprises: Obtaining the driving data of the vehicle on the target road section; Based on the driving data, calculating a preset departure time of the vehicle in a simulation scenario; Determining the preset starting points of the vehicles in the simulation scene in sequence according to the order of the departure times of the vehicles; Adjusting the preset starting point that meets the position adjustment condition to obtain an adjusted preset starting point; The preset departure time is used as the starting time of the vehicle's travel, the preset starting point or the adjusted preset starting point is used as the starting position of the vehicle's travel, and the vehicle's travel simulation is performed in the simulation scene.

2. The vehicle driving simulation method according to claim 1, characterized in that: The position adjustment condition includes that the lane corresponding to the preset starting point does not match the vehicle, and the preset starting point satisfying the position adjustment condition is adjusted to obtain the adjusted preset starting point, including: Searching for a target lane matching the vehicle from a candidate lane set, and if the target lane exists in the candidate lane set, selecting the target lane, and determining the starting point of the target lane as the adjusted preset starting point, wherein the candidate lane set is a set of lanes that have not been selected in the current lane selection round; If the target lane does not exist in the candidate lane set, the target lane is searched for based on the selected lane set. If the target lane is found, the target lane is selected, and the starting point of the target lane is determined as the adjusted preset starting point. The selected lane set is a set of lanes that have been selected in the current lane selection round.

3. The vehicle driving simulation method according to claim 2, characterized in that: The step of searching for a target lane matching the vehicle from a set of candidate lanes includes: The selected lane set at the current moment is copied to obtain a first selected lane set having the same elements as the selected lane set; Moving the lane corresponding to the preset starting point into the selected lane set; Searching for the target lane from the candidate lane set, and selecting the target lane if the target lane exists; The target lane is moved into the selected lane set, and the first selected lane set is cleared.

4. The vehicle driving simulation method according to claim 3, characterized in that: The searching for the target lane based on the selected lane set includes: If the target lane does not exist in the candidate lane set, iteratively searching for the target lane from the first selected lane set, each iterative search operation corresponding to a searched lane; If the searched lane is not the target lane, the searched lane is removed from the first selected lane set to obtain an updated first selected lane set; The iterative search operation is performed in the updated first selected lane set until the target lane is found.

5. The vehicle driving simulation method according to claim 4, characterized in that: The method further comprises: Obtaining the type of each vehicle in the candidate vehicle set, wherein the candidate vehicle set is a set of lanes that have not been selected in the current lane selection round; If the target lane is not found after the iterative search operation is completed, a vehicle of a different type is selected from the candidate vehicle set to replace the vehicle for driving simulation.

6. The vehicle driving simulation method according to claim 4, characterized in that: The method further comprises: Obtaining a preset departure time of the vehicle; If the target lane is not found after the iterative search operation is completed, the preset departure time is postponed.

7. The vehicle driving simulation method according to claim 1, characterized in that: The step of sequentially determining the preset starting points of the vehicles in the simulation scene according to the order of the departure times of the vehicles includes: In the current lane selection round, a set of candidate lanes on which the vehicle can travel in the target road section is obtained, where the candidate lane set is a set of lanes that have not been selected in the current lane selection round; Selecting a departure lane for the vehicle from the candidate lane set, and determining a starting point of the departure lane as a preset departure point for the vehicle; The departure lane is removed from the candidate lane set and moved into the selected lane set, where the selected lanes are a set of lanes that have been selected in the current lane selection round; For the first vehicle whose preset starting point has not been determined, the above operation of determining the preset starting point is repeated to obtain the preset starting point of the first vehicle, until the elements in the candidate lane set are empty, and the current lane selection round is terminated; In the next one or more lane selection rounds, for the second vehicles whose preset starting points have not been determined, the operation of determining the preset starting points is repeated until the preset starting points of all the second vehicles are obtained.

8. The vehicle driving simulation method according to claim 1, characterized in that: The calculating, based on the driving data, a preset departure time of the vehicle in the simulation scene comprises: Obtaining traffic flow data of the target road section during a target period; Based on the duration of the target time period and the traffic flow data, a preset departure time of the vehicle is determined.

9. The vehicle driving simulation method according to claim 1, characterized in that: The step of obtaining the driving data of the vehicle on the target road section includes: Obtaining traffic flow data of the target road section during a target period; A traffic flow matrix of the target road section is constructed according to the traffic flow data.

10. The vehicle driving simulation method according to claim 9, characterized in that: The step of constructing a traffic flow matrix of the target road section according to the traffic flow data includes: An initial traffic flow matrix is ​​constructed by taking the starting point of each sub-target road section in the target road section as a row of the matrix and taking the end point of each sub-target road section as a column of the matrix; The vehicle flow data is used as matrix elements to fill the initial vehicle flow matrix to obtain the vehicle flow matrix of the target road section.

11. The vehicle driving simulation method according to any one of claims 1 to 10, characterized in that: After the vehicle is simulated in the simulation scene, the method further includes: Acquiring the data duration corresponding to the driving data and the simulation duration of driving simulation for the vehicle; When the simulation duration is greater than or equal to the data duration, the driving simulation is terminated.

12. A vehicle driving simulation device, characterized in that: The device comprises: A data acquisition unit, used to acquire the driving data of the vehicle on the target road section; A time calculation unit, used to calculate a preset departure time of the vehicle in a simulation scenario based on the driving data; A departure point determination unit, used to sequentially determine the preset departure points of the vehicles in the simulation scene according to the order of the departure times of the vehicles; A starting point adjustment unit, used to adjust a preset starting point that meets the position adjustment condition to obtain an adjusted preset starting point; A driving simulation unit is used to use the preset departure time as the starting time of the vehicle's driving, and the preset starting point or the adjusted preset starting point as the starting position of the vehicle's driving, to simulate the driving of the vehicle in the simulation scene.

13. An electronic device, characterized in that: include: Processors and storage media; The processor is used to implement each instruction; The storage medium is used to store a plurality of instructions, and the instructions are used to be loaded by a processor and execute the vehicle driving simulation method according to any one of claims 1 to 11.

14. A computer-readable storage medium storing executable instructions, characterized in that: When the executable instructions are executed by the processor, the vehicle driving simulation method according to any one of claims 1 to 11 is implemented.

15. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the vehicle driving simulation method according to any one of claims 1 to 11 is implemented.