Intersection passage simulation method, intersection passage simulation device and equipment
By constructing an intersection traffic model and determining vehicle right-of-way priority, the problem of not considering driver personality characteristics in the existing technology is solved, and more realistic and rich intersection traffic simulation results are achieved.
Patent Information
- Application Number
- CN202410992999.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-29
AI Technical Summary
Existing intersection traffic simulation methods fail to effectively consider the personality characteristics of different drivers, resulting in distortion of simulation results.
By obtaining the road information of the target intersection, we build an intersection traffic model, generate traffic conflict information between lanes, and determine the vehicle's right-of-way priority based on the location, driving speed, driving style and traffic conflict information of the simulated vehicle and the preset vehicle. , thereby driving cooperatively through the intersection area.
It improves the authenticity of simulation results, can simulate the intersection behavior of different drivers and driverless vehicles, and provides richer and more accurate simulation results.
Smart Images

Figure CN118865685A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicle control technology, and in particular relates to a method for simulating traffic at an intersection, and a device and apparatus for simulating traffic at an intersection. Background Art
[0002] In the related art, the traffic efficiency of the intersection area can be analyzed by simulating vehicles passing through the intersection area. However, the intersection traffic simulation method in the related art only simulates the driving speed and driving path of the vehicle, and does not consider the individual characteristics of different drivers, resulting in distorted intersection traffic simulation results. Summary of the invention
[0003] The embodiments of the present application provide a method for simulating traffic at an intersection, a device for simulating traffic at an intersection, and equipment for simulating traffic at an intersection, which can solve the technical problem of distorted simulation results obtained by existing methods for simulating traffic at an intersection.
[0004] In a first aspect, an embodiment of the present application provides a method for simulating traffic at an intersection, the method comprising:
[0005] Obtaining road information of a target intersection, and constructing an intersection traffic model according to the road information, wherein the intersection traffic model includes simulating an intersection area of the target intersection, simulating multiple lanes passing through the intersection area, and preset vehicles traveling along the lanes;
[0006] Generate traffic conflict information between multiple lanes based on the intersection traffic model;
[0007] Constructing a simulated vehicle driving in the first lane among multiple lanes, and determining the right-of-way priority of the simulated vehicle and the preset vehicle according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and traffic conflict information;
[0008] According to the right-of-way priority and the positional relationship between the simulated vehicle and the preset vehicle, the simulated vehicle and the preset vehicle cooperate to travel through the intersection area.
[0009] In some embodiments, obtaining traffic conflict information between multiple lanes based on the intersection traffic model includes:
[0010] Calculate the driving line along the lane through the intersection area according to the entry and exit position of the lane relative to the intersection area;
[0011] The first intersection points between two of the plurality of driving lines are calculated, and the traffic conflict information is determined according to the first intersection points.
[0012] In some embodiments, the traffic conflict information includes at least one traffic conflict area; calculating first intersection points between a plurality of driving lines, and determining the traffic conflict information according to the first intersection points, comprises:
[0013] Calculate the first intersection points between the plurality of travel lines;
[0014] When the first intersection is located at an entry / exit position, the entry / exit position where the first intersection is located is set as a traffic conflict area;
[0015] When the first intersection point is located in the intersection area, a first radius is calculated based on the shape data of the simulated vehicle and the shape data of the preset vehicle;
[0016] According to the first intersection and the first radius, a traffic conflict area corresponding to each first intersection is set, the traffic conflict area is a circular area determined by taking the first intersection as the center and the first radius as the radius, two driving lines forming the first intersection intersect with the edge of the traffic conflict area to form multiple second intersections corresponding to the first intersections, and the minimum chord length between the second intersections corresponding to the first intersections is greater than or equal to the interval threshold.
[0017] In some embodiments, the traffic conflict information includes at least one traffic conflict area, and the driving style includes a preset driving style coefficient; constructing a simulated vehicle driving in a first lane among multiple lanes, and determining the right-of-way priority of the simulated vehicle and the preset vehicle according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and the traffic conflict information, including:
[0018] Construct a simulation vehicle driving in the first lane among multiple lanes;
[0019] According to the traffic conflict area, determining a conflict lane intersecting with the first lane from among the multiple lanes;
[0020] Calculating a first distance from a driving line of a simulated vehicle along a first lane to a traffic conflict area;
[0021] Determining a conflicting vehicle among the preset vehicles on the conflicting lane according to the position and speed of the preset vehicles;
[0022] Calculate a second distance from the conflicting vehicle to the traffic conflict area along the conflicting lane;
[0023] The right-of-way weights corresponding to the simulated vehicle and each conflicting vehicle are calculated according to the first distance, the second distance, and the following formula (1);
[0024]
[0025] Wherein, R is the right of way weight of either the simulated vehicle or the preset vehicle, s1 is the distance from the driving line of the vehicle along the lane to the traffic conflict area, ε is the preset driving style coefficient corresponding to the vehicle, v1 is the speed of the vehicle, s2 is the distance from the driving line of the simulated vehicle or the other of the preset vehicles along the lane to the traffic conflict area, v2 is the speed of the other of the simulated vehicle or the preset vehicle, and k1, k2 and k3 are preset weight coefficients;
[0026] According to the numerical value of the road right weight, the road right priority of the simulated vehicle and each conflicting vehicle is determined.
[0027] In some embodiments, according to the right-of-way priority and the positional relationship between the simulated vehicle and the preset vehicle, simulating the simulated vehicle and the preset vehicle to cooperatively drive through the intersection area includes:
[0028] In the case where the right of way priority of the simulation vehicle is the highest priority, a reference vehicle is determined from the preset vehicles on the conflict lane according to the number of preset vehicles on the conflict lane and the second distance from the preset vehicle along the conflict lane to the traffic conflict area, where the conflict lane is a lane intersecting with the first lane determined from multiple lanes according to the traffic conflict information;
[0029] According to a second distance traveled by the reference vehicle to the traffic conflict area, mapping the reference vehicle to the first lane to obtain a virtual vehicle;
[0030] The virtual vehicle closest to the simulation vehicle is set as a following vehicle;
[0031] When the third distance between the following vehicle and the simulation vehicle is greater than a preset threshold, the simulation vehicle follows the following vehicle through the intersection area.
[0032] In some embodiments, when the road right priority of the simulated vehicle is the highest priority, determining a preset vehicle matching a preset reference rule on each conflicting lane as a reference vehicle includes:
[0033] In the case where the right-of-way priority of the simulated vehicle is the highest priority, determining the number of preset vehicles traveling in the intersection area on each conflicting lane;
[0034] When the number of vehicles corresponding to the conflict lane is greater than 1, a second distance traveled by a preset vehicle in the intersection area on the conflict lane to the traffic conflict area is calculated;
[0035] A first preset vehicle traveling on the conflicting lane is set as a reference vehicle matching the conflicting lane, wherein the second distance of the first preset vehicle is greater than the second distance of other preset vehicles traveling on the conflicting lane and located in the intersection area;
[0036] When the number of vehicles corresponding to the conflicting lane is equal to 1, a preset vehicle traveling on the conflicting lane within the intersection area is set as a reference vehicle corresponding to the conflicting lane.
[0037] In some embodiments, a simulated vehicle is constructed to travel in a first lane among multiple lanes, and the right-of-way priority of the simulated vehicle and the preset vehicle is determined according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and traffic conflict information, including:
[0038] Determine the driving authority of the simulated vehicle and the preset vehicle according to the road information;
[0039] When the simulated vehicle has driving authority, the right of way priority of the simulated vehicle and the preset vehicle is determined based on the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle with driving authority to be released, and the traffic conflict information.
[0040] In some embodiments, the road information includes traffic light information; determining the driving authority of the simulated vehicle and the preset vehicle according to the road information includes:
[0041] In the case where the simulated vehicle enters the detection area corresponding to the intersection area, determining the driving authority of the simulated vehicle according to the traffic light information;
[0042] When a preset vehicle enters a detection area corresponding to the intersection area, the driving authority of the preset vehicle is determined according to the traffic light information.
[0043] In a second aspect, an embodiment of the present application provides a road intersection traffic simulation device, the device comprising:
[0044] A model building module is used to obtain road information of a target intersection and build an intersection traffic model according to the road information. The intersection traffic model includes a simulated intersection area of the target intersection, a plurality of simulated lanes passing through the intersection area, and preset vehicles traveling along the lanes.
[0045] A conflict information generation module, used to generate traffic conflict information between multiple lanes based on the intersection traffic model;
[0046] A road right priority generation module is used to construct a simulated vehicle driving in the first lane among multiple lanes, and determine the road right priority of the simulated vehicle and the preset vehicle according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and traffic conflict information;
[0047] The cooperative driving module is used to simulate the cooperative driving of the simulated vehicle and the preset vehicle through the intersection area according to the road right priority and the position relationship between the simulated vehicle and the preset vehicle.
[0048] In a third aspect, an embodiment of the present application provides a device for simulating traffic at an intersection, the device comprising: a processor and a memory storing computer program instructions, and the processor implements the above-mentioned method for simulating traffic at an intersection when executing the computer program instructions.
[0049] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the above-mentioned intersection traffic simulation method is implemented.
[0050] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the above-mentioned intersection traffic simulation method is implemented.
[0051] In the intersection traffic simulation method, intersection traffic simulation device and equipment provided in the present application, the right-of-way priority of the simulated vehicle and the preset vehicle is determined according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and the traffic conflict information, so that the simulated vehicle and the preset vehicle can be simulated to enter the intersection area smoothly according to the right-of-way priority; by obtaining the right-of-way priority according to the driving style, different driving styles can be set, and different drivers can be simulated driving vehicles, and unmanned vehicles and manned vehicles can also be simulated passing through the intersection area, thereby obtaining richer simulation results and improving the authenticity of the simulation results. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0053] Figure 1 This is one of the flow charts of the intersection traffic simulation method provided in one embodiment of the present application;
[0054] Figure 2 This is one of the schematic diagrams of the intersection traffic model provided in one embodiment of the present application;
[0055] Figure 3 This is the second schematic diagram of the intersection traffic model provided in one embodiment of the present application;
[0056] Figure 4 This is the third schematic diagram of the intersection traffic model provided in one embodiment of the present application;
[0057] Figure 5 It is a module schematic diagram of a traffic simulation device for an intersection provided in an embodiment of the present application;
[0058] Figure 6 It is a structural schematic diagram of an intersection traffic simulation device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0059] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0060] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0061] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The embodiments will be described in detail below in conjunction with the accompanying drawings.
[0062] In order to solve the problems in the prior art, the embodiment of the present application provides a method for simulating traffic at an intersection. The following first introduces the method for simulating traffic at an intersection provided by the embodiment of the present application.
[0063] Figure 1 A schematic diagram of a flow chart of a method for simulating traffic at an intersection provided by an embodiment of the present application is shown. The method comprises the following steps:
[0064] S110, obtaining road information of a target intersection, and constructing an intersection traffic model according to the road information, wherein the intersection traffic model includes a simulated intersection area of the target intersection, a plurality of simulated lanes passing through the intersection area, and preset vehicles traveling along the lanes;
[0065] S120, generating traffic conflict information between two of a plurality of lanes based on the intersection traffic model;
[0066] S130, constructing a simulation vehicle driving in a first lane among multiple lanes, and determining the right-of-way priority of the simulation vehicle and the preset vehicle according to the position, driving speed and driving style of the simulation vehicle, the position, driving speed and driving style of the preset vehicle, and traffic conflict information;
[0067] S140, simulating the simulated vehicle and the preset vehicle to cooperatively drive through the intersection area according to the right-of-way priority and the positional relationship between the simulated vehicle and the preset vehicle.
[0068] The intersection traffic simulation method provided in the present application can be applied to simulate and analyze the traffic efficiency of road intersections. Optionally, it can be used to simulate and analyze the traffic efficiency of road intersections in a mixed traffic scenario of unmanned vehicles and manned vehicles in a port.
[0069] In S110, the target intersection is the intersection to be simulated, and the target intersection is the intersection of two or more lanes. The target intersection can be a T-shaped, Y-shaped, cross-shaped, X-shaped intersection formed by the intersection of lanes on the same plane. The road information of the target intersection can include lane information, traffic light information, and vehicle information passing through the target intersection. The lane information can include the width of the lane, the number of lanes, the driving direction of the vehicle along the lane, the connection between the lane and the target intersection, and the waiting area lights corresponding to the lane. The traffic light information can include traffic light information such as straight driving and turning. The vehicle information can include the width, speed, and entry position of the vehicle entering the target intersection, and the exit position of the vehicle leaving the target intersection. According to the road information, a traffic model of the intersection consistent with the traffic rules of the target intersection can be constructed. The traffic model of the intersection includes the intersection area of the simulated target intersection, the multiple lanes passing through the intersection area, and the preset vehicles traveling along the lane. Those skilled in the art can construct the intersection area and lane consistent with the shape, size, and traffic rules of the target intersection. It is also possible to construct a preset number of vehicles for the required test, set the preset vehicle to travel in one of the multiple lanes, and pass through the intersection area along the lane. It is understood by those skilled in the art that when the target intersection is an internal road, the traffic rules of the target intersection can be customized so that the traffic rules of the target intersection are different from the road traffic rules of the administrative district where the target intersection is located.
[0070] When a vehicle passes through an intersection area along a lane, the lanes intersect to form a traffic conflict area, and the traffic conflict information includes the traffic conflict area. When two vehicles pass through the traffic conflict area along two lanes corresponding to the traffic conflict area, the two vehicles may collide.
[0071] For example Figure 2In the intersection traffic model shown, lanes A1-B1, lanes A1-C2, lanes A1-C3, and lanes A1-C4 all enter the intersection area R from road A1, and lane B2-A2 intersects with lanes A1-C2, lanes A1-C3, and lanes A1-C4 respectively to form traffic conflict areas. The traffic conflict information includes all traffic conflict areas in the intersection area.
[0072] In S130, according to the simulation analysis needs and based on the user input, any lane is selected from the multiple lanes as the first lane, and a simulated vehicle is constructed in the lane. The right of way priority is the preferred order of the simulated vehicle and the preset vehicle to enter the intersection area, and the vehicle with the priority of the right of way has priority to enter the intersection area. According to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and the traffic conflict information, the right of way priority of the simulated vehicle and the preset vehicle is determined so that the simulated vehicle and the preset vehicle can pass through the intersection area in turn without driving conflict.
[0073] The driving style can simulate the driver's driving habit parameters, driving skill parameters, and driving attitude parameters, etc. The technicians in this field can set the driving style as needed to simulate different drivers driving vehicles, and can also randomly generate driving styles to test the effect of different drivers driving vehicles through the intersection area. When the target intersection is an intersection where unmanned vehicles and manned vehicles pass through, the unmanned vehicles can be set to have the same driving style and the manned vehicles can be set to have different driving styles to simulate the situation where unmanned vehicles and manned vehicles pass through the intersection area.
[0074] In S140, different vehicles can be simulated to enter the intersection area in sequence according to the road right priority, and the speed of each vehicle can be adjusted according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of each preset vehicle, and the traffic conflict information, so that the simulated vehicle and the preset vehicle can pass through the intersection area smoothly, that is, pass through the intersection area without collision.
[0075] In the present application, the right-of-way priority of the simulated vehicle and the preset vehicle is determined according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and the traffic conflict information, so that the simulated vehicle and the preset vehicle can be simulated to enter the intersection area smoothly according to the right-of-way priority; by obtaining the right-of-way priority according to the driving style, different driving styles can be set to simulate different drivers driving vehicles, and unmanned vehicles and manned vehicles can also be simulated passing through the intersection area, thereby obtaining richer simulation results and improving the authenticity of the simulation results.
[0076] In one embodiment, S120 includes:
[0077] S210, calculating a travel line along the lane through the intersection area according to the entry and exit position of the lane relative to the intersection area;
[0078] S220, calculating first intersection points between two of the plurality of driving lines, and determining traffic conflict information according to the first intersection points.
[0079] The entry and exit positions include the entry position of the vehicle entering the intersection area along the lane, and the exit position of the vehicle leaving the intersection area along the lane. In the non-intersection area, the lanes are arranged side by side, and the vehicles driving on the lanes drive in the same direction along the lanes in turn. The vehicles driving on the lanes will not collide along the lanes. In the intersection area, vehicles driving on different lanes will collide due to lane intersection. According to the entry position of the lane entering the intersection area, and the exit position of the lane leaving the intersection area, the driving line connecting the entry position and the exit position is obtained by fitting the cubic function, straight line function, arc function, spiral line function, etc. The driving line can represent the extension path of the lane in the intersection area, and the vehicle driving along the lane passes through the intersection area along the driving line.
[0080] When calculating the traffic conflict information, it can be simplified to calculate the first intersection point between multiple driving lines, and the first intersection point is the intersection of two lanes. The traffic conflict information can be determined according to the first intersection point.
[0081] For example, Figure 2 In the embodiment shown, the entry point of lane A1-C4 is point D1, the exit point of lane A1-C4 is point D3, and the first intersection point of lane A1-C4 and lane B2-A2 is point D2. The driving line of D1-D3 can be expressed by a cubic function as follows:
[0082] y=ax 3 +bx 2 +cx+d;
[0083] Among them, y is the vertical coordinate and x is the horizontal coordinate.
[0084] In some embodiments, the traffic conflict information includes at least one traffic conflict area; S220 includes:
[0085] S310, calculating first intersection points between two of a plurality of travel lines;
[0086] S320, when the first intersection is located at an entry / exit position, setting the entry / exit position where the first intersection is located as a traffic conflict area;
[0087] S330, when the first intersection point is located in the intersection area, calculating a first radius according to the shape data of the simulated vehicle and the shape data of the preset vehicle;
[0088] S340, according to the first intersections and the first radius, setting a traffic conflict area corresponding to each first intersection, the traffic conflict area being a circular area determined with the first intersection as the center and the first radius as the radius, two driving lines forming the first intersection intersect with the edge of the traffic conflict area to form a plurality of second intersections corresponding to the first intersections, and the minimum chord length between the second intersections corresponding to the first intersections is greater than or equal to the interval threshold.
[0089] After calculating the first intersection, the first intersection can be classified according to the position of the first intersection. When the first intersection is at the entry position or the first intersection is at the exit position, the entry and exit position of the first intersection is set as the traffic conflict area. When the first intersection is located in the intersection area, a certain range is demarcated as the traffic conflict area according to the first intersection.
[0090] An interval threshold is calculated according to the shape data of the simulated vehicle and the shape data of the preset vehicle, and then a first radius is determined according to the interval threshold. A circular area with the first intersection as the center and the first radius calculated according to the interval threshold is set as a traffic conflict area.
[0091] The interval threshold can be:
[0092]
[0093] Among them, w1 is the width of the simulated vehicle, w2 is the preset width of the vehicle, and d is the preset lateral psychological safety distance of the simulated vehicle.
[0094] The preset vehicle width may be a preset average or maximum vehicle width, or may be a vehicle width traveling at the first intersection point formed by the first lane. The lateral psychological safety distance is the minimum distance between two adjacent vehicles, and may be set according to the driving styles of different drivers, or may be set according to the accuracy of a sensor in the vehicle that detects the distance between adjacent vehicles.
[0095] The traffic conflict area with the first intersection as the center has a circular edge line, and the minimum connecting line between the edge line and the intersection points of the two travel lines forming the first intersection is greater than or equal to the interval threshold.
[0096] By setting the traffic conflict area, it is convenient to calculate that when one vehicle leaves the traffic conflict area and another vehicle immediately enters the traffic conflict area, the two vehicles will not collide.
[0097] For example, Figure 3In the illustrated embodiment, the first intersection of lanes A1-C4 and lanes B2-A2 is point D2, and the circular area with the first intersection D2 as the center is the traffic conflict area. The circular area has four intersections with lanes A1-C4 and lanes B2-A2 respectively, and the four intersections are connected in pairs to obtain the chord length about any two points, where the length of the minimum chord length L is greater than or equal to the interval threshold. When vehicle 1 and vehicle 2 are at opposite ends of the chord length, vehicle 1 and vehicle 2 are in a critical collision state. By setting the traffic conflict area, it can be determined whether there is a vehicle blocking the traffic conflict area.
[0098] Determining the first radius according to the interval threshold may include:
[0099] The test radius is obtained according to the interval threshold and the radius growth gradient;
[0100] A test circle is determined with the first intersection as the center and the test radius as the radius, two travel lines forming the first intersection intersect with the test circle to form a plurality of second intersections corresponding to the first intersections, and a minimum chord length between the second intersections corresponding to the first intersections is calculated;
[0101] When the minimum chord length is greater than or equal to the interval threshold, the test radius is set to the first radius;
[0102] When the minimum chord length is less than the interval threshold, the test radius is updated to be the sum of the test radius and the radius growth gradient, and the steps of determining a test circle with the first intersection as the center and the test radius as the radius are executed.
[0103] For example: the interval threshold is L, the radius growth gradient is 0.5, then the test radius is (l / 2L+0.5); solve the second intersection of a circle with the first intersection as the center and a radius of (l / 2L+0.5) and the two driving lines forming the first intersection, which can be approximated as solving the intersection of the circle and the broken line segment formed by the discrete points representing the driving lines; solve the four chord lengths formed by the four second intersections, and sort them to obtain the minimum chord length; if the minimum chord length is greater than or equal to L, the radius of the traffic conflict area is (l / 2L+0.5); if the minimum chord length is less than L, the test radius is updated to (l / 2L+0.5+0.5), and repeat the solution of the second intersection of a circle with the first intersection as the center and a radius of l / 2L+0.5+0.5) and the two driving lines forming the first intersection.
[0104] In some implementations, the distances from the entry and exit positions of each lane along the driving line to the traffic conflict area on the lane can also be calculated separately, and the distances can be saved in the intersection traffic model for subsequent reading and use, so as to avoid multiple calculations of the distances from the entry and exit positions to the traffic conflict area, thereby improving the calculation efficiency. The driving line can be represented by discrete points, and the aforementioned distances are approximately calculated by accumulating the discrete points. Optionally, when the driving line is represented by discrete points, a discrete point is set every 1m.
[0105] In one embodiment, the traffic conflict information includes at least one traffic conflict area, and the driving style includes a preset driving style coefficient; S130 includes:
[0106] S410, constructing a simulation of a vehicle driving in a first lane among multiple lanes, and determining a conflicting lane intersecting with the first lane among the multiple lanes according to the traffic conflict area;
[0107] S420, calculating a first distance from a driving line of the simulated vehicle along the first lane to a traffic conflict area;
[0108] S430, determining a conflicting vehicle from among the preset vehicles on the conflicting lane according to the position and speed of the preset vehicles;
[0109] S440, calculating a second distance from the conflicting vehicle along the conflicting lane to the traffic conflict area;
[0110] S450, calculating the right-of-way weights corresponding to the simulated vehicle and each conflicting vehicle respectively according to the first distance, the second distance, and the following formula (1);
[0111] S460: Determine the right-of-way priority of the simulated vehicle and each conflicting vehicle according to the numerical value of the right-of-way weight.
[0112] The conflict lane is a lane that has the same traffic conflict area as the first lane. The conflict vehicle is a preset vehicle that is traveling on the conflict lane and meets the preset release rules according to the preset vehicle position and speed. For example: a vehicle that is about to enter the intersection area and has not passed the communication conflict area, a vehicle whose vehicle speed is not zero, etc.
[0113] The formula for calculating road right weight is:
[0114]
[0115] Among them, R is the road right weight of either the simulated vehicle or the preset vehicle, s1 is the distance from the vehicle along the driving line of the lane to the traffic conflict area, ε is the preset driving style coefficient corresponding to the vehicle, v1 is the speed of the vehicle, s2 is the distance from the simulated vehicle and the other of the preset vehicles along the driving line of the lane to the traffic conflict area, v2 is the speed of the other of the simulated vehicle and the preset vehicle, k1, k2 and k3 are preset weight coefficients, which respectively represent the influence of the distance from the traffic conflict area, driving style and vehicle speed on the road right weight, which can be set as needed.
[0116] The smaller the distance between the vehicle and the traffic conflict area, the easier it is to pass the intersection first. The range of ε can be [0,1]. The larger the value of ε, the more aggressive the driving, and the easier it is to pass the intersection first. For unmanned vehicles, it is assumed that the driving style remains consistent, and ε is set to a fixed value. For manned vehicles, the driving style coefficient can be randomly generated and remains unchanged during the simulation. The faster the speed, the easier it is to pass the intersection first.
[0117] Exemplarily, when calculating the road right weight of the simulated vehicle relative to the preset vehicle, s1 is the distance from the simulated vehicle along the driving line of the lane to the traffic conflict area, ε is the preset driving style coefficient corresponding to the simulated vehicle, v1 is the speed of the simulated vehicle, s2 is the distance from the preset vehicle along the driving line of the lane to the traffic conflict area, and v2 is the speed of the preset vehicle.
[0118] When calculating the right-of-way weight of the simulated vehicle relative to the preset vehicle, s1 is the distance from the preset vehicle along the driving line of the lane to the traffic conflict area, ε is the preset driving style coefficient corresponding to the preset vehicle, v1 is the speed of the preset vehicle, s2 is the distance from the simulated vehicle along the driving line of the lane to the traffic conflict area, and v2 is the speed of the simulated vehicle.
[0119] The right of way weights are calculated for each simulated vehicle and the conflicting vehicle. The priority of each vehicle entering the intersection is sorted by the right of way weights. Vehicles with high right of way weights can enter the intersection first, and vehicles with low right of way weights can enter the intersection later. The vehicles that pass later can stop at the stop line. During the stop process, the right of way weights are calculated and updated at each preset step until the simulated vehicle has the priority to pass through the intersection among the right of way weights.
[0120] The stop line is the boundary line of the side of the entry position close to the intersection area, and the detection line is the boundary line of the side of the entry position away from the intersection area. When the simulated vehicle passes through the detection line and enters the entry position, S420 is started to determine whether the simulated vehicle has the right of way to enter the intersection area. The distance D between the detection line and the stop line must meet the following conditions:
[0121]
[0122] Among them, v lim is the lane speed limit, a c Provides a comfortable deceleration for the vehicle so that the simulated vehicle can stop at the stop line when it detects a red light or has no right of way.
[0123] In some embodiments, S140 includes:
[0124] S510, when the right-of-way priority of the simulated vehicle is the highest priority, a reference vehicle is determined from among the preset vehicles on the conflicting lane according to the number of preset vehicles on the conflicting lane and a second distance from the preset vehicle along the conflicting lane to the traffic conflict area, wherein the conflicting lane is a lane intersecting with the first lane determined from among the multiple lanes according to the traffic conflict information;
[0125] S520, mapping the reference vehicle to the first lane according to the second distance the reference vehicle travels to the traffic conflict area to obtain a virtual vehicle;
[0126] S530, setting the virtual vehicle closest to the simulation vehicle as a following vehicle;
[0127] S540, when the third distance between the following vehicle and the simulation vehicle is greater than a preset threshold, simulating the simulation vehicle to follow the following vehicle through the intersection area;
[0128] S550: When the third distance between the following vehicle and the simulation vehicle is less than or equal to a preset threshold, the simulation vehicle stops at the entry and exit position of the first lane relative to the intersection area.
[0129] The selection of the reference vehicle may also include determining whether it is a vehicle traveling to the intersection area, whether the speed of the vehicle is greater than 0, etc. Each conflict lane may select one or more vehicles as reference vehicles corresponding to the conflict lane. The reference vehicle may be understood as a reference vehicle that can only safely pass through the conflict area after the reference vehicle leaves the conflict area.
[0130] Mapping the reference vehicle to the first lane can be understood as constructing a virtual vehicle on the first lane. The distance that the virtual vehicle travels to the traffic conflict area is the same as the second distance that the reference vehicle travels to the traffic conflict area. When the reference vehicle travels through the traffic conflict area, the virtual vehicle also travels through the traffic conflict area, so it can follow the virtual vehicle to travel in the first lane to avoid collision with the reference vehicle.
[0131] Optionally, if the front of the virtual vehicle is behind the front of the simulated vehicle, the virtual vehicle may be ignored. If the rear of the virtual vehicle is in front of the simulated vehicle and the distance between the virtual vehicle and the front of the simulated vehicle is greater than a preset threshold, the simulated vehicle follows the virtual vehicle. Otherwise, the simulated vehicle stops at the stop line of the intersection.
[0132] Optionally, a Krauss model is used to follow the following vehicle.
[0133] For example, Figure 4In the embodiment shown, the traffic conflict area between lanes A1-C4 and lanes B2-A2 is D1, the traffic conflict area between lanes A1-C4 and lanes B3-A3 is D2, and the conflicting vehicle 4 in lane B2-A2 and the conflicting vehicle 5 in lane B3-A3 are selected as reference vehicles. The conflicting vehicle 4 and the conflicting vehicle 5 are respectively mapped to the first lane to obtain virtual vehicles 4' and 5'. The virtual vehicle 4' is closest to the simulated vehicle, and the front of the vehicle is in front of the simulated vehicle 1, so the virtual vehicle 4' is selected as the following vehicle for subsequent following.
[0134] In some embodiments, S510 includes:
[0135] S610, when the right-of-way priority of the simulated vehicle is the highest priority, determining the number of preset vehicles traveling in the intersection area on each conflicting lane;
[0136] S620, when the number of vehicles corresponding to the conflicting lane is greater than 1, calculating a second distance from a preset vehicle traveling on the conflicting lane in the intersection area to the traffic conflict area;
[0137] S630, setting a first preset vehicle traveling on the conflicting lane as a reference vehicle matching the conflicting lane, wherein the second distance of the first preset vehicle is greater than the second distance of other preset vehicles traveling on the same conflicting lane and located in the intersection area;
[0138] S640: When the number of vehicles corresponding to the conflicting lane is equal to 1, a preset vehicle traveling on the conflicting lane within the intersection area is set as a reference vehicle corresponding to the conflicting lane.
[0139] When the right of way priority of the simulated vehicle is the highest priority, it means that the simulated vehicle has the right of way to pass through the intersection area. At this time, if there are other vehicles in the intersection area, it is necessary to further determine whether it will collide with the vehicles in the intersection area. Therefore, the number of preset vehicles in each conflicting lane in the intersection area can be determined first. The right of way priority of vehicles outside the intersection area is lower than that of the simulated vehicle, so they can be ignored.
[0140] When the number of vehicles corresponding to the conflict lane is greater than 1, a second distance from a preset vehicle traveling on the conflict lane in the intersection area to the traffic conflict area is calculated, and according to the second distance, the conflict vehicle farthest from the traffic conflict area is set as a reference vehicle.
[0141] When the number of vehicles corresponding to the conflicting lane is equal to 1, the preset vehicle traveling on the conflicting lane in the intersection area is directly set as the reference vehicle corresponding to the conflicting lane.
[0142] There will be multiple conflicting vehicles in the same conflict lane. In practice, it is difficult for a vehicle to be inserted into a queue of vehicles in the same lane. Therefore, the vehicle farthest from the conflict area can be selected for comparison and judgment. Selecting the vehicle farthest from the conflict area can ensure smooth passage at the intersection. The driving speed can also be taken into consideration. That is, if the driving speed of a conflicting vehicle is zero and it is not in the conflict area, this vehicle will not be considered.
[0143] like Figure 4 In the embodiment shown, the traffic conflict area between lanes A1-C4 and lanes B2-A2 is D1, and the traffic conflict area between lanes A1-C4 and lanes B3-A3 is D2. According to the preset reference rule, the conflicting vehicle 4 in lane B2-A2 and the conflicting vehicle 5 in lane B3-A3 are selected as reference vehicles. The conflicting vehicle 4 and the conflicting vehicle 5 are respectively mapped to the first lane to obtain virtual vehicles 4' and 5'. If the virtual vehicle 4' is closest to the simulated vehicle and the front of the vehicle is in front of the simulated vehicle 1, the virtual vehicle 4' is selected as the following vehicle for subsequent following.
[0144] like Figure 4 There are 5 conflicting lanes that conflict with the first lane A1-C4. There are 3 conflicting lanes at the entry point, namely lane A1-B1, lane A1-C2, and lane A1-C3. There are 2 conflicting lanes at the intersection area, namely lane B2-A2 and lane B3-A3. There are 2 conflicting lanes at the exit point, namely lane B2-C4 and lane B3-C4. There are conflicting vehicles 3, 4, and 5 on lanes B2-A2 and lane B3-A3.
[0145] For vehicles on lane B2-A2, if the speeds of conflicting vehicles 3 and 4 are both greater than zero or in the conflict area, since conflicting vehicle 4 is far away from the conflicting area, conflicting vehicle 4 is selected as the reference vehicle for subsequent comparison. If the speed of conflicting vehicle 3 or conflicting vehicle 4 is zero and not in the conflicting area, it is not considered. For vehicles on conflicting lane B3-A3, only vehicle 5 is selected for subsequent comparison if the speed of conflicting vehicle 5 is greater than zero (or the speed is zero and in the conflicting area). It is assumed that vehicle 6 is in the detection area and has not entered the intersection area, so it can be ignored. If the front of the preset vehicle 6 enters the intersection area, it can be considered that there are two conflicting vehicles in the conflicting lane B3-A3.
[0146] In some embodiments, S130 includes:
[0147] S710, determining the driving authority of the simulated vehicle and the preset vehicle according to the road information;
[0148] S720, when the simulated vehicle has driving authority, determine the right of way priority of the simulated vehicle and the preset vehicle based on the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle with driving authority to be released, and traffic conflict information.
[0149] Different traffic rules can be set for different target intersections, such as setting traffic light information, setting manned vehicles to give way to unmanned vehicles, setting each lane to release a preset number of vehicles in turn, etc. Therefore, the driving authority of simulated vehicles and preset vehicles can be determined based on road information to exclude simulated vehicles and preset vehicles that do not have driving authority.
[0150] In some embodiments, the road information includes traffic light information; S710 includes:
[0151] In the case where the simulated vehicle enters the detection area corresponding to the intersection area, determining the driving authority of the simulated vehicle according to the traffic light information;
[0152] When a preset vehicle enters a detection area corresponding to the intersection area, the driving authority of the preset vehicle is determined according to the traffic light information.
[0153] When the simulated vehicle and the preset vehicle enter the detection area, the driving authority is determined, and when the driving authority is obtained, the road priority of the simulated vehicle and the preset vehicle is calculated. The detection area can be the same as the aforementioned entry position.
[0154] Based on the intersection traffic simulation method provided in the above embodiment, the present application also provides a specific implementation of the intersection traffic simulation device. Please refer to the following embodiment.
[0155] See first Figure 5 The intersection traffic simulation device 900 provided in the embodiment of the present application includes the following modules:
[0156] The model building module 901 is used to obtain the road information of the target intersection and build the intersection traffic model according to the road information. The intersection traffic model includes a simulated intersection area of the target intersection, a plurality of simulated lanes passing through the intersection area, and preset vehicles traveling along the lanes.
[0157] A conflict information generating module 902 is used to generate traffic conflict information between multiple lanes based on the intersection traffic model;
[0158] The right-of-way priority generation module 903 is used to construct the driving of the simulated vehicle in the first lane among multiple lanes, and determine the right-of-way priority of the simulated vehicle and the preset vehicle according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and the traffic conflict information;
[0159] The cooperative driving module 904 is used to simulate the cooperative driving of the simulated vehicle and the preset vehicle through the intersection area according to the road right priority and the position relationship between the simulated vehicle and the preset vehicle.
[0160] As an implementation of the present application, the conflict information generating module 902 is further used to:
[0161] Calculate the driving line along the lane through the intersection area according to the entry and exit position of the lane relative to the intersection area;
[0162] The first intersection points between two of the plurality of driving lines are calculated, and the traffic conflict information is determined according to the first intersection points.
[0163] As an implementation of the present application, the traffic conflict information includes at least one traffic conflict area; the conflict information generating module 902 is further used to:
[0164] Calculate the first intersection points between the plurality of travel lines;
[0165] When the first intersection is located at an entry / exit position, the entry / exit position where the first intersection is located is set as a traffic conflict area;
[0166] When the first intersection point is located in the intersection area, a first radius is calculated based on the shape data of the simulated vehicle and the shape data of the preset vehicle;
[0167] According to the first intersection and the first radius, a traffic conflict area corresponding to each first intersection is set, the traffic conflict area is a circular area determined by taking the first intersection as the center and the first radius as the radius, two driving lines forming the first intersection intersect with the edge of the traffic conflict area to form multiple second intersections corresponding to the first intersections, and the minimum chord length between the second intersections corresponding to the first intersections is greater than or equal to the interval threshold.
[0168] As an implementation of the present application, the traffic conflict information includes at least one traffic conflict area, and the driving style includes a preset driving style coefficient; the road right priority generation module 903 is further used to:
[0169] Construct a simulation vehicle driving in the first lane among multiple lanes;
[0170] According to the traffic conflict area, determining a conflict lane intersecting with the first lane from among the multiple lanes;
[0171] Calculating a first distance from a driving line of a simulated vehicle along a first lane to a traffic conflict area;
[0172] Determining a conflicting vehicle among the preset vehicles on the conflicting lane according to the position and speed of the preset vehicles;
[0173] Calculate a second distance from the conflicting vehicle to the traffic conflict area along the conflicting lane;
[0174] The right-of-way weights corresponding to the simulated vehicle and each conflicting vehicle are calculated according to the first distance, the second distance, and the following formula (1);
[0175]
[0176] Wherein, R is the right of way weight of either the simulated vehicle or the preset vehicle, s1 is the distance from the driving line of the vehicle along the lane to the traffic conflict area, ε is the preset driving style coefficient corresponding to the vehicle, v1 is the speed of the vehicle, s2 is the distance from the driving line of the simulated vehicle or the other of the preset vehicles along the lane to the traffic conflict area, v2 is the speed of the other of the simulated vehicle or the preset vehicle, and k1, k2 and k3 are preset weight coefficients;
[0177] According to the numerical value of the road right weight, the road right priority of the simulated vehicle and each conflicting vehicle is determined.
[0178] As an implementation of the present application, the coordinated driving module 904 is also used for:
[0179] In the case where the right of way priority of the simulation vehicle is the highest priority, a reference vehicle is determined from the preset vehicles on the conflict lane according to the number of preset vehicles on the conflict lane and the second distance from the preset vehicle along the conflict lane to the traffic conflict area, where the conflict lane is a lane intersecting with the first lane determined from multiple lanes according to the traffic conflict information;
[0180] According to a second distance traveled by the reference vehicle to the traffic conflict area, mapping the reference vehicle to the first lane to obtain a virtual vehicle;
[0181] The virtual vehicle closest to the simulation vehicle is set as a following vehicle;
[0182] When the third distance between the following vehicle and the simulation vehicle is greater than a preset threshold, the simulation vehicle follows the following vehicle through the intersection area;
[0183] When the third distance between the following vehicle and the simulation vehicle is less than or equal to the preset threshold, the simulation vehicle stops at the entry and exit position of the first lane relative to the intersection area.
[0184] As an implementation of the present application, when the road right priority of the simulated vehicle is the highest priority, determining a preset vehicle matching a preset reference rule on each conflicting lane as a reference vehicle includes:
[0185] In the case where the right-of-way priority of the simulated vehicle is the highest priority, determining the number of preset vehicles traveling in the intersection area on each conflicting lane;
[0186] When the number of vehicles corresponding to the conflict lane is greater than 1, a second distance traveled by a preset vehicle in the intersection area on the conflict lane to the traffic conflict area is calculated;
[0187] A first preset vehicle traveling on the conflicting lane is set as a reference vehicle matching the conflicting lane, wherein the second distance of the first preset vehicle is greater than the second distance of other preset vehicles traveling on the conflicting lane and located in the intersection area;
[0188] When the number of vehicles corresponding to the conflicting lane is equal to 1, a preset vehicle traveling on the conflicting lane within the intersection area is set as a reference vehicle corresponding to the conflicting lane.
[0189] As an implementation of the present application, the road right priority generation module 903 is further used to:
[0190] Determine the driving authority of the simulated vehicle and the preset vehicle according to the road information;
[0191] When the simulated vehicle has driving authority, the right of way priority of the simulated vehicle and the preset vehicle is determined based on the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle with driving authority to be released, and the traffic conflict information.
[0192] As an implementation of the present application, the road information includes traffic light information; determining the driving authority of the simulated vehicle and the preset vehicle according to the road information includes:
[0193] In the case where the simulated vehicle enters the detection area corresponding to the intersection area, determining the driving authority of the simulated vehicle according to the traffic light information;
[0194] When a preset vehicle enters a detection area corresponding to the intersection area, the driving authority of the preset vehicle is determined according to the traffic light information.
[0195] Figure 6 A schematic diagram of the hardware structure of the intersection traffic simulation device provided in an embodiment of the present application is shown.
[0196] The intersection traffic simulation device may include a processor 1201 and a memory 1202 storing computer program instructions.
[0197] Specifically, the processor 1201 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0198] The memory 1202 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1202 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1202 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1202 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1202 is a non-volatile solid-state memory.
[0199] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0200] The processor 1201 implements any one of the intersection traffic simulation methods in the above embodiments by reading and executing computer program instructions stored in the memory 1202 .
[0201] In one example, the intersection traffic simulation device may further include a communication interface 1203 and a bus 1210. Figure 6 As shown, the processor 1201, the memory 1202, and the communication interface 1203 are connected via a bus 1210 and communicate with each other.
[0202] The communication interface 1203 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0203] Bus 1210 includes hardware, software or both, and the parts of the intersection traffic simulation device are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1210 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0204] The intersection traffic simulation device may be based on the above-mentioned embodiment, thereby realizing a combination of the above-mentioned intersection traffic simulation method and intersection traffic simulation device.
[0205] In addition, in combination with the intersection traffic simulation method in the above-mentioned embodiment, the embodiment of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, any one of the intersection traffic simulation methods in the above-mentioned embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. Among them, the above-mentioned computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc., which is not limited here.
[0206] In addition, an embodiment of the present application further provides a computer program product, including computer program instructions, which can implement the steps and corresponding contents of the aforementioned method embodiment when the computer program instructions are executed by a processor.
[0207] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0208] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0209] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0210] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0211] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for simulating traffic at an intersection, characterized in that: The method comprises: Acquire road information of a target intersection, and construct an intersection traffic model according to the road information, wherein the intersection traffic model includes simulating an intersection area of the target intersection, simulating multiple lanes passing through the intersection area, and preset vehicles traveling along the lanes; Generate traffic conflict information between two of the plurality of lanes based on the intersection traffic model; Constructing a simulated vehicle to travel in a first lane among the multiple lanes, and determining the right-of-way priority of the simulated vehicle and the preset vehicle according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and the traffic conflict information; According to the road right priority and the positional relationship between the simulated vehicle and the preset vehicle, the simulated vehicle and the preset vehicle are simulated to cooperatively travel through the intersection area.
2. The intersection traffic simulation method according to claim 1, characterized in that: The generating of the traffic conflict information between the plurality of lanes based on the intersection traffic model comprises: Calculating a travel line along the lane through the intersection area according to the entry and exit position of the lane relative to the intersection area; The first intersection points between two of the plurality of driving lines are calculated, and the traffic conflict information is determined according to the first intersection points.
3. The intersection traffic simulation method according to claim 2, characterized in that: The traffic conflict information includes at least one traffic conflict area; The calculating of first intersection points between two of the plurality of driving lines and determining the traffic conflict information according to the first intersection points includes: Calculating first intersection points between two of the plurality of travel lines; When the first intersection is located at the entry / exit position, setting the entry / exit position where the first intersection is located as the traffic conflict area; When the first intersection point is located in the intersection area, a first radius is calculated based on the shape data of the simulated vehicle and the shape data of the preset vehicle; According to the first intersection and the first radius, the traffic conflict area corresponding to each first intersection is set, the traffic conflict area is a circular area determined with the first intersection as the center and the first radius as the radius, the two driving lines forming the first intersection intersect with the edge of the traffic conflict area to form a plurality of second intersections corresponding to the first intersection, and the minimum chord length between the second intersections corresponding to the first intersection is greater than or equal to the interval threshold.
4. The intersection traffic simulation method according to claim 1, characterized in that: The traffic conflict information includes at least one traffic conflict area, and the driving style includes a preset driving style coefficient; The constructed simulated vehicle is driven in the first lane, and according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and the traffic conflict information, the road right priority of the simulated vehicle and the preset vehicle is determined, including: Construct a simulation vehicle driving in the first lane; Determining, according to the traffic conflict area, a conflicting lane intersecting with the first lane among the multiple lanes; Calculating a first distance from the driving line of the simulated vehicle along the first lane to the traffic conflict area; Determining a conflicting vehicle among the preset vehicles on the conflicting lane according to the position and speed of the preset vehicle; calculating a second distance from the conflicting vehicle along the conflicting lane to the traffic conflict area, The right-of-way weights corresponding to the simulated vehicle and each of the conflicting vehicles are calculated according to the first distance, the second distance, and the following formula (1); Wherein, R is the right of way weight of either the simulated vehicle or the preset vehicle, s1 is the distance from the driving line of the vehicle along the lane to the traffic conflict area, ε is the preset driving style coefficient corresponding to the vehicle, v1 is the speed of the vehicle, s2 is the distance from the driving line of the simulated vehicle or the preset vehicle along the lane to the traffic conflict area, v2 is the speed of the simulated vehicle or the preset vehicle, and k1, k2 and k3 are preset weight coefficients; The right-of-way priority of the simulated vehicle and each of the conflicting vehicles is determined according to the numerical value of the right-of-way weight.
5. The intersection traffic simulation method according to claim 1, characterized in that: The traffic conflict information includes at least one traffic conflict area; and according to the right-of-way priority and the positional relationship between the simulated vehicle and the preset vehicle, simulating the simulated vehicle and the preset vehicle to cooperatively drive through the intersection area includes: In a case where the right-of-way priority of the simulation vehicle is the highest priority, a reference vehicle is determined from the preset vehicles on the conflict lane according to the number of preset vehicles on the conflict lane and a second distance from the preset vehicles along the conflict lane to the traffic conflict area, the conflict lane being a lane intersecting with the first lane determined from the multiple lanes according to the traffic conflict information; According to a second distance traveled by the reference vehicle to the traffic conflict area, mapping the reference vehicle to the first lane to obtain a virtual vehicle; Setting the virtual vehicle closest to the simulation vehicle as a following vehicle; When the third distance between the following vehicle and the simulated vehicle is greater than a preset threshold, simulating the simulated vehicle to follow the following vehicle through the intersection area; When the third distance from the following vehicle to the simulation vehicle is less than or equal to a preset threshold, the simulation vehicle is simulated to stop at an entry or exit position of the first lane relative to the intersection area.
6. The intersection traffic simulation method according to claim 5, characterized in that: When the road right priority of the simulated vehicle is the highest priority, determining the preset vehicles matching the preset reference rules on each conflicting lane as reference vehicles includes: In a case where the right-of-way priority of the simulated vehicle is the highest priority, determining the number of the preset vehicles traveling in the intersection area on each of the conflicting lanes; When the number of vehicles corresponding to the conflicting lane is greater than 1, calculating a second distance from the preset vehicle traveling on the conflicting lane in the intersection area to the traffic conflict area; Setting a first preset vehicle traveling on the conflicting lane as a reference vehicle matching the conflicting lane, wherein the second distance of the first preset vehicle is greater than the second distance of other preset vehicles traveling on the same conflicting lane and located in the intersection area; When the number of vehicles corresponding to the conflicting lane is equal to 1, the preset vehicle traveling on the conflicting lane in the intersection area is set as a reference vehicle corresponding to the conflicting lane.
7. The intersection traffic simulation method according to claim 1, characterized in that: The method includes: constructing a simulated vehicle to travel in a first lane among the multiple lanes, and determining the right-of-way priority between the simulated vehicle and the preset vehicle according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and the traffic conflict information, including: Determining the driving authority of the simulated vehicle and the preset vehicle according to the road information; In the case where the simulated vehicle has driving authority, the road right priority of the simulated vehicle and the preset vehicle is determined according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle whose driving authority is to be released, and the traffic conflict information.
8. The intersection traffic simulation method according to claim 7, characterized in that: The road information includes traffic light information; and determining the driving authority of the simulated vehicle and the preset vehicle according to the road information includes: In the case where the simulated vehicle enters a detection area corresponding to the intersection area, determining the driving authority of the simulated vehicle according to the traffic light information; When the preset vehicle enters the detection area corresponding to the intersection area, the driving authority of the preset vehicle is determined according to the traffic light information.
9. A road intersection traffic simulation device, characterized in that: The device comprises: A model building module, used to obtain road information of a target intersection, and build an intersection traffic model according to the road information, wherein the intersection traffic model includes simulating an intersection area of the target intersection, simulating multiple lanes passing through the intersection area, and preset vehicles traveling along the lanes; A conflict information generating module, used for generating traffic conflict information between two lanes based on the intersection traffic model; A right-of-way priority generation module is used to construct a simulated vehicle driving in a first lane among the multiple lanes, and determine the right-of-way priority of the simulated vehicle and the preset vehicle according to the position, driving speed and driving style of the simulated vehicle, the position, driving speed and driving style of the preset vehicle, and the traffic conflict information; The cooperative driving module is used to simulate the cooperative driving of the simulated vehicle and the preset vehicle through the intersection area according to the road right priority and the position relationship between the simulated vehicle and the preset vehicle.
10. A road intersection traffic simulation device, characterized in that: The device comprises: a processor and a memory storing computer program instructions, When the processor executes the computer program instructions, the intersection traffic simulation method as described in any one of claims 1-8 is implemented.
Citation Information
Cited By
Method and device for avoiding intersection conflict based on static or dynamic conflict area
CN120472672A
Methods and devices for avoiding intersection conflicts based on static or dynamic conflict zones
CN120472672B
