Method, device, storage medium and electronic device for generating road network

By obtaining the parameter information of the road network model and using Unreal Engine's spline curve technology to generate the road network, the problem of low efficiency in generating the road network in the existing technology is solved, and the modification cost is reduced when the requirements change, and rapid generation and update are achieved The function of the road network.

CN114022624BActive Publication Date: 2024-11-05SHENZHEN XUMI YUNTU SPACE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111299056.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-04
Publication Date
2024-11-05
Estimated Expiration
2041-11-04

AI Technical Summary

Technical Problem

In the prior art, the efficiency of generating a road network is low, and the modification cost is high when demand changes.

Method used

By obtaining the model parameter information of the road network, using Unreal Engine's spline curve technology to generate the road network, and adsorb the intersection to quickly generate and update the road network.

Benefits of technology

It improves the efficiency of road network generation, reduces modification costs, and can quickly respond to demand changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114022624B_ABST
    Figure CN114022624B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, storage medium and electronic device for generating a road network, and relates to the field of computer technology. The method includes: obtaining model parameter information of multiple road networks, the model parameter information includes: parameter information of the main road model, parameter information of the road head and road end model, parameter information of the surrounding supporting model, and parameter information of the continuous model; using the spline curve technology of the Unreal Engine to generate multiple road networks according to the model parameter information of multiple road networks; if there are intersections among the multiple road networks, adsorption processing is performed on the intersections. The method uses the spline curve technology of the Unreal Engine to quickly generate a road network, which can solve the problem of low efficiency in generating road networks in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for generating a road network. Background Art

[0002] Road network refers to a road system composed of various roads that are interconnected and interwoven into a network distribution within a certain area. In related technologies, the road network is modeled by 3D MAX (i.e., three-dimensional animation rendering and production software based on PC system), and the models of roadside trees, street lights, traffic facilities, traffic stations, etc. need to be placed manually, which is relatively inefficient. In addition, from the perspective of demand changes, the cost of modification is relatively high.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the present disclosure is to provide a method, device, storage medium and electronic device for generating a road network, so as to solve the problem of low efficiency in generating a road network in the related art.

[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0006] According to one aspect of the present disclosure, a method for generating a road network is provided, comprising: obtaining model parameter information of multiple road networks, the model parameter information comprising: parameter information of a main road model, parameter information of a road head and road end model, parameter information of a surrounding supporting model, and parameter information of a continuous model; generating multiple road networks based on the model parameter information of the multiple road networks using the spline curve technology of the Unreal Engine; and if the multiple road networks have intersections, performing adsorption processing on the intersections.

[0007] In one embodiment of the present disclosure, the use of the spline curve technology of the Unreal Engine to generate multiple road networks according to the model parameter information of the multiple road networks includes: for one road network, using the spline curve technology of the Unreal Engine to generate the road network according to the model parameter information of the road network.

[0008] In one embodiment of the present disclosure, the road network is generated according to the model parameter information of the road network using the spline curve technology of the Unreal Engine, including: generating the main roads of the road network according to the parameter information of the main road model of the road network using the spline curve technology of the Unreal Engine; generating the head and end facility models of the main roads of the road network according to the parameter information of the head and end models of the road network; generating the peripheral supporting facilities model of the main roads of the road network according to the parameter information of the peripheral supporting model of the road network; generating the continuous supporting facilities model of the main roads of the road network according to the parameter information of the continuous model of the road network.

[0009] In one embodiment of the present disclosure, the parameter information of the main road model of the road network includes: the vertices included in the main road curve and the width of the main road model; and the use of the spline curve technology of the Unreal Engine to generate the main roads of the road network according to the parameter information of the main road model of the road network includes: using the spline curve component of the Unreal Engine to generate the main road curve of the road network according to the number of vertices, the positions of the vertices, the tangent vectors and normal vectors of the vertices; filling the main road curve of the road network according to the width of the main road model to generate the main roads of the road network.

[0010] In one embodiment of the present disclosure, the parameter information of the road head and end model of the road network includes: the scaling ratio of the road head and end facilities, the offset information of the road head and end facilities, and the spacing information of the road head and end facilities; and, generating the road head and end facility model of the main road of the road network according to the parameter information of the road head and end model of the road network includes: setting the road head and end facility model in a custom road head and end array; adding the road head and end facility model to the main road of the road network according to the scaling ratio of the road head and end facilities, the offset information of the road head and end facilities, and the spacing information of the road head and end facilities.

[0011] In one embodiment of the present disclosure, the parameter information of the surrounding supporting model of the road network includes: the scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities; and, generating the surrounding supporting facilities model of the main roads of the road network according to the parameter information of the surrounding supporting model of the road network includes: setting the surrounding supporting facilities model in a custom surrounding supporting array; adding the surrounding supporting facilities model to the main roads of the road network according to the scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities.

