CN116738635A - Method for analyzing OpenDrive data in UE - Google Patents
Method for analyzing OpenDrive data in UE Download PDFInfo
- Publication number
- CN116738635A CN116738635A CN202310704461.6A CN202310704461A CN116738635A CN 116738635 A CN116738635 A CN 116738635A CN 202310704461 A CN202310704461 A CN 202310704461A CN 116738635 A CN116738635 A CN 116738635A
- Authority
- CN
- China
- Prior art keywords
- data
- opendrive
- model
- lane
- road
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000010276 construction Methods 0.000 claims abstract description 12
- 238000004458 analytical method Methods 0.000 claims abstract description 8
- 239000013598 vector Substances 0.000 claims abstract description 5
- 239000003086 colorant Substances 0.000 claims abstract description 4
- 238000013507 mapping Methods 0.000 claims abstract description 4
- 239000000463 material Substances 0.000 claims abstract description 4
- 230000001174 ascending effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 4
- 238000007405 data analysis Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/18—Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- Traffic Control Systems (AREA)
Abstract
The invention discloses a method for analyzing OpenDrive data in UE, which relates to the technical field of data processing and comprises the following steps: analyzing OpenDrive data; finding a data segment of an Opendrive defined road line; after the Opendrive data are analyzed, a road network model is built by combining a programming model in the UE; the road network model construction method comprises the following specific steps: obtaining all vertexes of a lane, combining the vertexes into a plurality of triangular surfaces, and calculating tangential lines, vertex colors, normal vectors and UV mapping coordinates corresponding to the triangular surfaces; constructing the sorted data into a dynamic model by using a CreateMeshSection function; according to elements of lanes, intersections and road marks, calculating the width of a lane and the ID of a lane line, and carrying out lane division and map material construction on a dynamic model; and (5) generating a model. According to the invention, a programming model can be built in the UE according to the Opendrive data characteristics by relying on the Opendrive data, so that the light-weight analysis of the Opendrive data is realized, and the real-time construction of a three-dimensional scene is completed.
Description
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a method for analyzing OpenDrive data in UE.
Background
OpenDrive is currently mainly used to describe static traffic networks (road networks) required for driving simulation applications. Such as the contents of roads, lanes, intersections, etc. Currently, openStreetMap, SHP is a common road network data type. The data has light analysis data and a solution for constructing a three-dimensional scene according to road network data in real time. The OpenDrive data lacks a technical method for analyzing the OpenDrive data in a lightweight manner in the market due to the fact that the characteristics described in the data are too many, multiple coordinate systems are used, road identifiers are too many and the like. For this purpose, we propose a method of parsing OpenDrive data in a UE.
Disclosure of Invention
The invention aims to solve the defect that the prior art lacks in light-weight analysis of OpenDrive data, and provides a method for analyzing the OpenDrive data in UE. According to the method, a programming model can be built in the UE according to the Opendrive data characteristics, the Opendrive data is relied on in the UE, light-weight analysis of the Opendrive data is achieved, and real-time construction of a three-dimensional scene is completed.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the method for analyzing OpenDrive data in the UE comprises the following steps:
step 1, analyzing Opendrive data;
step 2, finding a data segment of an Opendrive definition road line;
step 3, after the Opendrive data are analyzed, constructing a road network model by combining a programming model in the UE;
the specific steps of road network model construction by the programming model in the UE are as follows:
step 31, obtaining all vertexes of a lane, combining the vertexes into a plurality of triangular surfaces, and calculating corresponding tangent lines, vertex colors, normal vectors and UV mapping coordinates;
step 32, constructing the sorted data into a dynamic model by using a CreateMeshSection function;
step 33, calculating the width of the vehicle and the ID of the lane line according to the elements of the lane, the intersection and the road mark, and carrying out lane division and map material construction on a dynamic model;
and step 34, generating a model.
Further, in step 1, the analysis OpenDrive data includes at least lanes, intersections, and road signs.
Further, in step 2, the data segment is formed into a line or arc in the x/y plane by a series of basic geometric nodes arranged in ascending order.
Further, the basic geometric figure node comprises five elements of an S coordinate, an X coordinate, a Y coordinate, a starting azimuth and an element reference line length of the starting position.
Further, the UE is UE5, and c++ and Python are used to analyze OpenDrive data.
The method for analyzing the OpenDrive data in the UE has the beneficial effects that: according to the method, data analysis and reconstruction can be carried out on lanes, intersections and road marks of the Opendrive data in the UE according to the characteristics of the Opendrive data, a programming model is built in the UE by means of the Opendrive data, light analysis of the Opendrive data is achieved, and real-time construction of a three-dimensional scene is completed.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
FIG. 1 is a schematic diagram of a data structure related to OpenDrive;
FIG. 2 is a schematic diagram showing the structure of a way in data concerning OpenDrive;
FIG. 3 is a schematic diagram of the basic geometry nodes in the data about OpenDrive;
FIG. 4 is a schematic diagram of the structure of lane markers in OpenDrive-related data;
fig. 5 is a flowchart of a method for resolving OpenDrive data in a UE in an embodiment of the present invention;
FIG. 6 is a flow chart of road network model construction in combination with a programming model in a UE in an embodiment of the invention;
FIG. 7 is a schematic representation of a model generated by an embodiment of the present invention;
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention; it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments, and that all other embodiments obtained by persons of ordinary skill in the art without making creative efforts based on the embodiments in the present invention are within the protection scope of the present invention.
The structural features of the present invention will now be described in detail with reference to the accompanying drawings 1-7.
Referring to fig. 5, a method for resolving OpenDrive data in UE, combining UE with UE5, using c++ and Python to resolve OpenDrive data, includes the following steps:
s1, analyzing Opendrive data; the Opendrive data at least comprises lanes, intersections and road signs.
Referring to fig. 1-4, as can be seen from the data structure of OpenDrive, openDrive is also an XML file, which is a vector map, and contains more information and is more complex in structure than OSM map. Referring to fig. 1-4, it can be seen that in OpenDrive data, all roads are defined as basic geometric figures, including straight lines, arcs, etc.
S2, finding a data segment of an Opendrive definition road line; the data segments of the track line are arranged in ascending order in the X/Y plane to form a straight line or an arc by a series of basic geometric figure nodes, wherein the basic geometric figure nodes comprise five elements of S coordinates, X coordinates, Y coordinates, starting azimuth and element reference line length of the starting position.
S3, after the Opendrive data are analyzed, constructing a road network model by combining a programming model in the UE;
referring to fig. 6-7, the specific steps for constructing the road network model are as follows:
s31, obtaining all vertexes of a lane, combining the vertexes into a plurality of triangular surfaces, and calculating tangents, vertex colors, normal vectors and UV mapping coordinates corresponding to the triangular surfaces;
s32, constructing the sorted data into a dynamic model by using a CreateMeshSection function;
s33, calculating the width of the lane and the ID of the lane according to the basic geometric figure, the elevation contour line and the elements of the road, and carrying out lane division and map material construction on a dynamic model;
s34, the generated model.
According to the method for analyzing the OpenDrive data in the UE, the data analysis and reconstruction can be carried out on the lanes, the intersections and the road marks according to the characteristics of the OpenDrive data in the UE, the programming model is built in the UE by means of the OpenDrive data, the light analysis of the OpenDrive data is realized, and the real-time construction of the three-dimensional scene is completed.
The foregoing description is only a preferred embodiment of the present invention, and the present invention is not limited thereto, but it is to be understood that modifications and equivalents of some of the technical features described in the foregoing embodiments may be made by those skilled in the art, although the present invention has been described in detail with reference to the foregoing embodiments. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (5)
1. The method for analyzing the OpenDrive data in the UE is characterized by comprising the following steps:
step 1, analyzing Opendrive data;
step 2, finding a data segment of an Opendrive definition road line;
step 3, after the Opendrive data are analyzed, constructing a road network model by combining a programming model in the UE;
the specific steps of road network model construction by combining the programming model in the UE are as follows:
step 31, obtaining all vertexes of a lane, combining the vertexes into a plurality of triangular surfaces, and calculating tangents, vertex colors, normal vectors and UV mapping coordinates corresponding to the triangular surfaces;
step 32, constructing the sorted data into a dynamic model by using a CreateMeshSection function;
step 33, calculating the width of the vehicle and the ID of the lane line according to the elements of the lane, the intersection and the road mark, and carrying out lane division and map material construction on a dynamic model;
and step 34, generating a model.
2. The method according to claim 1, wherein the analysis of OpenDrive data in step 1 includes at least lanes, intersections, and road signs.
3. The method of claim 1, wherein the data segment is formed into a line or arc in the x/y plane by a series of basic geometric nodes arranged in ascending order in step 2.
4. A method of parsing OpenDrive data in a UE according to claim 3, wherein the basic geometry node comprises five elements of S-coordinate, X-coordinate, Y-coordinate, start azimuth, and element reference line length of a start position.
5. The method for parsing OpenDrive data in a UE according to any of claims 1-4, wherein the UE is UE5, and c++ and Python are used to parse OpenDrive data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310704461.6A CN116738635A (en) | 2023-06-14 | 2023-06-14 | Method for analyzing OpenDrive data in UE |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310704461.6A CN116738635A (en) | 2023-06-14 | 2023-06-14 | Method for analyzing OpenDrive data in UE |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116738635A true CN116738635A (en) | 2023-09-12 |
Family
ID=87909273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310704461.6A Pending CN116738635A (en) | 2023-06-14 | 2023-06-14 | Method for analyzing OpenDrive data in UE |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116738635A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110807219A (en) * | 2019-10-16 | 2020-02-18 | 湖北亿咖通科技有限公司 | Three-dimensional simulation modeling method, device, terminal and storage medium for road network |
WO2021073455A1 (en) * | 2019-10-18 | 2021-04-22 | 上海商汤临港智能科技有限公司 | Path generation method and apparatus, and electronic device and storage medium |
CN114037798A (en) * | 2021-10-29 | 2022-02-11 | 北京经纬恒润科技股份有限公司 | Method and device for generating three-dimensional intersection model |
CN115391470A (en) * | 2022-07-14 | 2022-11-25 | 武汉光庭信息技术股份有限公司 | Road map construction method and system and turnout base map construction system |
CN116246031A (en) * | 2022-12-29 | 2023-06-09 | 上海中海庭数智技术有限公司 | Simulation three-dimensional scene construction method, system, electronic equipment and storage medium |
-
2023
- 2023-06-14 CN CN202310704461.6A patent/CN116738635A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110807219A (en) * | 2019-10-16 | 2020-02-18 | 湖北亿咖通科技有限公司 | Three-dimensional simulation modeling method, device, terminal and storage medium for road network |
WO2021073455A1 (en) * | 2019-10-18 | 2021-04-22 | 上海商汤临港智能科技有限公司 | Path generation method and apparatus, and electronic device and storage medium |
CN114037798A (en) * | 2021-10-29 | 2022-02-11 | 北京经纬恒润科技股份有限公司 | Method and device for generating three-dimensional intersection model |
CN115391470A (en) * | 2022-07-14 | 2022-11-25 | 武汉光庭信息技术股份有限公司 | Road map construction method and system and turnout base map construction system |
CN116246031A (en) * | 2022-12-29 | 2023-06-09 | 上海中海庭数智技术有限公司 | Simulation three-dimensional scene construction method, system, electronic equipment and storage medium |
Non-Patent Citations (3)
Title |
---|
SUPERWIWI: "Unity解析OpenDRIVE地图数据,并生成路网模型", HTTPS://BLOG.CSDN.NET/QQ_36622009/ARTICLE/DETAILS/107006508, 29 June 2020 (2020-06-29), pages 1 - 29 * |
虹科汽车电子: "【虹科】CARLA仿真软件(一)【软件简介及Windows下的安装】", HTTPS://MP.WEIXIN.QQ.COM/S?SRC=11&TIMESTAMP=1708501858&VER=5093&SIGNATURE=IJPQYSCMUMAI11LNF1VA1KZKVLWGNSI7LOXZWCGNSVLJF24YZ2BELNYLLBGS6C3QGMDUNYQSAFURKIYYY6JP-JBYU0REDYHJVPQMPGNUXB067-UAA0WFGAAB2ECX*T0K&NEW=1, 18 November 2020 (2020-11-18), pages 1 - 8 * |
马志成;王立;李志斌;: "自动驾驶整车在环仿真平台研究及模拟实现", 汽车实用技术, no. 03, 15 February 2020 (2020-02-15) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107025685B (en) | Airborne building roof point cloud modeling method under topology perception | |
CN111797001A (en) | Method for constructing automatic driving simulation test model based on SCANeR | |
CN110021072B (en) | Holographic mapping-oriented multi-platform point cloud intelligent processing method | |
CN112699284B (en) | Bus stop optimization visualization method based on multi-source data | |
CN102436678A (en) | Method and system for generating three-dimensional road model | |
CN103123704A (en) | Logistics distribution method based on rich internet property road network | |
CN111540051B (en) | CIM-based full-element mass data lightweight and topology analysis application platform | |
CN111858810B (en) | Modeling elevation point screening method for road DEM construction | |
CN106409129A (en) | Road condition drawing method and road condition drawing device | |
CN116518960B (en) | Road network updating method, device, electronic equipment and storage medium | |
CN115131669A (en) | Multi-source data collaborative man-vehicle road network integrated construction method | |
CN109855626B (en) | Indoor map road network generation method based on scanning lines | |
Ai et al. | A map generalization model based on algebra mapping transformation | |
CN112732860B (en) | Road extraction method, device, readable storage medium and equipment | |
CN116738635A (en) | Method for analyzing OpenDrive data in UE | |
Bandrova | Designing of symbol system for 3D city maps | |
CN101764940B (en) | Subtitle rendering method based on pixel space mask matrix model | |
CN112465962A (en) | Dynamic updating method for large-scene three-dimensional live-action data | |
CN113284030B (en) | Urban traffic network community division method | |
CN111626971A (en) | Smart city CIM real-time imaging method with image semantic perception | |
CN114463494B (en) | Automatic topographic feature line extraction method | |
CN114419877B (en) | Vehicle track prediction data processing method and device based on road characteristics | |
JP4766992B2 (en) | Road paint recognition system, road paint recognition method, and road paint database creation method | |
CN114119903B (en) | Dynamic traffic simulation method based on live-action three-dimensional city | |
CN115758532A (en) | Grid net type urban road network artificial intelligence automatic generation method |
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 |