Traffic simulation method, system and electronic equipment
By receiving and processing traffic data and traffic signal timing solutions, a three-dimensional traffic simulation model is generated, which solves the problem that the existing technology cannot simulate real-world traffic conditions in real time, and realizes richer and more efficient traffic simulation applications.
Patent Information
- Application Number
- CN202210057412.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-18
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2042-01-18
AI Technical Summary
Existing traffic simulation technologies cannot simulate real-world traffic conditions in real time, limiting the application effect of traffic simulation.
By receiving the traffic data sent by the traffic system and the traffic signal timing scheme of the current simulated intersection, a three-dimensional traffic simulation is carried out to generate a three-dimensional traffic simulation model. This method can not only obtain data from simulated traffic systems, but also from real traffic systems.
It effectively enriches the application scenarios of traffic simulation, improves the universality and utilization of simulation effects, and provides more convenient conditions for traffic optimization.
Smart Images

Figure CN114417607B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of three-dimensional simulation technology, and specifically relates to a traffic simulation method, system and electronic equipment. Background Art
[0002] In the related art, traffic simulation is usually an offline simulation. Therefore, it is usually impossible to simulate the traffic conditions in the real world in real time, which seriously limits the application effect of traffic simulation. Summary of the invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide a traffic simulation method, system and electronic device that can effectively enrich traffic simulation application scenarios and improve simulation effects.
[0004] In a first aspect, an embodiment of the present application provides a traffic simulation method, comprising:
[0005] Receiving traffic data sent by a traffic system, wherein the traffic system includes a simulated traffic system and / or a real traffic system;
[0006] Receive the traffic signal timing plan corresponding to the current simulated intersection;
[0007] A simulation is performed based on the traffic data and the traffic signal timing plan to obtain a three-dimensional traffic simulation model.
[0008] In some embodiments, when the traffic system is the simulated traffic system, the method includes:
[0009] Acquire traffic flow information and vehicle operation status of the road section to be simulated from the traffic data;
[0010] According to the traffic flow information and the vehicle running status, vehicle simulation is performed to obtain a vehicle simulation model.
[0011] In some embodiments, the vehicle operation status configuration strategy in the simulated traffic system is controlled to run at a preset frequency to obtain the vehicle operation status corresponding to the road section to be simulated, the vehicle operation status configuration strategy includes a simulated vehicle operation trajectory, and the vehicle operation status includes the vehicle's speed and posture information.
[0012] In some embodiments, the simulating according to the traffic data and the traffic signal timing scheme to obtain a three-dimensional traffic simulation model includes:
[0013] According to the traffic signal timing scheme, controlling the operating state of at least one trigger corresponding to the intersection to be simulated, wherein the trigger is in an on state when the traffic signal is red, and the trigger is in a off state when the traffic signal is green;
[0014] When the trigger is in an on state, obtaining a triggering effect of the vehicle simulation model on the trigger according to a vehicle running state corresponding to the vehicle simulation model;
[0015] According to the triggering effect, the action state of the vehicle simulation model at the intersection to be simulated is simulated.
[0016] In some embodiments, when the traffic system is the real traffic system, the method includes:
[0017] Acquire vehicle information corresponding to the road section to be simulated from the traffic data, wherein the vehicle information at least includes identification information, vehicle model information and posture information of the vehicle;
[0018] According to the vehicle information, vehicle simulation is performed to obtain a vehicle simulation model.
[0019] In some embodiments, the vehicle information further includes location information, and performing vehicle simulation according to the vehicle information to obtain a vehicle simulation model includes:
[0020] Obtaining a mapping position of the zero point coordinates of the road section to be simulated in the three-dimensional traffic simulation model;
[0021] Determine a target mapping position of the vehicle to be simulated in the three-dimensional traffic simulation model according to the position information in the vehicle information and the mapping relationship;
[0022] The vehicle simulation model obtained by vehicle simulation is rendered at the target mapping position.
[0023] In some embodiments, it also includes:
[0024] Counting the traffic status information corresponding to each simulated road section in the three-dimensional traffic simulation model;
[0025] The traffic status information corresponding to each simulated road section is displayed in at least one of the following ways: traffic volume, vehicle speed statistics, imbalance index, and service level.
[0026] In some embodiments, when the traffic system is a real traffic system, the method further includes:
[0027] Receiving a trigger instruction to monitor any simulated road section;
[0028] The video display window is called to display the real-time acquisition picture of the simulation road section corresponding to the trigger instruction.
[0029] In a second aspect, an embodiment of the present application provides a traffic simulation system, including:
[0030] A first receiving module, configured to receive traffic data sent by a traffic system, wherein the traffic system includes a simulated traffic system and / or a real traffic system;
[0031] The second receiving module is used to receive the traffic signal timing plan corresponding to the current simulated intersection;
[0032] The simulation module is used to perform simulation according to the traffic data and the timing plan to obtain a three-dimensional traffic simulation model.
[0033] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present application when executing the program.
[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the embodiment of the present application.
[0035] The traffic simulation method, system and electronic device proposed in the embodiments of the present application can not only obtain traffic data from a simulated traffic system, but also obtain traffic data from a real traffic system, effectively enriching the application scenarios of traffic simulation, improving the universality of traffic simulation, improving the utilization rate of traffic simulation, and providing convenient conditions for traffic optimization.
[0036] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0038] Figure 1 A diagram of the implementation environment of the traffic simulation method provided in the embodiment of the present application;
[0039] Figure 2 A flow chart of a traffic simulation method proposed in an embodiment of the present application;
[0040] Figure 3 A flow chart of another traffic simulation method proposed in an embodiment of the present application;
[0041] Figure 4 A diagram of setting a road intersection trigger proposed in an embodiment of the present application;
[0042] Figure 5 A flow chart of another traffic simulation method proposed in an embodiment of the present application;
[0043] Figure 6 A schematic diagram of traffic status information display proposed in an embodiment of the present application;
[0044] Figure 7 A schematic diagram of a road network structure proposed in an embodiment of the present application;
[0045] Figure 8 A schematic diagram showing an image acquisition device proposed in an embodiment of the present application;
[0046] Fig. 9 A schematic diagram showing a real-time acquisition screen proposed in an embodiment of the present application;
[0047] Fig.10 A schematic diagram of a simulated signal light phase proposed in an embodiment of the present application;
[0048] Fig.11 A schematic diagram of a signal light state proposed in an embodiment of the present application;
[0049] Fig.12 A schematic diagram showing a floating window proposed in an embodiment of the present application;
[0050] Fig.13 A block diagram of a traffic simulation system proposed in an embodiment of the present application;
[0051] Fig.14 A schematic diagram of the structure of a computer system of an electronic device or server used to implement an embodiment of the present application. DETAILED DESCRIPTION
[0052] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0053] 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 present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0054] For the specific implementation environment of the traffic simulation method proposed in this application, see Figure 1 . Figure 1 This is a diagram of the implementation environment architecture of the traffic simulation method provided in the embodiment of the present application.
[0055] like Figure 1 As shown, the implementation environment architecture includes: terminal device 101 and traffic system 102.
[0056] The terminal device 101 is connected to the traffic system 102 so that the terminal device 101 can receive traffic data from the traffic system 102 .
[0057] The traffic system 102 can be a simulated traffic system 1021 or a real traffic system 1022. The terminal device 101 can be connected to the server of the traffic system 102. The server can be an independent physical server or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.
[0058] The terminal device 101 is directly or indirectly connected to the server of the transportation system 102 by wired or wireless communication. Optionally, the wireless network or wired network uses standard communication technology and / or protocols. The network is usually the Internet, and can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of a virtual private network.
[0059] The traffic simulation method proposed in the present application can be implemented by a traffic simulation system, and the traffic simulation system can be installed on a terminal device or a server.
[0060] In order to further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation instruction steps shown in the following embodiments or drawings, more or less operation instruction steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method may be executed in the order of the method shown in the embodiment or drawings or in parallel during the actual processing process or when the device is executed.
[0061] Figure 2 This is a flow chart of a traffic simulation method proposed in an embodiment of the present application. Figure 2 As shown, the traffic simulation method comprises the following steps:
[0062] Step 201: receiving traffic data sent by a traffic system, where the traffic system includes a simulated traffic system and / or a real traffic system.
[0063] It should be noted that the traffic data can come from the simulated traffic system or the real traffic system alone, or from both the simulated traffic system and the real traffic system. The traffic data sent by the simulated traffic system is the traffic data edited and configured by traffic simulation software such as SUMO and Vissim, and the traffic data sent by the real traffic system is the traffic data generated in real time in the real world.
[0064] That is, the traffic simulation system may include at least one traffic data receiving terminal, which receives traffic data sent by the simulated traffic system when the traffic data receiving terminal is connected to the simulated traffic system, and receives traffic data sent by the real traffic system when the traffic data receiving terminal is connected to the real traffic system.
[0065] Optionally, when the traffic system is a real traffic system, the traffic data receiving end may be a message queue telemetry transmission receiving end, that is, the real traffic system sends traffic data for simulation to the traffic system through the message queue telemetry transmission MQTT (Message Queuing Telemetry Transport) protocol. Furthermore, since the types of traffic data generated in different geographical locations are different, the monitoring and acquisition module can be customized according to the area (road section) to be simulated, and then the traffic data collected by the monitoring and acquisition module is sent to the traffic simulation system through MQTT.
[0066] Step 202, receiving a traffic signal timing plan corresponding to the current simulated intersection.
[0067] Among them, the traffic signal timing plan is the timing plan corresponding to each traffic light at the current intersection, for example, the display duration and switching frequency of the traffic light.
[0068] It should be noted that the source of the traffic signal timing plan corresponds to the traffic data one by one. That is to say, when the traffic data comes from a simulated traffic system, the traffic signal timing plan should also come from the simulated traffic system; when the traffic data comes from a real traffic system, the traffic signal timing plan should also come from the real traffic system.
[0069] It should be understood that when the traffic data includes both traffic data from a simulated traffic system and traffic data from a real traffic system, it is possible to first determine whether the traffic signal timing scheme from the simulated traffic system is the same as the traffic signal timing scheme from the real traffic system. If so, the traffic signal timing scheme is determined to be the traffic signal timing scheme corresponding to the current simulated intersection. If not, the traffic signal timing scheme from the real traffic system is determined to be the traffic signal timing scheme corresponding to the current simulated intersection.
[0070] Step 203, performing simulation based on traffic data and traffic signal timing plan to obtain a three-dimensional traffic simulation model.
[0071] Specifically, the traffic simulation system obtains traffic data for the policy and the traffic signal timing scheme corresponding to each simulated intersection from the simulated traffic system and / or the real traffic system, and then performs simulation based on the traffic data and the traffic signal timing scheme to obtain a three-dimensional traffic simulation model corresponding to the traffic data.
[0072] Therefore, the traffic simulation method proposed in the embodiment of the present application can not only obtain traffic data from the simulated traffic system, but also obtain traffic data from the real traffic system, which effectively enriches the application scenarios of traffic simulation, improves the universality of traffic simulation, improves the utilization rate of traffic simulation, and improves convenient conditions for traffic optimization.
[0073] In one or more embodiments, when the traffic system is a simulated traffic system, traffic flow information and vehicle operation status of the road section to be simulated are obtained from traffic data, and vehicle simulation is performed based on the traffic flow information and vehicle operation status to obtain a vehicle simulation model.
[0074] It should be noted that when the traffic data comes from a simulated traffic system, a qualitative simulation can be performed on the traffic flow edited or set for each road section based on the simulated traffic system. For example, when the simulation ratio is 1:10, the traffic flow set for a certain road section is 100, then 10 vehicle models are generated for simulation.
[0075] The vehicle running state can be qualitatively set according to the uniform speed data corresponding to the vehicle, that is, the speed of the vehicle simulation model = vehicle uniform speed × fixed coefficient, where the fixed coefficient can be adjusted according to the effect of the simulation requirements to achieve the best observation effect. The running trajectory of the vehicle simulation model is a path edited in advance.
[0076] Furthermore, the vehicle operation status configuration strategy in the simulated traffic system is controlled to run according to a preset frequency to obtain the vehicle operation status corresponding to the road section to be simulated. The vehicle operation status configuration strategy includes the operation trajectory of the simulated vehicle, and the vehicle operation status includes speed and posture information.
[0077] The vehicle operation state configuration strategy may be a method program that can be run in the traffic simulation system. Specifically, the traffic data received from the simulated traffic system may be configured traffic simulation parameters, and then the traffic simulation parameters are added to the vehicle operation state configuration strategy. Before the traffic simulation system performs simulation update, the vehicle operation state configuration strategy is executed to obtain the current vehicle operation state, and then the traffic state simulation is performed based on the vehicle operation state.
[0078] For example, the traffic simulation system is implemented by calling the Cinemachine interface. The traffic simulation system obtains the vehicle speed and vehicle posture information corresponding to each frame of simulation data when the vehicle simulation model runs according to the running trajectory by executing the following program:
[0079]
[0080]
[0081] Among them, mPosition in the SetPosition method is a floating-point class variable defined in the class, which represents the position of the vehicle simulation model in the path. StandardizeUnit, EvaluatePositionAtUnit, and EvaluateOrientationAtUnit are methods in the cinemachineSmoothPath class, which represent the position and angle of movement on the path corresponding to the vehicle according to the distance simulation.
[0082] Specifically, when simulating traffic data in a simulated traffic system, the SetPosition method needs to be called in each frame to determine the current travel status of the vehicle simulation model:
[0083]
[0084] Among them, mPosition is a floating-point variable defined in the class, mSpeed is the speed coefficient of the vehicle simulation model, which has no unit and can be set according to the expected observation effect, and Time.deltaTime is a constant, which represents the time increment, which is the time from the previous frame to the current frame in seconds.
[0085] Furthermore, since the vehicle operation data in the simulated traffic system are independent, that is, the vehicle's running trajectory and current speed do not interact with the traffic signal timing plan, it is impossible to determine the operation of the simulated vehicle model in the simulated road section, such as the stop or movement behavior based on the traffic signal. In other words, the vehicle data in the simulated traffic system (including the path, vehicle model parameters, vehicle motion state configuration strategy, etc.) are all independent vehicle parameters and are not integrated with the road conditions. When simulating the entire traffic system, the vehicle parameters and road condition information need to be integrated.
[0086] In one or more embodiments, Figure 3 As shown, according to the traffic data and traffic signal configuration scheme, a three-dimensional traffic simulation model is obtained, including:
[0087] Step 301, according to the traffic signal timing plan, control the operating state of at least a trigger corresponding to the intersection to be simulated, wherein the trigger is in an open state when the traffic signal is red, and the trigger is in a closed state when the traffic signal is green.
[0088] It should be noted that in the simulated traffic system, the factors that actually affect the vehicle's operating status are mainly traffic rules based on traffic lights. Therefore, this application determines the operating status of the vehicle simulation model based on the traffic signal timing plan and the position relationship of the vehicle relative to the traffic intersection.
[0089] Optional, such as Figure 4 As shown, in the traffic intersection environment, the present application sets a trigger 401 at each intersection to determine whether each vehicle simulation model can continue to move at the intersection. Further, in order to further observe the running state of the vehicle, a central trigger 402 can also be set in the central area of the intersection.
[0090] It should be understood that when the traffic light is green, the vehicle's driving behavior is allowed, so there is no need to start the trigger to identify the relative position of the vehicle. Therefore, in order to further reduce the amount of computing data, the trigger can be controlled to start only when the traffic light is red to trigger the identification of the relative position of the vehicle.
[0091] Step 302 : when the trigger is in the on state, obtaining the triggering effect of the vehicle simulation model on the trigger according to the vehicle running state corresponding to the vehicle simulation model.
[0092] It should be noted that, since the vehicle's operating status records the vehicle's posture information, that is, angle information, the vehicle's driving direction, such as going straight, turning left, turning right, etc., can be determined.
[0093] The triggering effects of the trigger include but are not limited to entering the trigger area, being in the trigger area, and leaving the trigger area.
[0094] Specifically, a trigger ray may be provided on the vehicle simulation model. When the position of the vehicle simulation model and the trigger meets a preset condition, the trigger ray can trigger a trigger function. For example, the function is triggered when entering a trigger area:
[0095] void OnTriggerEnter(Collider other)
[0096] {
[0097] }
[0098] Trigger a function when in a trigger region:
[0099] void OnTriggerStay(Collider other)
[0100] {
[0101] }
[0102] Trigger function when leaving the trigger area:
[0103] void OnTriggerExit(Collider other)
[0104] {
[0105] }
[0106] Step 303, simulating the action state of the vehicle simulation model at the simulated intersection according to the triggering effect.
[0107] That is to say, the present application determines the action state of the vehicle simulation model at the simulated intersection based on the signal conditions, signal rules, the direction of travel of the vehicle simulation model and the current position of the vehicle simulation model in the intersection area, and then simulates the vehicle simulation model according to the action state.
[0108] For example, it is well known that when turning right at a traffic intersection, a vehicle does not need to consider the color of the traffic light, that is, it can turn right in both red and green light states, but it cannot go straight or turn left in red light state. Therefore, the driving direction of the vehicle can be determined according to the vehicle running state. If the driving direction of the vehicle is to go straight or turn left, it is further determined whether to continue driving according to the effect of the vehicle on the trigger.
[0109] For example, as shown in the following table:
[0110]
[0111] When the vehicle turns right, the vehicle can continue to move at any position at any intersection and under any signal conditions. When the vehicle goes straight, if the signal is green, the vehicle can continue to move at any position at any intersection. If the signal light is red, the vehicle stops moving when the trigger determines that the vehicle is outside the intersection or has entered the intersection but has not passed the stop line. If it is determined that the vehicle has passed the stop line, it can continue moving. When the vehicle turns left, if the signal is green, the vehicle can continue to move at any position at any intersection. If the signal light is red, the vehicle stops moving when the trigger determines that the vehicle is outside the intersection or has entered the intersection but has not passed the stop line. If it is determined that the vehicle has passed the stop line, it can continue moving.
[0112] Therefore, the present application can perform three-dimensional simulation based on the traffic data provided by the simulated traffic system to obtain a three-dimensional traffic simulation model, thereby effectively improving the accuracy of the traffic simulation.
[0113] In one or more embodiments, when the traffic system is a real traffic system, vehicle information corresponding to the road section to be simulated is obtained from traffic data, and the vehicle information includes at least vehicle identification information, vehicle model information and posture information. Based on the vehicle information, simulation is performed to obtain a vehicle simulation model.
[0114] Specifically, traffic data sent by the real traffic system can be obtained in real time. The traffic data includes identification information, vehicle model information and posture information of each vehicle in the current road section collected by the data acquisition device, wherein the identification information can be an identifier for determining the vehicle ID, such as a license plate number, etc. The vehicle model information is used to determine the vehicle simulation model corresponding to the traffic data from the vehicle models preset in the vehicle simulation system, and the posture information is used to determine the direction and angle of rendering of the vehicle simulation model in the traffic model.
[0115] Furthermore, since the traffic data provided by the real-time traffic system also includes the real-time vehicle operation positions, it is necessary to further determine the mapping position of the vehicle simulation model.
[0116] Specifically, Figure 5 As shown, including:
[0117] Step 501, obtaining the mapping position of the zero point coordinate of the road section to be simulated in the three-dimensional traffic simulation model.
[0118] It should be noted that the vehicle location data and camera locations in the industry are GIS (Geographic Information System or Geo-Information system) coordinates. During simulation, the GIS coordinates need to be converted into coordinates in the traffic simulation system.
[0119] The zero-point coordinates of the road section to be simulated are the zero-point positions of the local coordinates of the road section to be simulated, and may be landmark buildings, crossroads, etc. in the road section to be simulated.
[0120] It should be understood that when the zero-point coordinates of the road section to be simulated are determined, the relative position of the road section to be simulated in the three-dimensional traffic simulation model is determined, and then the mapping positions of other coordinate points in the real traffic data in the three-dimensional traffic simulation model can be determined according to the ratio of the real traffic data to the data in the simulation model.
[0121] Step 502: Determine the target mapping position of the vehicle to be simulated in the three-dimensional traffic simulation model according to the position information and the mapping relationship in the vehicle information.
[0122] Step 503: Rendering the vehicle simulation model obtained by vehicle simulation at the target mapping position.
[0123] Specifically, before mapping the vehicle simulation model determined according to the traffic data into the three-dimensional traffic simulation model, it is necessary to map the position of the road section to be simulated with the position of the three-dimensional traffic simulation model to obtain a mapping relationship between the two, and then map the vehicle simulation model into the three-dimensional traffic simulation model based on the position data of the vehicle in the road section to be simulated.
[0124] Therefore, the present application can simulate the traffic data provided by the real traffic system to obtain a three-dimensional traffic model, so that the traffic simulation model can be effectively extended to the real data field, providing a more intuitive data display for traffic monitoring, guidance, planning, etc., and facilitating traffic guidance strategy planning.
[0125] Furthermore, the traffic simulation method also includes: statistically analyzing the traffic status information corresponding to each simulated road section in the three-dimensional traffic simulation model, and displaying the traffic status information corresponding to each simulated road section using at least one of the following methods: vehicle flow, vehicle speed statistics, imbalance index, and service level.
[0126] Among them, vehicle flow refers to traffic flow, also known as traffic volume, which refers to the number of vehicles passing through a certain section of the road within a specific time period; vehicle speed, also known as travel speed (average speed), refers to the speed of a motor vehicle passing between the two endpoints of a certain road section. Its value can directly reflect the degree of congestion of the road section, and is the intuitive feeling of travelers on the state of traffic congestion; imbalance index refers to the dimensionless number [0, 5] that represents the degree of congestion imbalance at the intersection. The larger the value, the more serious the imbalance at the intersection, and the larger the space required for the signal light to adjust; service level is a quality standard that describes the operation status of traffic flow, usually measured by speed, travel time, driving freedom, traffic interruption, comfort and convenience. The motor vehicle service level at a signalized intersection is measured by saturation and delay time.
[0127] Among them, when the imbalance index is 0, it means that the communication efficiency of each entrance road at the intersection is balanced, and there is no downstream overflow at the intersection. When the imbalance index is 5, it means that the entrance roads at the intersection are extremely unbalanced and the downstream overflow is serious. The imbalance of the intersection mainly includes "the state imbalance between the entrance roads of the intersection" and "the state imbalance between the entrance road and the exit road of the intersection".
[0128] It should be understood that the traffic status displayed can be the real-time and historical data of the road section in the current GIS map, for example Figure 6 As shown, the real-time and historical traffic flow statistics of the road section in the current GIS map are displayed, the real-time and historical vehicle speed statistics of the road section in the current GIS map are displayed, the real-time and historical imbalance index of the road section in the current GIS map is displayed, and the real-time service level of the road section in the current GIS map is displayed.
[0129] Optionally, in addition to the above-mentioned representation method using statistical data, traffic flow can also be represented by road network color.
[0130] Among them, the road network is composed of lanes between intersections, such as Figure 7 The figure shows a road network at an intersection. There are 4 variables in the Shader of a single road network. Taking the horizontal one as an example, they are the flow value of the left intersection, the flow value of the right intersection, the upper flow threshold, and the lower flow threshold. Optionally, green can be selected as the lower flow threshold of the road network, and red can be selected as the upper flow threshold. The flow color of a lane is the difference between the flow size and the threshold.
[0131] It should be understood that the purpose of setting the traffic of two ports for each lane is to make the lane traffic color of the two intersections gradually change. If the traffic at the left intersection is 100 and the traffic at the right intersection is 106, the traffic color of the lane is the gradient color mapped from 100 to 160.
[0132] Therefore, the present application can display the traffic status information of the simulated road section through the health billboard, so that the integrated control center can adjust the traffic signal strategy and other methods such as dispatching traffic police to clear the congested road sections, thereby effectively improving the efficiency of traffic guidance strategy planning.
[0133] In one or more embodiments, when the traffic system is a real traffic system, it also includes: receiving a trigger instruction to monitor any simulated road section, calling a video display window to display a real-time captured image of the simulated road section corresponding to the trigger instruction.
[0134] Specifically, the icon of the image acquisition device can be simulated at the location where the image acquisition device is installed. When a selection operation such as single-clicking or double-clicking is performed on the icon of the image acquisition device, it is determined that a trigger instruction for monitoring the simulated road section corresponding to the image acquisition device is received. At this time, the real-time acquisition screen of the image acquisition device corresponding to the icon of the image acquisition device is called, and the video monitoring window is called to display the real-time acquisition screen.
[0135] For example, if Figure 8 As shown in the figure, the image acquisition device 801 icons of 5 road sections are simulated and highlighted to remind that video display can be performed here. When the icon of an image acquisition device is selected, a video display window pops up as shown in FIG. Fig. 9 The real-time acquisition screen is shown.
[0136] In one or more embodiments, when the scale of the simulation model is reduced, the configuration scheme of the traffic light cannot be directly displayed, which seriously affects the acquisition of the state data of each intersection. Therefore, the present application also simulates the phase state of the traffic light through the traffic light icon when the simulation scale is reduced to the first preset threshold, such as Fig.10When the simulation scale is expanded to a second preset threshold, each signal light and its status can be displayed in the three-dimensional traffic simulation model, such as Fig.11 As shown in 1101.
[0137] It should be understood that when the simulation model is expanded to the second preset threshold, it is impossible to obtain traffic data with breadth. At this time, information such as the average speed of vehicles in the lane and the queue length can be displayed through a floating window with a certain degree of transparency, such as Fig.12 As shown in 1201.
[0138] To sum up, the traffic simulation method proposed in the embodiment of the present application can not only obtain traffic data from the simulated traffic system, but also obtain traffic data from the real traffic system, which effectively enriches the application scenarios of traffic simulation, improves the universality of traffic simulation, improves the utilization rate of traffic simulation, and improves convenient conditions for traffic optimization.
[0139] It should be noted that although the operations of the method of the present invention are described in a particular order in the drawings, this does not require or imply that the operations must be performed in this particular order or that all illustrated operations must be performed to achieve desired results.
[0140] Fig.13 FIG. 1 is a block diagram of a traffic simulation system proposed in an embodiment of the present application. Fig.13 As shown, the traffic simulation system 10 comprises:
[0141] A first receiving module 11 is used to receive traffic data sent by a traffic system, where the traffic system includes a simulated traffic system and / or a real traffic system;
[0142] The second receiving module 12 is used to receive the traffic signal timing plan corresponding to the current simulated intersection;
[0143] The simulation module 13 is used to perform simulation according to the traffic data and the timing plan to obtain a three-dimensional traffic simulation model.
[0144] In some embodiments, when the traffic system is a simulated traffic system, the simulation module 13 is further configured to:
[0145] Obtaining traffic flow information and vehicle operation status of the road section to be simulated from traffic data;
[0146] According to the traffic flow information and the vehicle operation status, vehicle simulation is performed to obtain a vehicle simulation model.
[0147] In some embodiments, the simulation module 13 is further configured to:
[0148] The vehicle operation status configuration strategy in the simulated traffic system is controlled to run according to the preset frequency to obtain the vehicle operation status corresponding to the road section to be simulated. The vehicle operation status configuration strategy includes the operation trajectory of the simulated vehicle, and the vehicle operation status includes the speed and posture information of the vehicle.
[0149] In some embodiments, the simulation module 13 is further configured to:
[0150] According to the traffic signal timing plan, control the operation state of at least one trigger corresponding to the intersection to be simulated, wherein the trigger is in an on state when the traffic signal is red, and the trigger is in a off state when the traffic signal is green;
[0151] When the trigger is in the on state, the triggering effect of the vehicle simulation model on the trigger is obtained according to the vehicle running state corresponding to the vehicle simulation model;
[0152] According to the triggering effect, the action state of the vehicle simulation model at the intersection to be simulated is simulated.
[0153] In some embodiments, when the traffic system is a real traffic system, the simulation module 13 is further used to:
[0154] Acquire vehicle information corresponding to the road section to be simulated from the traffic data, where the vehicle information at least includes identification information, vehicle model information and posture information of the vehicle;
[0155] According to the vehicle information, vehicle simulation is performed to obtain a vehicle simulation model.
[0156] In some embodiments, the vehicle information also includes location information, and the simulation module 13 is further used to:
[0157] Obtaining the mapping position of the zero point coordinate of the road section to be simulated in the three-dimensional traffic simulation model;
[0158] Determine the target mapping position of the vehicle to be simulated in the three-dimensional traffic simulation model according to the position information and mapping relationship in the vehicle information;
[0159] The vehicle simulation model obtained by vehicle simulation is rendered at the target mapping position.
[0160] In some embodiments, the simulation module 13 is further configured to:
[0161] Count the traffic status information corresponding to each simulated road section in the three-dimensional traffic simulation model;
[0162] The traffic status information corresponding to each simulated road section is displayed in at least one of the following ways: traffic flow, vehicle speed statistics, imbalance index, and service level.
[0163] In some embodiments, the simulation module 13 is further configured to:
[0164] Receiving a trigger instruction to monitor any simulated road section;
[0165] The video display window is called to display the real-time acquisition picture of the simulation road section corresponding to the trigger instruction.
[0166] To sum up, the traffic simulation system proposed in the embodiment of the present application can not only obtain traffic data from the simulated traffic system, but also obtain traffic data from the real traffic system, which effectively enriches the application scenarios of traffic simulation, improves the universality of traffic simulation, improves the utilization rate of traffic simulation, and provides convenient conditions for traffic optimization.
[0167] It should be understood that the units or modules described in the traffic simulation system 10 are similar to those described in the reference Figure 2 The various steps in the described method correspond to each other. Therefore, the operations and features described above for the method are also applicable to the traffic simulation system 10 and the units contained therein, and will not be repeated here. The traffic simulation system 10 can be pre-implemented in a browser or other security application of an electronic device, or can be loaded into a browser or its security application of an electronic device by downloading or the like. The corresponding units in the traffic simulation system 10 can cooperate with the units in the electronic device to implement the solution of the embodiment of the present application.
[0168] For the several modules or units mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0169] Reference below Fig.14 , Fig.14 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown.
[0170] like Fig.14 As shown, the computer system includes a central processing unit (CPU) 1401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1402 or the program loaded from the storage part 1408 to the random access memory (RAM) 1403. In the RAM 1403, various programs and data required for the operation instructions of the system are also stored. The CPU 1401, the ROM 1402, and the RAM 1403 are connected to each other through a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.
[0171] The following components are connected to the I / O interface 1405: an input section 1406 including a keyboard, a mouse, etc.; an output section 1407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1408 including a hard disk, etc.; and a communication section 1409 including a network interface card such as a LAN card, a modem, etc. The communication section 1409 performs communication processing via a network such as the Internet. A drive 1410 is also connected to the I / O interface 1405 as needed. A removable medium 1411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1410 as needed, so that a computer program read therefrom is installed into the storage section 1408 as needed.
[0172] In particular, according to an embodiment of the present application, the above reference flow chart Figure 2 The described process can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1409, and / or installed from the removable medium 1411. When the computer program is executed by the central processing unit (CPU) 1401, the above-mentioned functions defined in the system of the present application are executed.
[0173] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium such as a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0174] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operating instructions of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the aforementioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operating instruction, or can be implemented with a combination of dedicated hardware and computer instructions.
[0175] The units or modules involved in the embodiments described in the present application may be implemented by software or by hardware. The described units or modules may also be arranged in a processor, for example, may be described as: a processor includes a first receiving module, a second receiving module and a simulation module. Among them, the names of these units or modules do not constitute a limitation on the units or modules themselves under certain circumstances. For example, the first receiving module may also be described as "receiving traffic data sent by a traffic system, wherein the traffic system includes a simulated traffic system and / or a real traffic system".
[0176] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the traffic simulation method described in the present application.
[0177] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A traffic simulation method, characterized in that: include: Receiving traffic data sent by a traffic system, wherein the traffic system includes a simulated traffic system and / or a real traffic system; Receiving a traffic signal timing plan corresponding to the current simulated intersection; in the case where the traffic system includes a simulated traffic system and a real traffic system, the received traffic signal timing plan is determined based on a judgment result of whether the traffic signal timing plan from the simulated traffic system is consistent with the traffic signal timing plan from the real traffic system; Perform simulation according to the traffic data and the traffic signal timing plan to obtain a three-dimensional traffic simulation model; Wherein, when the traffic system is the simulated traffic system, the simulation is performed according to the traffic data and the traffic signal timing scheme to obtain a three-dimensional traffic simulation model, including: According to the traffic signal timing scheme, the operating state of at least one trigger corresponding to the intersection to be simulated is controlled, the trigger is in an on state when the traffic signal is red, and the trigger is in a off state when the traffic signal is green; the trigger is arranged at the intersection to be simulated and / or the central area of the intersection to be simulated; When the trigger is in the on state, the trigger effect of the vehicle simulation model on the trigger is obtained according to the vehicle running state corresponding to the vehicle simulation model; the vehicle running state records the posture information of the vehicle; the trigger effect of the trigger includes entering the trigger area, being in the trigger area and leaving the trigger area; According to the triggering effect, the action state of the vehicle simulation model at the intersection to be simulated is simulated.
2. The method according to claim 1, characterized in that When the traffic system is the simulated traffic system, the method comprises: Acquire traffic flow information and vehicle operation status of the road section to be simulated from the traffic data; According to the traffic flow information and the vehicle running status, vehicle simulation is performed to obtain a vehicle simulation model.
3. The method according to claim 2, characterized in that include: The vehicle operation status configuration strategy in the simulated traffic system is controlled to run according to a preset frequency to obtain the vehicle operation status corresponding to the road section to be simulated, the vehicle operation status configuration strategy includes the operation trajectory of the simulated vehicle, and the vehicle operation status includes the speed and posture information of the vehicle.
4. The method according to claim 1, characterized in that: When the traffic system is the real traffic system, the method includes: Acquire vehicle information corresponding to the road section to be simulated from the traffic data, wherein the vehicle information at least includes identification information, vehicle model information and posture information of the vehicle; According to the vehicle information, vehicle simulation is performed to obtain a vehicle simulation model.
5. The method according to claim 4, characterized in that The vehicle information also includes location information. The vehicle simulation is performed according to the vehicle information to obtain a vehicle simulation model, including: Obtaining a mapping position of the zero point coordinates of the road section to be simulated in the three-dimensional traffic simulation model; Determine a target mapping position of the vehicle to be simulated in the three-dimensional traffic simulation model according to the position information and the mapping relationship in the vehicle information; The vehicle simulation model obtained by vehicle simulation is rendered at the target mapping position.
6. The method according to claim 1, characterized in that Also includes: Counting the traffic status information corresponding to each simulated road section in the three-dimensional traffic simulation model; The traffic status information corresponding to each simulated road section is displayed in at least one of the following ways: traffic volume, vehicle speed statistics, imbalance index, and service level.
7. The method according to claim 1, characterized in that When the traffic system is a real traffic system, the method further includes: Receiving a trigger instruction to monitor any simulated road section; The video display window is called to display the real-time acquisition picture of the simulation road section corresponding to the trigger instruction.
8. A traffic simulation system, characterized in that: include: A first receiving module, used for receiving traffic data sent by a traffic system, wherein the traffic system includes a simulated traffic system and / or a real traffic system; A second receiving module is used to receive a traffic signal timing scheme corresponding to the current simulated intersection; in the case where the traffic system includes a simulated traffic system and a real traffic system, the received traffic signal timing scheme is determined based on a judgment result of whether the traffic signal timing scheme from the simulated traffic system is consistent with the traffic signal timing scheme from the real traffic system; A simulation module, used for performing simulation according to the traffic data and the timing scheme to obtain a three-dimensional traffic simulation model; Wherein, when the traffic system is the simulated traffic system, the simulation is performed according to the traffic data and the traffic signal timing scheme to obtain a three-dimensional traffic simulation model, including: According to the traffic signal timing scheme, the operating state of at least one trigger corresponding to the intersection to be simulated is controlled, the trigger is in an on state when the traffic signal is red, and the trigger is in a off state when the traffic signal is green; the trigger is arranged at the intersection to be simulated and / or the central area of the intersection to be simulated; When the trigger is in the on state, the trigger effect of the vehicle simulation model on the trigger is obtained according to the vehicle running state corresponding to the vehicle simulation model; the vehicle running state records the posture information of the vehicle; the trigger effect of the trigger includes entering the trigger area, being in the trigger area and leaving the trigger area; According to the triggering effect, the action state of the vehicle simulation model at the intersection to be simulated is simulated.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, it implements the traffic simulation method as described in any one of claims 1-7.
Citation Information
Patent Citations
V2X Internet of Vehicles on-loop simulation system
CN107728491A
Timing optimization and analogue simulation method for traffic lights
CN110209068A
Signal lamp control method, model training method, system and device and storage medium
CN113643528A
Traffic index calculation device, traffic index calculation method, and traffic index calculation program
JP2012190248A