[0012] In one embodiment of the present disclosure, the parameter information of the continuous model of the road network includes: the stretching direction of continuous supporting facilities, the scaling ratio of continuous supporting facilities, and the offset information of continuous supporting facilities; and, generating the continuous supporting facilities model of the main roads of the road network according to the parameter information of the continuous model of the road network includes: adding the continuous supporting facilities model to a custom road array; adding the continuous supporting facilities model to the main roads of the road network and stretching it according to the stretching direction of the continuous supporting facilities, and setting the scaling ratio of the continuous supporting facilities and the offset information of the continuous supporting facilities.

[0013] In one embodiment of the present disclosure, if there is an intersection among the multiple road networks, adsorption processing is performed on the intersection, including: if there is an intersection among the multiple road networks, obtaining multiple intersecting road networks corresponding to the intersection; calculating a new starting point tangent vector and a new starting point normal vector based on the starting point tangent vectors and the starting point normal vectors of the multiple intersecting road networks; and updating the starting point tangent vectors and the starting point normal vectors of the multiple intersecting routes using the new starting point tangent vector and the new starting point normal vector.

[0014] In one embodiment of the present disclosure, the method further includes: if the main road curve of the intersecting road network has an unfilled tail curve, the main road curve of the intersecting road network is moved according to the length of the main road curve of the intersecting road network, the tangent vector of the tail vertex and the normal vector of the tail vertex, or stretched and filled according to the adsorption direction.

[0015] According to another aspect of the present disclosure, there is provided a device for generating a road network, comprising: an acquisition module for acquiring model parameter information of a plurality of road networks, the model parameter information comprising: parameter information of a main road model, parameter information of a road head and road end model, parameter information of a surrounding supporting model, and parameter information of a continuous model; a generation module for generating a plurality of road networks according to the model parameter information of the plurality of road networks using the spline curve technology of the Unreal Engine; and an adsorption module for performing adsorption processing on the intersection if there is an intersection among the plurality of road networks.

[0016] In one embodiment of the present disclosure, the generation module is further used to: for a road network, use the spline curve technology of the Unreal Engine to generate the road network according to the model parameter information of the road network.

[0017] In one embodiment of the present disclosure, the generation module is also used to: generate the main roads of the road network according to the parameter information of the main road model of the road network using the spline curve technology of the Unreal Engine; generate the head and end facility models of the main roads of the road network according to the parameter information of the head and end model of the road network; generate the peripheral supporting facilities model of the main roads of the road network according to the parameter information of the peripheral supporting model of the road network; generate the continuous supporting facilities model of the main roads of the road network according to the parameter information of the continuous model of the road network.

[0018] In one embodiment of the present disclosure, the parameter information of the main road model of the road network includes: the vertices included in the main road curve and the width of the main road model; and the generation module is also used to: use the spline curve component of the Unreal Engine to generate the main road curve of the road network according to the number of vertices, the positions of the vertices, the tangent vectors and normal vectors of the vertices; fill the main road curve of the road network according to the width of the main road model to generate the main roads of the road network.

[0019] In one embodiment of the present disclosure, the parameter information of the road head and end model of the road network includes: the scaling ratio of the road head and end facilities, the offset information of the road head and end facilities, and the spacing information of the road head and end facilities; and the generation module is also used to: set the road head and end facility model in a custom road head and end array; add the road head and end facility model to the main road of the road network according to the scaling ratio of the road head and end facilities, the offset information of the road head and end facilities, and the spacing information of the road head and end facilities.

[0020] In one embodiment of the present disclosure, the parameter information of the surrounding supporting facilities model of the road network includes: the scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities; and the generation module is also used to: set the surrounding supporting facilities model in a customized surrounding supporting array; add the surrounding supporting facilities model on the main road of the road network according to the scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities.

[0021] In one embodiment of the present disclosure, the parameter information of the continuous model of the road network includes: the stretching direction of the continuous supporting facilities, the scaling ratio of the continuous supporting facilities, and the offset information of the continuous supporting facilities; and the generation module is also used to: add the continuous supporting facilities model to the customized road array; add the continuous supporting facilities model to the main road of the road network, stretch it according to the stretching direction of the continuous supporting facilities, and set the scaling ratio of the continuous supporting facilities and the offset information of the continuous supporting facilities.

[0022] In one embodiment of the present disclosure, the adsorption module is also used to: if there is an intersection among the multiple road networks, obtain multiple intersecting road networks corresponding to the intersection; calculate a new starting tangent vector and a new starting normal vector based on the starting tangent vectors and the starting normal vectors of the multiple intersecting road networks; and use the new starting tangent vector and the new starting normal vector to update the starting tangent vector and the starting normal vector of the multiple intersecting routes.

[0023] In one embodiment of the present disclosure, the adsorption module is also used for: if there is an unfilled tail curve in the main road curve of the intersecting road network, the main road curve of the intersecting road network is moved according to the length of the main road curve of the intersecting road network, the tangent vector of the tail vertex and the normal vector of the tail vertex, or stretching and filling is performed according to the adsorption direction.

