A method and device for processing map data
By constructing a local map based on vehicle positioning information, the problem of large vehicle map data processing volume and large storage space occupation is solved, and navigation efficiency is improved.
Patent Information
- Application Number
- CN202111276935.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-10-29
AI Technical Summary
Existing vehicle map data processing methods need to restore the entire map data package to a complete map, resulting in a large amount of data processing and a large storage space occupation, which affects the efficiency of vehicle navigation.
By obtaining the positioning information of the vehicle, based on the positioning information and intersection map data, multiple connected map nodes are determined, a local map is constructed, and the processing volume and storage space of map data packets are reduced.
It realizes the use of map data packages to construct a local map around the vehicle's location, reducing data processing volume and storage space requirements, and improving navigation efficiency.
Smart Images

Figure CN114018240B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a method and device for processing map data. Background Art
[0002] Maps play an important role in vehicle driving. For example, navigation through in-vehicle maps provides users with accurate driving routes.
[0003] At present, the maps used by vehicles are map data packages provided by suppliers. Vehicles can only use the map to provide auxiliary guidance for vehicle driving by restoring the map data package into a complete map. However, processing the map data package into a complete map requires a large amount of data processing, and the complete map also occupies a large storage space. Summary of the invention
[0004] In view of the above problems, a method and device for processing map data is proposed to overcome the above problems or at least partially solve the above problems, including:
[0005] A method for processing map data, the method comprising:
[0006] Acquire a map data packet corresponding to the vehicle positioning information, wherein the map data packet includes intersection map data and road section map data;
[0007] Determining a plurality of connected map nodes based on the positioning information and the intersection map data;
[0008] A local map is constructed according to the plurality of connected map nodes and the road segment map data, so that the vehicle travels according to the local map.
[0009] Optionally, the determining a plurality of connected map nodes based on the positioning information and the intersection map data includes:
[0010] When constructing a local map for the first time, determining map data for a target intersection that matches the positioning information in the intersection map data;
[0011] Create a root node, and store the map data of the target intersection in the root node;
[0012] Based on the root node and the intersection map data, a plurality of connected map nodes are determined.
[0013] Optionally, the determining a plurality of connected map nodes based on the positioning information and the intersection map data includes:
[0014] When the local map is not constructed for the first time, determining a first map node matched by the vehicle in the local map according to the positioning information; the first map node is used to store map data for a first intersection in the intersection map data;
[0015] Determining, according to the first map node, map data for a second intersection in the intersection map data, where the second intersection is an intersection adjacent to the first intersection;
[0016] A second map node connected to the first map node is created, and map data for the second intersection is stored in the second map node.
[0017] Optionally, it also includes:
[0018] During the driving process of the vehicle, the map nodes created in the local map are updated.
[0019] Optionally, the updating of the created map nodes in the local map further includes:
[0020] When the vehicle switches the route at the third intersection, determining the grandparent node of the map node corresponding to the third intersection in the created map nodes;
[0021] The grandparent node is deleted from the local map.
[0022] Optionally, the intersection map data includes offset data between the vehicle and a plurality of intersections, and the updating of the map nodes created in the local map further includes:
[0023] Determine the offset data corresponding to the created map node;
[0024] Determining whether the offset data matches preset offset data;
[0025] When it is determined that the offset data matches the preset offset data, the map node is deleted from the local map.
[0026] Optionally, constructing a local map according to the plurality of connected map nodes and the road section map data comprises:
[0027] Creating a target linked list corresponding to the plurality of connected map nodes;
[0028] The road section map data are sequentially stored in the linked list nodes of the target linked list to construct the local map.
[0029] Optionally, it also includes:
[0030] During the driving process of the vehicle, the target linked list created in the local map is updated.
[0031] A map data processing device, the device comprising:
[0032] A map data packet acquisition module, used to acquire a map data packet corresponding to the vehicle's positioning information, wherein the map data packet includes intersection map data and road section map data;
[0033] A map node determination module, configured to determine a plurality of connected map nodes based on the positioning information and the intersection map data;
[0034] The local map construction module is used to construct a local map according to the multiple connected map nodes and the road section map data, so that the vehicle travels according to the local map.
[0035] A vehicle comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above-mentioned method for processing map data when executed by the processor.
[0036] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing map data as described above is implemented.
[0037] The embodiments of the present invention have the following advantages:
[0038] The embodiment of the present invention obtains a map data packet corresponding to the vehicle's positioning information, wherein the map data packet includes intersection map data and section map data, determines a plurality of connected map nodes based on the positioning information and the intersection map data, and constructs a local map based on the plurality of connected map nodes and the section map data, so that the vehicle can travel according to the local map. The obtained map data packet is used to construct a local map around the vehicle's location, thereby reducing the amount of map data packet processing, and the storage space occupied by the local map is also much smaller than that of the global map. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0040] Figure 1a is a flowchart of a method for processing map data provided by an embodiment of the present invention;
[0041] Figure 1b is a tree structure provided by an embodiment of the present invention;
[0042] Figure 1c It is a linked list structure provided by an embodiment of the present invention;
[0043] Figure 2 is a flowchart of another method for processing map data provided by an embodiment of the present invention;
[0044] Figure 3 is a flowchart of another method for processing map data provided by an embodiment of the present invention;
[0045] Figure 4a is a flowchart of another method for processing map data provided by an embodiment of the present invention;
[0046] Figure 4b is a schematic diagram of updating map data provided by an embodiment of the present invention;
[0047] Figure 4c is a schematic diagram of updating map intersection information provided by an embodiment of the present invention;
[0048] Figure 4d It is a schematic diagram of a process of adding a new tree node provided by an embodiment of the present invention;
[0049] Figure 4e It is a schematic diagram of a storage process of road section information provided by an embodiment of the present invention;
[0050] Figure 5 It is a schematic diagram of the structure of a map data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Reference Figure 1a , shows a flowchart of a method for processing map data provided by an embodiment of the present invention, which may specifically include the following steps:
[0053] Step 101, obtaining a map data packet corresponding to the vehicle positioning information, wherein the map data packet includes intersection map data and road section map data;
[0054] In one example, the map data packet may be data sent to the CAN bus by a third party.
[0055] The map data package may include position data (POSITION), segment map data (SEGMENT), intersection map data (STUB), road shape information (PROFILE), metadata (META-DATA), etc., among which:
[0056] The location data may include: path number, offset, speed, relative direction to the road, current lane, confidence level, and timestamp, etc.
[0057] Road section map data may include: route number, highway grade, type (such as main road, roundabout, parking lot, etc.), road composition (such as expressway, single or double lane, etc.), speed limit, number of lanes, direction, (tunnels, bridges, forks, emergency lanes, calculated routes, service areas and signs for complex intersections), etc.
[0058] Intersection map data (similar to the intersection between SEGMENTs) may include: path number, sub-path number, turning angle (the angle with the next road segment), probability of being an intersection, road type and composition, number of forward and reverse lanes, turning point (turning to another road), whether it is a complex intersection, etc.
[0059] Road shape information may include: path number, contour type, contour sequence points (used for interpolation calculation of positions within this road section), curvature (high-order interpolation), etc.
[0060] Metadata may include: country code, region (state or county) code, driving position (left, right), speed unit, protocol size version, hardware version, map provider, map version, Horizon Provider compatibility, and mode information.
[0061] In practical applications, maps can provide great convenience for users to drive vehicles. Vehicles can obtain external map data packets and process the map data packets to obtain maps that can be used by the vehicle. The map data packets can be world maps or map data of a certain area.
[0062] During vehicle driving, the area that users are concerned about is the road information within a certain range in front and behind the vehicle, and they do not need to pay attention to road conditions other than the driving route. In actual applications, the received map data packet needs to be completely restored to a global map before the map can be used, which leads to a large amount of data processing and the construction of a large number of map areas that do not require user attention. Furthermore, such maps also occupy a large amount of storage space.
[0063] In order to reduce the amount of processing in the map restoration process and reduce the amount of map data storage, the vehicle can determine its own positioning information, and then obtain the map data packet corresponding to the positioning information from the vehicle CAN bus based on the positioning information. The map data packet includes map data within a certain range of the front and rear distances of the vehicle's current position. For example, the supplier AutoNavi Map can provide the vehicle with Advanced Driver Assistance System (Adas) map data from -0.5km to 2.0km, and the Adas map itself has an accuracy of 1m; therefore, a local map can be constructed based on the received map data packet to reduce the amount of data processing.
[0064] In one example, a system control unit (SCU) in a vehicle may be used to process a map data packet received by the vehicle, and the processing method may include processing the map data packet into a local map for storage, and parsing the local map to apply the parsed data to vehicle driving.
[0065] Since the amount of data information in the map data packets received by the vehicle is large, and the hardware resources of the system controller in the vehicle for processing map data are limited, when it is detected that the vehicle is in an insufficient memory condition, the received map data packets can be stored preferentially in the system controller.
[0066] The system controller of the vehicle may be provided with a map module for processing map data packets, and the map module may include a storage layer and a parsing layer.
[0067] The storage layer can receive CAN data (map data packet) and store the received CAN data. The parsing layer can obtain the data stored in the storage layer and parse the stored data through the parsing module of the parsing layer to finally obtain the map cache (i.e., the parsing result). The parsing layer of the map module can output the parsing result to the application layer composed of Adas applications. In the application layer, the information provided by the map module can be applied to adaptive cruise control (ACC), lane centering control (LCC) speed limit fusion, speed limit function (SLF), etc.
[0068] For example, the speed limit value of the driving section or the section to be driven on can be obtained by analyzing the results, and combined with the speed limit results of the visually recognized road, the maximum driving speed that complies with the regulations can be obtained, so that the vehicle can pass through the section without exceeding the maximum driving speed.
[0069] In addition, the road curvature data can be obtained based on the analysis results of the map module, thereby realizing automatic curve cruising.
[0070] Step 102, determining a plurality of connected map nodes based on the positioning information and the intersection map data;
[0071] The map data package may include intersection map data for each intersection; a vehicle will pass through various intersections and road sections during driving, so a local map of the vehicle during driving can be constructed based on the intersections and road sections.
[0072] The intersection map data can be used to determine multiple map nodes in the local map. The map nodes can store the map data of the corresponding intersections. After determining the vehicle positioning information and obtaining the intersection map data, multiple map nodes can be determined based on the positioning information. The intersections corresponding to two connected map nodes are two intersections on the same road section.
[0073] Step 103, constructing a local map based on a plurality of connected map nodes and road segment map data, so that the vehicle travels according to the local map.
[0074] After the map nodes are determined, a local map can be constructed based on the map nodes and the road section map data, so that the vehicle can travel according to the local map.
[0075] Specifically, in the local map, the map nodes correspond to the intersections in the real road, and the map nodes can be connected by connecting lines, which are equivalent to the sections of the real road, so as to form Figure 1b The tree structure shown, such as A, B, C, D, E and #, represents tree nodes on the tree structure. The tree nodes in the tree structure are map nodes. Intersection map data can be stored in the map nodes, and the connecting lines between the map nodes can be used to store section map data.
[0076] Among them, an intersection can point to the main path and the sub path at the same time. The tree nodes can be divided into three categories: root node (RootNode), normal node (NormalNode), and intersection node (CrossNode). Among them, the intersection node can point to the next path (Path).
[0077] Each intersection node will store all the road map data, road shape information, etc. in the next path.
[0078] In addition, to prevent path errors, in the tree structure, the intersection node can store the path of the previous level of the current path. For example, if the path number (PathId) of the current path is 17 and the path number (PathId) of the previous level path is 9, the path numbered 9 will be cached until the next path is switched or the offset distance is greater than the preset distance (such as 500m).
[0079] In one example, when the vehicle turns on functions such as adaptive cruise control (ACC), intelligent speed limit, and automatic cruising on curves, the local map built and stored by the vehicle can be obtained, and the local map can be analyzed to obtain application data to guide vehicle driving.
[0080] For example, after the intelligent speed limit is implemented, the local map constructed in real time can be analyzed to obtain the speed limit data of the road section, and the speed of the vehicle can be controlled according to the speed limit data.
[0081] In one embodiment of the present invention, step 103 includes the following sub-steps:
[0082] Sub-step 1031, creating a target linked list corresponding to a plurality of connected map nodes;
[0083] In practical applications, there is a certain distance between map nodes, which may correspond to the road sections between two intersections in reality. The road section map data is the map data related to the road sections between map nodes. Therefore, after determining the map nodes, a target linked list for storing road section map data may be created between the connected map nodes.
[0084] Sub-step 1032, storing the road segment map data in the linked list nodes of the target linked list in sequence to construct a local map.
[0085] There can be multiple linked list nodes connected in sequence on the target linked list, and the road section map data can be stored in the corresponding linked list nodes in sequence, such as Figure 1c The figure shows a linked list structure, which is a doubly linked list (ie, a double linked list).
[0086] The road segment data in the map data packet, such as the road segment map data (Segment), road shape information (including road curvature, slope, longitude and latitude, altitude, traffic signs and other information) can be distinguished according to the path number, and the road segment data with matching path numbers (i.e., road segment data belonging to the same road segment) are stored in a linear structure in sequence in a bidirectional linked list.
[0087] When storing, the road segment data can be sorted according to the offset, such as Figure 1cAs shown in , head can represent the first linked list node of the linked list, and then the road section data with offsets of 10m, 20m, 30m, 40m, and 50m from the head are stored in the linked list in sequence. The bidirectional linked list can support forward and reverse traversal, dynamic insertion / deletion and other operations.
[0088] In one embodiment of the present invention, step 103 further includes sub-steps:
[0089] Sub-step 1033, during the driving process of the vehicle, the target linked list created in the local map is updated.
[0090] In actual applications, as the vehicle travels, new target linked lists are continuously created to store new road map data, and the previously created linked lists will be increasingly distant from the real-time positioning of the vehicle, and the data stored in the previously created linked lists will become outdated data. Therefore, the target linked lists created in the local map can be updated in real time during the vehicle's travel. The update method may include generating a new linked list or deleting an old linked list.
[0091] In one example, the intersection map data stored in the linked list may include an offset, which is used to indicate the distance between the real-time positioning of the vehicle and each intersection. When the offset exceeds a preset offset, the linked list between intersections in the local map can be updated, and the linked list data whose offset does not meet the requirements can be deleted.
[0092] In one example, the following steps are also included:
[0093] Step 104, during the driving of the vehicle, in response to a triggering event, starting a target vehicle-mounted application;
[0094] During vehicle driving, when a trigger event is detected, the vehicle can respond to the trigger event to start the target vehicle-mounted application, where the trigger event can be an operation by the user to start the target vehicle-mounted application, or a trigger event generated by the vehicle to start the target vehicle-mounted application. For example, the user's operation to start the target vehicle-mounted application can be an operation by the user to start functions such as intelligent speed limit and automatic cruise control on curves. The target vehicle-mounted application can be an application function in the vehicle that is associated with a map, such as a speed limit function.
[0095] Step 105, determining target map data from the acquired data in the local map, and processing the target map data to obtain target application data required by the target vehicle-mounted application;
[0096] The vehicle may first obtain local map data from the location where the map is stored on the vehicle side, and perform data filtering processing on the obtained local map data to determine target map data, where the target map data is the map data required for the target vehicle-mounted application to realize its application function.
[0097] After the target map data is obtained, the target map data may be processed, thereby obtaining the target application data required by the target vehicle-mounted application.
[0098] For example, by processing the speed limit data in the map data, the speed limit starting point and the speed limit end point of each speed limit section are obtained, which are application data that can directly guide the user's driving.
[0099] In one example, step 104 may include the following sub-steps:
[0100] Sub-step 1041, determining the data type required by the target vehicle application;
[0101] Different vehicle-mounted applications require different map data, and the data type of the map data required by the target vehicle application may be determined, wherein the data type may include: intersection type data, road section type data, intersection shape type data, and the like.
[0102] Sub-step 1042, determining target map data corresponding to the data type from the acquired local map data.
[0103] The data of the local map may include various types of data, such as intersection type data, road section type data, intersection shape type data, etc. The data of the local map may be filtered according to the data type required by the target vehicle application to determine the target map data corresponding to the data type.
[0104] By filtering the original map data by data type, the amount of data processing can be reduced and the processing efficiency of map data can be improved.
[0105] In one example, the target map data is stored in a target linked list consisting of a plurality of linked list nodes arranged in sequence, and step 104 further includes the following sub-steps:
[0106] Sub-step 1043, determining, in the target linked list, a current linked list node corresponding to the positioning information of the vehicle;
[0107] After determining the target map data, the target map data stored in the target linked list needs to be parsed. Thus, the current location information of the vehicle can be determined first, and then the coordinate matching linked list node of the location information is searched in the target linked list, and the searched linked list node is used as the current linked list node.
[0108] Sub-step 1044, starting from the current linked list node, traversing the map data stored in multiple linked list nodes in the target linked list to obtain target application data required by the target vehicle-mounted application;
[0109] After determining the current linked list node, the current linked list node can be used as a starting point to traverse multiple linked list nodes included in the target linked list, and the target application data required by the target vehicle application can be obtained by traversing the map data stored in the linked list nodes.
[0110] When the target vehicle-mounted application is a vehicle-mounted application for speed limit, sub-step 1044 may include the following sub-steps:
[0111] Sub-step 10441, obtaining first speed limit data stored in the current linked list node, where the first speed limit data is the speed limit starting point of the first speed limit section;
[0112] In practical applications, the target vehicle application may be a vehicle application for speed limit, and after determining the current linked list node according to the positioning information, the first speed limit data stored in the current linked list node may be obtained, and the first speed limit data may be used as the speed limit starting point of the first speed limit section.
[0113] Sub-step 10442, when the pointer of the target linked list shifts backward, obtaining the second speed limit data of the next linked list node;
[0114] When the pointer of the target linked list shifts backward, the second speed limit data can be obtained according to the order of the linked list nodes.
[0115] Sub-step 10442, determining whether the first speed limit data and the second speed limit data are the same;
[0116] Sub-step 10443, when it is determined that the first speed limit data and the second speed limit data are different, the second speed limit data is used as the speed limit end point of the first speed limit section and the speed limit start point of the second speed limit section.
[0117] When the first speed limit data and the second speed limit data are different, the second speed limit data can be used as the speed limit end point of the first speed limit section and the speed limit starting point of the second speed limit section, and continue to shift the pointer of the target linked list backward, traversing the next linked list node until the pointer points to empty.
[0118] When the first speed limit data and the second speed limit data are the same, the pointer of the target linked list continues to shift backwards, traversing the next linked list node until the pointer points to null.
[0119] Step 105 , calling the target application data when the target vehicle-mounted application is turned on.
[0120] After obtaining the target application data, when the target vehicle-mounted application is turned on, the target application data can be called through a preset interface.
[0121] In an embodiment of the present invention, a map data packet corresponding to the positioning information of the vehicle is obtained, wherein the map data packet includes intersection map data and section map data, and a plurality of connected map nodes are determined based on the positioning information and the intersection map data. A local map is constructed based on the plurality of connected map nodes and the section map data so that the vehicle can travel according to the local map. This realizes construction of a local map around the vehicle's location using the acquired map data packet, reduces the amount of map data packet processing, and the storage space occupied by the local map is also much smaller than that of the global map.
[0122] Reference Figure 2 , shows a flowchart of another method for processing map data provided by an embodiment of the present invention, which may specifically include the following steps:
[0123] Step 201, obtaining a map data packet corresponding to the vehicle positioning information, wherein the map data packet includes intersection map data and road section map data;
[0124] Step 202, when constructing a local map for the first time, determining map data for a target intersection that matches the positioning information in the intersection map data;
[0125] After obtaining the map data packet, when the map is first established, the intersection map data can be searched according to the positioning information to determine the map data for the target intersection. The target intersection can be an intersection near the vehicle's location. Taking the vehicle's current direction of travel as the front, the target intersection can be the intersection behind the vehicle on the road section where the vehicle is currently located.
[0126] Step 203, creating a root node, and storing the map data of the target intersection in the root node;
[0127] When a local map is created for the first time, a root node may be created first, and the map data of the target intersection obtained may be stored in the root node, thereby implementing the assignment of the root node, and the root node corresponds to the target intersection in reality.
[0128] Step 204, determining a plurality of connected map nodes based on the root node and the intersection map data.
[0129] After the root node is determined, extension can be started based on the root node, and other map nodes can be determined in sequence according to the intersection map data, and the map nodes can be connected to each other.
[0130] Specifically, an intersection that the vehicle is about to pass can be determined based on the vehicle's current path and the root node, map data for the intersection can be determined in the intersection map data, a map node connected to the root node can be created, and values can be assigned to the map nodes connected to the root node based on the map data for the intersection.
[0131] Step 205 , constructing a local map based on the plurality of connected map nodes and the road segment map data, so that the vehicle travels according to the local map.
[0132] In an embodiment of the present invention, a map data packet corresponding to the positioning information of the vehicle is obtained, wherein the map data packet includes intersection map data and section map data. When a local map is first constructed, map data for a target intersection that matches the positioning information is determined in the intersection map data, a root node is created, and the map data of the target intersection is stored in the root node. A local map is constructed based on a plurality of connected map nodes and section map data so that the vehicle can travel according to the local map. This achieves the construction of a local map around the vehicle's location using the acquired map data packet, reduces the amount of map data packet processing, and the storage space occupied by the local map is much smaller than that of the global map.
[0133] Reference Figure 3 , shows a flowchart of another method for processing map data provided by an embodiment of the present invention, which may specifically include the following steps:
[0134] Step 301, obtaining a map data packet corresponding to the vehicle positioning information, wherein the map data packet includes intersection map data and road section map data;
[0135] Step 302, when the local map is not constructed for the first time, determining a first map node that matches the vehicle in the local map according to the positioning information; the first map node is used to store map data for the first intersection in the intersection map data;
[0136] During vehicle driving, new map data packets can be continuously acquired according to the vehicle positioning, and a local map can be constructed based on the map data packets. When the local map is not constructed for the first time, the local map can be updated based on the latest acquired map data packets.
[0137] The vehicle can determine a matching first map node in the created local map based on the vehicle positioning information. The first map node can be used to store map data for a first intersection in the intersection map data. The first intersection is the intersection that the vehicle has passed most recently or the intersection closest to the rear of the vehicle. The current position of the vehicle is the section of road connected to the first intersection. The first map node can be a root node or a map node established after the root node.
[0138] Step 303, determining map data for a second intersection in the intersection map data according to the first map node, where the second intersection is an intersection adjacent to the first intersection;
[0139] After determining the first map node, map data of a second intersection that the vehicle is about to pass can be determined in the intersection map data, where the first intersection and the second intersection are two adjacent intersections on the current road section of the vehicle.
[0140] Step 304: Create a second map node connected to the first map node, and store the map data for the second intersection in the second map node.
[0141] After determining the first map node, a second map node connected to the first map node may be created, so that the map data for the second intersection may be determined and assigned to the second map node, and according to the above method for adding a map node, a third node connected to the second map node may be created and assigned to it, etc. Thus, multiple connected map nodes may be obtained.
[0142] Step 305 , constructing a local map based on the plurality of connected map nodes and the road segment map data, so that the vehicle travels according to the local map.
[0143] In an embodiment of the present invention, a map data packet corresponding to the positioning information of the vehicle is obtained, wherein the map data packet includes intersection map data and section map data. When a local map is not constructed for the first time, a first map node that matches the vehicle in the local map is determined based on the positioning information, and the first map node is used to store map data for the first intersection in the intersection map data. Based on the first map node, map data for a second intersection is determined in the intersection map data, and the second intersection is an intersection adjacent to the first intersection. A second map node connected to the first map node is created, and map data for the second intersection is stored in the second map node. A local map is constructed based on a plurality of connected map nodes and section map data so that the vehicle travels according to the local map, thereby realizing construction of a local map on the vehicle's driving route as the vehicle travels, and construction of a local map around the vehicle's location, reducing the amount of map data packet processing, and the storage space occupied by the local map is also much smaller than that of the global map.
[0144] Reference Figure 4a , shows a flowchart of another method for processing map data provided by an embodiment of the present invention, which may specifically include the following steps:
[0145] Step 401, obtaining a map data packet corresponding to the vehicle positioning information, wherein the map data packet includes intersection map data and road section map data;
[0146] Step 402, determining a plurality of connected map nodes based on the positioning information and the intersection map data;
[0147] Step 403, constructing a local map based on the plurality of connected map nodes and the road segment map data, so that the vehicle travels according to the local map.
[0148] Step 404: During the driving process of the vehicle, the map nodes created in the local map are updated.
[0149] During vehicle driving, not only can the local map be updated by adding new map nodes, but also the created map nodes can be updated during driving. Specifically, to avoid outdated map nodes in the local map, the created map nodes can be checked during vehicle driving, and when the map node is confirmed to be outdated, the map node can be deleted.
[0150] In one embodiment of the present invention, step 404 includes the following sub-steps:
[0151] Sub-step 4041, when the vehicle switches the route at the third intersection, determining the grandparent node of the map node corresponding to the third intersection in the created map nodes;
[0152] In actual applications, as the vehicle moves forward, map nodes are created for the intersections ahead of the vehicle's direction of travel, while the intersections behind the vehicle's direction of travel are getting farther and farther away from the vehicle's real-time position. The created map nodes corresponding to these intersections may gradually become outdated and need to be updated.
[0153] In a map node update method, when a vehicle switches routes at an intersection, a map node in a local map corresponding to the intersection passed by the vehicle can be determined, and the relationship between the map node and the created map nodes can be checked, thereby determining the grandparent node of the map node in the created map nodes, and the grandparent node is the parent node of the parent node of the map node corresponding to the intersection passed by the vehicle.
[0154] Sub-step 4042, delete the grandparent node from the local map.
[0155] After the grandparent node is determined, the grandparent node can be deleted in the local map.
[0156] In another embodiment of the present invention, the intersection map data includes offset data between the vehicle and a plurality of intersections, and step 404 includes the following sub-steps:
[0157] Sub-step 4043, determining the offset data corresponding to the created map node;
[0158] In practical applications, intersection map data may include offset data between a vehicle and multiple intersections. The offset data is used to indicate the distance between the intersection and the real-time position of the vehicle. Map nodes are established for real intersections. Thus, each map node may have its corresponding offset data, so that the distance between the real-time position of the vehicle and the map node may be determined based on the offset data.
[0159] During vehicle driving, when the map node is far away from the real-time position of the vehicle, it can be determined that the map node is an outdated map node, and the map node of the local map needs to be updated.
[0160] In another way of updating the map nodes, the offset data corresponding to the created map nodes may be obtained in the local map, so that the created map nodes may be updated according to the offset data.
[0161] Sub-step 4044, determining whether the offset data matches the preset offset data;
[0162] According to the actual situation, a preset offset data is set to filter out outdated map nodes. After the offset data, it can be determined whether the offset data and the preset offset data match. When the offset data and the preset offset data match, the map node is determined to be an outdated map node. When the offset data and the preset offset data do not match, it can be determined that the map node is not outdated.
[0163] For example, the preset offset data may be set to data greater than 500 meters. When a map node is more than 500 meters away from the vehicle position, the map node may be determined to be an outdated map node.
[0164] Sub-step 4045, when it is determined that the offset data matches the preset offset data, the map node is deleted from the local map.
[0165] When it is determined that the offset data matches the preset offset data, the map node can be determined to be an outdated map node, and the map node can be deleted from the local map to obtain a real-time and concise local map, thereby reducing the storage volume of the local map.
[0166] In one embodiment of the present invention, a map data packet corresponding to the positioning information of the vehicle is obtained, wherein the map data packet includes intersection map data and section map data, a plurality of connected map nodes are determined based on the positioning information and the intersection map data, and a local map is constructed based on the plurality of connected map nodes and the section map data so that the vehicle can travel according to the local map. During the driving of the vehicle, the map nodes created in the local map are updated, thereby realizing the construction of the local map, and updating the map nodes during the driving of the vehicle, thereby reducing the processing amount of the map data packet, and the storage space occupied by the local map is also much smaller than that of the global map.
[0167] The following combination Figure 4b , Figure 4c , Figure 4d , Figure 4e The above embodiments are exemplarily described as follows:
[0168] like Figure 4bThe figure shows a schematic diagram of updating map data, wherein the steps of updating map data are as follows:
[0169] (1) Create a 10 millisecond timer task.
[0170] A third-party map provider can encapsulate map data into multiple map data packets. When the vehicle is activated and powered on, the third-party map provider can send the map data packets to the CAN bus. A 10ms timer task can be established in the vehicle to poll the map packet messages (i.e., map data packets) on the CAN bus.
[0171] (2) Determine whether a new map package is received. When a new map package message is received, execute step (3). When no map package message is received, return to step (1).
[0172] When an abnormality is detected in a map package message, the message can be ignored.
[0173] For example: message ignoring logic:
[0174] When the message update fails, the frame is ignored (it may be that the ADAS map is not initialized normally).
[0175] (3) Update map intersection information.
[0176] In practical applications, after obtaining the map message package, the map intersection information can be updated according to the map message package, such as Figure 4c The specific process of updating the map intersection information is shown, including the following steps:
[0177] The map package message may include intersection data packets (stub packets) and section data packets. By establishing a timer task, the map package message may be obtained according to a preset period set by the timer, that is, the intersection data packets and section data packets may be obtained at regular intervals.
[0178] (31) Determine whether a new stub packet is received.
[0179] During the polling timer task, it can be determined whether a new intersection data packet is received. When a new intersection data packet is received, step (32) is executed. When no new stub packet is received, step (31) is continued.
[0180] (32) Read the intersection data packet (i.e., intersection map data) to obtain information such as intersection type, path ID, offset, etc.
[0181] After receiving a new intersection data packet, the intersection data packet can be processed to obtain information such as intersection type, path number, offset, etc., so that a tree structure with each intersection as a tree node can be established based on the intersection type, path number, offset, etc. information.
[0182] (34) Get the current tree node information.
[0183] The system controller of the vehicle can obtain the real-time positioning information of the vehicle. When the tree node is not established for the first time, the current tree node position that matches the current position of the vehicle can be determined from the already constructed tree structure based on the real-time positioning information of the vehicle.
[0184] (35) Delete old tree nodes.
[0185] During vehicle driving, tree nodes established based on the road sections that the vehicle has traveled will gradually become outdated. Therefore, tree node update conditions can be set to remove outdated tree nodes in the tree structure.
[0186] Among them, the update conditions can be set according to the driving dynamics of the vehicle. For example, when the vehicle passes through an intersection and switches from one path to another, the grandparent node of the vehicle's current tree node can be deleted; the update conditions can also be set according to the offset of the tree node, such as checking all tree nodes in the tree structure, and when the offset of a tree node is greater than a preset value (such as when the distance between the vehicle's current position and the tree node exceeds 500 meters), the tree node is deleted.
[0187] (36) Add a new tree node.
[0188] During the driving process, as the vehicle moves, the intersection in front of the vehicle can be continuously obtained according to the vehicle positioning information, so that new tree nodes can be established, such as Figure 4d The figure shows a flow chart of adding a new node to a tree, which includes the following steps:
[0189] (361) Determine whether the tree is empty (i.e., whether it is the first time to construct a local map). If the tree is empty, execute step (362); if the tree is not empty, execute step (363).
[0190] When the vehicle is driving, it can be determined whether the vehicle has already created a tree structure. When the tree structure has been established in the vehicle, that is, the vehicle is not building a local map for the first time, it can be determined that the tree is not empty, so that the current node can be determined and a new node can be created based on the current node; and when the tree is empty, the initial tree node, that is, the root node, can be established, so that other tree nodes can be created based on the root node.
[0191] (362) Create a root node.
[0192] When the tree is empty, the positioning information of the vehicle is obtained, the positioning information is matched with the intersection map data, the intersection map data of the most matching intersection is determined, and a root node is created based on the intersection.
[0193] (363) Determine the current node.
[0194] When the tree is not empty, the path number of the current path is used to recursively query other nodes on the tree according to the vehicle positioning information, so as to find the node position where the vehicle is currently located on the tree.
[0195] (364) Create a new node.
[0196] After determining the current node, a new node can be created based on the current node, that is, a new node is determined on the tree node and memory is allocated for the new node.
[0197] (365) Fill in the new node data content.
[0198] After the new node is determined, the new node data content associated with the new node in the intersection data information can be determined, and the new node is assigned a value in the tree structure, that is, the new node data content is stored in the new node.
[0199] (366)Insert a new node.
[0200] After the assignment is completed, the assigned tree node can be inserted into the tree structure, thereby adding a new tree node in the tree structure.
[0201] (4) Update map location, road section and other information.
[0202] The map packet may include an intersection data packet and a section data packet (including location, section and other information). After updating the intersection map data, the section map information between intersections may also be stored according to a certain data structure, such as Figure 4e The figure shows a schematic diagram of the storage process of the road section information, which includes the following steps:
[0203] The map package message may include intersection data packets (stub packets) and section data packets. By establishing a timer task, the map package message may be obtained according to a preset period set by the timer, that is, the intersection data packets and section data packets may be obtained at regular intervals.
[0204] (41) Determine whether a segment data packet (i.e., segment map data) is received. When a segment data packet is received, execute step (42); when no segment data packet is received, execute step (41).
[0205] During the polling timer task, it can be determined whether a new road section data packet is received. When a new road section data packet is received, step (42) is executed. When no new road section data packet is received, step (41) is continued.
[0206] (42) Read the segment data packet (segment packet) to obtain the path ID (pathID), offset (offset) and other information.
[0207] After receiving a new road section data packet, the road section data packet can be processed to obtain information such as the path number and offset, so that a data structure can be constructed in the road sections between the intersections to store the road section data based on the path number and offset information.
[0208] (43) Get the current tree node information.
[0209] During the driving process of the vehicle, the real-time positioning information of the vehicle can be determined, so that the current tree node information of the vehicle can be determined based on the data of each tree node in the tree structure and the real-time positioning information of the vehicle.
[0210] (44) Get the current linked list node.
[0211] After determining the current tree node information, the linked list associated with the tree stage can be determined, so that the current linked list node can be obtained from the linked list.
[0212] (45) Delete old nodes on the linked list.
[0213] During vehicle driving, the linked list established based on the road section that the vehicle has traveled will gradually become outdated. Therefore, the update conditions of the linked list can be set to remove outdated linked list nodes, where the update conditions can be set according to the offset of the tree node. For example, when querying the current linked list, when the offset of a linked list node is greater than a preset value (such as 500 meters), delete the linked list node.
[0214] (46)Insert a new linked list node.
[0215] During the driving process of the vehicle, as the vehicle moves, the road condition in front of the vehicle is updated, and a new linked list node can be established based on the updated road section.
[0216] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0217] Reference Figure 5 , shows a schematic diagram of the structure of a map data processing device provided by an embodiment of the present invention, which may specifically include the following modules:
[0218] A map data packet acquisition module 501 is used to acquire a map data packet corresponding to the vehicle positioning information, wherein the map data packet includes intersection map data and road section map data;
[0219] A map node determination module 502, configured to determine a plurality of connected map nodes based on the positioning information and the intersection map data;
[0220] The local map construction module 503 is used to construct a local map according to the multiple connected map nodes and the road segment map data, so that the vehicle travels according to the local map.
[0221] In one embodiment of the present invention, the map node determination module 502 includes:
[0222] A target intersection data determination submodule, used to determine, in the intersection map data, map data for the target intersection that matches the positioning information when constructing the local map for the first time;
[0223] A root node assignment submodule, used to create a root node and store the map data of the target intersection in the root node;
[0224] A new map node submodule is added, which is used to determine a plurality of connected map nodes based on the root node and the intersection map data.
[0225] In one embodiment of the present invention, the map node determination module 502 includes:
[0226] A first map node determination submodule is used to determine, when the local map is not constructed for the first time, a first map node that matches the vehicle in the local map according to the positioning information; the first map node is used to store map data for a first intersection in the intersection map data;
[0227] A second intersection data determination submodule, configured to determine map data for a second intersection in the intersection map data according to the first map node, the second intersection being an intersection adjacent to the first intersection;
[0228] The second map node assignment submodule is used to create a second map node connected to the first map node, and store the map data for the second intersection in the second map node.
[0229] In one embodiment of the present invention, it also includes:
[0230] The map node updating module is used to update the map nodes created in the local map during the driving process of the vehicle.
[0231] In one embodiment of the present invention, the map node updating module may include:
[0232] A grandparent node determination submodule, used for determining, in the created map nodes, the grandparent node of the map node corresponding to the third intersection when the vehicle switches the route at the third intersection;
[0233] The first node deletion submodule is used to delete the grandparent node from the local map.
[0234] In one embodiment of the present invention, the intersection map data includes offset data between the vehicle and a plurality of intersections, and the map node updating module may include:
[0235] An offset data determination submodule, used to determine the offset data corresponding to the created map node;
[0236] An offset data matching submodule, used to determine whether the offset data matches the preset offset data;
[0237] The second node deletion submodule is used to delete the map node from the local map when it is determined that the offset data matches the preset offset data.
[0238] In one embodiment of the present invention, the local map construction module 503 may include:
[0239] A target linked list creation submodule, used to create a target linked list corresponding to the plurality of connected map nodes;
[0240] The road section map data storage submodule is used to store the road section map data in sequence on the linked list nodes of the target linked list to construct the local map.
[0241] In one embodiment of the present invention, the local map construction module 503 further includes:
[0242] The target linked list updating submodule is used to update the target linked list created in the local map during the vehicle driving process.
[0243] In an embodiment of the present invention, a map data packet corresponding to the positioning information of the vehicle is obtained, wherein the map data packet includes intersection map data and section map data, and a plurality of connected map nodes are determined based on the positioning information and the intersection map data. A local map is constructed based on the plurality of connected map nodes and the section map data so that the vehicle can travel according to the local map. This realizes construction of a local map around the vehicle's location using the acquired map data packet, reduces the amount of map data packet processing, and the storage space occupied by the local map is also much smaller than that of the global map.
[0244] An embodiment of the present invention further provides a vehicle, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the above-mentioned map data processing method is implemented.
[0245] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for processing map data is implemented.
[0246] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0247] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0248] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0249] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0250] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0251] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0252] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0253] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0254] The above is a detailed introduction to a method and device for processing map data. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for processing map data, characterized in that: The method comprises: Acquire a map data packet corresponding to the vehicle positioning information, wherein the map data packet includes intersection map data and road section map data; Determining a plurality of connected map nodes based on the positioning information and the intersection map data; Creating a target linked list corresponding to the plurality of connected map nodes; The road segment map data is sequentially stored in the linked list nodes of the target linked list to construct a local map so that the vehicle can travel according to the local map; During the driving process of the vehicle, updating the map nodes created in the local map; The map data packet includes map data within a certain range of distances before and after the current position of the vehicle, and the determining of a plurality of connected map nodes based on the positioning information and the intersection map data includes: When the local map is not constructed for the first time, determining a first map node matched by the vehicle in the local map according to the positioning information; the first map node is used to store map data for a first intersection in the intersection map data; Determining, according to the first map node, map data for a second intersection in the intersection map data, where the second intersection is an intersection adjacent to the first intersection; A second map node connected to the first map node is created, and map data for the second intersection is stored in the second map node.
2. The method according to claim 1, characterized in that The determining of a plurality of connected map nodes based on the positioning information and the intersection map data comprises: When constructing a local map for the first time, determining map data for a target intersection that matches the positioning information in the intersection map data; Create a root node, and store the map data of the target intersection in the root node; Based on the root node and the intersection map data, a plurality of connected map nodes are determined.
3. The method according to claim 1, characterized in that The updating of the map nodes created in the local map further includes: When the vehicle switches the route at the third intersection, determining the grandparent node of the map node corresponding to the third intersection in the created map nodes; The grandparent node is deleted from the local map.
4. The method according to claim 1, characterized in that: The intersection map data includes offset data between the vehicle and a plurality of intersections, and the updating of the map nodes created in the local map further includes: Determine the offset data corresponding to the created map node; Determining whether the offset data matches preset offset data; When it is determined that the offset data matches the preset offset data, the map node is deleted from the local map.
5. The method according to claim 1, characterized in that Also includes: During the driving process of the vehicle, the target linked list created in the local map is updated.
6. A map data processing device, characterized in that: The device comprises: A map data packet acquisition module, used to acquire a map data packet corresponding to the vehicle's positioning information, wherein the map data packet includes intersection map data and road section map data; A map node determination module, configured to determine a plurality of connected map nodes based on the positioning information and the intersection map data; A local map construction module, configured to construct a local map according to the plurality of connected map nodes and the road segment map data, so that the vehicle travels according to the local map; A map node updating module, used for updating the map nodes created in the local map during the driving process of the vehicle; The map data packet includes map data within a certain range of distances before and after the current position of the vehicle, and the map node determination module further includes: A first map node determination submodule is used to determine, when the local map is not constructed for the first time, a first map node that matches the vehicle in the local map according to the positioning information; the first map node is used to store map data for a first intersection in the intersection map data; A second intersection data determination submodule, configured to determine map data for a second intersection in the intersection map data according to the first map node, the second intersection being an intersection adjacent to the first intersection; A second map node assignment submodule, used for creating a second map node connected to the first map node, and storing the map data for the second intersection in the second map node; The local map construction module also includes: A target linked list creation submodule, used to create a target linked list corresponding to the plurality of connected map nodes; The road section map data storage submodule is used to store the road section map data in sequence on the linked list nodes of the target linked list to construct the local map.
7. A vehicle, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method for processing map data according to any one of claims 1 to 5 when executed by the processor.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing map data according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
System and method for generating lane-level navigation map of unmanned vehicle
CN106441319A
DSRC-based (dedicated short-range communications based) intelligent vehicle map fusion system and method
CN106969779A
Pavement safety detection system and method based on roadside device
CN110648548A
Image data automatic labeling method and device
CN112667837A
Guide method for transportation means lines using local map
CN1749695A
