Traffic simulation model construction method and device and storage medium
By determining the motion trajectory of the target object and the decision-making results of the interacting object in the traffic simulation model, and dynamically adjusting the object behavior, the problem of insufficient simulation of interactive behavior in the existing model is solved, and the credibility of the simulation results and the efficiency of virtual testing are improved.
Patent Information
- Application Number
- CN202110886479.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-03
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-08-03
AI Technical Summary
In existing traffic simulation models, the interaction behavior between simulated objects cannot be realistically simulated, resulting in insufficient credibility of simulation results and making it difficult to meet the requirements of high-precision traffic simulation.
By determining the movement trajectory of the target object and the interacting objects, and dynamically adjusting the object's behavior based on the decision results, a traffic simulation model is constructed, including decisions such as yielding, passing first, or following. Combining methods such as Bézier curves and Poisson distributions, the interactive behaviors of various traffic individuals are simulated.
It improves the realism and credibility of traffic simulation models, enhances the efficiency and reliability of virtual testing results, and can better simulate complex traffic scenarios, providing high-value test data.
Smart Images

Figure CN115906367B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus and storage medium for constructing a traffic simulation model. Background Technology
[0002] With the development of computer technology, traffic simulation technology has emerged. Traffic simulation refers to the use of simulation technology to study traffic behavior; it is a technology that tracks and describes the changes in traffic movement over time and space.
[0003] In current traffic simulation models, the simulated objects are usually orderly one-to-one interactions between vehicles, which cannot realistically simulate the interactive behavior of objects in the traffic environment. Therefore, there is an urgent need for highly reliable traffic simulation models to realistically simulate the interactive behavior of objects in the traffic environment. Summary of the Invention
[0004] In view of this, a method, device and storage medium for constructing traffic simulation models are proposed.
[0005] In a first aspect, embodiments of this application provide a method for constructing a traffic simulation model. The method includes: determining at least one interactive object within a predetermined range of the at least one object, based on a first motion trajectory of at least one object in the model; the object includes one or more of vehicles, pedestrians, and non-motorized vehicles; the at least one interactive object includes an object that intersects with the first motion trajectory of the target object within the predetermined range and is not in a car-following relationship; determining a decision result for the target object based on the target object and the at least one interactive object; the decision result instructing the target object to behave towards the interactive object; and determining a second motion trajectory of the target object in the traffic simulation model based on the decision result and the first motion trajectory.
[0006] According to the embodiments of this application, by determining at least one interactive object whose first motion trajectory intersects with the first motion trajectory within a predetermined range and is not in a car-following relationship, based on the first motion trajectory of at least one object in the model, the number of traversals when determining the interactive object can be reduced, the consumption of computer computing power can be reduced, and the speedup ratio of virtual testing can be improved. At the same time, based on the decision result used to instruct the target object to act on the interactive object and the first motion trajectory, the second motion trajectory of the target object can be determined, which can realize the simulation of the interactive behavior between vehicles, non-motorized vehicles and pedestrians in traffic flow scenarios. It can realize the simulation of dynamic interactive behavior between objects on a two-dimensional plane, making the simulation scenario more realistic and credible, thereby further improving the testing efficiency and credibility of subsequent virtual testing of intelligent vehicles.
[0007] According to the first aspect, in a first possible implementation of the traffic simulation model construction method, determining the second motion trajectory of the target object in the traffic simulation model based on the decision result and the first motion trajectory includes: determining the speed, steering angle, and acceleration of the target object based on the decision result and the first motion trajectory; and determining the second motion trajectory of the target object in the traffic simulation model based on the speed, steering angle, and acceleration of the target object.
[0008] According to the embodiments of this application, by determining the speed, steering angle and acceleration of the target object, and based on the speed, steering angle and acceleration of the target object, the second motion trajectory of the target object in the traffic simulation model can be determined, which can realize the dynamic determination of the motion trajectory and make the simulation scene more realistic and credible.
[0009] According to the first aspect or the first possible implementation of the first aspect, in the second possible implementation of the traffic simulation model construction method, the method further includes: using the second motion trajectory as the new first motion trajectory of the target object, performing steps such as determining the interactive objects of the target object within a predetermined range based on the first motion trajectories of each object in the model, until a preset iteration condition is reached; and constructing the traffic simulation model based on the first motion trajectories of each object in at least one object when the preset iteration condition is reached.
[0010] According to the embodiments of this application, a traffic simulation model is constructed through iteration, which can dynamically realize traffic flow scenarios, making the simulation of the model more realistic and credible.
[0011] According to the first aspect, in a third possible implementation of the traffic simulation model construction method, determining the decision result of the target object based on the target object and the at least one interactive object includes: determining the interactive object with the smallest first time from the target object to the intersection point corresponding to each interactive object as the current interactive object of the target object; determining the second time from the current interactive object to the corresponding intersection point; and determining the decision result of the target object based on the first time and the second time corresponding to the current interactive object.
[0012] According to the embodiments of this application, by determining the interaction object with the smallest first time from the target object to the intersection point corresponding to each interaction object as the current interaction object of the target object, the current interaction object of the target object can be determined more accurately, so that the decision result of the target object can be more targeted. By determining the second time from the current interaction object to the corresponding intersection point, and determining the decision result of the target object based on the first time and the second time corresponding to the current interaction object, the decision result of the target object can be determined more accurately, so that the model is more realistic and credible, and the credibility of the test results of subsequent virtual tests is improved.
[0013] According to the first aspect or the first, second or third possible implementation of the first aspect, in the fourth possible implementation of the traffic simulation model construction method, the decision result includes at least one of the target object yielding interaction object, the target object passing first, and the target object following interaction object.
[0014] According to the embodiments of this application, by making different decisions for the target object in different scenarios, the model can reproduce the various interactive behaviors of traffic individuals in real traffic flow scenarios, thereby making the model more realistic and credible and improving the credibility of subsequent virtual test results.
[0015] According to the fourth possible implementation of the first aspect, in the fifth possible implementation of the traffic simulation model construction method, determining the decision result of the target object based on the target object and the at least one interaction object includes: when the target object is a vehicle and the interaction object is a pedestrian, determining the decision result of the target object as the target object yielding to the interaction object.
[0016] According to the embodiments of this application, by determining the decision result of the target object as the target object yielding to the pedestrian when the target object is a vehicle and the interaction object is a pedestrian, it is possible to simulate the scenario of yielding to pedestrians in actual traffic flow, making the model more realistic and credible, and improving the credibility of the test results of subsequent virtual tests.
[0017] According to the fourth or fifth possible implementation of the first aspect, in the sixth possible implementation of the traffic simulation model construction method, the decision result of the target object is determined according to the first time and the second time corresponding to the current interaction object, including: if the first time is less than the second time, the decision result of the target object is determined to be that the target object passes first; otherwise, the decision result of the target object is determined to be that the target object yields to the interaction object.
[0018] According to the embodiments of this application, by determining that the target object's decision result is to pass first when the first time is less than the second time, and otherwise determining that the target object's decision result is to yield to the interactive object, it is possible to accurately determine whether to yield during object interaction based on the actual situation, making the model more realistic and credible, and improving the credibility of subsequent virtual test results.
[0019] According to the fourth, fifth, or sixth possible implementation of the first aspect, in the seventh possible implementation of the traffic simulation model construction method, determining the decision result of the target object based on the target object and the at least one interaction object includes: when the decision result is that the target object yields to the interaction object, determining whether the target object can safely pass in the case of overtaking; when the target object can safely pass in the case of overtaking, determining that the decision result of the target object is that the target object passes first.
[0020] According to the embodiments of this application, when the decision result is that the target object yields to the interaction object, it is determined whether the target object can safely pass under the condition of rushing. When the target object can safely pass under the condition of rushing, the decision result of the target object is determined to be that the target object passes first. This can realize the construction of relevant dangerous scenarios in the simulation process, making the model more realistic and credible. At the same time, it can provide more interference scenarios for subsequent virtual testing, so that more valuable test data and more credible test results can be obtained, thus meeting relevant testing requirements.
[0021] According to the seventh possible implementation of the first aspect, in the eighth possible implementation of the traffic simulation model construction method, when the decision result is that the target object yields to the interaction object, determining whether the target object can safely pass in the event of a rush includes: determining the passage utility value of the target object when rushing, based on the distance from the target object to the end of the first trajectory, the speed of the target object, and the minimum acceleration of the minimum acceleration of the interaction object when yielding to the target object; the larger the passage utility value, the greater the contribution of the target object to the passage efficiency when rushing; determining the safety utility value of the target object when rushing, based on the width required for the target object to pass first and the distance from the target object to the interaction object; the larger the safety utility value, the less safe the target object is when rushing; and determining that the target simulation object can safely pass in the event of a rush if the passage utility value is greater than the safety utility value.
[0022] According to the embodiments of this application, by determining the passage utility value and safety utility value of the target object during the rush, the relevant dangerous scenarios can be constructed more accurately during the simulation process. By determining that the target simulation object can safely pass through when the passage utility value is greater than the safety utility value, the constructed dangerous scenarios are more realistic and credible, thereby enabling the acquisition of more valuable test data and more reliable test results to meet relevant testing requirements.
[0023] According to the first aspect or the first, second, third, fourth, fifth, sixth, seventh or eighth possible implementation of the first aspect, in the ninth possible implementation of the traffic simulation model construction method, the first motion trajectory is determined based on the road network map in the intersection scenario.
[0024] According to the embodiments of this application, the model can be applied to traffic flow simulation in intersection scenarios, so that subsequent virtual testing can be more targeted.
[0025] Secondly, embodiments of this application provide a traffic simulation model construction apparatus, comprising: a first determining module, configured to determine at least one interactive object of the target object within a predetermined range based on a first motion trajectory of at least one object in the model, wherein the object includes one or more of vehicles, pedestrians, and non-motorized vehicles, and the at least one interactive object includes an object that intersects with the first motion trajectory of the target object within the predetermined range and is not in a car-following relationship; a second determining module, configured to determine a decision result of the target object based on the target object and the at least one interactive object, wherein the decision result is used to instruct the target object to behave toward the interactive object; and a third determining module, configured to determine a second motion trajectory of the target object in the traffic simulation model based on the decision result and the first motion trajectory.
[0026] According to the second aspect, in a first possible implementation of the traffic simulation model construction device, determining the second motion trajectory of the target object in the traffic simulation model based on the decision result and the first motion trajectory includes: determining the speed, steering angle, and acceleration of the target object based on the decision result and the first motion trajectory; and determining the second motion trajectory of the target object in the traffic simulation model based on the speed, steering angle, and acceleration of the target object.
[0027] According to the second aspect or the first possible implementation of the second aspect, in the second possible implementation of the traffic simulation model construction device, the device further includes: a fourth determining module, used to take the second motion trajectory as the new first motion trajectory of the target object, and execute steps to determine the interactive objects of the target object within a predetermined range and subsequent steps based on the first motion trajectories of each object in the model, until a preset iteration condition is reached; and a construction module, used to construct the traffic simulation model based on the first motion trajectories of each object in at least one of the objects when the preset iteration condition is reached.
[0028] According to the second aspect, in a third possible implementation of the traffic simulation model construction device, determining the decision result of the target object based on the target object and the at least one interactive object includes: determining the interactive object with the smallest first time from the target object to the intersection point corresponding to each interactive object as the current interactive object of the target object; determining the second time from the current interactive object to the corresponding intersection point; and determining the decision result of the target object based on the first time and the second time corresponding to the current interactive object.
[0029] According to the second aspect or the first, second or third possible implementation of the second aspect, in the fourth possible implementation of the traffic simulation model construction device, the decision result includes at least one of the target object yielding interaction object, the target object passing first, and the target object following interaction object.
[0030] According to the fourth possible implementation of the second aspect, in the fifth possible implementation of the traffic simulation model construction device, determining the decision result of the target object based on the target object and the at least one interaction object includes: when the target object is a vehicle and the interaction object is a pedestrian, determining the decision result of the target object as the target object yielding to the interaction object.
[0031] According to the fourth or fifth possible implementation of the second aspect, in the sixth possible implementation of the traffic simulation model construction device, the decision result of the target object is determined according to the first time and the second time corresponding to the current interaction object, including: if the first time is less than the second time, the decision result of the target object is determined to be that the target object passes first; otherwise, the decision result of the target object is determined to be that the target object yields to the interaction object.
[0032] According to the fourth, fifth, or sixth possible implementation of the second aspect, in the seventh possible implementation of the traffic simulation model construction device, determining the decision result of the target object based on the target object and the at least one interactive object includes: when the decision result is that the target object yields to the interactive object, determining whether the target object can safely pass in the case of overtaking; when the target object can safely pass in the case of overtaking, determining that the decision result of the target object is that the target object passes first.
[0033] According to the seventh possible implementation of the second aspect, in the eighth possible implementation of the traffic simulation model construction device, when the decision result is that the target object yields to the interactive object, determining whether the target object can safely pass in the event of a rush includes: determining the passage utility value of the target object when rushing based on the distance from the target object to the end of the first trajectory, the speed of the target object, and the minimum acceleration of the minimum acceleration of the interactive object when yielding to the target object; the larger the passage utility value, the greater the contribution of the target object to the passage efficiency when rushing; determining the safety utility value of the target object when rushing based on the width required for the target object to pass first and the distance from the target object to the interactive object; the larger the safety utility value, the less safe the target object is when rushing; and determining that the target simulation object can safely pass in the event of a rush if the passage utility value is greater than the safety utility value.
[0034] According to the second aspect or the first, second, third, fourth, fifth, sixth, seventh, or eighth possible implementation of the second aspect, in the ninth possible implementation of the traffic simulation model construction device, the first motion trajectory is determined based on the road network map in the intersection scenario.
[0035] Thirdly, embodiments of this application provide a traffic simulation model construction apparatus, the apparatus comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement, when executing the instructions, one or more of the traffic simulation model construction methods described in the first aspect or various possible implementations of the first aspect.
[0036] Fourthly, embodiments of this application provide a non-volatile computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, implement one or more of the traffic simulation model construction methods described in the first aspect or various possible implementations of the first aspect.
[0037] Fifthly, embodiments of this application provide a terminal device that can execute one or more of the traffic simulation model construction methods described in the first aspect or various possible implementations of the first aspect.
[0038] In a sixth aspect, embodiments of this application provide a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in an electronic device, the processor in the electronic device executes one or more of the traffic simulation model construction methods described in the first aspect or various possible implementations of the first aspect.
[0039] These and other aspects of this application will become more apparent in the description of the following embodiments(s). Attached Figure Description
[0040] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this application together with the specification and serve to explain the principles of this application.
[0041] Figure 1 A schematic diagram illustrating an application scenario according to an embodiment of this application is shown.
[0042] Figure 2 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown.
[0043] Figure 3 This diagram illustrates the determination of the motion trajectory of each object according to an embodiment of this application.
[0044] Figure 4 A schematic diagram of an interactive object for determining a target object is shown according to an embodiment of this application.
[0045] Figure 5 A schematic diagram of TTC calculation according to an embodiment of this application is shown.
[0046] Figure 6 This diagram illustrates a complex scene object interaction according to an embodiment of the present application.
[0047] Figure 7 A schematic diagram illustrating a cooperative acceleration calculation method according to an embodiment of this application is shown.
[0048] Figure 8 A schematic diagram showing a method for calculating the steering angle according to an embodiment of this application is provided.
[0049] Figure 9 This diagram illustrates object interactions within a traffic simulation model according to an embodiment of the present application.
[0050] Figure 10 This diagram illustrates a road network map in opendrive data format according to an embodiment of this application.
[0051] Figure 11 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown.
[0052] Figure 12 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown.
[0053] Figure 13 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown.
[0054] Figure 14 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown.
[0055] Figure 15 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown.
[0056] Figure 16 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown.
[0057] Figure 17 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown.
[0058] Figure 18 A structural diagram of a traffic simulation model building apparatus according to an embodiment of this application is shown. Detailed Implementation
[0059] Various exemplary embodiments, features, and aspects of this application will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0060] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0061] Furthermore, to better illustrate this application, numerous specific details are provided in the following detailed embodiments. Those skilled in the art should understand that this application can be implemented without certain specific details. In some instances, methods, means, components, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the main points of this application.
[0062] Figure 1This diagram illustrates an application scenario according to an embodiment of the present application. The traffic simulation model construction method of an embodiment of the present application can be used in scenarios involving the simulation of intersections, such as... Figure 1 As shown, intersections typically involve a large interaction of vehicles (i.e., motor vehicles, non-motorized vehicles, and pedestrians), and because intersections are usually the junctions of multiple roads, traffic flow density is relatively high (e.g., ...). Figure 1 (a) As shown in the satellite image, currently, in the process of simulating traffic flow scenarios under intersections, simulation is usually based on lanes (i.e., one-dimensional scenarios). There is usually only one-to-one orderly interaction between vehicles, and the model cannot simulate the interaction scenarios under multiple traffic individuals. It is difficult to meet the construction requirements of high-precision and high-reliability traffic simulation models, and it is also unable to provide a highly realistic virtual test traffic flow environment for intelligent vehicles in the future.
[0063] The traffic simulation model construction method of this application embodiment can simulate various interactive behaviors among multiple subjects such as motor vehicles, non-motor vehicles (such as human-powered bicycles, electric bicycles, etc.), and pedestrians in a two-dimensional plane at intersections (e.g., Figure 1 (b) shows the intersection, in order to reproduce the traffic flow situation of the intersection (including possible traffic accidents, etc.) to the greatest extent. Therefore, the traffic simulation model constructed in this application can be used for virtual testing of intelligent vehicles, pre-evaluation of the rationality of unused road facilities, or improvement of existing road facilities, etc.
[0064] For example, when using the traffic simulation model obtained in the embodiments of this application to conduct virtual testing of an intelligent vehicle, the traffic simulation model can be input into the autonomous driving system of the intelligent vehicle to obtain the autonomous driving system's decision on the intelligent vehicle's driving behavior, and calculate the relevant data of the simulation results of the intelligent vehicle's driving state in the traffic simulation model, so as to evaluate and analyze the functions of the intelligent vehicle's autonomous driving system.
[0065] It should be noted that the traffic simulation model construction method of this application embodiment can also be used in other multi-subject interactive traffic scenarios besides intersections, such as commercial streets, as long as there is interaction between other subjects such as motor vehicles, non-motor vehicles and pedestrians in the scenario.
[0066] The following section uses the simulation of the interaction between motor vehicles, non-motor vehicles, and pedestrians at an intersection as an example to detail the traffic simulation model construction method of this application embodiment.
[0067] Figure 2 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown. Figure 2 As shown, the process of constructing this traffic simulation model includes:
[0068] Step S201: Determine the input object at the current time.
[0069] In this model, objects can represent various entities, including motor vehicles, non-motor vehicles, and pedestrians. To simulate traffic flow at intersections, it's necessary to determine the objects input into the model at each moment (corresponding to each simulation moment in the model). This includes determining the origin-to-destination (OD) positions of each object, its initial state, and the time interval between object inputs. The initial state of an object might include its initial velocity, initial acceleration, and size (length, width, etc.).
[0070] For example, when the model includes a scenario of intersections where main and secondary roads meet, the entrance lane of the corresponding main and secondary road in the model can be used as the starting position of the object, and the exit lane of the corresponding main and secondary road in the model can be used as the ending position of the object.
[0071] When determining the time interval for inputting objects into the model, in order to simulate the relatively high traffic density and random arrival of motor vehicles at intersections, the input of motor vehicles into the model can be considered to follow a Poisson distribution. The Poisson distribution can be used here to represent the distribution of the number of times the event of motor vehicle input into the model occurs within a certain period of time, see formula (1):
[0072]
[0073] Where X can represent the number of motor vehicles input into the model within a simulation step (the time interval between two adjacent simulation moments of the corresponding model), the value of X can be from 1 to n (n can be a preset threshold for the number of motor vehicles input into the model within a simulation step, such as 10), P(X=k) can represent the probability that the number of motor vehicles input into the model is k within a simulation step, the value of k can be from 1 to n, and the parameter λ can represent the expected number of motor vehicles input in each simulation step.
[0074] Since the input model of a motor vehicle can follow a Poisson distribution, the time interval of the input model can follow a negative exponential distribution, as shown in formula (2):
[0075] P(h≥t)=e -λt Formula (2)
[0076] Where h can represent the time interval of the vehicle input model, such as one or more simulation step sizes, and P(h≥t) can represent the probability that the time interval of the vehicle input model is at least t.
[0077] After determining the time interval for inputting motor vehicles into the model, motor vehicles can be input into the model at times that follow a Poisson distribution, meaning that the time points at which each motor vehicle is input into the model follow a Poisson distribution.
[0078] The time intervals for input models of non-motorized vehicles and pedestrians can follow a uniform distribution, as shown in formula (3):
[0079]
[0080] Where h represents the time interval of the non-motorized vehicle / pedestrian input model, P(t≤h≤t+d) represents the probability that the time interval of the non-motorized vehicle / pedestrian input model is between [t,t+d], and the parameter d represents the sub-interval within [a,b], that is, the interval within [a,b] with a length less than ba. The value of ba is 1.
[0081] After determining the time interval for inputting non-motorized vehicles / pedestrians into the model, non-motorized vehicles / pedestrians can be input into the model at times that follow a uniform distribution. For example, every 3 simulation steps, one non-motorized vehicle and / or pedestrian can be input into the model.
[0082] Step S202: Determine the motion trajectory of each object.
[0083] In this embodiment, based on the starting and ending positions of each object in the model, the point set of the motion trajectory of each object in the intersection scene and in the two-dimensional plane can be determined. The Bézier curve is a mathematical curve based on Bernstein polynomials. The order of the curve can be determined as needed. By using the Bézier curve to determine the motion trajectory of each object, the generated path of each object can be made smoother and more continuous. Considering that the computational cost increases with the increase of the order of the Bézier curve, the lower order Bézier curve is preferred. Since the third order Bézier curve is the smallest order curve that can generate continuous curvature trajectory, this embodiment takes the third order Bézier curve as an example to determine the point set of the continuous motion trajectory of each object in the two-dimensional plane, see formula (4):
[0084] B(q)=P c (1-q) 3 +3Q1q(1-q) 2 +3Q2q 2 (1-q)+P temp q 3 ,q∈[0,1] Formula (4)
[0085] Figure 3 This diagram illustrates the determination of the motion trajectories of various objects according to an embodiment of this application. The following uses... Figure 3 For example, regarding one of the objects (such as...) Figure 3 (The motor vehicle in the middle) explains the meaning of formula (4).
[0086] like Figure 3 As shown, P c P can represent the current position coordinates of an object. temp B(t) can represent the coordinates of the object's final position (which could be a random point at the target exit in the figure), and B(t) can represent the trajectory (as shown in the figure, represented by P). c To P temp The set of points on the trajectory curve, where q can be a pre-defined coefficient for the number of terms in the control binomial to determine the number of points in the set (e.g., 10). Q1 and Q2 can each represent two control points, for example, points passing through P. temp and P c Points on the tangent line of the curve, as shown in the figure, can be the intersection of two tangent lines and respectively point to P. temp and P c The points that divide the surface into three equal parts.
[0087] After determining the objects and their motion trajectories in the input model, the following describes the method for constructing a traffic simulation model according to an embodiment of this application, taking one of the multiple objects in the model (i.e., the target object) as an example.
[0088] Step S203: Determine at least one interactive object of the target object.
[0089] The target object can be any of the input objects, including motor vehicles, non-motor vehicles, and pedestrians. The interaction object can represent an object that may have interactive behavior (i.e. conflict) with the target object, and can include one or more of motor vehicles, non-motor vehicles, and pedestrians.
[0090] In reality, after entering an intersection, the movement and interaction of individual traffic vehicles occur on a continuous two-dimensional plane. Therefore, an individual traffic vehicle may interact with multiple surrounding traffic vehicles simultaneously. To improve the simulation effect of the model and more realistically simulate actual traffic flow scenarios, when determining the interaction objects of the target object in the model, it is advisable to consider whether all objects within the search range of the target object can be interaction objects of the target object. See [link to relevant documentation]. Figure 4 .
[0091] Figure 4 This diagram illustrates an interactive object for determining a target object according to an embodiment of this application. Figure 4 As shown, motor vehicle C in the intersection A Taking the target object as an example, this section explains how to determine the interactive objects within the search scope of the target object.
[0092] The search range can be the area corresponding to a circle with the target object's mass point as the origin and a radius of twice the time interval. One method for calculating the radius of the search range can be found in formula (5). Figure 4 (As shown in the image):
[0093] R = 2 * V n (t) Formula (5)
[0094] Where R can represent the radius of the search range, t can represent the current time, and V n (t) can represent the time interval of the corresponding target object (i.e., the distance the target object can move in 1 second at its current speed), and the target object C is determined accordingly. A The corresponding search radius can be, for example Figure 4 Within the gray circle in the model, if other objects in the model are within the search range of the target object with radius R (e.g., a point mass of another object falls within the circle), then that object can be considered as an object within the search range of the target object.
[0095] After determining the search range of the target object, it can be determined whether there are any intersections between the movement trajectories of all objects within the search range and the target object (e.g., ...). Figure 4 The system identifies the points of conflict within the target object and determines whether there is a carousel relationship between all objects within the search range and the target object. Objects within the search range that intersect with the target object's trajectory but do not have a carousel relationship with the target object are identified as the target object's interaction objects.
[0096] It should be noted that, since the conflict between two objects is considered to be constant when there is a carousel relationship between them, the object with the carousel relationship with the target object is generally not considered as the target object's interaction object. Instead, the object behind is considered as carousing the object in front. The movement of the object behind when there is a carousel relationship will be described in detail later. One way to determine whether there is a carousel relationship between objects is to refer to formula (6):
[0097]
[0098] Among them, y n (t) and y j (t) can represent the position coordinates of the object located behind and the object located in front in the direction of motion at time t, respectively. n This can represent the sum of the width of the object behind and the preset safety distance (e.g., 0.5m). An object behind that satisfies formula (6) can be considered to have a following relationship with the object in front.
[0099] like Figure 4 As shown in the figure, motor vehicle C can be... B and motor vehicle CC Target object C is determined A The interactive object.
[0100] Step S204: Determine the decision result of the target object for the current interaction object.
[0101] After identifying at least one interactive object of the target object, the time it takes for the target object to reach the intersection point (i.e., the collision point) of its trajectory with each interactive object can be calculated to determine the order in which the target object arrives at each intersection point. This time can be understood as the time to collision (TTC) between the "object" and the "intersection point," and is therefore referred to as TTC below. Based on the calculated TTCs, the interactive object with the smallest corresponding TTC is determined as the interactive object that the target object needs to interact with at the current moment. In other words, this current interactive object is the object that the target object interacts with first.
[0102] One method for calculating TTC can be found in formulas (7)-(10):
[0103]
[0104]
[0105]
[0106]
[0107] Figure 5 A schematic diagram of TTC calculation according to an embodiment of this application is shown. The following is an example of... Figure 5 For example, we will explain one way of calculating TTC mentioned above.
[0108] exist Figure 5 In this context, object 1 can be used as the target object, and object 2 as the interaction object. Figure 5 In the interaction scenario (a), the target object and the interaction object may have a lateral conflict. In this case, formula (7) / formula (8) can be used to calculate the TTC of the target object reaching the intersection point with the interaction object; Figure 5 In the interaction scenario (b), the target object and the interaction object may have a rear-end collision. In this case, formula (9) can be used to calculate the TTC of the target object reaching the intersection point corresponding to the interaction object; Figure 5 In the interaction scenario (c), the target object and the interaction object may have a positive conflict. At this time, formula (10) can be used to calculate the TTC of the target object reaching the intersection point with the interaction object.
[0109] Where d1 and d2 can represent the distances from object 1 and object 2 to the intersection point, respectively; X1 and X2 can represent the coordinate values of object 1 and object 2 on the coordinate axis of the direction of motion, respectively; v1 and v2 can represent the velocity values of object 1 and object 2 on the coordinate axis of the direction of motion, respectively; l1 and l2 can represent the lengths of object 1 and object 2, respectively; and w1 and w2 can represent the widths of object 1 and object 2, respectively.
[0110] It should be noted that the length and width of the object can be preset. For example, for motor vehicles, the length can be 4m and the width can be 2.4m; for non-motor vehicles, the length can be 2m and the width can be 1m; for pedestrians, the length and width can be, for example, 1m or 0.5m.
[0111] After determining the collision time of the intersection points between the target object and each interaction object, the interaction object with the smallest collision time can be taken as the current interaction object for which the strategy needs to be determined for the target object. Then, the decision result of the target object for the current interaction object can be determined according to the following rules, where the decision result may include the target object yielding to the interaction object, the target object passing first, the target object following the interaction object, etc.
[0112] First, when the current interaction object is a pedestrian, the target object's decision can be to yield to the interaction object. When the target object is also a pedestrian, the target object's decision can also be to follow the interaction object.
[0113] Secondly, formulas (7)-(10) above can be used to calculate the time from the target object to the intersection point corresponding to the current interactive object, and the time from the current interactive object to the corresponding intersection point. If the time from the target object to the intersection point is greater than the time from the interactive object to the intersection point, it can be assumed that the current interactive object arrives at the intersection point first, and the target object's decision can be to yield to the interactive object. Otherwise, it can be assumed that the target object arrives at the intersection point first, and the target object's decision can be that the target object can pass first. In this case, the target object can be a motor vehicle, and in one possible implementation, the target object can also be a non-motor vehicle or a pedestrian.
[0114] To enable the traffic simulation model to more realistically simulate actual traffic flow conditions (including situations where individual vehicles do not yield to each other and collisions occur), and to obtain more valuable data on complex traffic flow scenarios when using the traffic simulation model for virtual testing of intelligent vehicles, dangerous scenarios (such as the aforementioned scenarios of not yielding to each other and collision accidents) can be added to the model. Therefore, when determining the decision outcome of the target object for the interaction object, interference rules can also be added.
[0115] In one possible implementation, multiple interference rules can exist, as long as the interference rule can cause complex interaction scenarios such as mutual non-yielding and collisions between the target object and the interaction object. For example, if the target object's decision is to yield to the interaction object according to the above rules, the decision can be changed in a timely manner by considering the current passage utility value and safety utility value, so that the target object and the interaction object may engage in interaction scenarios such as mutual non-yielding and collisions. The following will illustrate this further. Figure 6 This interference rule is described in detail:
[0116] Figure 6 This diagram illustrates complex scene object interactions according to an embodiment of the present application. Figure 6 As shown, C D It can represent the target object, C E This can represent the target object needing to determine the current interaction object for the decision outcome, C F It can represent C D Other interactive objects within the search scope (i.e., objects other than the currently interacting object mentioned above), the dashed lines in the diagram can represent C respectively. D and C E The trajectory of movement. After determining C... D For C E The decision result is C D Give way to C E In this case, the current passage utility value and security utility value can be calculated to determine whether it is necessary to change the target object C. D Current decision outcome.
[0117] One method for calculating the passage utility value can be found in formula (11):
[0118] U e =θ1*d r +θ2*v n +θ3*a c +ξ1 formula (11)
[0119] Among them, U e U can represent the passage utility value. e A larger value indicates a greater contribution of the target object to the traffic efficiency of the intersection when it tries to cross. Traffic efficiency characterizes the overall traffic efficiency of the intersection; higher efficiency means that objects at the intersection can cross in a shorter time. For example... Figure 6 As shown, d r It can represent the current distance of the target object from the exit channel, v n It can represent the current velocity of the target object, a cThis can represent the acceleration of cooperation, i.e., the current interaction object (C). E The minimum acceleration taken when yielding to a target object, θ1, θ2, and θ3 can represent preset parameters respectively, and ξ1 can represent a random disturbance term, with a value range of 0-1. According to formula (11), the farther the target object is from the exit lane, the greater the current speed, and the greater the cooperative acceleration, the greater the passage utility value. Those skilled in the art should understand that the factors on which the passage utility value is based are not limited to the above-mentioned distance, current speed, and cooperative acceleration, as long as the passage utility value can reasonably reflect the relationship between the object's driving situation and passage efficiency.
[0120] The calculation method for cooperative acceleration can be found in formula (12):
[0121]
[0122] Figure 7 This diagram illustrates a cooperative acceleration calculation method according to an embodiment of this application. The following is a description of the method. Figure 7 The calculation method for the cooperative acceleration in formula (12) is explained. For example... Figure 7 As shown, Figure 7 The car above can represent the target object, and the car below can represent the target object's current interactive object. If the movement trajectories of the target object and the current interactive object intersect, then T... tv It can represent the time from the target object to the intersection point, v sv It can represent the current speed of the currently interacting object, S sv This can represent the distance from the currently interacting object to the intersection point. The cooperative acceleration can be understood as the acceleration of the target object at time T. tv When the intersection point is reached, the interaction object should accelerate or decelerate at a certain rate so that it arrives at the intersection point later than the target object.
[0123] One method for calculating the safety utility value can be found in formula (13):
[0124] U s =θ4*g a +θ5*d b +ξ2 formula (13)
[0125] Among them, U s U can represent the safety utility value. s The larger the value, the safer the target object is during a robbery. For example... Figure 6 As shown, d b It can represent the target object (C D ) and the current interaction object (C E The distance g a It can represent the width required for the target object to pass through, because in Figure 6 The target object needs to pass through C. E And other interactive vehicles C within the search range F Therefore, Figure 6 g in a It can be represented as C E and C F The distance between them. θ4 and θ5 can represent the preset parameters respectively, and ξ2 can represent the random interference term. The value of ξ2 is in the range of 0-1.
[0126] In one possible implementation, the values of parameters θ1, θ2, θ3, θ4, and θ5 in formulas (11) and (13) can be determined by cross-experimentation. An example of the values of parameters θ1, θ2, θ3, θ4, and θ5 can be found in Table 1, which shows an example of the values of θ1, θ2, θ3, θ4, and θ5 for a human-powered bicycle.
[0127] Table 1
[0128] parameter <![CDATA[θ1]]> <![CDATA[θ2]]> <![CDATA[θ3]]> <![CDATA[θ4]]> <![CDATA[θ5]]> Human-powered bicycle 9.07 1.20 1.01 0.57 4
[0129] As shown in Table 1, for a target object that is a human-powered bicycle, the value of parameter θ1 can be 9.07, the value of parameter θ2 can be 1.20, the value of parameter θ3 can be 1.01, the value of parameter θ4 can be 0.57, and the value of parameter θ5 can be 4.
[0130] Those skilled in the art should understand that the factors on which the safety utility value is based are not limited to the aforementioned distance and width, as long as the safety utility value can reasonably reflect the relationship between the driving situation and the degree of safety of the object.
[0131] After calculating the passage utility value and the safety utility value, we can determine the magnitude of the passage utility value and the safety utility value. For example, if the passage utility value is greater than the safety utility value, we can determine that the target object can pass safely even if it tries to cut in, and we can modify the target object's decision to allow it to pass first. Otherwise, if the passage utility value is less than the safety utility value, we can determine that the target object cannot pass safely even if it tries to cut in, and we can maintain the target object's decision to allow it to yield to the interactive object.
[0132] It should be noted that, since traffic flow at intersections in reality is also controlled by traffic lights, in the model, when the traffic light color is different (red / green / yellow), the target object can be controlled to make corresponding decisions based on the different traffic light colors within a preset range (e.g., 30m) upstream of the traffic light (the traffic light could be located at the end of the approach road segment). For example:
[0133] When the traffic light is green, if there is no car following the target object, the target object can proceed normally (equivalent to the decision that the target object goes first). If there is a car following the target object, the target object follows the car in front of it.
[0134] When the traffic light is red, if there is a car following the target object, the target object will follow the car in front of it. If the target object is the first object at the very bottom (i.e. the object closest to the traffic light in the current lane), a virtual stationary object can be placed in front of the stop line. The tail of the stationary object should be level with the stop line, and the target object should follow the stationary object. In this way, the target object can slow down and stop in front of the stop line. After the traffic light turns green, the stationary object can be removed.
[0135] When the traffic light is yellow, if the target object has a following object, it will follow the object in front. If the target object is the first object downstream, it needs to be determined whether the target object can pass through the traffic light at its current speed (e.g., compare the time it takes for the target object to reach the exit lane with the time it takes for the traffic light to change from yellow to red; if the former is greater, it is determined that the target object cannot pass through the traffic light). If the target object can pass, it can proceed normally (equivalent to the decision that the target object goes first). If the target object cannot pass, a virtual stationary object can be placed behind the traffic light, with the tail of the stationary object level with the traffic light. The target object can then follow the stationary object. Since the target object is far from the stationary object at this time, it can gradually decelerate without sudden deceleration. When the traffic light turns red, refer to the above rules.
[0136] Step S205: Determine the new motion trajectory of the target object based on the decision result and motion trajectory of the target object.
[0137] After determining the decision outcome of the target object, the acceleration, velocity, and turning angle of the target object can be determined first through the decision outcome and the motion trajectory of the target object, and then the new motion trajectory of the target object can be determined.
[0138] In one possible scenario, where the target object is a motor vehicle or a non-motor vehicle, the acceleration of the target object can be determined in the following way:
[0139] When the decision of the target object is that the target object passes first and there are no following objects in front of the target object, one way to determine the acceleration of the target object can refer to formula (14):
[0140]
[0141] in, It can represent the acceleration of the target object, v0 can represent the desired velocity of the target object, v can represent the current velocity of the target object, and μ can represent a preset coefficient (e.g., 3).
[0142] When the decision of the target object is that the target object should proceed first and there is a following object in front of the target object, the intelligent driver model (IDM) can be used to determine the acceleration of the target object. The method of using IDM to determine the acceleration of the target object can be found in formulas (15)-(16):
[0143]
[0144]
[0145] Where v represents the current velocity of the target object, Δv represents the velocity difference between the target object and the object following in front of it, and s represents the distance from the target object to the object following in front of it. * (v,Δv) can represent the expected distance from the target object to the following object in front of the target object, T can represent the reaction time of the target object, a can represent the starting acceleration of the target object, b can represent the comfortable deceleration of the target object, δ can represent the preset acceleration index, s0 can represent the stationary safe distance from the target object to the following object in front of the target object, and s1 can represent the preset safe distance parameter.
[0146] If the target object's decision result is that the target object yields to the interactive object, the acceleration of the target object can also be determined using IDM. At this time, a virtual stationary object can be set at the intersection of the target object and the interactive object's trajectory (so that the object's speed is 0, i.e., the value of Δv is the current speed value of the target object). The stationary object is used as the following object in front of the target object, so that the acceleration of the target object can be determined according to the above formulas (15)-(16).
[0147] When the decision result of the target object is that the target object follows the interactive object, the acceleration of the target object can also be determined by IDM. However, in formulas (15) and (16), Δv can represent the difference in velocity between the target object and the interactive object, and s can represent the distance from the target object to the interactive object. * s0 can represent the expected distance from the target object to the interactive object, and s0 can represent the stationary safe distance from the target object to the interactive object, thus allowing the acceleration of the target object to be determined.
[0148] In formulas (15)-(16), the values of parameters v0, T, a, b, δ, s0, and s1 can be preset, as shown in Table 2. Table 2 shows examples of the values of the parameters in formulas (15)-(16) according to an embodiment of this application:
[0149] Table 2
[0150] parameter <![CDATA[v0(m / s)]]> T(s) <![CDATA[a(m / s 2 )]]> <![CDATA[b(m / s 2 )]]> δ <![CDATA[s0(m)]]> <![CDATA[s1(m)]]> motor vehicles 21.72 1.20 2.22 2.42 4 1 2 electric bicycle 16.78 1.20 2.04 2.14 4 1 2 Human-powered bicycle 9.07 1.20 1.01 0.57 4 0.5 1
[0151] As shown in Table 2, for the target objects being motor vehicles, electric bicycles, and human-powered bicycles, the values of v0 (in m / s) can be 21.72, 16.78, and 9.07, respectively, and the value of T (in s) can be 1.20, a (in m / s) 2 The values of ) can be 2.22, 2.04, and 1.01, respectively, and b (unit: m / s) 2 The values of ) can be 2.42, 2.14 and 0.57, respectively; the value of δ can be 4; the values of s0 (in m) can be 1, 1 and 0.5, respectively; and the values of s1 (in m) can be 2, 2 and 1, respectively.
[0152] By using the above method to determine the acceleration of the target object, the speed change process of motor vehicles and non-motor vehicles can be more accurately fitted and determined.
[0153] In one possible implementation, when the target object is a pedestrian, the acceleration of the target object can also be determined by using IDM as described above. Since the pedestrian generally follows the pedestrian in front when the target object is a pedestrian, the acceleration of the pedestrian can also be determined by the transmodeler. The method of determining the acceleration of the pedestrian by the transmodeler can be found in formula (17):
[0154]
[0155] Where a(t+Δt) represents the acceleration of the target object, t represents the current simulation time, Δt represents the time difference between the current time and the next simulation time, i and i-1 can represent the target object (pedestrian) and the following object in front of the target object (pedestrians following in front of the target object), respectively, D i,i-1 It can represent the distance (in meters) between a pedestrian and another pedestrian in front of them. i and v i-1 The speeds of the pedestrian and the pedestrian ahead (in m / s) can be represented respectively. α, β, γ and ε can represent preset parameters. For example, the value of α is 2, and the values of β and γ are usually 1.
[0156] By using the transmodeler described above to determine the acceleration of a pedestrian as the target object, we can more accurately fit the speed change process of a pedestrian.
[0157] After determining the acceleration of the target object, the velocity of the target object at the next simulation moment can be determined based on the calculated acceleration and the velocity of the target object at the current simulation moment, for example, using the following formula (17):
[0158] v1=v+a*Δt Formula (17)
[0159] Where v1 can represent the velocity of the target object at the next simulation moment, v can represent the velocity of the target object at the current simulation moment, a can represent the acceleration of the target object, and Δt can represent the time interval, such as a simulation step.
[0160] The method for determining the steering angle of the target object can be found in formula (18):
[0161]
[0162] Where δ(t) can represent the turning angle of the target object at the current moment. Figure 8 A schematic diagram showing a steering angle calculation method according to an embodiment of this application is shown below. Figure 8 The calculation method for the steering angle in formula (18) will be explained. For example... Figure 8 As shown, C G It can represent the target object, (g x ,g y ) can represent the next point in the set of motion trajectory points of the target object (e.g. Figure 8 As shown, the coordinates of the target point (which can be referred to as the target point) are given, and L can represent the length of the target object. d It can represent the distance from the target object to the target point, and α(t) can represent the direction of the target object's movement at the current moment and the angle between the line connecting the target object's current position to the target point. Figure 8 In this context, a circular arc can represent the trajectory of a target object moving from the current point to the target point, and R can represent the radius of the circle followed by the rear axis of the target object under α(t). Thus, the target object can move from the current point to the target point based on a determined velocity and acceleration, thus obtaining a new trajectory.
[0163] Therefore, the turning angle required for the target object to complete its two-dimensional motion at the current moment can be calculated. Combined with the acceleration and velocity of the target object calculated above, the trajectory of the target object from the current point to the next point in the point set of the motion trajectory can be determined, thereby determining the new motion trajectory of the target object.
[0164] Step S206: Update the position of the target object.
[0165] By using the new motion trajectory of the target object determined in step S205, the position of the target object at the next simulation moment can be updated, thereby enabling the simulation of the target object in a two-dimensional plane.
[0166] Step S207: Determine whether the target object has reached the destination position. If it is determined that the target object has reached the destination position, end the simulation of the target object in the traffic simulation model. Otherwise, the new motion trajectory of the target object determined in step S205 can be used as the motion trajectory of the target object, enter the next simulation moment, and return to step S201.
[0167] Therefore, the shortcomings of current simulations based on one-dimensional lanes can be overcome, and traffic simulation models can be used to simulate traffic flow conditions at intersections in a two-dimensional plane with high realism and high reliability.
[0168] Each object in the model can be used as the target object, and the above steps S201 to S207 can be executed to obtain the final traffic simulation model.
[0169] Figure 9 This diagram illustrates object interactions within a traffic simulation model according to an embodiment of this application. Figure 9 As shown, T can represent the current simulation time. Figure 9 (a) illustrates an interaction behavior between a motor vehicle and a non-motor vehicle in a traffic simulation model according to an embodiment of this application. The motor vehicle can be the target object, and the non-motor vehicle can be the current interaction object of the target object. When T=0, the motor vehicle determines that the current interaction object is a non-motor vehicle (i.e., the motor vehicle and the non-motor vehicle are in conflict) and determines the decision result to give way to the non-motor vehicle. As shown in the figure, when T=10, the motor vehicle gives way to the non-motor vehicle.
[0170] Figure 9 (b) illustrates another interaction behavior between motor vehicles and non-motor vehicles in a traffic simulation model according to an embodiment of this application, wherein the motor vehicle can be the target object and the non-motor vehicle can be the current interaction object of the target object. When T=0, the motor vehicle determines that the current interaction object is the non-motor vehicle (i.e., the motor vehicle and the non-motor vehicle are in conflict) and determines the decision result as passing first, as shown in the figure. When T=10, the motor vehicle passes first and the non-motor vehicle yields to the motor vehicle.
[0171] Figure 9(c) illustrates an interaction between a motor vehicle and a pedestrian in a traffic simulation model according to an embodiment of this application. The motor vehicle can be the target object, and the pedestrian can be the current interaction object of the target object. When T=0, the motor vehicle determines that the current interaction object is the pedestrian (i.e., the motor vehicle and the pedestrian are in conflict), and determines the decision result as the motor vehicle yields to the pedestrian according to the above rules. As shown in the figure, when T=10, the pedestrian passes first, and the motor vehicle yields to the pedestrian.
[0172] In one possible implementation, the aforementioned trajectory can be determined based on a road network map in an intersection scenario. The traffic simulation model constructed in one embodiment of this application can match the data format of the OpenDrive road network map. Therefore, in an intersection scenario, information such as actual traffic flow can also be imported into the model to obtain more valuable data in subsequent virtual testing of intelligent vehicles and meet actual needs.
[0173] Figure 10 This diagram illustrates a road network map in the OpenDrive data format according to an embodiment of this application. The road network map in the OpenDrive data format can be constructed using lane connectors (such as...). Figure 10 (The straight line in the dashed circle) and lane links (such as...) Figure 10 The system consists of straight lines outside the dashed circle. A link can represent a lane, and a connector can represent a lane connecting two links upstream and downstream. For example... Figure 10 As shown, since the target object's entrance lane at the intersection can lead to different exit lanes from the left, right, and center directions, the connector within the dashed circle in the middle can correspond to the lanes within the intersection that are connected to the exit lanes in each direction by each entrance lane.
[0174] Figure 11 A flowchart illustrating a method for constructing a traffic simulation model according to an embodiment of this application is shown. This method can be used in a processor, such as... Figure 11 As shown, the method includes:
[0175] Step S1101: Based on the first motion trajectory of at least one object in the model, determine at least one interactive object of the target object within a predetermined range. The object includes one or more of vehicles, pedestrians and non-motorized vehicles. The at least one interactive object includes an object that intersects with the first motion trajectory of the target object within the predetermined range and is not in a car-following relationship.
[0176] Step S1102: Based on the target object and the at least one interactive object, determine the decision result of the target object, the decision result being used to instruct the target object's behavior toward the interactive object;
[0177] Step S1103: Based on the decision result and the first motion trajectory, determine the second motion trajectory of the target object in the traffic simulation model.
[0178] According to the embodiments of this application, by determining at least one interactive object whose first motion trajectory intersects with the first motion trajectory within a predetermined range and is not in a car-following relationship, based on the first motion trajectory of at least one object in the model, the number of traversals when determining the interactive object can be reduced, the consumption of computer computing power can be reduced, and the speedup ratio of virtual testing can be improved. At the same time, based on the decision result used to instruct the target object to act on the interactive object and the first motion trajectory, the second motion trajectory of the target object can be determined, which can realize the simulation of the interactive behavior between vehicles, non-motorized vehicles and pedestrians in traffic flow scenarios. It can realize the simulation of dynamic interactive behavior between objects on a two-dimensional plane, making the simulation scenario more realistic and credible, thereby further improving the testing efficiency and credibility of subsequent virtual testing of intelligent vehicles.
[0179] This application does not restrict the specific type of object; other types besides vehicles, pedestrians, and non-motorized vehicles are also allowed. For the method of determining the object, please refer to [link / reference needed]. Figure 2 Step S201. The target object can be any object in the model, and the first motion trajectory can be... Figure 2 The motion trajectory determined in step S202, the second motion trajectory can be Figure 2 The new motion trajectory determined in step S205 can be within the preset range of the aforementioned search range.
[0180] Examples of steps S1101-S1103 can be found above. Figure 2 Steps S202-S205.
[0181] Figure 12 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown. Figure 12 As shown, based on the decision result and the first motion trajectory, the second motion trajectory of the target object in the traffic simulation model is determined, including:
[0182] Step S1201: Based on the decision result and the first motion trajectory, determine the speed, steering angle and acceleration of the target object;
[0183] Step S1202: Determine the second motion trajectory of the target object in the traffic simulation model based on the target object's speed, steering angle, and acceleration.
[0184] According to the embodiments of this application, by determining the speed, steering angle and acceleration of the target object, and based on the speed, steering angle and acceleration of the target object, the second motion trajectory of the target object in the traffic simulation model can be determined, which can realize the dynamic determination of the motion trajectory and make the simulation scene more realistic and credible.
[0185] One way to determine the acceleration of the target object is to refer to the relevant descriptions in formulas (14)-(17), and one way to determine the steering angle is to refer to the relevant descriptions in formula (18). It should be noted that the method of determining the acceleration can be other than formulas (14)-(17), and the method of determining the steering angle can also be other than formula (18). This application does not limit this.
[0186] Examples of steps S1201-S1202 can be found above. Figure 2 The relevant description in step S205.
[0187] Figure 13 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown. Figure 13 As shown, the method also includes:
[0188] Step S1301: Using the second motion trajectory as the new first motion trajectory of the target object, execute the first motion trajectory of each object in the model to determine the interactive objects of the target object within a predetermined range and the subsequent steps, until the preset iteration conditions are met.
[0189] Step S1302: Construct the traffic simulation model based on the first motion trajectory of each object in at least one of the objects when the preset iteration conditions are met.
[0190] According to the embodiments of this application, a traffic simulation model is constructed through iteration, which can dynamically realize traffic flow scenarios, making the simulation of the model more realistic and credible.
[0191] The preset iteration conditions can be, for example, the target object reaching the endpoint position.
[0192] Examples of steps S1301-S1302 can be found above. Figure 2 Step S207.
[0193] Figure 14 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown. Figure 14 As shown, determining the decision result of the target object based on the target object and the at least one interacting object includes:
[0194] Step S1401: Based on the first time of each intersection point between the target object and each interaction object, determine the interaction object with the smallest first time as the current interaction object of the target object;
[0195] Step S1402: Determine the second time from the current interactive object to the corresponding intersection point;
[0196] Step S1403: Determine the decision result of the target object based on the first time and the second time corresponding to the current interaction object.
[0197] According to the embodiments of this application, by determining the interaction object with the smallest first time from the target object to the intersection point corresponding to each interaction object as the current interaction object of the target object, the current interaction object of the target object can be determined more accurately, so that the decision result of the target object can be more targeted. By determining the second time from the current interaction object to the corresponding intersection point, and determining the decision result of the target object based on the first time and the second time corresponding to the current interaction object, the decision result of the target object can be determined more accurately, so that the model is more realistic and credible, and the credibility of the test results of subsequent virtual tests is improved.
[0198] Among them, the first time can be the collision time (TTC) from the target object above to the intersection point corresponding to each interactive object, and the second time can be the collision time (TTC) from the current interactive object above to the intersection point.
[0199] Examples of steps S1401-S1403 can be found above. Figure 2 The relevant description in step S204.
[0200] In one possible implementation, the decision result includes at least one of: the target object yielding to the interaction object, the target object passing first, and the target object following the interaction object.
[0201] According to the embodiments of this application, by making different decisions for the target object in different scenarios, the model can reproduce the various interactive behaviors of traffic individuals in real traffic flow scenarios, thereby making the model more realistic and credible and improving the credibility of subsequent virtual test results.
[0202] In one possible implementation, determining the decision result of the target object based on the target object and the at least one interaction object includes: when the target object is a vehicle and the interaction object is a pedestrian, determining the decision result of the target object as the target object yielding to the interaction object.
[0203] According to the embodiments of this application, by determining the decision result of the target object as the target object yielding to the pedestrian when the target object is a vehicle and the interaction object is a pedestrian, it is possible to simulate the scenario of yielding to pedestrians in actual traffic flow, making the model more realistic and credible, and improving the credibility of the test results of subsequent virtual tests.
[0204] In one possible implementation, determining the decision result of the target object based on the first time and the second time corresponding to the current interaction object includes: if the first time is less than the second time, determining that the decision result of the target object is that the target object passes first; otherwise, determining that the decision result of the target object is that the target object yields to the interaction object.
[0205] According to the embodiments of this application, by determining that the target object's decision result is to pass first when the first time is less than the second time, and otherwise determining that the target object's decision result is to yield to the interactive object, it is possible to accurately determine whether to yield during object interaction based on the actual situation, making the model more realistic and credible, and improving the credibility of subsequent virtual test results.
[0206] Examples of the above process can be found in the text above. Figure 2 The relevant description in step S204.
[0207] Figure 15 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown. Figure 15 As shown, determining the decision result of the target object based on the target object and the at least one interacting object includes:
[0208] Step S1501: When the decision result is that the target object yields to the interaction object, determine whether the target object can safely pass in the case of a preemptive pass.
[0209] Step S1502: When the target object can safely pass through in the event of a rush, the decision result of the target object is determined to be that the target object passes first.
[0210] According to the embodiments of this application, when the decision result is that the target object yields to the interaction object, it is determined whether the target object can safely pass under the condition of rushing. When the target object can safely pass under the condition of rushing, the decision result of the target object is determined to be that the target object passes first. This can realize the construction of relevant dangerous scenarios in the simulation process, making the model more realistic and credible. At the same time, it can provide more interference scenarios for subsequent virtual testing, so that more valuable test data and more credible test results can be obtained, thus meeting relevant testing requirements.
[0211] Examples of steps S1501-S1502 can be found in the corresponding text above. Figure 2 The relevant descriptions of interference rules in the text.
[0212] Figure 16 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown. Figure 16 As shown, when the decision result is that the target object yields to the interactive object, determining whether the target object can safely pass in the event of a preemptive pass includes:
[0213] Step S1601: Based on the distance from the target object to the end of the first motion trajectory, the speed of the target object, and the minimum acceleration of the interactive object when yielding to the target object, determine the passage utility value of the target object when it tries to pass. The larger the passage utility value, the greater the contribution of the target object to the passage efficiency when it tries to pass.
[0214] Step S1602: Based on the width required for the target object to pass first and the distance from the target object to the interaction object, determine the safety utility value of the target object when it tries to pass. The larger the safety utility value, the less safe the target object is when it tries to pass.
[0215] Step S1603: If the passage utility value is greater than the safety utility value, determine that the target simulation object can safely pass through in the event of a forced passage.
[0216] According to the embodiments of this application, by determining the passage utility value and safety utility value of the target object during the rush, the relevant dangerous scenarios can be constructed more accurately during the simulation process. By determining that the target simulation object can safely pass through when the passage utility value is greater than the safety utility value, the constructed dangerous scenarios are more realistic and credible, thereby enabling the acquisition of more valuable test data and more reliable test results to meet relevant testing requirements.
[0217] One method for determining the passage utility value can be found in formulas (11)-(12) and related descriptions above. Another method for determining the safety utility value can be found in formula (13) and related descriptions above. It should be noted that the method for determining the passage utility value can be other than formulas (11)-(12), and the method for determining the safety utility value can also be other than formula (13). This application does not impose any restrictions on this.
[0218] In one possible implementation, the first trajectory is determined based on a road network map in an intersection scenario.
[0219] According to the embodiments of this application, the model can be applied to traffic flow simulation in intersection scenarios, so that subsequent virtual testing can be more targeted.
[0220] The road network map can be in OpenDrive data format; an example of the above process can be found in the text above. Figure 10 The relevant descriptions in the text.
[0221] Figure 17 A flowchart illustrating a traffic simulation model construction method according to an embodiment of this application is shown. Figure 17 As shown, the device 1700 includes:
[0222] The first determining module 1701 is used to determine, based on the first motion trajectory of at least one object in the model, at least one interactive object of the target object within a predetermined range. The object includes one or more of vehicles, pedestrians and non-motorized vehicles. The at least one interactive object includes an object that intersects with the first motion trajectory of the target object within the predetermined range and is not in a car-following relationship.
[0223] The second determining module 1702 is used to determine the decision result of the target object based on the target object and the at least one interactive object, wherein the decision result is used to instruct the target object to act in relation to the interactive object;
[0224] The third determining module 1703 is used to determine the second motion trajectory of the target object in the traffic simulation model based on the decision result and the first motion trajectory.
[0225] According to the embodiments of this application, by determining at least one interactive object whose first motion trajectory intersects with the first motion trajectory within a predetermined range and is not in a car-following relationship, based on the first motion trajectory of at least one object in the model, the number of traversals when determining the interactive object can be reduced, the consumption of computer computing power can be reduced, and the speedup ratio of virtual testing can be improved. At the same time, based on the decision result used to instruct the target object to act on the interactive object and the first motion trajectory, the second motion trajectory of the target object can be determined, which can realize the simulation of the interactive behavior between vehicles, non-motorized vehicles and pedestrians in traffic flow scenarios. It can realize the simulation of dynamic interactive behavior between objects on a two-dimensional plane, making the simulation scenario more realistic and credible, thereby further improving the testing efficiency and credibility of subsequent virtual testing of intelligent vehicles.
[0226] In one possible implementation, determining the second motion trajectory of the target object in the traffic simulation model based on the decision result and the first motion trajectory includes: determining the speed, steering angle, and acceleration of the target object based on the decision result and the first motion trajectory; and determining the second motion trajectory of the target object in the traffic simulation model based on the speed, steering angle, and acceleration of the target object.
[0227] According to the embodiments of this application, by determining the speed, steering angle and acceleration of the target object, and based on the speed, steering angle and acceleration of the target object, the second motion trajectory of the target object in the traffic simulation model can be determined, which can realize the dynamic determination of the motion trajectory and make the simulation scene more realistic and credible.
[0228] In one possible implementation, the device further includes: a fourth determining module, configured to use the second motion trajectory as the new first motion trajectory of the target object, execute steps to determine the interactive objects of the target object within a predetermined range and subsequent steps based on the first motion trajectories of each object in the model, until a preset iteration condition is reached; and a construction module, configured to construct the traffic simulation model based on the first motion trajectories of each object in at least one of the objects when the preset iteration condition is reached.
[0229] According to the embodiments of this application, a traffic simulation model is constructed through iteration, which can dynamically realize traffic flow scenarios, making the simulation of the model more realistic and credible.
[0230] In one possible implementation, determining the decision result of the target object based on the target object and the at least one interaction object includes: determining the interaction object with the smallest first time from the target object to the intersection point corresponding to each interaction object as the current interaction object of the target object; determining the second time from the current interaction object to the corresponding intersection point; and determining the decision result of the target object based on the first time and the second time corresponding to the current interaction object.
[0231] According to the embodiments of this application, by determining the interaction object with the smallest first time from the target object to the intersection point corresponding to each interaction object as the current interaction object of the target object, the current interaction object of the target object can be determined more accurately, so that the decision result of the target object can be more targeted. By determining the second time from the current interaction object to the corresponding intersection point, and determining the decision result of the target object based on the first time and the second time corresponding to the current interaction object, the decision result of the target object can be determined more accurately, so that the model is more realistic and credible, and the credibility of the test results of subsequent virtual tests is improved.
[0232] In one possible implementation, the decision result includes at least one of: the target object yielding to the interaction object, the target object passing first, and the target object following the interaction object.
[0233] According to the embodiments of this application, by making different decisions for the target object in different scenarios, the model can reproduce the various interactive behaviors of traffic individuals in real traffic flow scenarios, thereby making the model more realistic and credible and improving the credibility of subsequent virtual test results.
[0234] In one possible implementation, determining the decision result of the target object based on the target object and the at least one interaction object includes: when the target object is a vehicle and the interaction object is a pedestrian, determining the decision result of the target object as the target object yielding to the interaction object.
[0235] According to the embodiments of this application, by determining the decision result of the target object as the target object yielding to the pedestrian when the target object is a vehicle and the interaction object is a pedestrian, it is possible to simulate the scenario of yielding to pedestrians in actual traffic flow, making the model more realistic and credible, and improving the credibility of the test results of subsequent virtual tests.
[0236] In one possible implementation, determining the decision result of the target object based on the first time and the second time corresponding to the current interaction object includes: if the first time is less than the second time, determining that the decision result of the target object is that the target object passes first; otherwise, determining that the decision result of the target object is that the target object yields to the interaction object.
[0237] According to the embodiments of this application, by determining that the target object's decision result is to pass first when the first time is less than the second time, and otherwise determining that the target object's decision result is to yield to the interactive object, it is possible to accurately determine whether to yield during object interaction based on the actual situation, making the model more realistic and credible, and improving the credibility of subsequent virtual test results.
[0238] In one possible implementation, determining the decision result of the target object based on the target object and the at least one interaction object includes: when the decision result is that the target object yields to the interaction object, determining whether the target object can safely pass in the event of a right-of-way; and when the target object can safely pass in the event of a right-of-way, determining that the decision result of the target object is that the target object passes first.
[0239] According to the embodiments of this application, when the decision result is that the target object yields to the interaction object, it is determined whether the target object can safely pass under the condition of rushing. When the target object can safely pass under the condition of rushing, the decision result of the target object is determined to be that the target object passes first. This can realize the construction of relevant dangerous scenarios in the simulation process, making the model more realistic and credible. At the same time, it can provide more interference scenarios for subsequent virtual testing, so that more valuable test data and more credible test results can be obtained, thus meeting relevant testing requirements.
[0240] In one possible implementation, when the decision result is that the target object yields to the interactive object, determining whether the target object can safely pass under the condition of rushing includes: determining the passage utility value of the target object when rushing based on the distance from the target object to the end of the first motion trajectory, the speed of the target object, and the minimum acceleration of the minimum acceleration of the interactive object when yielding to the target object, wherein the larger the passage utility value, the greater the contribution of the target object to the passage efficiency when rushing; determining the safety utility value of the target object when rushing based on the width required for the target object to pass first and the distance from the target object to the interactive object, wherein the larger the safety utility value, the less safe the target object is when rushing; and determining that the target simulation object can safely pass under the condition of rushing if the passage utility value is greater than the safety utility value.
[0241] According to the embodiments of this application, by determining the passage utility value and safety utility value of the target object during the rush, the relevant dangerous scenarios can be constructed more accurately during the simulation process. By determining that the target simulation object can safely pass through when the passage utility value is greater than the safety utility value, the constructed dangerous scenarios are more realistic and credible, thereby enabling the acquisition of more valuable test data and more reliable test results to meet relevant testing requirements.
[0242] In one possible implementation, the first trajectory is determined based on a road network map in an intersection scenario.
[0243] According to the embodiments of this application, the model can be applied to traffic flow simulation in intersection scenarios, so that subsequent virtual testing can be more targeted.
[0244] Figure 18 A structural diagram of a traffic simulation model building apparatus according to an embodiment of this application is shown. This traffic simulation model building apparatus can be used to perform the above-described... Figures 2-16The traffic simulation model construction method is shown in any one of the embodiments. For example, the traffic simulation model construction device can be a server, or a chip (system) or other component or part that can be installed inside the server. As another example, the traffic simulation model construction device can also be the aforementioned traffic simulation model construction device 1700. This application does not limit the scope of the embodiments.
[0245] like Figure 18 As shown, the traffic simulation model building device 1800 may include a processor 1801 and a transceiver 1802. Optionally, the traffic simulation model building device 1800 may include a memory 1803. The processor 1801 is coupled to the transceiver 1802 and the memory 1803, for example, they can be connected via a communication bus.
[0246] The following is combined with Figure 18 The various components of the traffic simulation model building device 1800 are described in detail.
[0247] The aforementioned processor 1801 is the control center of the traffic simulation model building device 1800. It can be a single processor or a collective term for multiple processing elements. For example, processor 1801 can be one or more central processing units (CPUs), application-specific integrated circuits (ASICs), or one or more integrated circuits configured to implement the embodiments of this application, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).
[0248] Alternatively, the processor 1801 can perform various functions of the traffic simulation model building device 1800 by running or executing software programs stored in the memory 1803 and calling data stored in the memory 1803.
[0249] In a specific implementation, as one example, the processor 1801 may include one or more CPUs, for example... Figure 18 CPU0 and CPU1 are shown in the diagram.
[0250] In one possible implementation, the traffic simulation model building device 1800 may also include multiple processors, for example... Figure 18The processors 1801 and 1804 are shown. Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). Here, "processor" can refer to one or more communication devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).
[0251] The transceiver 1802 described above is used for communication with other servers.
[0252] Alternatively, transceiver 1802 may include a receiver and a transmitter. Figure 18 (Not shown separately). The receiver is used to implement the receiving function, and the transmitter is used to implement the sending function.
[0253] Alternatively, the transceiver 1802 can be integrated with the processor 1801 or exist independently, and can be connected to the input / output ports of the traffic simulation model building device 1800. Figure 18 (Not shown in the image) is coupled to the processor 1801, but this embodiment of the application does not limit this.
[0254] The aforementioned memory 1803 can be used to store software programs that execute the scheme of this application, and the processor 1801 controls the execution. For specific implementation methods, please refer to the above method embodiments, which will not be repeated here.
[0255] The memory 1803 can be a read-only memory (ROM) or other type of static storage communication device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage communication device capable of storing information and instructions, or it can be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage communication device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. It should be noted that the memory 1803 can be integrated with the processor 1801 or exist independently, and can be connected via the input / output ports of the traffic simulation model building device 1800. Figure 18 (Not shown in the image) is coupled to the processor 1801, but this embodiment of the application does not limit this.
[0256] It should be noted that, Figure 18 The structure of the traffic simulation model building device 1800 shown does not constitute a limitation on the implementation of the traffic simulation model building device. The actual traffic simulation model building device may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0257] An embodiment of this application provides a traffic simulation model construction apparatus, including: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above-described method when executing the instructions.
[0258] An embodiment of this application provides a terminal device that can perform the above-described method.
[0259] Embodiments of this application provide a non-volatile computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, implement the above-described method.
[0260] Embodiments of this application provide a computer program product including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device performs the above-described method.
[0261] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), electrically programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), compact disc read-only memory (CD-ROM), digital video disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing.
[0262] The computer-readable program instructions or code described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0263] The computer program instructions used to perform the operations of this application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" or similar languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits, such as programmable logic circuits, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), are personalized by utilizing state information from computer-readable program instructions. These electronic circuits can execute computer-readable program instructions to implement various aspects of this application.
[0264] Various aspects of this application are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0265] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0266] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0267] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved.
[0268] It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, can be implemented using hardware (such as circuits or ASICs (Application Specific Integrated Circuits)) that performs the corresponding function or action, or using a combination of hardware and software, such as firmware.
[0269] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings, disclosure, and appended claims in carrying out the claimed invention. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0270] The various embodiments of this application have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A method for constructing a traffic simulation model, characterized in that, The method includes: Based on the first motion trajectory of at least one object in the model, determine at least one interactive object of the target object within a predetermined range. The object includes one or more of vehicles, pedestrians and non-motorized vehicles. The at least one interactive object includes an object that intersects with the first motion trajectory of the target object within the predetermined range and is not in a car-following relationship. Based on the first time of each intersection point between the target object and each of the at least one interactive object, the interactive object with the smallest first time is determined as the current interactive object of the target object. Determine the second time from the current interaction object to the corresponding intersection point, and determine the decision result of the target object based on the first time and the second time corresponding to the current interaction object. The decision result is used to instruct the target object to act towards the interaction object. Based on the decision result and the first motion trajectory, determine the second motion trajectory of the target object in the traffic simulation model; When the decision result is that the target object yields to the interactive object, determining whether the target object can safely pass under the circumvention condition includes: determining the passage utility value of the target object under the circumvention condition based on the distance from the target object to the end of the first movement trajectory, the speed of the target object, and the minimum acceleration of the interactive object when yielding to the target object; the larger the passage utility value, the greater the contribution of the target object to the passage efficiency under the circumvention condition; determining the safety utility value of the target object under the circumvention condition based on the width required for the target object to pass first and the distance from the target object to the interactive object; the larger the safety utility value, the safer the target object is under the circumvention condition; if the passage utility value is greater than the safety utility value, determining that the target object can safely pass under the circumvention condition; if the passage utility value is less than the safety utility value, determining that the target object cannot safely pass under the circumvention condition, and then maintaining the decision result of the target object yielding to the interactive object.
2. The method according to claim 1, characterized in that, Based on the decision result and the first motion trajectory, the second motion trajectory of the target object in the traffic simulation model is determined, including: Based on the decision result and the first motion trajectory, the velocity, steering angle, and acceleration of the target object are determined; Based on the target object's velocity, steering angle, and acceleration, determine the target object's second motion trajectory in the traffic simulation model.
3. The method according to claim 1 or 2, characterized in that, The method further includes: Using the second motion trajectory as the new first motion trajectory of the target object, the interaction objects of the target object within a predetermined range and subsequent steps are determined based on the first motion trajectories of each object in the model, until the preset iteration conditions are met. The traffic simulation model is constructed based on the first motion trajectory of each of the at least one object when the preset iteration conditions are met.
4. The method according to claim 1 or 2, characterized in that, The decision result includes at least one of the following: the target object yielding to the interaction object, the target object passing first, and the target object following the interaction object.
5. The method according to claim 4, characterized in that, Determining the decision result of the target object based on the target object and the at least one interacting object includes: When the target object is a vehicle and the interaction object is a pedestrian, the decision result for determining the target object is that the target object yields to the interaction object.
6. The method according to claim 5, characterized in that, Based on the first time and the second time corresponding to the current interaction object, the decision result of the target object is determined, including: If the first time is less than the second time, the decision result of the target object is determined to be that the target object passes first; otherwise, the decision result of the target object is determined to be that the target object yields to the interaction object.
7. The method according to any one of claims 1, 2, 5, and 6, characterized in that, The first trajectory is determined based on the road network map in the intersection scenario.
8. A traffic simulation model construction device, characterized in that, The device includes: The first determining module is used to determine at least one interactive object of the target object within a predetermined range based on the first motion trajectory of at least one object in the model. The object includes one or more of vehicles, pedestrians and non-motorized vehicles. The at least one interactive object includes an object that intersects with the first motion trajectory of the target object within the predetermined range and is not in a car-following relationship. The second determining module is configured to determine, based on the first time of each intersection point corresponding to each of the at least one interactive object, the interactive object with the smallest first time is the current interactive object of the target object, determine the second time of the current interactive object to the corresponding intersection point, and determine the decision result of the target object based on the first time and the second time corresponding to the current interactive object, wherein the decision result is used to instruct the target object to act towards the interactive object; The third determining module is used to determine the second motion trajectory of the target object in the traffic simulation model based on the decision result and the first motion trajectory; Specifically, when the decision result is that the target object yields to the interactive object, determining whether the target object can safely pass under the circumvention condition includes: determining the passage utility value of the target object under the circumvention condition based on the distance from the target object to the end of the first movement trajectory, the speed of the target object, and the minimum acceleration of the interactive object when yielding to the target object; the larger the passage utility value, the greater the contribution of the target object to the passage efficiency under the circumvention condition; determining the safety utility value of the target object under the circumvention condition based on the width required for the target object to pass first and the distance from the target object to the interactive object; the larger the safety utility value, the safer the target object is under the circumvention condition; if the passage utility value is greater than the safety utility value, it is determined that the target object can safely pass under the circumvention condition; if the passage utility value is less than the safety utility value, it is determined that the target object cannot safely pass under the circumvention condition, and the decision result of the target object yielding to the interactive object is maintained.
9. A traffic simulation model construction device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the method of any one of claims 1-7 when executing the instructions.
10. A non-volatile computer-readable storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1-7.
11. A computer program product comprising computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is executed in an electronic device, a processor in the electronic device performs the method of any one of claims 1-7.