[0024] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method for generating a road network is implemented.

[0025] According to another aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-mentioned method for generating a road network by executing the executable instructions.

[0026] In the method for generating a road network provided by the embodiment of the present disclosure, model parameter information of each road network is first obtained, and the model parameter information includes model parameter information of main roads, road head and road end facilities, surrounding supporting facilities and continuous facilities. Then, the spline curve technology of the Unreal Engine is used to generate each road network. The intersecting road networks can also be adsorbed to complete the function of the intersection, which solves the problem of low efficiency in generating road networks in related technologies and can quickly generate road networks. When the demand changes, the road network is updated by adjusting the model parameter information, which reduces the modification cost.

[0027] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0029] Figure 1A schematic diagram showing an exemplary system architecture to which the method for generating a road network according to an exemplary embodiment of the present disclosure can be applied;

[0030] Figure 2 A flow chart showing a method for generating a road network according to an embodiment of the present disclosure is shown;

[0031] Figure 3 A schematic diagram showing a process of generating a road network using the spline curve technology of Unreal Engine according to an embodiment of the present disclosure;

[0032] Figure 4 A schematic diagram showing parameter information of a main road curve;

[0033] Figure 5 A schematic diagram showing the main roads of the road network;

[0034] Figure 6 A schematic diagram showing a model of road head and road end facilities of a main road;

[0035] Figure 7 A schematic diagram of a roadside tree facility model for a main road is shown;

[0036] Figure 8 A schematic diagram of a pipeline model of a main road is shown;

[0037] Fig. 9 A schematic diagram showing the case where the main road model is not populated;

[0038] Fig.10 A block diagram showing an apparatus for generating a road network according to an embodiment of the present disclosure; and

[0039] Fig.11 A structural block diagram of a device for generating a road network in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0040] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0041] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0042] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0043] In view of the technical problems existing in the above-mentioned related technologies, the embodiments of the present disclosure provide a method for generating a road network, so as to solve at least one or all of the above-mentioned technical problems.

[0044] Figure 1 A schematic diagram showing an exemplary system architecture to which the method for generating a road network according to an exemplary embodiment of the present disclosure can be applied is shown.

[0045] like Figure 1 As shown, the system architecture may include a server 101, a network 102, and a client 103. The network 102 may provide a medium for a communication link between the client 103 and the server 101. The network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables.

[0046] The server 101 may be a server that provides various services, such as a background management server that provides support for devices operated by users using the client. The background management server may analyze and process the received request data, and feed back the processing results to the client.

[0047] The client 103 may be a mobile terminal such as a mobile phone, a game console, a tablet computer, an e-book reader, smart glasses, smart home devices, AR (Augmented Reality) devices, VR (Virtual Reality) devices, etc., or the client 103 may also be a personal computer, such as a laptop computer and a desktop computer.

[0048] In an exemplary embodiment of the present disclosure, the server may, for example, obtain model parameter information of multiple road networks, the model parameter information including: parameter information of the main road model, parameter information of the road head and end model, parameter information of the surrounding supporting model, and parameter information of the continuous model; the server may, for example, utilize the spline curve technology of the Unreal Engine to generate multiple road networks based on the model parameter information of multiple road networks; the server may, for example, perform adsorption processing on the intersection if there is an intersection among the multiple road networks.

[0049] It should be understood that Figure 1 The number of clients, networks and servers is merely illustrative. The server 101 may be a physical server, a server cluster consisting of multiple servers, or a cloud server. Depending on actual needs, it may have any number of terminal devices, networks and servers.

[0050] Below, each step of the method for generating a road network in the exemplary embodiment of the present disclosure will be described in more detail with reference to the accompanying drawings and embodiments.

[0051] Figure 2 A flow chart of a method for generating a road network according to an embodiment of the present disclosure is shown. The method provided by the embodiment of the present disclosure can be performed as follows: Figure 1 The process is executed in the server or client shown in the figure, but the present disclosure is not limited to this.

[0052] In the following examples, the server cluster 101 is used as the execution subject for example description.

[0053] like Figure 2 As shown, the method for generating a road network provided by the embodiment of the present disclosure may include the following steps.

[0054] In step S210, model parameter information of multiple road networks is obtained.

[0055] The model parameter information may include: parameter information of the main road model, parameter information of the road head and end model, parameter information of the peripheral supporting model, and parameter information of the continuous model. In the disclosed embodiment, the main road of the road network can be understood as the road; the road head and end model can be understood as the model of facilities such as traffic lights and zebra crossings set at the beginning and end of the road; the peripheral supporting model can be understood as the model of the ancillary facilities of the road, such as the roadside tree model, street light model, road sign model, fire hydrant model, etc.; the continuous model can also be understood as the model of the ancillary facilities of the road, such as the middle fence model of the road, the protective net model, the pipeline model, etc. In addition, the peripheral supporting model and the continuous model are both models of road ancillary facilities, but the continuous model is a model of continuous facilities.

[0056] In step S220, a plurality of road networks are generated according to model parameter information of the plurality of road networks by using the spline curve technology of the Unreal Engine.

[0057] The model parameter information of multiple road networks is obtained through step S210, that is, the model parameter information of each road network is obtained, and then in step S220, the spline curve technology of the Unreal Engine is used to generate each road network according to the model parameter information of each road network, so that multiple road networks can be obtained.

[0058] Therefore, in the embodiment of the present disclosure, step S220 may include: for a road network, using the spline curve technology of the Unreal Engine to generate a road network according to the model parameter information of the road network. The spline curve technology of the Unreal Engine may be the Spline (i.e., spline curve) technology of UE4 (Unreal Engine 4).

[0059] In step S230, if there are intersections in multiple road networks, adsorption processing is performed on the intersections.

[0060] Determine whether there are road networks that need to intersect among multiple road networks, that is, determine whether there is an intersection. If so, it is necessary to adsorb the intersection to optimize the function of the intersection and improve the practicality of the road.

[0061] The problem of low efficiency in generating road networks exists in the related art. In the method for generating road networks provided by the disclosed embodiment, the model parameter information of each road network is first obtained, and the model parameter information includes the model parameter information of the main road, the facilities at the beginning and end of the road, the surrounding supporting facilities and the continuous facilities, and then the spline curve technology of the Unreal Engine is used to generate each road network, and the intersecting road networks can also be adsorbed to complete the function of the intersection, which solves the problem of low efficiency in generating road networks in the related art and can quickly generate road networks; and when the demand changes, the road network is updated by adjusting the model parameter information, which reduces the modification cost.

[0062] Figure 3 A schematic diagram showing a process of generating a road network using the spline curve technology of Unreal Engine according to an embodiment of the present disclosure. Figure 3 , the process of generating a road network using Unreal Engine's spline curve technology can include:

[0063] Step S310, using the spline curve technology of the Unreal Engine to generate the main roads of the road network according to the parameter information of the main road model of the road network;

[0064] Step S320, generating a road head and road end facility model of the main road of the road network according to the parameter information of the road head and road end model of the road network;

[0065] Step S330, generating a peripheral supporting facilities model of the main road of the road network according to the parameter information of the peripheral supporting facilities model of the road network;

[0066] Step S340, generating a continuous supporting facilities model of the main roads of the road network according to the parameter information of the continuous model of the road network.

[0067] Through step S310, the main road of the road network can be generated, through step S320, the road head and road end facility model of the main road can be generated, through step S330, the peripheral supporting facility model of the main road can be generated, and through step S340, the continuous supporting facility model of the main road can be generated. Among them, the spline curve technology of the Unreal Engine can be the Spline technology of UE4. Next, the generation process of each part is further explained.

[0068] (a) Main roads

[0069] The parameter information of the main road model of the road network may include: vertices included in the main road curve and the width of the main road model. Figure 4 A schematic diagram showing parameter information of a main road curve. Figure 4 It can be seen that the vertices included in the main road curve specifically refer to the number of vertices included, the position of each vertex, the tangent vector of each vertex, the normal vector of each vertex, and the width of the main road model can be understood as the road width of the road network that needs to be generated.

[0070] In an exemplary embodiment, the spline curve technology of the Unreal Engine is used to generate the main roads of the road network according to the parameter information of the main road model of the road network, which can include: using the Spline component of UE4 to generate the main road curves of the road network according to the number of vertices, the positions of the vertices, the tangent vectors and the normal vectors of the vertices; filling the main road curves of the road network according to the width of the main road model to generate the main roads of the road network.

[0071] Figure 5 The schematic diagram of the main road of the road network is shown. The specific process of generating the main road is to use the Spline component of UE4 to generate the main road curve Spline, obtain the length of the main road curve Spline and the normal vector and tangent vector of each Spline segment, and then fill the main road curve Spline according to the width of the main road model. Finally, we can get Figure 5 The main roads of the road network are shown.

[0072] (II) Model of roadhead and roadend facilities

[0073] As described in step S210 above, the roadhead and end facilities may be facilities such as traffic lights and zebra crossings installed at the roadhead and end. The parameter information of the roadhead and end model of the road network may include: the scaling ratio of the roadhead and end facilities, the offset information of the roadhead and end facilities, and the spacing information of the roadhead and end facilities. Among them, the scaling ratio can be used to scale the facility model, that is, the size and height information of the facility model can be adjusted by the scaling ratio. The offset information refers to the offset value of the facility model relative to the tangent and normal of the main road curve. Generally, it is set to be parallel to the tangent of the main road curve and perpendicular to the normal of the main road curve. The spacing information refers to the spacing between facility models.

[0074] In an exemplary embodiment, generating a road head and end facility model for a main road of a road network based on parameter information of the road head and end model of the road network may include: setting the road head and end facility model in a custom road head and end array; adding the road head and end facility model to the main road of the road network based on the scaling ratio of the road head and end facilities, the offset information of the road head and end facilities, and the spacing information of the road head and end facilities.

[0075] The roadhead and roadend array is a custom created one, which is used to set the roadhead and roadend facility model. First, set the roadhead and roadend facility model in the custom roadhead and roadend array, and then add the roadhead and roadend facility model on the main road of the road network according to the configured scaling ratio of the roadhead and roadend facilities, the offset information of the roadhead and roadend facilities, and the interval information of the roadhead and roadend facilities. Figure 6 A schematic diagram showing the model of the roadhead and roadhead facilities of the main road. Figure 6 A traffic light model is set up at the beginning (or end) of the main road.

[0076] (III) Model of surrounding supporting facilities

[0077] The peripheral supporting facilities are the ancillary facilities of the road, such as roadside trees, street lights, road signs, fire hydrants, etc. The parameter information of the peripheral supporting model of the road network includes: the scaling ratio of the peripheral supporting facilities, the offset information of the peripheral supporting facilities, and the spacing information of the peripheral supporting facilities. The scaling ratio, offset information and spacing information have been explained above and will not be repeated here.

[0078] In an exemplary embodiment, generating a surrounding supporting facilities model for the main roads of a road network based on parameter information of the surrounding supporting facilities model of the road network may include: setting the surrounding supporting facilities model in a custom surrounding supporting array; adding the surrounding supporting facilities model to the main roads of the road network based on the scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities.

[0079] The surrounding supporting array is created by user, and is used to set the surrounding supporting facility model. First, set the surrounding supporting facility model in the custom surrounding supporting array, and then add the surrounding supporting facility model on the main road of the road network according to the configured scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities. Figure 7 The figure shows a schematic diagram of the roadside tree facility model of the main road. Add roadside trees to the custom VegetationMeshs array, configure the parameter information of the roadside trees, and then map them to the main road to obtain Figure 7 A main road with street trees is shown.

[0080] 4. Continuous supporting facilities model

[0081] Continuous supporting facilities are ancillary facilities of the road, and they are continuous, such as fences, protective nets, pipelines, etc. in the middle of the road. The parameter information of the continuous model of the road network may include: the stretching direction of the continuous supporting facilities, the scaling ratio of the continuous supporting facilities, and the offset information of the continuous supporting facilities. The stretching direction refers to the stretching direction of the continuous configuration facilities, such as stretching along the main road of the road network, stretching toward the head of the road, stretching toward the end of the road, etc. The scaling ratio and offset information have been explained above and will not be repeated here.

[0082] In an exemplary embodiment, generating a continuous supporting facilities model for the main roads of a road network based on parameter information of a continuous model of the road network may include: adding a continuous supporting facilities model to a custom road array; adding a continuous supporting facilities model to the main roads of the road network, stretching the continuous supporting facilities in the stretching direction of the continuous supporting facilities, and setting the scaling ratio of the continuous supporting facilities and the offset information of the continuous supporting facilities.

[0083] Among them, the road array is custom created and used to set the continuous supporting facilities model of the road. Specifically, first add an element to the custom SplineRoads array, that is, the element of the continuous supporting equipment model, and then map it to the main road, and then stretch it according to the configured stretching direction, such as stretching through ForwardAxis (stretching axis selection), and finally set the scaling ratio of the continuous supporting facilities and the offset information of the continuous supporting facilities. Figure 8 A schematic diagram showing the pipeline model of a main road. Figure 8 It can be seen that there is a continuous pipeline model on the side of the main road.

[0084] In the disclosed embodiments, the spline curve technology of the Unreal Engine is utilized to generate the main roads of the road network, the models of the facilities at the beginning and end of the main roads, the models of the surrounding supporting facilities of the main roads, and the continuous supporting facilities models of the main roads according to the parameter information of the model. The road network can be generated quickly, and when changes are needed, the road network can be updated by adjusting the parameter information of the model, thereby reducing the modification cost of the road network.

[0085] In an exemplary embodiment, if there is an intersection among multiple road networks, adsorption processing is performed on the intersection, which may include: if there is an intersection among multiple road networks, obtaining multiple intersecting road networks corresponding to the intersection; calculating a new starting tangent vector and a new starting normal vector based on the starting tangent vectors and starting normal vectors of the multiple intersecting road networks; and updating the starting tangent vectors and starting normal vectors of multiple intersecting routes using the new starting tangent vector and the new starting normal vector.

