CN111027160A - SUMO traffic simulation scene accurate construction method based on data conversion - Google Patents
SUMO traffic simulation scene accurate construction method based on data conversion Download PDFInfo
- Publication number
- CN111027160A CN111027160A CN201911143655.3A CN201911143655A CN111027160A CN 111027160 A CN111027160 A CN 111027160A CN 201911143655 A CN201911143655 A CN 201911143655A CN 111027160 A CN111027160 A CN 111027160A
- Authority
- CN
- China
- Prior art keywords
- road network
- road
- sumo
- data
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 53
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 51
- 238000010276 construction Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 15
- 238000012545 processing Methods 0.000 claims abstract description 12
- 238000012958 reprocessing Methods 0.000 claims abstract description 5
- 239000000203 mixture Substances 0.000 claims description 12
- 230000001502 supplementing effect Effects 0.000 claims description 9
- 230000008520 organization Effects 0.000 claims description 8
- 230000003213 activating effect Effects 0.000 claims description 3
- JRXXLCKWQFKACW-UHFFFAOYSA-N biphenylacetylene Chemical compound C1=CC=CC=C1C#CC1=CC=CC=C1 JRXXLCKWQFKACW-UHFFFAOYSA-N 0.000 claims description 3
- 230000011664 signaling Effects 0.000 claims description 3
- 238000013501 data transformation Methods 0.000 claims 2
- 238000005259 measurement Methods 0.000 abstract description 3
- 230000000694 effects Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 239000007983 Tris buffer Substances 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/0104—Measuring and analyzing of parameters relative to traffic conditions
- G08G1/0125—Traffic data processing
Landscapes
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Traffic Control Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a SUMO traffic simulation scene accurate construction method based on data conversion, which is based on the existing actual measurement road network data and lane level road network model, creates and generates an effective and available SUMO road network file by performing data conversion, self-organization and reprocessing on the basic object element information forming the SUMO road network subfile and combining with a related conversion tool for SUMO simulation, thereby realizing the accurate construction and control of the simulation scene. The method solves the problems of road network topological structure errors, low execution efficiency and the like caused by complex data formats and complex workload after conversion processing.
Description
Technical Field
The invention relates to the technical field of traffic simulation, in particular to a SUMO traffic simulation scene accurate construction method based on data conversion.
Background
SUMO is used as open-source microscopic traffic simulation software, and can support external data in various formats due to expandability and high compatibility. However, the following problems exist in the construction of the traffic simulation scene by applying the method at present: 1. the object elements of different types of external road network data such as OSM map data, VISSIM, MATSim and the like are various and complex, further editing processing is still needed after direct import and conversion, and the workload is large and very complicated for large-scale complex simulation road networks; 2. the imported data type cannot well meet the customization requirement of scene individuation due to the limitation and constraint of external data sources, formats and naming rules, and the imported data type has uncontrollable property, so that the management difficulty of data is increased; 3. after most external data are directly converted, the obtained SUMO road network has disordered display proportion, topological structure, connection relation and the like, the phenomena of road section lane overlapping, crossing, interweaving and the like are serious, and the manual adjustment cost is huge; 4. in the aspect of building a road network model and a simulation scene, the functions of modules of the SUMO simulation software are too independent and separated, and a complete and mutually-associated integrated method flow is lacked.
Disclosure of Invention
The invention provides a SUMO traffic simulation scene accurate construction method based on data conversion, and aims to solve the problems that in modeling application of the existing SUMO, due to complex data formats, the topological structure of a simulation road network is wrong, and the workload of manual modeling is large.
In order to achieve the above purpose, the technical means adopted is as follows:
a SUMO traffic simulation scene accurate construction method based on data conversion comprises the following steps:
s1, converting the SUMO road network data based on the actually measured road network data and a lane-level basic road network, and performing self-organization by using the converted data to generate SUMO road network subfiles;
s2, reprocessing the conversion data in the SUMO road network subfile and rearranging field information in a text editor;
s3, configuring the SUMO road network subfiles obtained in the step S2 into a configuration file of a SUMO road network converter NETCONVERT, converting the SUMO road network subfiles into a final SUMO road network file, loading the SUMO road network file for a SUMO traffic simulation platform so as to enable the actually measured road network data to be expressed according to the SUMO road network, and further constructing a SUMO traffic simulation scene
Preferably, in the SUMO road network, edge is used to describe road segments, junction is used to describe road network nodes, and connection is used to describe connection relations between road segments and between lanes.
Preferably, the step S1 of converting the SUMO road network data based on the actually measured road network data and the lane-level basic road network specifically includes: extracting key field information of the actually measured road network data and carrying out layered processing on the actually measured road network data according to a data organization structure of a node file, an edge file, a road section Type file and a Connection relation Connection file in a lane-level basic road network; and respectively traversing all field information of each layer of data, corresponding to basic sub-elements forming the SUMO road network and performing corresponding data conversion, thereby converting the actually measured road network data into specific field description information of the SUMO road network sub-files.
Preferably, in step S1, the step of performing the node data conversion of the SUMO network includes:
s111, traversing all field information of the road network node layer of the actually measured road network data based on the basic composition elements of the road network node files, extracting road network node ID fields and arranging the road network node ID fields in order;
s112, using the road network node ID as first data of each piece of node information in the road network node file, namely determining ID information of the road network node;
s113, converting the actual coordinate position of the road network node in the road network data into x, y and z coordinates in a road network node file, wherein the conversion is performed by taking a WGS84 coordinate system as a basic reference; determining a road network display scale and coordinate field description information of road network nodes;
s114, determining the specific type of the road network node according to the road network node type field in the actually measured road network data and the type information part of the corresponding road network node file, and adding each road network node type and the signaling control type data to the road network node field description information of each row corresponding to the road network node file;
s115, converting the topological shape attributes of the road network Nodes in the actually measured road network data into breakpoints of different coordinate positions in the road network node files so as to construct the geometric shapes of the road network Nodes, and describing by using shape attributes;
s116, converting the real right-of-way information of the road network node into a rightOfway attribute in a road network node file, wherein the rightOfway attribute is described by default or edgePriority information;
and S117, supplementing description data of optional turning radius, merging and activating of connection-blocking-heuristic of the road network nodes, converting the description data into road network node description fields available for the SUMO traffic simulation platform, and supplementing the road network node description fields into field description information of the road network nodes.
Preferably, in step S1, the concrete step of performing the link data conversion of the SUMO road network includes:
s121, traversing all field information of a road section layer of the actually-measured road network data on the basis of basic composition elements of the edge Edges file, extracting road section ID fields and arranging the road section ID fields in order, and taking the road section ID as first data of each piece of edge information in the edge Edges file, namely determining ID information of the road section of the road network;
s122, determining the road sections between the adjacent nodes and the direction of the road sections according to different coordinate positions and directions of the nodes in the actually-measured road network data based on an organization mode of forming a road section between the two adjacent nodes, describing the starting node of the road section as from and the ending node as to, and respectively taking the ID of the starting node and the ID of the ending node as field description information of the attribute of the starting position and the attribute of the ending position of the road section so as to determine the road sections and the direction thereof;
s123, converting the actual information into a rightOfway attribute in the edge Edges file according to the actual information of the road section right of passage and the priority, and describing the priority by using digital information with different sizes;
s124, extracting main fields based on the actual number of lanes of the road section and topological parameter information of the actual number of lanes of the road section, converting the main fields into attributes of numlanes and lengths in edge Edges files, and converting the main fields into speed attributes according to speed limit information allowed by the lanes; the part determines basic lane information forming the road section and converts the basic lane information into lane description in an edge Edges file;
s125, converting the shape attribute of the road section in the actually measured road network data into the breakpoint of different coordinate positions in the edge files to construct the geometric shape of the road section, and describing the geometric shape by using shape attribute;
s126, converting the types of vehicles allowed to pass through the road sections in the actually measured road network data into vehicle type information of allowed vehicles and forbidden vehicles in the edge Edges file;
and S127, converting description data about the type of road network sections, the lane propagation rule, the name and width of lanes, the stop line offset of the lanes and the width of sidewalks into section field description information available for the SUMO traffic simulation platform, and supplementing the section field description information into the edge files.
Preferably, in step S1, the concrete step of performing the road segment type data conversion of the SUMO road network includes:
s131, based on basic composition elements of the road section Type file, independently segmenting road section Type layer data from the road section layer data of the actually-measured road network data, and traversing all field information of the road section Type layer; the field description information of each road segment includes: the number of lanes numlanes, the maximum speed allowed for a road section, the priority of an optional road section, and vehicle type information of allowed allow and forbidden disable of the optional road section;
s132, the field description information of the road section type comprises the following steps: ID, priority, number of lanes numLanes, vehicle speed, allowable vehicle category and forbidden vehicle category.
Preferably, in step S1, the concrete step of performing data conversion of connection relationship between links and lanes of the SUMO road network includes:
s141, traversing all field information of a Connection relation layer between road sections in the actually measured road network data on the basis of basic composition elements of a Connection relation Connection file, extracting field information of adjacent road sections, determining a specific Connection relation between the road sections on the basis of the directionality of the road sections and an intersection turning rule, describing an initial road section by using from, and taking the ID of the initial road section as information of from attribute; describing a terminating link by to, and using the terminating link ID as information of a to attribute;
s142, dividing the connection among different road sections into the connection among the lanes by taking the lanes as a reference unit, wherein the connection mode comprises one-to-one connection, many-to-one connection and one-to-many connection; for any road section, determining the lane number belonging to the road section by figures, and sequentially increasing the number by taking the rightmost lane in the driving direction of the vehicle as an initial number 0; in the connection relation between the lanes, a starting lane and a ending lane are respectively represented by fromLane and toLane, and are described by lane IDs;
s143, increasing field description information of connection relations among lanes, including: the topological shape, the maximum speed allowed to pass, the visibility, and whether the vehicle needs to stop at the intersection to wait for the basic attribute to pass.
Preferably, the step S3 specifically includes: and S2, configuring the SUMO road network subfile obtained in the step S2 into a configuration file of a SUMO road network converter NETCONVERT, operating a custom program to perform data conversion, positioning to the position of the current SUMO road network subfile in a cmd command line window mode, and calling a command: netconvert-c netccfg, outputting the SUMO road network file available for the SUMO traffic simulation platform, and further editing and processing the SUMO road network file in an SUMO road network editor NETEDIT and a text editor, thereby constructing an SUMO traffic simulation scene.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
the SUMO traffic simulation scene accurate construction method is based on the existing actual measurement road network data and lane road network model, and based on the data conversion, self-organization and reprocessing of the basic object element information forming the SUMO road network subfile, and the related conversion tools, the effective and available SUMO road network file is created and generated for SUMO simulation, so that the accurate construction and control of the simulation scene are realized. The method solves the problems of road network topological structure errors, low execution efficiency and the like caused by complex data formats and complex workload after conversion processing.
Meanwhile, the invention also has the following advantages: various personalized scenes can be customized according to needs, and the data organization form is flexible; the data organization mode is simple and clear, popular and easy to understand, and the processing efficiency is high; the data is rich based on the measured data and the road network and demand model at the lane level; the scene established is more real and accurate and accords with the reality by processing based on the actual data; and the method can be popularized to large-scale complex traffic scenes through unified data format specifications.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a SUMO basic road network model diagram in embodiment 1.
Fig. 3 is a schematic diagram of the internal connection relationship at the nodes of the network in embodiment 1.
Fig. 4 is a SUMO traffic simulation scene diagram constructed in embodiment 1.
Fig. 5 is an effect diagram of the SUMO traffic scene constructed in embodiment 2.
Fig. 6 is an intersection simulation scene effect diagram obtained after data conversion in embodiment 3.
Fig. 7 is an effect diagram after the path file configuration is loaded into the simulation configuration file in embodiment 3.
Fig. 8 is a SUMO traffic scene effect diagram 1 constructed in embodiment 3.
Fig. 9 is a SUMO traffic scene effect diagram 2 constructed in embodiment 3.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the patent;
for the purpose of better illustrating the embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product;
it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The technical solution of the present invention is further described below with reference to the accompanying drawings and examples.
Example 1
A SUMO traffic simulation scene accurate construction method based on data conversion is disclosed, as shown in FIG. 1, and comprises the following steps:
s1, converting the SUMO road network data based on the actually measured road network data and a lane-level basic road network, and performing self-organization by using the converted data to generate SUMO road network subfiles; in the SUMO road network, as shown in FIG. 2, edge is used to describe road segments, junction is used to describe road network nodes, and connection is used to describe the connection relationship between road segments and lanes; self-organizing generated SUMO road network subfiles comprise red.
The SUMO road network data conversion based on the actually measured road network data and the lane-level basic road network in the step specifically comprises the following steps: extracting key field information of the actually measured road network data and carrying out layered processing on the actually measured road network data according to a data organization structure of a node file, an edge file, a road section Type file and a Connection relation Connection file in a lane-level basic road network; and respectively traversing all field information of each layer of data, corresponding to basic sub-elements forming the SUMO road network and performing corresponding data conversion, thereby converting the actually measured road network data into specific field description information of the SUMO road network sub-files.
The specific steps of the node data conversion, the link type data conversion, and the connection relationship data conversion will be described below, respectively.
The concrete steps of carrying out the node data conversion of the SUMO road network comprise:
s111, traversing all field information of the road network node layer of the actually measured road network data based on the basic composition elements of the road network node files, extracting road network node ID fields and arranging the road network node ID fields in order;
s112, using the road network node ID as first data of each piece of node information in the road network node file, namely determining ID information of the road network node;
s113, converting the actual coordinate position of the road network node in the road network data into x, y and z coordinates in a road network node file, wherein the conversion is performed by taking a WGS84 coordinate system as a basic reference; determining a road network display scale and coordinate field description information of road network nodes;
s114, determining the specific type of the road network node according to the road network node type field in the actually measured road network data and the type information part of the corresponding road network node file, and adding each road network node type and the signaling control type data to the road network node field description information of each row corresponding to the road network node file; the road network node type field in the actually measured road network data comprises whether the intersection represented by the current node is a signal control intersection or not; the specific types of the road network nodes comprise priority, traffic light, right _ before _ left and the like; each road network node type and the signal control type comprise static/dynamic, corresponding to static, actual and the like
S115, converting the topological shape attributes of the road network Nodes in the actually measured road network data into breakpoints of different coordinate positions in the road network node files so as to construct the geometric shapes of the road network Nodes, and describing by using shape attributes;
s116, converting the real traffic right information of the road network Nodes into a rightOfway attribute (such as priority traffic, parking waiting traffic and the like) in the road network node files, wherein the rightOfway attribute is described by default or edge priority information;
and S117, supplementing description data of optional turning radius, merging and activating of connection-blocking-heuristic of the road network nodes, converting the description data into road network node description fields available for the SUMO traffic simulation platform, and supplementing the road network node description fields into field description information of the road network nodes. The default of the selectable turning radius of the road network node is 1.5 meters, whether the nodes are combined or not is joint control, and whether the 'connection-blocking-heuristic' is activated or not is true.
The concrete steps of carrying out the road section data conversion of the SUMO road network comprise:
s121, traversing all field information of a road section layer of the actually-measured road network data on the basis of basic composition elements of the edge Edges file, extracting road section ID fields and arranging the road section ID fields in order, and taking the road section ID as first data of each piece of edge information in the edge Edges file, namely determining ID information of the road section of the road network;
s122, determining the road sections between the adjacent nodes and the direction of the road sections according to different coordinate positions and directions of the nodes in the actually-measured road network data based on an organization mode of forming a road section between the two adjacent nodes, describing the starting node of the road section as from and the ending node as to, and respectively taking the ID of the starting node and the ID of the ending node as field description information of the attribute of the starting position and the attribute of the ending position of the road section so as to determine the road sections and the direction thereof;
s123, converting the actual information into a rightOfway attribute in the edge Edges file according to the actual information of the road section right of passage and the priority, and describing the priority by using digital information with different sizes;
s124, extracting main fields based on the actual number of lanes of the road section and topological parameter information of the actual number of lanes of the road section, converting the main fields into attributes of numlanes and lengths in edge Edges files, and converting the main fields into speed attributes according to speed limit information allowed by the lanes; the part determines basic lane information forming the road section and converts the basic lane information into lane description in an edge Edges file;
s125, converting the shape attribute of the road section in the actually measured road network data into the breakpoint of different coordinate positions in the edge files to construct the geometric shape of the road section, and describing the geometric shape by using shape attribute;
s126, converting the types of vehicles allowed to pass through the road sections in the actually measured road network data into vehicle type information of allowed vehicles and forbidden vehicles in the edge Edges file;
and S127, converting description data about the type of road network sections, the lane propagation rule, the name and width of lanes, the stop line offset of the lanes and the width of sidewalks into section field description information available for the SUMO traffic simulation platform, and supplementing the section field description information into the edge files. The lane propagation rule comprises middle or right, the lane name and width are used for visualization, and the stop line offset and the sidewalk width of the lane are defaulted to-1, namely are not added.
The concrete steps of converting the road section type data of the SUMO road network comprise:
s131, based on basic composition elements of the road section Type file, independently segmenting road section Type layer data from the road section layer data of the actually-measured road network data, and traversing all field information of the road section Type layer; the field description information of each road segment includes: the number of lanes numlanes, the maximum speed allowed for a road section, the priority of an optional road section, and vehicle type information of allowed allow and forbidden disable of the optional road section;
s132, the field description information of the road section type comprises the following steps: ID, priority, number of lanes numLanes, vehicle speed, allowable vehicle category and forbidden vehicle category.
The concrete steps of carrying out data conversion of connection relations between road sections and lanes of the SUMO road network comprise:
s141, traversing all field information of a Connection relation layer between road sections in the actually measured road network data on the basis of basic composition elements of a Connection relation Connection file, extracting field information of adjacent road sections, determining a specific Connection relation between the road sections on the basis of the directionality of the road sections and an intersection turning rule, describing an initial road section by using from, and taking the ID of the initial road section as information of from attribute; describing a terminating link by to, and using the terminating link ID as information of a to attribute;
s142, dividing the connection among different road sections into the connection among the lanes by taking the lanes as a reference unit, wherein the connection mode comprises one-to-one connection, many-to-one connection and one-to-many connection; for any road section, determining the lane number belonging to the road section by figures, and sequentially increasing the number by taking the rightmost lane in the driving direction of the vehicle as an initial number 0; in the connection relation between the lanes, a starting lane and a ending lane are respectively represented by fromLane and toLane, and are described by lane IDs;
s143, increasing field description information of connection relations among lanes, including: the topological shape, the maximum speed allowed to pass, the visibility, and whether the vehicle needs to stop at the intersection to wait for the basic attribute to pass. Wherein fig. 3 is a schematic diagram of internal connection relationship at a node.
S2, reprocessing the conversion data in the SUMO road network subfile and rearranging field information in a text editor;
and S3, configuring the SUMO road network subfiles obtained in the step S2 into a configuration file of a SUMO road network converter NETCONVERT, operating a custom program to perform data conversion, namely declaring netconvertCONfiguration. xsd information in the configuration file in an XML format, using four files of red, ml, ed, XML, typ, XML as input, wherein each row of information comprises a file type and an attribute value (file name), and defining an intermediate data processing process adopting road section shape expandability, extended-edge-shape and vehicle speed-in-kmh in units of km/h. And defining to write a license write-license and prefix information plane-output-prefix in an output file, and using the SUMO road network file which needs to be generated as an output, wherein the information comprises a file type and an attribute value (file name). After the configuration of the description information is completed, positioning to the position of the current SUMO road network subfile in a cmd command line window mode, and calling a command: netconvert-c netccfg, outputting the SUMO road network file available to the SUMO traffic simulation platform, and further editing and processing the SUMO road network file in a SUMO road network editor NETEDIT and a Notepad + + text editor, thereby constructing a SUMO traffic simulation scene, wherein the effect is shown in FIG. 4.
Example 2
In this embodiment 2, based on the accurate construction method of the SUMO traffic simulation scene provided in embodiment 1, the basic simulation scene is accurately constructed and applied at the two intersections of the city of anhui.
1. Based on the actually measured road network data and the lane-level basic road network, performing corresponding data conversion according to the method of the embodiment 1, and constructing SUMO road network subfiles to obtain the intersection basic road network of Xuancheng H84 (peak-off road and shape element road) and H91 (peak-off road and Lingxi road);
2. the method comprises the steps that actual measurement checkpoint traffic data and vehicle path set data are used as the basis, and current traffic flow data of 30 days in 8 months in 2018 are imported and loaded into a created intersection basic road network;
3. and loading a complete dynamic signal control scheme of two intersections in 2018, 8, month and 30 days on the basis of the actually measured bayonet dynamic signal control data and the additional facility data. The specific scene effect is shown in FIG. 5
Example 3
In this embodiment 3, based on the accurate construction method of the SUMO traffic simulation scene provided in embodiment 1, basic simulation scene accurate construction and application are performed on a university city officer continent tunnel intersection.
1. And building a foundation road network model of the official continent tunnel intersection based on the actually measured road network data and the lane level foundation road network.
Basic topological structure of road network: the middle east road direction has an inlet with three lanes and an outlet with five lanes; the middle west road direction has three entrances and three exits, and a right-turn lane; two lanes are imported in the direction of the central north avenue, one lane special for right-turn is imported, and two lanes are exported; the official continent tunnel is two one-way dual lanes. The simulation scene effect of the official continent tunnel intersection obtained after data conversion is shown in fig. 6
2. And on the basis of the vehicle passing data actually measured by the bayonet and the vehicle route set data, completing data conversion of the route set data and the OD demand matrix information, and generating a demand file, namely a vehicle trip tps file, by using a demand tool OD2 TRIPS.
3. Based on the demand file (vehicle trip tris file), the vehicle trip file is converted into a specific path (edge sequence) file using the demand distribution tool durauter based on dijkstra shortest path algorithm. And loading the path file containing the specific edge sequence information into a simulation configuration file (. sumocfg). The specific loading effect is shown in fig. 7.
4. Based on actual test interface information control data, additional facility information and a TracI interface, control operation logic of simulation of the university urban continent tunnel intersection is newly added in a TracI control script, switching of a phase scheme and different types of judgment skip statements are set, and accurate control under a currently constructed simulation scene is achieved. And calling a start command to establish communication and start simulation operation. The specific scene effect is shown in fig. 8 and 9.
The terms describing positional relationships in the drawings are for illustrative purposes only and are not to be construed as limiting the patent;
it should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.
Claims (8)
1. A SUMO traffic simulation scene accurate construction method based on data conversion is characterized by comprising the following steps:
s1, converting the SUMO road network data based on the actually measured road network data and a lane-level basic road network, and performing self-organization by using the converted data to generate SUMO road network subfiles;
s2, reprocessing the conversion data in the SUMO road network subfile and rearranging field information in a text editor;
and S3, configuring the SUMO road network subfiles obtained in the step S2 into a configuration file of a SUMO road network converter NETCONVERT, converting the SUMO road network subfiles into a final SUMO road network file, and loading the SUMO road network file for a SUMO traffic simulation platform so as to enable the actually measured road network data to be expressed according to the SUMO road network and further construct a SUMO traffic simulation scene.
2. The SUMO traffic simulation scene accurate construction method based on data conversion according to claim 1, characterized in that in the SUMO road network, edge is adopted to describe road segments, junction is adopted to describe road network nodes, and connection is adopted to describe connection relations between road segments and between lanes.
3. The method for accurately constructing a SUMO traffic simulation scene based on data conversion according to claim 1, wherein the step S1 of converting SUMO road network data based on the actually measured road network data and the lane-level basic road network specifically comprises: extracting key field information of the actually measured road network data and carrying out layered processing on the actually measured road network data according to a data organization structure of a node file, an edge file, a road section Type file and a Connection relation Connection file in a lane-level basic road network; and respectively traversing all field information of each layer of data, corresponding to basic sub-elements forming the SUMO road network and performing corresponding data conversion, thereby converting the actually measured road network data into specific field description information of the SUMO road network sub-files.
4. The method for accurately constructing a SUMO traffic simulation scene based on data conversion according to claim 2, wherein in said step S1, the concrete step of performing node data conversion of the SUMO road network includes:
s111, traversing all field information of the road network node layer of the actually measured road network data based on the basic composition elements of the road network node files, extracting road network node ID fields and arranging the road network node ID fields in order;
s112, using the road network node ID as first data of each piece of node information in the road network node file, namely determining ID information of the road network node;
s113, converting the actual coordinate position of the road network node in the road network data into x, y and z coordinates in a road network node file, wherein the conversion is performed by taking a WGS84 coordinate system as a basic reference; determining a road network display scale and coordinate field description information of road network nodes;
s114, determining the specific type of the road network node according to the road network node type field in the actually measured road network data and the type information part of the corresponding road network node file, and adding each road network node type and the signaling control type data to the road network node field description information of each row corresponding to the road network node file;
s115, converting the topological shape attributes of the road network Nodes in the actually measured road network data into breakpoints of different coordinate positions in the road network node files so as to construct the geometric shapes of the road network Nodes, and describing by using shape attributes;
s116, converting the real right-of-way information of the road network node into a rightOfway attribute in a road network node file, wherein the rightOfway attribute is described by default or edgePriority information;
and S117, supplementing description data of optional turning radius, merging and activating of connection-blocking-heuristic of the road network nodes, converting the description data into road network node description fields available for the SUMO traffic simulation platform, and supplementing the road network node description fields into field description information of the road network nodes.
5. The method for accurately constructing a SUMO traffic simulation scene based on data conversion according to claim 2, wherein in said step S1, the concrete step of performing the road segment data conversion of the SUMO road network includes:
s121, traversing all field information of a road section layer of the actually-measured road network data on the basis of basic composition elements of the edge Edges file, extracting road section ID fields and arranging the road section ID fields in order, and taking the road section ID as first data of each piece of edge information in the edge Edges file, namely determining ID information of the road section of the road network;
s122, determining the road sections between the adjacent nodes and the direction of the road sections according to different coordinate positions and directions of the nodes in the actually-measured road network data based on an organization mode of forming a road section between the two adjacent nodes, describing the starting node of the road section as from and the ending node as to, and respectively taking the ID of the starting node and the ID of the ending node as field description information of the attribute of the starting position and the attribute of the ending position of the road section so as to determine the road sections and the direction thereof;
s123, converting the actual information into a rightOfway attribute in the edge Edges file according to the actual information of the road section right of passage and the priority, and describing the priority by using digital information with different sizes;
s124, extracting main fields based on the actual number of lanes of the road section and topological parameter information of the actual number of lanes of the road section, converting the main fields into attributes of numlanes and lengths in edge Edges files, and converting the main fields into speed attributes according to speed limit information allowed by the lanes; the part determines basic lane information forming the road section and converts the basic lane information into lane description in an edge Edges file;
s125, converting the shape attribute of the road section in the actually measured road network data into the breakpoint of different coordinate positions in the edge files to construct the geometric shape of the road section, and describing the geometric shape by using shape attribute;
s126, converting the types of vehicles allowed to pass through the road sections in the actually measured road network data into vehicle type information of allowed vehicles and forbidden vehicles in the edge Edges file;
and S127, converting description data about the type of road network sections, the lane propagation rule, the name and width of lanes, the stop line offset of the lanes and the width of sidewalks into section field description information available for the SUMO traffic simulation platform, and supplementing the section field description information into the edge files.
6. The method for accurately constructing a SUMO traffic simulation scene based on data conversion according to claim 5, wherein in said step S1, the concrete step of performing the link type data conversion of the SUMO road network comprises:
s131, based on basic composition elements of the road section Type file, independently segmenting road section Type layer data from the road section layer data of the actually-measured road network data, and traversing all field information of the road section Type layer; the field description information of each road segment includes: the number of lanes numlanes, the maximum speed allowed for a road section, the priority of an optional road section, and vehicle type information of allowed allow and forbidden disable of the optional road section;
s132, the field description information of the road section type comprises the following steps: ID, priority, number of lanes numLanes, vehicle speed, allowable vehicle category and forbidden vehicle category.
7. The method for accurately constructing a SUMO traffic simulation scene based on data transformation according to claim 2, wherein in said step S1, the concrete step of performing data transformation of connection relationship between road segments and lanes of the SUMO road network comprises:
s141, traversing all field information of a Connection relation layer between road sections in the actually measured road network data on the basis of basic composition elements of a Connection relation Connection file, extracting field information of adjacent road sections, determining a specific Connection relation between the road sections on the basis of the directionality of the road sections and an intersection turning rule, describing an initial road section by using from, and taking the ID of the initial road section as information of from attribute; describing a terminating link by to, and using the terminating link ID as information of a to attribute;
s142, dividing the connection among different road sections into the connection among the lanes by taking the lanes as a reference unit, wherein the connection mode comprises one-to-one connection, many-to-one connection and one-to-many connection; for any road section, determining the lane number belonging to the road section by figures, and sequentially increasing the number by taking the rightmost lane in the driving direction of the vehicle as an initial number 0; in the connection relation between the lanes, a starting lane and a ending lane are respectively represented by fromLane and toLane, and are described by lane IDs;
s143, increasing field description information of connection relations among lanes, including: the topological shape, the maximum speed allowed to pass, the visibility, and whether the vehicle needs to stop at the intersection to wait for the basic attribute to pass.
8. The method for accurately constructing a SUMO traffic simulation scene based on data conversion according to claim 1, wherein said step S3 specifically comprises: and S2, configuring the SUMO road network subfile obtained in the step S2 into a configuration file of a SUMO road network converter NETCONVERT, operating a custom program to perform data conversion, positioning to the position of the current SUMO road network subfile in a cmd command line window mode, and calling a command: netconvert-c netccfg, outputting the SUMO road network file available for the SUMO traffic simulation platform, and further editing and processing the SUMO road network file in an SUMO road network editor NETEDIT and a text editor, thereby constructing an SUMO traffic simulation scene.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911143655.3A CN111027160B (en) | 2019-11-20 | 2019-11-20 | SUMO traffic simulation scene accurate construction method based on data conversion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911143655.3A CN111027160B (en) | 2019-11-20 | 2019-11-20 | SUMO traffic simulation scene accurate construction method based on data conversion |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111027160A true CN111027160A (en) | 2020-04-17 |
CN111027160B CN111027160B (en) | 2024-05-14 |
Family
ID=70205971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911143655.3A Active CN111027160B (en) | 2019-11-20 | 2019-11-20 | SUMO traffic simulation scene accurate construction method based on data conversion |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111027160B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111723458A (en) * | 2020-05-09 | 2020-09-29 | 同济大学 | Automatic generation method for simulation test scene of automatic driving decision planning system |
CN113111514A (en) * | 2021-04-12 | 2021-07-13 | 清华大学深圳国际研究生院 | Vehicle microscopic driving scene simulation method and computer readable storage medium |
CN113409573A (en) * | 2021-06-16 | 2021-09-17 | 福建师范大学 | Sumo urban traffic simulation and traffic flow control method based on matlab |
CN114627650A (en) * | 2022-05-11 | 2022-06-14 | 深圳市城市交通规划设计研究中心股份有限公司 | Urban public transport priority simulation deduction system, method, electronic equipment and storage medium |
CN115310278A (en) * | 2022-07-28 | 2022-11-08 | 东南大学 | Simulation method and verification method for large-scale road network online micro traffic |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109711026A (en) * | 2018-12-20 | 2019-05-03 | 中山大学 | A kind of accurate traffic simulation scenario building method of Paramics based on bayonet data |
CN109765803A (en) * | 2019-01-24 | 2019-05-17 | 同济大学 | A kind of the simulation hardware test macro and method of the synchronic sky of the more ICU of autonomous driving vehicle |
CN110189517A (en) * | 2019-05-14 | 2019-08-30 | 浙江大学 | A kind of Simulation Experimental Platform towards car networking secret protection research |
-
2019
- 2019-11-20 CN CN201911143655.3A patent/CN111027160B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109711026A (en) * | 2018-12-20 | 2019-05-03 | 中山大学 | A kind of accurate traffic simulation scenario building method of Paramics based on bayonet data |
CN109765803A (en) * | 2019-01-24 | 2019-05-17 | 同济大学 | A kind of the simulation hardware test macro and method of the synchronic sky of the more ICU of autonomous driving vehicle |
CN110189517A (en) * | 2019-05-14 | 2019-08-30 | 浙江大学 | A kind of Simulation Experimental Platform towards car networking secret protection research |
Non-Patent Citations (2)
Title |
---|
刘占文;王润民;赵祥模;: "基于车联网的交叉口行车事故预警方案及仿真", 计算机仿真, no. 06, pages 132 - 137 * |
王贤隆;柳有权;李浩宇;董飞;: "大型三维交通场景道路的自动构建", 计算机仿真, no. 10, pages 124 - 128 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111723458A (en) * | 2020-05-09 | 2020-09-29 | 同济大学 | Automatic generation method for simulation test scene of automatic driving decision planning system |
CN113111514A (en) * | 2021-04-12 | 2021-07-13 | 清华大学深圳国际研究生院 | Vehicle microscopic driving scene simulation method and computer readable storage medium |
CN113111514B (en) * | 2021-04-12 | 2022-05-27 | 清华大学深圳国际研究生院 | Vehicle microscopic driving scene simulation method and computer readable storage medium |
CN113409573A (en) * | 2021-06-16 | 2021-09-17 | 福建师范大学 | Sumo urban traffic simulation and traffic flow control method based on matlab |
CN114627650A (en) * | 2022-05-11 | 2022-06-14 | 深圳市城市交通规划设计研究中心股份有限公司 | Urban public transport priority simulation deduction system, method, electronic equipment and storage medium |
CN114627650B (en) * | 2022-05-11 | 2022-08-23 | 深圳市城市交通规划设计研究中心股份有限公司 | Urban public transport priority simulation deduction system, method, electronic equipment and storage medium |
CN115310278A (en) * | 2022-07-28 | 2022-11-08 | 东南大学 | Simulation method and verification method for large-scale road network online micro traffic |
CN115310278B (en) * | 2022-07-28 | 2024-06-11 | 东南大学 | Simulation method and verification method for large-scale road network online microscopic traffic |
Also Published As
Publication number | Publication date |
---|---|
CN111027160B (en) | 2024-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111027160B (en) | SUMO traffic simulation scene accurate construction method based on data conversion | |
US8484002B2 (en) | Traffic data management and simulation system | |
CN101359434A (en) | Process for constructing road net model for traffic navigation system and traffic emulation system | |
CN101608926B (en) | Multilevel multi-modal routing navigating method | |
CN101639871B (en) | Vehicle-borne dynamic traffic information induction system analog design method facing behavior research | |
CN113312737B (en) | Multilayer multi-mode traffic simulation road network construction method | |
CN107038259A (en) | A kind of operational method and its system for constructing traffic network data | |
Maciejewski | A comparison of microscopic traffic flow simulation systems for an urban area | |
CN105841709B (en) | A kind of running car paths planning method | |
CN105825677B (en) | A kind of urban traffic blocking prediction technique based on improvement BML models | |
CN113378413B (en) | Simulation road network platform building system, method, equipment and storage medium based on Vissim | |
Lee | Transportation network models and algorithms considering directional delay and prohibition for intersection movement | |
CN106709126A (en) | Road network construction model based on urban roads | |
Monga et al. | Sumo (simulation of urban mobility) and osm (open street map) implementation | |
Park et al. | Development and evaluation of a calibration and validation procedure for microscopic simulation models. | |
CN113409573B (en) | Sumo urban traffic simulation and traffic flow control method based on matlab | |
CN111157010B (en) | Map generation method for unmanned driving | |
Ziemke et al. | Automated generation of traffic signals and lanes for matsim based on openstreetmap | |
Gupta et al. | Simulation of pedestrian at intersection in urban congested area | |
JP3462589B2 (en) | Simulation equipment | |
CN112765783A (en) | Road processing method and device for simulation test | |
Han et al. | Simulation and Test of Vehicle Global Routing Planning Algorithm Based on Autonomous Driving Simulator | |
Langdon | Young Consultant's Award paper: Simulation of Houston light rail transit predictive priority operation | |
Daum | An HCFG Model of a traffic intersection specified using HiMASS-j | |
Zhi-Ren et al. | A conceptual multi-level data model for road networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |