A method for dynamic loading of local maps based on high-precision maps for autonomous driving
Requesting and updating high-precision maps through UDP, deleting data points behind the car, and converting and saving new data to local maps, solving the problem of wasted computing resources when autonomous vehicles obtain and update high-precision maps, and achieving efficient local The map is dynamically loaded and updated, which improves the efficiency of vehicle positioning and path planning.
Patent Information
- Application Number
- CN202210114938.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-31
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-01-31
AI Technical Summary
When existing autonomous vehicles obtain and update high-precision maps, frequent data requests and transmissions lead to a waste of computing resources, and traditional methods cannot effectively handle data overlap and dynamically load local maps, affecting the efficiency of vehicle positioning and path planning.
Request high-precision map data around the vehicle from the map server through UDP, delete data points behind the vehicle, and convert and save the newly received data to the local map to achieve dynamic loading and updating, reducing repeated calculations and resource waste.
It achieves small computational load, dynamic saving and loading of local maps, improves the accuracy and visualization effect of vehicle positioning, reduces the consumption of computing resources, and improves the efficiency of data processing.
Smart Images

Figure CN114659511B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of autonomous driving vehicle positioning, and specifically is a method for dynamically loading a local map around a vehicle position based on a high-precision map of an autonomous driving highway or urban area. Background Art
[0002] In the current car autonomous driving solutions, high-precision maps run through the three important links of positioning, perception, and decision-making, and are an indispensable component for realizing the vehicle's autonomous driving function. For autonomous vehicles, the controller needs to obtain comprehensive, accurate, and real-time road feature information around the vehicle in real time in order to control the vehicle to move reasonably. Due to the constraints of the performance of on-board sensors and weather and other factors, only environmental information within a certain accuracy and range around the vehicle can be obtained. High-precision maps save a large amount of driving assistance information such as the location, type, color, and curvature of lane lines, as well as stop lines, traffic light locations, and road signs. They can accurately and comprehensively characterize road features, assist vehicles in achieving high-precision positioning, make up for the limitations of the perception distance of on-board sensors, and provide more comprehensive environmental information to help vehicles plan and make decisions on paths, and provide prior information for situations where vehicles need to accelerate, decelerate, change lanes, and avoid.
[0003] The traditional method of loading maps is to frequently request maps, clear the original local map data after receiving the map data, and then convert all the newly received data into the format of the local map and save it. This method will cause a large burden on the map server and communication bandwidth, and the conversion operation of repeated data between similar frames will also cause a waste of computing resources. Generally, high-precision maps are structured data formed by map vendors using various types of high-precision sensors to collect road information, and then save it after information extraction and processing. When in use, the vehicle sends location information to the server that saves the high-precision map to request the map, and the server returns the high-precision map information within a certain range in front of the requested location for use by the autonomous driving software. On the one hand, the vehicle needs to request the map at a higher frequency in order to update the surrounding road information in real time, but on the other hand, frequent requests and transmissions of high-precision map information will also increase the pressure on the communication module, and processing the overlapping content in the map information sent within a certain interval will also cause a waste of computing resources. Therefore, it is necessary to provide a method that processes a small amount of data and can dynamically load local maps within a certain range in front of and behind the vehicle.
[0004] CN110442393A discloses a method for dynamically loading a map, a computer storage medium, and an electronic device. The method obtains map model data of different degrees of precision and the position of an observation viewpoint, searches for a preset number of map data to be displayed from the data blocks of the obtained map model data of different degrees of precision according to the position of the observation viewpoint, reconstructs the found map data to be displayed, and displays the reconstructed map data. However, the above method is an oblique photography aerial map based on the Unity game engine, and is mainly used in games and other fields. Because the application fields are different, the data type and quantity obtained may vary greatly, and the requirements for the real-time nature of the acquired data are also inconsistent. Therefore, this method cannot be directly applied to the field of autonomous driving. Therefore, it is necessary to develop a dynamic loading method for high-precision maps suitable for the field of autonomous driving. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a method with small computational complexity and capable of dynamically saving and loading local maps around an autonomous driving vehicle.
[0006] To achieve the above purpose, the present invention adopts the following technical solutions:
[0007] A method for dynamically loading a local map based on a high-precision map for autonomous driving, characterized by comprising the following steps:
[0008] 1) Obtain accurate vehicle location information through the positioning module;
[0009] 2) Calculate the distance between the vehicle's current location and the location when the map was last requested; when the distance exceeds a certain limit, send the vehicle's current location to the map server via UDP to request a map;
[0010] 3) Receive map data within a certain range in front of the requested location sent from the map server via UDP;
[0011] 4) Delete points beyond a certain range behind the vehicle in the local map;
[0012] 5) Find the part of the received high-precision map data that is not included in the local map, convert its format and save it in the local map;
[0013] 6) Convert the local map into a format suitable for display and visualize it.
[0014] Further, the specific steps include:
[0015] 1) Receive the information output by the positioning module through UDP communication to obtain the current location;
[0016] 2) The method for determining whether a map request is needed is to calculate the distance between the location when the map was last requested and the current location. When the distance is greater than the set value, proceed to step 3), otherwise return to step 1);
[0017] 3) Send the location data obtained in 1) to the map server to request a high-precision map, and then receive the map information sent by the map server via UDP;
[0018] 4) Delete points outside a certain range behind the vehicle stored in the local map, and the data format stored in the local map;
[0019] 5) Determine which of the received data needs to be added to the local map and add it;
[0020] 6) Convert each point in the lane line stored in the local map into a visualized format from front to back, one lane line at a time, and save it in a variable. Then call the visualization method of the variable to visualize the data in the local map, showing the points of the lane line around the current location of the vehicle.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] 1. The present invention determines whether a map request is needed based on the distance traveled by the vehicle. It has a small amount of computation and can dynamically save and load local maps around the autonomous driving vehicle, thus avoiding the waste of computing resources caused by directly and repeatedly requesting maps. The local map uses a data structure that can efficiently handle add and delete operations to save data, so as to facilitate rapid data processing. The data saved in the local map is in a format that is easy to compare and display after conversion, which facilitates data matching and display. The local map will save information within a certain distance behind the vehicle, assisting the vehicle in accurately positioning itself in the high-precision map and enhancing the visualization effect. The newly received high-precision map raw data is identified to determine which parts are not included in the local map and convert their formats to add them to the local map, thus avoiding the waste of resources and time cost caused by repeated conversion.
[0023] 2. The method of the present invention is based on the high-precision map provided by the map vendor, maintains a set of local map data around the vehicle, and continuously deletes the data beyond a certain distance behind the vehicle and adds the newly added data in front of the vehicle as the vehicle moves, so as to realize the function of dynamically saving and loading the local map around the vehicle.
[0024] 3. The present invention is based on high-precision maps and makes full use of high-precision map data received in each frame. By judging the similarities and differences between the local map and the newly received data, the map is requested as little as possible, and the calculation of the overlapping parts between the newly received data and the data in the existing local map is minimized. The map information around a group of vehicles is dynamically maintained to achieve dynamic visualization of the local map. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 The present invention is a flowchart of a method for dynamically loading local maps based on high-precision maps for autonomous driving.
[0026] Figure 2 A block diagram of high-precision map data received and stored by the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and drawings.
[0028] See also Figure 1 , a method for dynamically loading a local map based on a high-precision map for autonomous driving, specifically comprising the following steps:
[0029] 1) Receive the information output by the positioning module through UDP communication to obtain the current location;
[0030] 2) Determine whether a map request is needed by calculating the distance between the location when the map was last requested and the current location. If the distance is greater than the set value, proceed to step 3), otherwise return to step 1);
[0031] 3) Send the location data obtained in 1) to the map server to request a high-precision map, and then receive the map information sent by the map server via UDP;
[0032] 4) Delete points outside a certain range behind the vehicle stored in the local map, and the data format stored in the local map;
[0033] See also Figure 2 , the specific deletion method is as follows:
[0034] 4a) For each lane line in the local map, determine the distance between it and the vehicle position one by one from the back to the front. When a distance less than the set threshold is found, stop determining and delete all points from the first point to the previous point of the current point. If each point of the current lane line does not meet the determination condition, proceed to step 4b);
[0035] 4b) Select the first point in the current lane line and transform its coordinates to the vehicle coordinate system through coordinate transformation to determine whether the point is in front of or behind the vehicle. The formula for coordinate transformation is:
[0036] P w =R wv P v +t wv
[0037] Among them, P wRepresents the coordinates of the point in the world coordinate system, P v Represents the coordinates of the point in the vehicle coordinate system, R wv Represents the rotation matrix from the vehicle coordinate system to the world coordinate system, t wv Represents the translation vector from the vehicle coordinate system to the world coordinate system;
[0038] 4c) When the selected point is behind the vehicle, delete the entire lane line data, otherwise no operation is performed.
[0039] 5) The data structure of high-precision maps is as follows Figure 2 As shown, determine which of the received data needs to be added to the local map and add it:
[0040] 5a) For the received HD map data, follow the Link (to facilitate the transmission and indexing of map data, HD map points on a continuous road section are stored together and defined as a Link) from back to front, and find the first Link with the current ID stored in the local map according to the unique ID of the Link;
[0041] 5b) For the link found in 5a), determine whether the point appears in the local map for each point from the front to the back of each lane line.
[0042] 5c) When the determined point is not the starting point of the lane line and is not found in the local map, the point and all subsequent points on the lane line are added to the corresponding lane line in the local map after coordinate conversion.
[0043] 5d) When the determined point is the starting point of a lane line and is not found in the local map, a new lane line is created in the local map, and the point and all subsequent points are added to the newly created lane line in the local map after coordinate conversion.
[0044] 5e) Starting from the next link of the link found in step 5a), add the data of each link to the local map. For each link that needs to be added to the local map, select the first point of each lane line one by one, and determine whether the selected point is in a lane line in the local map. If it is, add the points of the lane line where the current point is located to the corresponding lane line in the local map after coordinate conversion. Otherwise, create a new lane line in the local map and add the points of the lane line where the current point is located to the newly created lane line in the local map after coordinate conversion.
[0045] 6) Convert each point in the lane line stored in the local map into a visualized format from front to back, one lane line at a time, and save it in a variable. Then call the visualization method of the variable to visualize the data in the local map, showing the points of the lane line around the current location of the vehicle.
[0046] In summary, the present invention is based on high-precision maps and makes full use of the high-precision map data received in each frame. By judging the similarities and differences between the local map and the newly received data, the map is requested as little as possible, and the calculation of the overlapping parts between the newly received data and the data in the existing local map is minimized. The map information around a group of vehicles is dynamically maintained to achieve dynamic visualization of the local map.
[0047] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A method for dynamically loading local maps based on high-precision maps for autonomous driving, characterized in that: The following steps are involved: 1) Obtain accurate vehicle location information through the positioning module; 2) Calculate the distance between the vehicle's current location and the location when the map was last requested; when the distance exceeds a certain limit, send the vehicle's current location to the map server via UDP to request a map; 3) Receive map data within a certain range in front of the requested location sent from the map server via UDP; 4) Delete points beyond a certain range behind the vehicle in the local map; the specific deletion method is: 4a) For each lane line in the local map, determine the distance between it and the vehicle position one by one from the back to the front. When a distance less than the set threshold is found, stop judging and delete all points from the first point to the previous point of the current point. If each point of the current lane line does not meet the judgment condition, proceed to step 4b); 4b) Select the first point in the current lane line and transform its coordinates to the vehicle coordinate system through coordinate transformation to determine whether the point is in front of or behind the vehicle. The formula for coordinate transformation is: Among them, P w Represents the coordinates of the point in the world coordinate system, P v Represents the coordinates of the point in the vehicle coordinate system, R wv Represents the rotation matrix from the vehicle coordinate system to the world coordinate system, t wv Represents the translation vector from the vehicle coordinate system to the world coordinate system; 4c) When the selected point is behind the vehicle, delete the entire lane line data, otherwise no operation is performed; 5) Find the part of the received high-precision map data that is not included in the local map, convert its format and save it in the local map; 6) Convert the local map into a format suitable for display and visualize it; Further, the specific steps include: 1) Receive the information output by the positioning module through UDP communication to obtain the current location; 2) The method for determining whether a map request is needed is to calculate the distance between the location when the map was last requested and the current location. When the distance is greater than the set value, go to step 3), otherwise return to step 1); 3) Send the location data obtained in 1) to the map server to request a high-precision map, and then receive the map information sent by the map server via UDP; 4) Delete points outside a certain range behind the vehicle stored in the local map, and the data format stored in the local map; 5) Determine which of the received data needs to be added to the local map and add it; 6) Convert each point in the lane line stored in the local map into a visualized format from front to back, one lane line at a time, and save it in a variable. Then call the visualization method of the variable to visualize the data in the local map, showing the points of the lane line around the current location of the vehicle.
2. The method for dynamically loading local maps based on high-precision maps for autonomous driving according to claim 1 is characterized in that: The method of step 5) determining whether a local map needs to be added to the received data includes: 5a) For the received high-precision map data, in the order of Link from back to front, according to the unique ID of Link, find the first Link with the current ID saved in the local map; 5b) For the link found in 5a), determine whether the point appears in the local map for each lane line from front to back; 5c) When the determined point is not the starting point of the lane line and is not found in the local map, the point and all subsequent points on the lane line are added to the corresponding lane line in the local map after coordinate conversion; 5d) When the determined point is the starting point of a lane line and is not found in the local map, a new lane line is created in the local map, and the point and all subsequent points are added to the newly created lane line in the local map after coordinate conversion; 5e) Starting from the next Link of the Link found in step 5a), add the data of each Link to the local map; for each Link that needs to be added to the local map, select its first point one by one for each lane line, and determine whether the selected point is in a lane line in the local map. If so, add the points of the lane line where the current point is located to the corresponding lane line in the local map after coordinate conversion; otherwise, create a new lane line in the local map and add the points of the lane line where the current point is located to the newly created lane line in the local map after coordinate conversion.