[0086] Specifically, if there are intersections among multiple road networks, it means that there are road networks that need to intersect among the multiple road networks, and the intersecting road networks need to be adsorbed. In the disclosed embodiment, AABB collision detection can be used to perform road network adsorption, and when a collision is detected between two road networks, adsorption is directly performed. Assuming that the intersecting road networks are road network A and road network B, the adsorption principle is to add the starting tangent vector and starting normal vector of the road head / end model of road network A and the starting tangent vector and starting normal vector of the road head / end model of road network B, respectively, and divide by 2 to obtain a new tangent vector and normal vector, and finally copy the obtained new vector to road network A and road network B.

[0087] In addition, in an exemplary embodiment, the method for generating a road network may further include: if there is an unfilled tail curve in the main road curve of the intersecting road network, according to the length of the main road curve of the intersecting road network, the tangent vector of the tail vertex and the normal vector of the tail vertex, moving the main road curve of the intersecting road network, or stretching and filling it according to the adsorption direction.

[0088] The main road curve generated by the Spline component of UE4 is linear, but the model of the main road is piece by piece, so the tail curve of the main road curve may not be able to fill the main road model. Fig. 9 A schematic diagram showing the case where the main road model is not populated. Fig. 9 It can be seen that the tail of the main road curve cannot be filled into the main road model. In this case, during adsorption processing, the entire road network can be moved or stretched and filled according to the adsorption direction based on the total length of the curve of the current road network and the tangent vector and normal vector of the tail vertex. In addition, if there is still an unfilled tail curve after stretching and filling, it can be slightly translated to meet the requirements of adsorption closure.

[0089] For example, it is necessary to generate road network A, road network B, road network C and road network D. Taking the generation of road network A as an example, the parameter information of the main road model of road network A is set, such as the number of vertices, the position of each vertex, the normal vector of each vertex, the tangent vector of each vertex and the width of the main road model. Then, the Spline component of UE4 can be used to generate the main road curve, and then fill it according to the width of the main road model to obtain the main road of road network A. Then, according to the parameter information of the road head and end model of the road network, the parameter information of the surrounding supporting model and the parameter information of the continuous model, the road head and end facility model, the surrounding supporting facility model and the continuous supporting facility model are mapped on the main road of road network A. According to the above method for generating road network A, road network B, road network C and road network D are generated. And, if there are intersecting road networks among road network A, road network B, road network C and road network D, adsorption processing is required. For example, if road network A and road network B intersect, when a collision is detected between road network A and road network B, and a collision is detected between the beginning of road network A and the end of road network B, the starting point tangent vector and starting point normal vector of the beginning model of road network A and the starting point tangent vector and starting point normal vector of the end model of road network B can be added and divided by 2 to obtain a new tangent vector and normal vector, and finally the new vectors can be copied to road network A and road network B.

[0090] In the method for generating a road network provided by the embodiment of the present disclosure, model parameter information of each road network is first obtained, and the model parameter information includes model parameter information of main roads, road head and road end facilities, surrounding supporting facilities and continuous facilities. Then, the spline curve technology of the Unreal Engine is used to generate each road network. The intersecting road networks can also be adsorbed to complete the function of the intersection, which solves the problem of low efficiency in generating road networks in related technologies and can quickly generate road networks. When the demand changes, the road network is updated by adjusting the model parameter information, which reduces the modification cost.

[0091] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0092] Fig.10 FIG. 1 is a block diagram of an apparatus for generating a road network according to an embodiment of the present disclosure. Fig.10 As shown, the device 1000 for generating a road network may include: an acquisition module 1001 , a generation module 1002 and an adsorption module 1003 .

[0093] The acquisition module 1001 may be used to obtain model parameter information of multiple road networks, wherein the model parameter information may include parameter information of main road models, parameter information of road head and road end models, parameter information of surrounding supporting models, and parameter information of continuous models. The generation module 1002 may be used to generate multiple road networks based on the model parameter information of the multiple road networks using the spline curve technology of the Unreal Engine. The adsorption module 1003 may be used to perform adsorption processing on the intersection if there is an intersection among the multiple road networks.

[0094] In an exemplary embodiment, the generation module 1002 may also be used to: for a road network, generate a road network based on model parameter information of the road network using the spline curve technology of the Unreal Engine.

[0095] In an exemplary embodiment, the generation module 1002 can also be used to: generate the main roads of the road network based on the parameter information of the main road model of the road network using the spline curve technology of the Unreal Engine; generate the head and end facility models of the main roads of the road network based on the parameter information of the head and end model of the road network; generate the peripheral supporting facilities model of the main roads of the road network based on the parameter information of the peripheral supporting model of the road network; generate the continuous supporting facilities model of the main roads of the road network based on the parameter information of the continuous model of the road network.

[0096] In an exemplary embodiment, the parameter information of the main road model of the road network may include: the vertices contained in the main road curve, the width of the main road model; and the generation module 1002 can also be used to: use the spline curve component of the Unreal Engine to generate the main road curve of the road network according to the number of vertices, the positions of the vertices, the tangent vectors and the normal vectors of the vertices; fill the main road curve of the road network according to the width of the main road model to generate the main roads of the road network.

