CN113538627B - Map description file generation method and device - Google Patents

Map description file generation method and device Download PDF

Info

Publication number
CN113538627B
CN113538627B CN202110890587.8A CN202110890587A CN113538627B CN 113538627 B CN113538627 B CN 113538627B CN 202110890587 A CN202110890587 A CN 202110890587A CN 113538627 B CN113538627 B CN 113538627B
Authority
CN
China
Prior art keywords
road
target
map
determining
roads
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.)
Active
Application number
CN202110890587.8A
Other languages
Chinese (zh)
Other versions
CN113538627A (en
Inventor
何丰
胡艳玲
谭哲
薛晓卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Saimu Technology Co ltd
Original Assignee
Beijing Saimu Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Saimu Technology Co ltd filed Critical Beijing Saimu Technology Co ltd
Priority to CN202110890587.8A priority Critical patent/CN113538627B/en
Publication of CN113538627A publication Critical patent/CN113538627A/en
Application granted granted Critical
Publication of CN113538627B publication Critical patent/CN113538627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Navigation (AREA)

Abstract

The application provides a method and a device for generating a map description file, wherein characteristic parameters of a first road are obtained according to a configuration instruction of a user, and the first road is a road corresponding to the configuration instruction of the user; determining position information of the first road in the road map based on the characteristic parameters of the first road respectively; determining a target first road according to the position information of the first road, wherein the target first road is a first road which is close in position but not communicated in a road map; generating a second road according to the position information of the two adjacent target first roads, wherein the second road is used for enabling the target first roads to be smoothly connected; and generating a corresponding map description file based on the road map formed by the first road and the second road, so that the road map with the specified road type meeting the user requirement is quickly generated, and the time for drawing the map is saved.

Description

Map description file generation method and device
Technical Field
The present invention relates to the field of automatic driving technologies, and in particular, to a method and apparatus for generating a map description file, an electronic device, and a storage medium.
Background
In the process of automatic driving simulation test, a specific road type often needs to be specified to appear in a test map, such as a required intersection, an uphill road and the like. At this time, the order of the roads is not required to be cared for, so long as the roads appear in the map.
In order to obtain an expected test map with a specific road type, the road is often drawn manually or an existing road map is split and recombined to form a new map, and the work required is complex and consumes a lot of time.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for generating a map description file, which can automatically generate a road map having a specific road type and a corresponding map description file required by a user according to a configuration of the user.
In a first aspect, an embodiment of the present application provides a method for generating a map description file, where the method includes: acquiring characteristic parameters of a first road according to a configuration instruction of a user, wherein the first road is a road corresponding to the configuration instruction of the user; determining position information of the first road in the road map based on the characteristic parameters of the first road respectively; determining a target first road according to the position information of the first road, wherein the target first road is a first road which is close in position but not communicated in a road map; generating a second road according to the position information of the two adjacent target first roads, wherein the second road is used for enabling the target first roads to be smoothly connected; and generating a corresponding map description file based on the road map composed of the first road and the second road.
Preferably, the step of determining the position information of the first road in the road map based on the characteristic parameters of the first road, includes: generating a corresponding first road based on the characteristic parameters of the first road; and determining the position of each first road in the road map in turn to generate corresponding position information, wherein the position information is a coordinate set of the road in the road map.
Preferably, the first roads at least include intersection roads, and the step of determining the position of each first road in the road map sequentially specifically includes: sequentially determining the positions of intersection roads in a road map; determining a road connected with the intersection road from the rest first roads, taking the road as a target road and determining the position of the target road in a road map; and determining a road connected with the target road from the rest first roads, and taking the road as the target road.
Preferably, the first roads do not include intersection roads, and the step of determining the position of each first road in the road map in turn specifically includes: determining a target road from the first road, and determining the position of the target road in the road map; and determining a road connected with the target road from the rest first roads, and taking the road as the target road.
Preferably, the step of generating the second road according to the position information of the adjacent two target first roads specifically includes: determining a road reference line of the second road, wherein the road reference line is the projection of the central line of the road on the horizontal plane; determining the position information of a second road according to the position information of the first road of two adjacent targets and the road reference line of the second road; and generating a second road based on the characteristic parameters of the target first road and the position information of the second road.
Preferably, the step of determining a road reference line of the second road specifically includes: when a connection instruction of a user is received as a default type or the user does not send out the connection instruction, determining a road reference line of a second road as a cubic polynomial with a parameter; and when the connection instruction of the user is received as a non-default type, determining a road reference line of the second road as a flat curve.
Preferably, the step of sequentially determining the position of the intersection road in the road map specifically includes: responding to an input instruction of a user to obtain a target distance, wherein the target distance is the distance between intersection roads input by the user; and sequentially determining the positions of the intersection roads in the road map according to the target intervals.
In a second aspect, embodiments of the present application further provide an apparatus, including:
the receiving module is used for acquiring characteristic parameters of a first road according to the configuration instruction of the user, wherein the first road is the road corresponding to the configuration instruction of the user;
the determining module is used for respectively determining the position information of the first road in the road map based on the characteristic parameters of the first road;
the judging module is used for determining a target first road according to the position information of the first road, wherein the target first road is a first road which is close in position but not communicated in the road map;
the generation module is used for generating a second road according to the position information of the two adjacent target first roads, and the second road is used for enabling the target first roads to be smoothly connected;
and the conversion module is used for generating a corresponding map description file based on the road map formed by the first road and the second road.
In a third aspect, embodiments of the present application further provide an electronic device, including: the system comprises a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processor and the memory are communicated through the bus, and the processor executes the machine-readable instructions to execute the steps of the generation method of the map description file.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium, on which a computer program is stored, which when executed by a processor performs the steps of the method for generating a map description file as described above.
According to the method and the device for generating the map description file, the characteristic parameters are obtained according to the configuration instructions of the user, the corresponding first roads are generated according to the characteristic parameters, the position information of each road in the road map is automatically determined, the first roads which are close in position but not communicated in the road map are determined to serve as target first roads, the second roads are generated for the two adjacent target first roads, so that the first roads are smoothly connected and a complete road map is formed, the map description file corresponding to the road map is output, and therefore the road map with the specified road type required by the user is rapidly generated, and the time for drawing the map is saved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a map description file generation method provided in an embodiment of the present application;
fig. 2 is a flowchart of a method for generating location information according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for determining a position of a first road according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of another method for determining a position of a first road according to an embodiment of the present disclosure;
fig. 5 is a flowchart of a method for generating a second road according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a map description file generating apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the accompanying drawings in the present application are only for the purpose of illustration and description, and are not intended to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this application, illustrates operations implemented according to some embodiments of the present application. It should be appreciated that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to the flow diagrams and one or more operations may be removed from the flow diagrams as directed by those skilled in the art.
In addition, the described embodiments are only some, but not all, of the embodiments of the present application. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
In the prior art, in the process of automatic driving simulation test, a specific road type often needs to be specified to appear in a test map, such as a required intersection, an uphill road and the like. At this time, the order of the roads is not required to be cared for, so long as the roads appear in the map.
In order to obtain an expected test map with a specific road type, the road is often drawn manually or an existing road map is split and recombined to form a new map, and the work required is complex and consumes a lot of time.
In view of the foregoing, embodiments of the present application provide a method, an apparatus, an electronic device, and a storage medium for generating a map description file, and the description is given below by way of embodiments.
In order to facilitate understanding of the present application, the technical solutions provided in the present application are described in detail below in conjunction with specific embodiments.
Referring to fig. 1, a method for generating a map description file according to an embodiment of the present application includes:
s101, acquiring characteristic parameters of a first road according to a configuration instruction of a user, wherein the first road is a road corresponding to the configuration instruction of the user.
In step S101, the characteristic parameters of the first road are obtained according to the configuration instruction of the user, and the characteristic parameters corresponding to different road types are different. The road type at least comprises intersections, straight roads, curves, viaducts and the like.
The characteristic parameters of the intersections include the number of the intersections, whether the intersections are roundabout, the number of the roundabout lanes, the number of the intersection lanes and the like.
Characteristic parameters of the straight road include the length of the straight road, the number of motor lanes, the bicycle road, whether or not there is a sidewalk, the road attribute (expressway, urban road, rural road) and the like.
Characteristic parameters of the curve include curve length, degree of curve, number of inflection points, number of motor lanes, bicycle road, whether or not there is a sidewalk, road attribute (expressway, urban road, rural road), and the like.
The characteristic parameters of the overpass include road height, road length, number of motor vehicle lanes, road attribute (expressway, urban road) and the like.
Further, the user may also configure the driving rule of the road to follow a left-right hand rule, the left-hand rule corresponding to a left-turn road sign on the road, and the right-hand rule corresponding to a right-turn road sign set on the road.
S102, respectively determining the position information of the first road in the road map based on the characteristic parameters of the first road.
In step S102, corresponding first roads are generated according to the characteristic parameters of the first roads, and the position of each first road is determined in the road map in order to obtain the coordinates of the first road in the road map coordinate system, where the coordinates may be the coordinates of the main position of each road, such as the endpoint coordinates, the center point coordinates, and so on. And taking the set of all coordinates of each first road as the position information corresponding to the first road. The position information here is used to represent the position of the first road in the road map.
Specifically, the positions of the first roads in the road map may be set in a scattered manner, that is, the first roads are not connected to each other. The road connection which can be smoothly connected in the first road can be arranged in the road map according to the road type, and then the rest of the first road is arranged in the first road in a scattered manner.
S103, determining a target first road according to the position information of the first road, wherein the target first road is a first road which is close in position but not communicated in a road map;
and S104, generating a second road according to the position information of the two adjacent target first roads, wherein the second road is used for enabling the target first roads to be smoothly connected.
In step S103 and step S104, it is understood that the first road is a road of a specified road type generated according to the feature parameters of the configuration of the user, and the connection between these roads cannot be smoothly continued, so that this part of the first road is determined as a target first road, and a second road for connection is generated between adjacent target first roads. The second link here is a connection link automatically generated from the feature parameters and the position information of the target first link.
For example, the first road includes a straight road a and a straight road B, the number of motor vehicle lanes is four, the motor vehicle lanes are adjacent in the road map, but one is in the east-west direction and one is in the north-south direction, the straight road a and the straight road B are determined as target first roads, and a second road C needs to be generated between the straight road a and the straight road B so that one end of the straight road a is communicated with one end of the straight road B, where the second road C may be a curve.
For another example, the first road includes a straight road a and a viaduct B, the number of motor lanes is four, and the motor lanes are adjacent in the road map, and the straight road a and the viaduct B cannot be directly connected because the road with the viaduct type is higher than the horizontal plane, so that a second road C needs to be generated between one end of the straight road a and one end of the viaduct B to ensure smooth connection between the straight road a and the viaduct B. At this time, the distance between the straight road A and the viaduct B cannot be too short, and the distance between the straight road A and the viaduct B can be adjusted if necessary, so that the generated connecting road cannot be too steep, and the vehicle can normally run.
S105, generating a corresponding map description file based on a road map composed of the first road and the second road.
In step S105, it is understood that the first road and the second road together form a complete and smooth road in the road map, and the OpenDRIVE description file is generated according to a unified standard based on this road map.
In the embodiment, the characteristic parameters are acquired according to the configuration instructions of the user, the corresponding first roads are generated according to the characteristic parameters, the position information of each road in the road map is automatically determined, the first roads which are close in position but not communicated in the road map are determined as target first roads, the second roads are generated for the two adjacent target first roads, so that the first roads are smoothly connected and a complete road map is formed, and the map description file corresponding to the road map is output, so that the road map with the specified road type meeting the user requirement is quickly generated, and the time for drawing the map is saved.
Referring to fig. 2, a method for generating location information according to another embodiment of the present application includes:
s201, generating a corresponding first road based on the characteristic parameters of the first road.
In step S201, a road type of the road is obtained based on the feature parameters configured by the user, and a plurality of first roads are generated according to the road model corresponding to the road type and other feature parameters such as the road length, the number of motor vehicle lanes, and the like.
S202, sequentially determining the position of each first road in the road map to generate corresponding position information, wherein the position information is a coordinate set of the road in the road map.
In step S202, the position of each first road in the road map may be determined by:
as shown in fig. 3, fig. 3 is a flowchart of a method for determining a position of a first road according to an embodiment of the present application. In one case, the road type corresponding to each first road is obtained, and if the first road comprises an intersection road, the following steps are executed:
s301, sequentially determining the positions of intersection roads in a road map;
s302, determining a road connected with an intersection road from the rest first roads, taking the road as a target road and determining the position of the target road in a road map;
and S303, determining a road connected with the target road from the rest first roads, and taking the road as the target road.
In step S301, when the intersection road is included in the generated first road, the position of the intersection road in the road map is first determined. When there is only one intersection road, the position of the intersection road is determined on the preset position of the road map, and when there are a plurality of intersection roads, the positions of the plurality of intersection roads can be set at intervals, wherein the interval distance between the adjacent intersection roads can be configured by a user.
In step S302, a road is selected from the remaining first roads for connection with the intersection road based on the intersection road determined by the position, where the port of the intersection road may be directly connected to one end of the target road, or may be set with a gap aligning one port of the intersection road with one end of the target road, so that the intersection road is indirectly connected to the target road. For example, when the target road is a viaduct, the viaduct needs to be arranged at a certain distance, so as to ensure that a second road generated between one end of the viaduct and a port of an intersection road is smooth and suitable for running of vehicles.
In step S303, a road is selected from the remaining first roads based on the determined position of the target road, one end of the road being used for connection with the other end of the target road, where the connection between the roads may be a direct connection or an indirect connection as described in the previous step. And determining the position of the road based on the position of the target road and continuing to determine the connection with the other end of the road until all the first road positions are determined.
As shown in fig. 4, fig. 4 is a flowchart of another method for determining a position of a first road according to an embodiment of the present application. In another case, the road type corresponding to each first road is obtained, and if the first road does not include an intersection road, the following steps are executed:
s401, determining a target road from the first road, and determining the position of the target road in the road map.
In step S401, a target link is determined in the first link, which may be a randomly selected link as the target link, or may be a selected link from the first links according to a preset rule, where the preset rule may be a ranking of the priorities of the links of different link types. When selecting a target road, a first road with high priority is preferentially selected from the first roads according to the priorities of different road types to serve as the target road.
And S402, determining a road connected with the target road from the rest first roads, and taking the road as the target road.
In step S402, a road is selected from the remaining first roads for connection with one end of the target road based on the determined target road, which may be a direct connection or an indirect connection. And determining the position of the road in the road map by taking the road as a new target road until all the first road positions are determined.
Referring to fig. 5, a method for generating a second road according to another embodiment of the present application includes:
s501, determining a road reference line of a second road, wherein the road reference line is the projection of the central line of the road on a horizontal plane;
s502, determining the position information of a second road according to the position information of two adjacent target first roads and the road reference line of the second road;
s503, generating a second road based on the feature parameter of the target first road and the position information of the second road.
In step S501, the road reference line of the second road may be determined by:
when a connection instruction of a user is received as a default type or the user does not send out the connection instruction, determining a road reference line of a second road as a cubic polynomial with a parameter;
and when the connection instruction of the user is received as a non-default type, determining a road reference line of the second road as a flat curve.
It can be understood that the third-order polynomial with the parameters is defaulted to be the road reference line of the second road, and the second road generated in the mode has smaller calculated amount and can be suitable for road connection among various road types. The calculation amount is large in the second road generation process using the flat curve (arc line + spiral line + arc line) as the road reference line, the time consumption is long, and the situation that the second road cannot be completely connected may occur under some special conditions, but the second road is more in line with the design specification of the expressway, and the road is smoother. The user may select the road reference line of the different second road according to the need.
In step S502, a set of coordinates of the second road in the road map is calculated and generated based on coordinates of two target first roads adjacent to the second road in the road map.
The set of coordinates herein may include a center point coordinate of the second road, a plurality of end point coordinates of the second road, and the like.
For example, the center point coordinates of the second road may be generated by calculation of the port coordinates of the first road of the two targets and the road reference line of the second road. Port coordinates a_1= (200, 0), a_2= (200, 220,0), port coordinates b_1= (220, 230,0), b_2= (240, 230,0), of the target first road a, and a center point coordinate c_1= (221, 219,0) of the second road is obtained based on the road reference line calculation of the second road.
In step S503, after determining the road type and the characteristic parameter of the second road according to the position information of the second road and the characteristic parameter of the target first road, the second road is loaded in the road map according to the model corresponding to the road type to generate the second road. For example, the number of motor lanes of the target first road a and the target first road B is four lanes, and the number of motor lanes of the second road is four lanes.
In a preferred embodiment, the step of sequentially determining the position of the intersection road in the road map specifically includes:
responding to an input instruction of a user to obtain a target distance, wherein the target distance is the distance between intersection roads input by the user, and the positions of the intersection roads in the road map are sequentially determined according to the target distance.
Specifically, the user can set a target distance between the intersection roads, and when the positions of the intersection roads are determined in the road map, the distance between each intersection road is ensured to be not smaller than the target distance, so that the road design requirement of the user is met.
In a preferred embodiment, a map description file generating system is provided, which is configured to execute the map description file generating method in any of the foregoing embodiments, and implement generation of a target map and automatic drawing of the target map file by:
step one: and receiving road types configured in the configuration interface by the user, and generating different characteristic parameter configuration interfaces based on different road types.
Step two: and receiving each characteristic parameter of the road configuration of the user aiming at different road types in the characteristic parameter configuration interface.
Step three: and receiving constraint conditions configured by the user in the configuration interface.
Step four: and generating a corresponding road map and a map description file according to the configuration information of the user received in the first step and the third step.
Based on the same inventive concept, the embodiment of the present application further provides a map description file generating device corresponding to the map description file generating method, and since the principle of solving the problem of the map description file generating device in the embodiment of the present application is similar to that of the map description file generating method in the embodiment of the present application, implementation of the map description file generating device may refer to implementation of the method, and repeated parts will not be repeated.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a map description file generating apparatus according to an embodiment of the present application. As shown in fig. 6, the generating apparatus 600 includes:
the receiving module 610 is configured to obtain a characteristic parameter of a first road according to a configuration instruction of a user, where the first road is a road corresponding to the configuration instruction of the user;
a determining module 620, configured to determine location information of the first road in a road map based on the feature parameters of the first road, respectively;
the judging module 630 is configured to determine a target first road according to the position information of the first road, where the target first road is the first road that is close in position but not connected in the road map;
a generating module 640, configured to generate a second road according to the position information of two adjacent target first roads, where the second road is used to make smooth connection between the target first roads;
and a conversion module 650, configured to generate a corresponding map description file based on the road map composed of the first road and the second road.
In a preferred embodiment, the determining module specifically includes:
the first road generation module is used for generating a corresponding first road based on the characteristic parameters of the first road;
the first position module is used for determining the position of each first road in the road map in sequence to generate corresponding position information, wherein the position information is a coordinate set of the road in the road map.
In a preferred embodiment, the first road includes at least an intersection road, and the first location module specifically includes:
the first position determining module is used for sequentially determining the positions of the intersection roads in the road map;
the first target determining module is used for determining a road connected with the intersection road from the rest first roads, taking the road as a target road and determining the position of the target road in the road map;
and the first circulation module is used for determining a road connected with the target road from the rest first roads and taking the road as the target road.
In a preferred embodiment, the first road does not include an intersection road, and the first location module specifically includes:
the second target determining module is used for determining a target road from the first road and determining the position of the target road in the road map;
and the second circulation module is used for determining a road connected with the target road from the rest first roads and taking the road as the target road.
In a preferred embodiment, the generating module specifically includes:
the reference line module is used for determining a road reference line of the second road, wherein the road reference line is the projection of the central line of the road on the horizontal plane;
the first calculation module is used for determining the position information of the second road according to the position information of the first road of two adjacent targets and the road reference line of the second road;
and the sub-generation module is used for generating the second road based on the characteristic parameters of the target first road and the position information of the second road.
In a preferred embodiment, the reference line module is specifically configured to;
when a connection instruction of a user is received as a default type or the user does not send out the connection instruction, determining a road reference line of a second road as a cubic polynomial with a parameter;
and when the connection instruction of the user is received as a non-default type, determining a road reference line of the second road as a flat curve.
In a preferred embodiment, the first location determination module is specifically configured to:
responding to an input instruction of a user to obtain a target distance, wherein the target distance is the distance between intersection roads input by the user;
and sequentially determining the positions of the intersection roads in the road map according to the target intervals.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 7, electronic device 700 includes a processor 710, a memory 720, and a bus 730.
The memory 720 stores machine-readable instructions executable by the processor 710, and when the electronic device 700 is running, the processor 710 communicates with the memory 720 through the bus 730, and when the machine-readable instructions are executed by the processor 710, the steps of the map description file generation method in the method embodiment shown in fig. 1 can be executed, and the specific implementation manner can be referred to the method embodiment and will not be described herein.
The embodiment of the present application further provides a computer readable storage medium, where a computer program is stored on the storage medium, where the computer program may execute the steps of the map description file generation method in the method embodiment shown in fig. 1 when the computer program is executed by a processor, and a specific implementation manner may refer to the method embodiment and will not be repeated herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable memory executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned memory includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present application, and are not intended to limit the scope of the present application, but the present application is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, the present application is not limited thereto. Any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the technical scope of the disclosure of the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. A method for generating a map description file, the method comprising:
acquiring characteristic parameters of a first road according to a configuration instruction of a user, wherein the first road is a road corresponding to the configuration instruction of the user;
generating a corresponding first road based on the characteristic parameters of the first road, wherein the first road at least comprises an intersection road;
sequentially determining the position of each first road in a road map to generate corresponding position information, wherein the position information is a coordinate set of the road in the road map, and specifically comprises sequentially determining the position of the intersection road in the road map; determining a road connected with an intersection road from the rest first roads, taking the road as a target road and determining the position of the target road in a road map; determining a road connected with a target road from the rest first roads, and taking the road as the target road;
determining a target first road according to the position information of the first road, wherein the target first road is the first road which is close in position but not communicated in a road map;
generating a second road according to the position information of two adjacent target first roads, wherein the second road is used for enabling the target first roads to be smoothly connected;
and generating a corresponding map description file based on a road map composed of the first road and the second road.
2. The method according to claim 1, wherein the first roads do not include intersection roads, and the step of determining the position of each first road in turn in the road map specifically includes:
determining a target road from the first road, and determining the position of the target road in the road map;
and determining a road connected with the target road from the rest first roads, and taking the road as the target road.
3. The method according to claim 1 or 2, wherein the step of generating a second road from the position information of two adjacent target first roads, specifically comprises:
determining a road reference line of the second road, wherein the road reference line is the projection of the central line of the road on the horizontal plane;
determining the position information of the second road according to the position information of two adjacent target first roads and the road reference line of the second road;
and generating the second road based on the characteristic parameters of the target first road and the position information of the second road.
4. A method according to claim 3, characterized in that said step of determining a road reference line of said second road comprises in particular:
when a connection instruction of a user is received as a default type or the user does not send out the connection instruction, determining a road reference line of the second road as a cubic polynomial with a parameter;
and when a connection instruction of the user is received as a non-default type, determining a road reference line of the second road as a flat curve.
5. The method according to claim 1, wherein the step of sequentially determining the position of the intersection road in a road map comprises:
responding to an input instruction of a user to obtain a target distance, wherein the target distance is the distance between intersection roads input by the user;
and sequentially determining the positions of the intersection roads in a road map according to the target distances.
6. A map description file generation apparatus, comprising:
the receiving module is used for acquiring characteristic parameters of a first road according to a configuration instruction of a user, wherein the first road is a road corresponding to the configuration instruction of the user;
the determining module is used for generating a corresponding first road based on the characteristic parameters of the first road, wherein the first road at least comprises an intersection road; sequentially determining the position of each first road in a road map to generate corresponding position information, wherein the position information is a coordinate set of the road in the road map, and specifically comprises sequentially determining the position of the intersection road in the road map; determining a road connected with an intersection road from the rest first roads, taking the road as a target road and determining the position of the target road in a road map; determining a road connected with a target road from the rest first roads, and taking the road as the target road;
the judging module is used for determining a target first road according to the position information of the first road, wherein the target first road is the first road which is close in position but not communicated in a road map;
the generation module is used for generating a second road according to the position information of two adjacent target first roads, and the second road is used for enabling the target first roads to be smoothly connected;
and the conversion module is used for generating a corresponding map description file based on the road map formed by the first road and the second road.
7. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory in communication over the bus when the electronic device is running, the processor executing the machine readable instructions to perform the steps of the map description file generation method of any one of claims 1 to 5.
CN202110890587.8A 2021-08-04 2021-08-04 Map description file generation method and device Active CN113538627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110890587.8A CN113538627B (en) 2021-08-04 2021-08-04 Map description file generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110890587.8A CN113538627B (en) 2021-08-04 2021-08-04 Map description file generation method and device

Publications (2)

Publication Number Publication Date
CN113538627A CN113538627A (en) 2021-10-22
CN113538627B true CN113538627B (en) 2024-03-29

Family

ID=78090451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110890587.8A Active CN113538627B (en) 2021-08-04 2021-08-04 Map description file generation method and device

Country Status (1)

Country Link
CN (1) CN113538627B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8928691B2 (en) * 2011-09-26 2015-01-06 Google Inc. Rendering map images using modifications of non-raster map data
CN109858690A (en) * 2019-01-23 2019-06-07 山东省科学院自动化研究所 The test trails dynamic programming method and system of automatic Pilot test carriage
CN110415314A (en) * 2019-04-29 2019-11-05 当家移动绿色互联网技术集团有限公司 Construct method, apparatus, storage medium and the electronic equipment of intersection road network
CN110956673A (en) * 2018-09-26 2020-04-03 北京高德云图科技有限公司 Map drawing method and device
CN111617467A (en) * 2020-04-30 2020-09-04 珠海网易达电子科技发展有限公司 Method, apparatus, electronic device, and computer storage medium for generating map
CN111862263A (en) * 2020-05-29 2020-10-30 广东中科臻恒信息技术有限公司 Method, device and storage medium for constructing test scene of automatic driving automobile
CN112560236A (en) * 2020-12-03 2021-03-26 腾讯科技(深圳)有限公司 Method and related device for generating intersection connecting road
KR20210040321A (en) * 2020-06-19 2021-04-13 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Method and device for testing map service

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7425968B2 (en) * 2003-06-16 2008-09-16 Gelber Theodore J System and method for labeling maps
JP4741328B2 (en) * 2005-09-08 2011-08-03 クラリオン株式会社 Navigation device
US9396563B2 (en) * 2012-06-06 2016-07-19 Apple Inc. Constructing road geometry
US11781875B2 (en) * 2019-08-21 2023-10-10 Toyota Motor Engineering & Manufacturing North America, Inc. Apparatus and method for forming and analyzing connected roads

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8928691B2 (en) * 2011-09-26 2015-01-06 Google Inc. Rendering map images using modifications of non-raster map data
CN110956673A (en) * 2018-09-26 2020-04-03 北京高德云图科技有限公司 Map drawing method and device
CN109858690A (en) * 2019-01-23 2019-06-07 山东省科学院自动化研究所 The test trails dynamic programming method and system of automatic Pilot test carriage
CN110415314A (en) * 2019-04-29 2019-11-05 当家移动绿色互联网技术集团有限公司 Construct method, apparatus, storage medium and the electronic equipment of intersection road network
CN111617467A (en) * 2020-04-30 2020-09-04 珠海网易达电子科技发展有限公司 Method, apparatus, electronic device, and computer storage medium for generating map
CN111862263A (en) * 2020-05-29 2020-10-30 广东中科臻恒信息技术有限公司 Method, device and storage medium for constructing test scene of automatic driving automobile
KR20210040321A (en) * 2020-06-19 2021-04-13 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Method and device for testing map service
CN112560236A (en) * 2020-12-03 2021-03-26 腾讯科技(深圳)有限公司 Method and related device for generating intersection connecting road

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Challenges and experiences in using heterogeneous, geo-referenced data for automatic creation of driving simulator environments;Richter A, Scholz M, Friedl H, et al;《SIMULATION》;第92卷(第5期);全文 *
高精度导航地图助推自动驾驶发展;易琨, 殷春风;《上海信息化》(第2期);第67-70页 *

Also Published As

Publication number Publication date
CN113538627A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN106964156B (en) Path finding method and device
US11615090B2 (en) Method, apparatus and system for determining accessible paths between two nodes
CN113390407A (en) Method, device and equipment for constructing lane-level navigation map and storage medium
US10109106B2 (en) Scalable curve visualization for conformance testing in vehicle simulation
CN111158384A (en) Robot mapping method, device and storage medium
CN112985444A (en) Method and device for constructing navigation elements in map
CN112580179A (en) High-precision map intersection lane shape updating method and system, server and medium
CN107679305B (en) Road network model creating method and device
CN104217580A (en) Vehicle crowd animation oriented method and vehicle crowd animation oriented system for semantically modeling road networks
CN113538627B (en) Map description file generation method and device
CN116858261A (en) Navigation route dynamic planning method, device, computer equipment and storage medium
CN114240976B (en) Map iterative segmentation method, device, equipment and storage medium
CN116764225A (en) Efficient path-finding processing method, device, equipment and medium
CN103021257A (en) Method and apparatus for generating electronic map
CN115830255A (en) Simulation scene generation method and device, electronic equipment and storage medium
JP7239053B2 (en) Generation device, generation method and generation program
CN114037798A (en) Method and device for generating three-dimensional intersection model
JP7239054B2 (en) Generation device, generation method and generation program
CN115048015B (en) Automatic driving simulation scene construction method and system based on high-precision map
CN113468198B (en) Map updating method and device, electronic equipment and medium
CN116331190B (en) Correction method, device and equipment for memory route of memory parking and vehicle
CN113553255B (en) Route scene file generation method and device, electronic equipment and storage medium
CN108303105A (en) Increase the method for path realizing route planning in navigation equipment
CN116935656B (en) Road traffic data processing method and device, electronic equipment and storage medium
CN114582124B (en) Scene editing method, device, medium and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: 401, Floor 4, No. 66, Zizhuyuan Road, Haidian District, Beijing, 100089

Applicant after: Beijing Saimu Technology Co.,Ltd.

Address before: 100082 1501 ZhongGuanCun international innovation building, Haidian District, Beijing

Applicant before: Beijing saimu Technology Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant