Detailed Description
To make the technical problems, technical solutions and advantages to be solved by the present application clearer, the following detailed description is made with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the embodiments of the present application be fully understood. Accordingly, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present application. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In addition, the terms "system" and "network" are often used interchangeably herein.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
As shown in fig. 1, an embodiment of the present application provides a map making method, including:
step 101: receiving a first input of a user on a first interface, wherein an initial map is displayed on the first interface;
here, it should be noted that the first interface may be an operation interface of a mapping tool; displaying a currently determined initial map on the operation interface, wherein the operation of a user on the initial map is the first input; specifically, the frame selection operation may be selecting a certain area, or selecting a boundary point of a certain area to determine the target area, or directly inputting a center point coordinate of the target area, in which case a coordinate input box needs to be set on the first interface for the user to perform the first input operation, and of course, the first input may also be a voice input of the user, such as: 500 meters around the site a, etc.
Step 102: in response to a first input, acquiring a target area in an initial map;
that is, after the mapping tool receives a first input of the user at the first interface, the mapping tool determines coordinate data of a boundary point of a target area according to the first input, and acquires (extracts) a target area selected by the user from the initial map according to coordinate information of the boundary point, wherein the target area corresponds to an area selected by the user through the first input.
Step 103: first map data of a target area is generated.
Here, it should be noted that the mapping tool automatically generates the first map data of the target area after acquiring the target area in response to the first input, where "automatically" may be understood as not requiring any operation by the user, but the mapping tool automatically determines and displays related information of a high-precision map in the target area according to a preconfigured production rule in the background, where the related information may include: node information, road information, lane waypoint information, road driving intersection information, lane phase information, other participant permitted behavior information, lane speed limit information, road width information, and the like, but not limited thereto.
It should be further noted that the first map data may be XML-format map data of a device side conforming to the LTE standard.
The map making method comprises the steps that firstly, a map making tool receives first input of a user on a first interface; secondly, the map making tool responds to the first input to obtain a target area in the initial map, and finally, the map making tool generates first map data of the target area.
Further, as an optional implementation manner, in step 101, before receiving the first input of the user at the first interface, the method further includes:
the method comprises the following steps: receiving a second input of the user on a second interface;
in this step, the second interface may be an operation interface for newly building a map in the map making tool, and the second operation interface may include an input area and a display area; the input area is used for a user to input information related to map making, and the second input in the step is the operation of the user in the input area of the second interface; the display area is used for displaying map data.
Specifically, the input area may include an engineering name input box, an engineering description input box, a data upload button, and the like; as the name implies, the project name input box is used for inputting the project name of the map which is currently made, the project description input box is used for describing the project, the data uploading button is used for a user to upload data, the data can be position coordinates (longitude and latitude) collected by the user for making the map or coordinates determined by the user according to a third-party high-precision map, as an achievable mode, after the user clicks the data uploading button, the map making tool can display a popup box for selecting the uploaded data, and the user can call the file through the path by selecting the path of the file in which the position coordinates are stored, so that the position data can be obtained, and the situation that the user manually inputs the coordinates of each position can be avoided.
Here, it should be noted that the above-mentioned manner of uploading data is only an example, and it should be understood that a person skilled in the art may also input data in other manners as long as data input can be achieved by a simple operation of a user, such as: the data storage position is preconfigured, and the data on the preconfigured data storage position is directly called by the mapping tool to obtain the data after the user creates a new project and clicks the upload button, which should be a protection scope of the embodiment of the present application.
Step two: acquiring second map data for creating the first map data in response to the second input;
as described above, the mapping tool may call a file in which coordinate data is stored to obtain the coordinate data, or obtain the coordinate data from a pre-configured data storage location, according to the storage path information selected by the user.
Step three: and generating an initial map according to the second map data.
In the optional implementation mode, the user inputs second map data used for making the first map data through second input on the second interface, and the map making tool responds to the second input to obtain the second map data, so that an initial map is automatically generated according to the second map data.
As an alternative implementation, generating an initial map according to the second map data includes:
the method comprises the following steps: generating a map layer according to the second map data, and setting first mark information on the map layer; wherein the first marker information includes at least one of:
a lane line;
a lane center point;
a road sideline;
a crossing location;
specifically, in this step, the map making tool may render the map layer according to the second map data, that is: marking lane lines, lane center lines, road edges, intersection positions and the like on the second map data to render the map layer; more specifically, the mapping tool may render the map layer via a map server.
Step two: and nesting the map layer with an Open Source Map (OSM) to generate an initial map.
Specifically, in this step, the map making tool nests the OSM chinese map layer at the bottom layer of the map layer to generate the initial map.
In this optional embodiment, the map making tool can automatically render a map layer according to the second map data and nest an OSM chinese map layer on the bottom layer of the map layer to automatically generate the initial map, thereby reducing the input operation of the user and improving the map making efficiency.
As an alternative implementation, step 103, generating first map data of the target area, includes:
the method comprises the following steps: determining first information in a target area; the first information includes at least one of:
a target node;
road and road attributes;
the lane attribute, wherein the lane is a lane on a road;
in this step, the first information may further include an upstream-downstream relationship between the target nodes; in particular, this step may determine/program the first information based on the second map data of the target area.
Step two: marking the first information in the target area to generate first map data of the target area;
here, it should be noted that the lane is one or more lanes determined according to the lane line on the road.
In this optional implementation manner, after the map making tool obtains the target area in the initial map, the first information in the target area may be determined according to the preconfigured rule, and the first information is marked in the target area to automatically generate the first map data.
Optionally, the target node includes at least one of:
a crossing center point;
a center point of a road starting end;
a center point of a road termination end;
the center point at a road curve.
That is to say, after the mapping tool acquires the target area, the mapping tool automatically traverses the target area to determine a crossing center point, a road start end center point, a road end center point and a road curve center point in the target area, and labels the traversed positions as target nodes of the target area according to a preconfigured rule.
As shown in fig. 2, "a", "B", "C", "D", "F", "G" and "H" are all target nodes, where a "and" B "are intersection center points," C "and" D "are center points of end points of roads, and" H "and" F "are center points of start ends of roads, and there is only one road between two target nodes; each target node contains information on a link upstream thereof, e.g., the a target node contains information on a link between the G target node and the a target node, and the B target node contains information on a link between the a target node and the B target node.
As an optional implementation, the determining the central point at the road curve includes:
in the target area, if the number of the acquisition points contained in the first preset distance is greater than a preset value, determining a middle break point of a curve segment formed by the acquisition points as a central point of a road curve; wherein the acquisition points indicate locations acquired for generating the first map data.
Here, it is emphasized that the acquisition points contained within the first distance should be acquisition points located within a lane, which form a curve or a straight line on the lane; the first distance is a distance along the length direction of the lane, and the first distance can be determined according to the coordinates of the acquisition point. Such as: when the map making tool determines the target node, the map making tool traverses all lanes of the second map data, if the number of the acquisition points is greater than i on a lane line with the length along the length direction of the lane line being the first distance L, the lane line is determined to be a curve lane line, and a middle folding point of the curve lane line is determined to be the target node; wherein i is the maximum value of the number of acquisition points within the first distance.
Further, as an optional implementation manner, the target node further includes: a first node; the determination mode of the first node comprises the following steps:
under the condition that the distance between two adjacent target nodes is larger than a second preset distance, m first nodes are inserted between the two adjacent nodes, wherein m is INT [ a/A ] -1, a is the length of a line segment formed by acquisition points between the two adjacent target nodes, and A is the second preset distance.
That is to say, in the map making method according to the embodiment of the present application, the maximum distance between nodes is preset, and after the map making tool determines each target node, it is further necessary to further determine whether the distance between two adjacent target nodes meets a preset rule, and if not, a first node needs to be inserted between two target nodes that do not meet the preset rule, so that the distance between each node (the target node and the first node) in the first map data meets the preset rule.
Optionally, the determining manner of the road and the road attribute includes:
generating a first LINK (LINK) between two adjacent target nodes;
traversing the intersection center point of the target area, and determining the road attribute of the first road; the node information of the intersection center point carries the related information of the road at the upstream of the intersection center point.
Therefore, the attribute information of the road upstream of the central point of each intersection can be obtained by traversing the intersection central points of the target areas, so that the related attribute information of the road can be marked in the target areas to realize the first map data. The road attribute information includes, but is not limited to, the following: road driving direction intersection information, phase information, other participant permitted behavior information, speed limit information, road width information, road height limit information, contained lane information, road name information and the like.
Optionally, the determining manner of the lane and the lane attribute includes:
generating at least one lane on the first road according to the number of lane lines in the target area;
and traversing the center point of the intersection in the target area, and determining the lane attribute of at least one lane.
Here, it should be noted that the lane is one or more lanes located on the road, and therefore, the determination method of the lane and the lane attribute is the same as the determination method of the road and the road attribute, and the lane attribute can be determined at the same time in the actual map making process; specifically, after a road is determined, lanes on the road are determined according to the number of lane lines on the road, and then, intersection center points adjacent to the road are traversed to determine road attributes and lane attributes. The lane attribute may include, but is not limited to: lane waypoint information, lane phase information, other participant permitted behavior information, lane speed limit information, lane height limit information, lane width information, lane driving direction intersection information, and the like. Here, the lane route point information is N route points that are uniformly generated for each lane line based on the number N of lane route points set in advance. Wherein, the waypoint may be the acquisition point displayed on the lane, namely: the path points can be N acquisition points uniformly selected on the lane.
Further, as an optional implementation manner, the map making method according to the embodiment of the present application further includes:
receiving a third input of the user on a third interface; the third interface displays the first map data;
in this step, the third interface may be a map adjustment display interface in a map making tool, and a user may input a corresponding operation on the third interface to adjust the map data, where the user may at least add, delete, modify, query, and the like, to the following information in the map data, as required: a target node, a first node, road and road attributes, lane and lane attributes, waypoints, and the like.
Adjusting the first map data in response to a third input;
and displaying the adjusted first map data.
In the optional embodiment, the user modification function is set, so that the user can modify the relevant information of the map according to the requirement, the map data can be conveniently adjusted by the user, the map making tool is more intelligent, and the map making efficiency and the use experience of the user are improved.
Further, as an optional implementation manner, the map making method according to the embodiment of the present application further includes:
receiving a fourth input of the user on the downloading interface;
in response to the fourth input, an XML file encapsulating the first map data is downloaded.
In this optional embodiment, by setting the downloading function, the XML file that encapsulates the first map data according to the LTE standard is provided for the user to download or issue to the RSU.
The following describes a manufacturing process of the map manufacturing method according to the embodiment of the present application with reference to fig. 3:
step 301: uploading high-precision map coordinate data, namely: the user performs second input operation on a second interface so as to upload the acquired coordinate data or the coordinate data selected from the third-party high-precision map to the map making tool;
step 302: rendering a map layer with marks such as lane lines, lane central points, lane lines and the like; the step can also further comprise nesting the OSM with the map layer;
step 303: demarcating a map area for creating V2X map data; the step can be that the user performs a first input on a first interface to select a target area;
step 304: traversing map road centerline data: generating target nodes at a road junction, a road cut-off and a road curve; it should be noted that the intersection is a central point position of the road intersection, the road end is a central point of a road starting end and a central point of a road ending end, and the road curve is a central point of a road curve;
step 305: judging that the distance between the adjacent target nodes is larger than a threshold value, if so, executing a step 310, and if not, executing a step 306; wherein the threshold is a second preset distance;
step 306: generating road data according to the upstream and downstream of the target node, and assigning a driving intersection for the road data;
step 307: traversing map lane line data to generate lanes for the road;
step 308: uniformly generating a path point list on the center line of each lane;
step 309: marking the target node, the first node, the road, the lane and the path point on a map;
step 310: a first node is inserted between two adjacent target nodes and step 306 is performed.
The map making method of the embodiment of the application comprises the steps that firstly, a user uploads collected coordinate data or coordinate data selected from a third-party high-precision map to a map making tool, secondly, the map making tool automatically renders map layers containing marks such as lane lines, lane center points, road borders, intersections and the like, and nested with the OSM, generates and displays an initial map, and again, a user selects a target area for generating first map data on the initial map, so that the user can visually check the map page of the target area in the map making process, and then the map making tool automatically generates and displays the first map tool of the target area, thereby realizing complete display and verification of the first map data, and finally, the user downloads an XML file which encapsulates the first map data and accords with the LET standard. Therefore, the efficiency of making map data is greatly improved.
In the mapping method provided in the embodiment of the present application, the execution main body may be a mapping apparatus, a tool, or a system, or a control module in the mapping apparatus, the tool, or the system, which is used to execute the loaded mapping method.
As shown in fig. 4, an embodiment of the present application provides a map making apparatus 400, where the apparatus 400 includes:
a first receiving module 401, configured to receive a first input of a user on a first interface; the first interface displays an initial map;
a first response module 402, configured to, in response to a first input, obtain a target area in an initial map;
a first generating module 403 is configured to generate first map data of the target area.
In the mapping apparatus 400 of the embodiment of the application, first, the first receiving module 401 receives a first input of a user on a first interface; secondly, the first response module 402 responds to the first input to obtain a target area in the initial map, and finally, the first generation module 403 generates first map data of the target area, so that the mapping device 400 provides a visual interface and simple operation for a user, shields a complicated LTE technology communication protocol on the bottom layer for the user, realizes that only the user needs to determine the target area, the mapping device 400 can automatically generate the first map data of the target area, and greatly improves the efficiency of generating the map data.
Optionally, the mapping apparatus 400 further includes:
the second receiving module is used for receiving a second input of the user on the second interface;
a second response module for acquiring second map data for making the first map data in response to a second input;
and the second generation module is used for generating an initial map according to the second map data.
Optionally, the second generating module includes:
the first generation submodule is used for generating a map layer according to the second map data, and first mark information is set on the map layer;
the second generation submodule is used for nesting the map layer with the open source map OSM to generate an initial map;
wherein the first marker information includes at least one of:
a lane line;
a lane center point;
a road sideline;
and (4) crossing positions.
Optionally, the first generating module 403 includes:
the determining submodule is used for determining first information in the target area;
the third generation submodule is used for marking the first information in the target area and generating first map data of the target area;
the first information includes at least one of:
a target node;
road and road attributes;
and the lane attribute, wherein the lane is a lane on the road.
Optionally, the target node comprises at least one of:
a crossing center point;
a center point of a road starting end;
a center point of a road termination end;
the center point at a road curve.
Optionally, the manner in which the determining sub-module determines the center point at the road curve comprises:
in the target area, if the number of the acquisition points contained in the first preset distance is larger than a preset value, determining a middle break point of a curve section formed by the acquisition points as a central point of a road curve; wherein the acquisition point indicates a location acquired for generating the first map data.
Optionally, the target node further comprises: a first node; the mode of the determining submodule for determining the first node includes:
under the condition that the distance between two adjacent target nodes is larger than a second preset distance, m first nodes are inserted between the two adjacent nodes, wherein m is INT [ a/A ] -1, a is the length of a line segment formed by acquisition points between the two adjacent target nodes, and A is the second preset distance.
Optionally, the manner of determining the road and the road attribute by the determining sub-module includes:
generating a first road between two adjacent target nodes;
traversing the intersection center point of the target area, and determining the road attribute of the first road; the node information of the intersection center point carries the related information of the road at the upstream of the intersection center point.
Optionally, the manner in which the determining submodule determines the lane and the lane attribute includes:
generating at least one lane on the first road according to the number of lane lines in the target area;
and traversing the center point of the intersection in the target area, and determining the lane attribute of at least one lane.
Optionally, the mapping apparatus 400 further includes:
the third receiving module is used for receiving a third input of the user on a third interface; the third interface displays the first map data;
a third response module for adjusting the first map data in response to a third input;
and the display module is used for displaying the adjusted first map data.
Optionally, the mapping apparatus 400 further includes:
the fourth receiving module is used for receiving a fourth input of the user on the downloading interface;
and the fourth response module is used for responding to the fourth input and downloading the XML file for packaging the first map data.
In the mapping apparatus 400 according to the embodiment of the present application, first, a user uploads collected coordinate data or coordinate data selected from a high-precision map of a third party to the mapping apparatus 400, then, the map making device 400 automatically renders the map layer containing the marks of lane line, lane center point, road edge, intersection, etc., and nested with the OSM, generates and displays an initial map, and again, a user selects a target area for generating first map data on the initial map, so that the user can visually check the map page of the target area in the map making process, and then the map making device automatically generates and displays the first map tool of the target area, thereby realizing complete display and verification of the first map data, then, the user adjusts the first map data in the mapping apparatus 400, which is convenient for the user to adjust the data as required, and finally, the user downloads the XML file encapsulating the first map data according to the LET standard. Therefore, the efficiency of making map data is greatly improved.
To better achieve the above object, as shown in fig. 5, the present application further provides a mapping system including: a processor 500; and a memory 520 connected to the processor 500 through a bus interface, wherein the memory 520 is used for storing programs and data used by the processor 500 in executing operations, and the processor 500 calls and executes the programs and data stored in the memory 520.
Wherein, the transceiver 510 is connected with the bus interface for receiving and transmitting data under the control of the processor 500; the processor 500 is configured to read the program in the memory 520 and execute the following steps:
receiving a first input of a user on a first interface, wherein an initial map is displayed on the first interface;
in response to a first input, acquiring a target area in an initial map;
first map data of a target area is generated.
Wherein in fig. 5, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 500, and various circuits, represented by memory 520, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 510 may be a number of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. For different terminals, the user interface 530 may also be an interface capable of interfacing with a desired device, including but not limited to a keypad, display, speaker, microphone, joystick, etc. The processor 500 is responsible for managing the bus architecture and general processing, and the memory 520 may store data used by the processor 500 in performing operations.
Optionally, before the processor 500 controls the transceiver 510 to receive the first input of the user at the first interface, the processor 500 is further configured to:
receiving a second input of the user on a second interface;
acquiring second map data for creating the first map data in response to the second input;
and generating an initial map according to the second map data.
Optionally, when the processor 500 generates the initial map according to the second map data, it is specifically configured to:
generating a map layer according to the second map data, and setting first mark information on the map layer;
nesting the map layer with the open source map OSM to generate an initial map;
wherein the first marker information includes at least one of:
a lane line;
a lane center point;
a road sideline;
and (4) crossing positions.
Optionally, when the processor 500 generates the first map data of the target area, it is specifically configured to:
determining first information in a target area;
marking the first information in the target area to generate first map data of the target area;
the first information includes at least one of:
a target node;
road and road attributes;
the lane attribute, wherein, the lane is the lane that is located on the road.
Optionally, the target node comprises at least one of:
a crossing center point;
a center point of a road starting end;
a center point of a road termination end;
the center point at a road curve.
Optionally, the way in which the processor 500 determines the center point at the road curve includes:
in the target area, if the number of the acquisition points contained in the first preset distance is larger than a preset value, determining a middle break point of a curve section formed by the acquisition points as a central point of a road curve; wherein the acquisition point indicates a location acquired for generating the first map data.
Optionally, the target node further comprises: a first node; the manner in which the processor 500 determines the first node includes:
under the condition that the distance between two adjacent target nodes is larger than a second preset distance, m first nodes are inserted between the two adjacent nodes, wherein m is INT [ a/A ] -1, a is the length of a line segment formed by acquisition points between the two adjacent target nodes, and A is the second preset distance.
Optionally, the way in which the processor 500 determines the road and the road attribute includes:
generating a first road between two adjacent target nodes;
traversing the intersection center point of the target area, and determining the road attribute of the first road; the node information of the intersection center point carries the related information of the road at the upstream of the intersection center point.
Optionally, the way in which the processor 500 determines the lane and the lane attribute includes:
generating at least one lane on the first road according to the number of lane lines in the target area;
and traversing the center point of the intersection in the target area, and determining the lane attribute of at least one lane.
Optionally, the processor 500 is further configured to:
receiving a third input of the user on a third interface; the third interface displays the first map data;
adjusting the first map data in response to a third input;
and displaying the adjusted first map data.
Optionally, the processor 500 is further configured to:
receiving a fourth input of the user on the downloading interface;
in response to the fourth input, an XML file encapsulating the first map data is downloaded.
The embodiment of the mapping system of the application corresponds to the embodiment of the method, all implementation means in the embodiment of the method are applicable to the embodiment of the terminal, and the same technical effect can be achieved.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the processes of the map making method embodiment described above, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be performed by hardware, or may be instructed to be performed by associated hardware by a computer program that includes instructions for performing some or all of the steps of the above methods; and the computer program may be stored in a readable storage medium, which may be any form of storage medium.
Furthermore, it should be noted that in the apparatus and method of the present application, it is apparent that the components or steps may be disassembled and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application. Also, the steps of performing the series of processes described above may naturally be performed chronologically in the order described, but need not necessarily be performed chronologically, and some steps may be performed in parallel or independently of each other. It will be understood by those of ordinary skill in the art that all or any of the steps or elements of the methods and apparatus of the present application may be implemented in any computing device (including processors, storage media, etc.) or network of computing devices, in hardware, firmware, software, or any combination thereof, which can be implemented by those of ordinary skill in the art using their basic programming skills after reading the description of the present application.
The object of the present application can thus also be achieved by running a program or a set of programs on any computing device. The computing device may be a general purpose device as is well known. The object of the application can thus also be achieved merely by providing a program product comprising program code for implementing the method or the apparatus. That is, such a program product also constitutes the present application, and a storage medium storing such a program product also constitutes the present application. It is to be understood that the storage medium may be any known storage medium or any storage medium developed in the future. It is further noted that in the apparatus and method of the present application, it is apparent that the components or steps may be disassembled and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application. Also, the steps of executing the series of processes described above may naturally be executed chronologically in the order described, but need not necessarily be executed chronologically. Some steps may be performed in parallel or independently of each other.
The foregoing is a preferred embodiment of the present application and it should be noted that modifications and embellishments could be made by those skilled in the art without departing from the principle described in the present application and should be considered as the scope of protection of the present application.