[0097] In an exemplary embodiment, the parameter information of the road head and end model of the road network may include: the scaling ratio of the road head and end facilities, the offset information of the road head and end facilities, and the spacing information of the road head and end facilities; and the generation module 1002 can also be used to: set the road head and end facility model in a custom road head and end array; add the road head and end facility model on the main road of the road network according to the scaling ratio of the road head and end facilities, the offset information of the road head and end facilities, and the spacing information of the road head and end facilities.

[0098] In an exemplary embodiment, the parameter information of the surrounding supporting facilities model of the road network may include: the scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities; and the generation module 1002 can also be used to: set the surrounding supporting facilities model in a customized surrounding supporting array; add the surrounding supporting facilities model on the main road of the road network according to the scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities.

[0099] In an exemplary embodiment, the parameter information of the continuous model of the road network may include: the stretching direction of the continuous supporting facilities, the scaling ratio of the continuous supporting facilities, and the offset information of the continuous supporting facilities; and the generation module 1002 can also be used to: add a continuous supporting facility model to a custom road array; add a continuous supporting facility model to the main roads of the road network, stretch it according to the stretching direction of the continuous supporting facilities, and set the scaling ratio of the continuous supporting facilities and the offset information of the continuous supporting facilities.

[0100] In an exemplary embodiment, the adsorption module 1003 can also be used for: if there are intersections in multiple road networks, then multiple intersecting road networks corresponding to the intersections are obtained; based on the starting tangent vectors and starting normal vectors of the multiple intersecting road networks, a new starting tangent vector and a new starting normal vector are calculated; using the new starting tangent vector and the new starting normal vector, the starting tangent vector and the starting normal vector of multiple intersecting routes are updated.

[0101] In an exemplary embodiment, the adsorption module 1003 can also be used for: if there is an unfilled tail curve in the main road curve of the intersecting road network, the main road curve of the intersecting road network is moved according to the length of the main road curve of the intersecting road network, the tangent vector of the tail vertex and the normal vector of the tail vertex, or it is stretched and filled according to the adsorption direction.

[0102] It should be noted that the block diagrams shown in the above figures are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0103] Fig.11 The structural block diagram of a device for generating a road network in an embodiment of the present disclosure is shown. It should be noted that the electronic device shown in the figure is only an example and should not bring any limitation to the function and scope of use of the embodiment of the present invention.

[0104] Refer to the following Fig.11 The electronic device 1100 according to this embodiment of the present invention is described. Fig.11 The electronic device 1100 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0105] like Fig.11As shown, the electronic device 1100 is in the form of a general computing device. The components of the electronic device 1100 may include but are not limited to: at least one processing unit 1110, at least one storage unit 1120, and a bus 1130 connecting different system components (including the storage unit 1120 and the processing unit 1110).

[0106] The storage unit stores program codes, which can be executed by the processing unit 1110, so that the processing unit 1110 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 1110 can perform the following steps: Figure 2 In step S210 shown in the figure, model parameter information of multiple road networks is obtained; in step S220, multiple road networks are generated according to the model parameter information of multiple road networks using the spline curve technology of the Unreal Engine; in step S230, if there is an intersection among the multiple road networks, the intersection is adsorbed.

[0107] The storage unit 1120 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 11201 and / or a cache storage unit 11202 , and may further include a read-only storage unit (ROM) 11203 .

[0108] The storage unit 1120 may also include a program / utility 11204 having a set (at least one) of program modules 11205, such program modules 11205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0109] Bus 1130 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0110] The electronic device 1100 may also communicate with one or more external devices 1200 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1100, and / or communicate with any device that enables the electronic device 1100 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1150. Furthermore, the electronic device 1100 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1160. As shown, the network adapter 1160 communicates with other modules of the electronic device 1100 via a bus 1130. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0111] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0112] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0113] The program product for implementing the above method according to the embodiment of the present invention may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0114] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The 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 (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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.

[0115] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0116] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0117] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0118] It should be noted that, although several modules or units of the device for action execution are 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.

[0119] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0120] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0121] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A method for generating a road network, It is characterized in that include: Acquire model parameter information of multiple road networks, the model parameter information including: parameter information of a main road model, parameter information of a road head and road end model, parameter information of a surrounding supporting model, and parameter information of a continuous model; the continuous model is a continuous road ancillary facilities model; Using the spline curve technology of the Unreal Engine, a plurality of road networks are generated according to the model parameter information of the plurality of road networks; If there is an intersection among the multiple road networks, adsorption processing is performed on the intersection; Among them, if there is an intersection among the multiple road networks, the intersection is adsorbed, including: if there is an intersection among the multiple road networks, a plurality of intersecting road networks corresponding to the intersection are obtained; according to the starting point tangent vectors and the starting point normal vectors of the multiple intersecting road networks, a new starting point tangent vector and a new starting point normal vector are calculated; and using the new starting point tangent vector and the new starting point normal vector, the starting point tangent vector and the starting point normal vector of the multiple intersecting road networks are updated.

2. The method according to claim 1, It is characterized in that The method of using the spline curve technology of the Unreal Engine to generate multiple road networks according to the model parameter information of the multiple road networks includes: For a road network, the spline curve technology of the Unreal Engine is used to generate the road network according to the model parameter information of the road network.

3. The method according to claim 2, It is characterized in that The method of using the spline curve technology of the Unreal Engine to generate the road network according to the model parameter information of the road network includes: Using the spline curve technology of the Unreal Engine, the main roads of the road network are generated according to the parameter information of the main road model of the road network; Generate a road head and road end facility model of the main road of the road network according to the parameter information of the road head and road end model of the road network; Generate a peripheral supporting facilities model of the main road of the road network according to the parameter information of the peripheral supporting facilities model of the road network; A continuous supporting facilities model of the main roads of the road network is generated according to the parameter information of the continuous model of the road network.

4. The method according to claim 3, It is characterized in that The parameter information of the main road model of the road network includes: vertices included in the main road curve, the width of the main road model; and, The method of using the spline curve technology of the Unreal Engine to generate the main roads of the road network according to the parameter information of the main road model of the road network includes: Using the spline curve component of the Unreal Engine, generating the main road curve of the road network according to the number of the vertices, the positions of the vertices, the tangent vectors and the normal vectors of the vertices; According to the width of the main road model, the main road curves of the road network are filled to generate the main roads of the road network.

5. The method according to claim 3, It is characterized in that The parameter information of the road head and road end model of the road network includes: the scaling ratio of the road head and road end facilities, the offset information of the road head and road end facilities, and the interval information of the road head and road end facilities; and The step of generating the road head and road end facility models of the main roads of the road network according to the parameter information of the road head and road end models of the road network comprises: Set the roadhead and roadend facility model in the custom roadhead and roadend array; According to the scaling ratio of the roadhead and roadend facilities, the offset information of the roadhead and roadend facilities, and the spacing information of the roadhead and roadend facilities, the roadhead and roadend facility models are added to the main roads of the road network.

6. The method according to claim 3, It is characterized in that The parameter information of the surrounding supporting facilities model of the road network includes: the scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities; and The method of generating a peripheral supporting facilities model of a main road of the road network according to parameter information of the peripheral supporting facilities model of the road network comprises: Set the surrounding supporting facilities model in the custom surrounding supporting array; The surrounding supporting facilities model is added to the main road of the road network according to the scaling ratio of the surrounding supporting facilities, the offset information of the surrounding supporting facilities, and the spacing information of the surrounding supporting facilities.

7. The method according to claim 3, It is characterized in that The parameter information of the continuous model of the road network includes: the stretching direction of the continuous supporting facilities, the scaling ratio of the continuous supporting facilities, and the offset information of the continuous supporting facilities; and The step of generating a continuous supporting facilities model of the main roads of the road network according to the parameter information of the continuous model of the road network comprises: Add continuous supporting facilities model to the custom road array; The continuous supporting facilities model is added to the main road of the road network, stretched in the stretching direction of the continuous supporting facilities, and the scaling ratio of the continuous supporting facilities and the offset information of the continuous supporting facilities are set.

8. The method according to claim 1, It is characterized in that The method further comprises: If the main road curve of the intersecting road network has an unfilled tail curve, the main road curve of the intersecting road network is moved according to the length of the main road curve of the intersecting road network, the tangent vector of the tail vertex and the normal vector of the tail vertex, or stretched and filled according to the adsorption direction.

9. A device for generating a road network, It is characterized in that include: An acquisition module is used to acquire model parameter information of multiple road networks, wherein the model parameter information includes: parameter information of a main road model, parameter information of a road head and road end model, parameter information of a surrounding supporting model, and parameter information of a continuous model; the continuous model is a continuous road ancillary facilities model; A generation module, used to generate multiple road networks according to model parameter information of the multiple road networks by using the spline curve technology of the Unreal Engine; An adsorption module, configured to perform adsorption processing on an intersection if there is an intersection among the multiple road networks; Among them, the adsorption module is also used for: if there is an intersection among the multiple road networks, then obtaining multiple intersecting road networks corresponding to the intersection; calculating a new starting point tangent vector and a new starting point normal vector based on the starting point tangent vectors and the starting point normal vectors of the multiple intersecting road networks; and using the new starting point tangent vector and the new starting point normal vector to update the starting point tangent vector and the starting point normal vector of the multiple intersecting road networks.

10. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for generating a road network as claimed in any one of claims 1 to 8 is implemented.

11. An electronic device, It is characterized in that include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method for generating a road network as described in any one of claims 1 to 8.