Point cloud map dynamic loading method and device, electronic equipment and storage medium
By dividing and processing point cloud map sub-regions at equal intervals, the problem of long point cloud map loading time was solved, enabling rapid vehicle positioning and resource optimization, and improving the real-time performance and efficiency of autonomous driving.
Patent Information
- Application Number
- CN202311399489.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-25
AI Technical Summary
The long loading time of point cloud maps leads to long vehicle positioning time, high computing resource requirements, and difficulty in meeting the real-time requirements of autonomous driving.
By dividing the point cloud map into equal intervals according to the coordinate system, multiple map sub-regions are obtained. Based on the vehicle position coordinates, the map sub-regions are selected and processed within a preset range, and then stitched and cropped to obtain a combined map for positioning.
It shortens the loading time of point cloud maps, enables rapid vehicle positioning, reduces computing resource requirements, and improves the real-time performance and efficiency of the system.
Smart Images

Figure CN117390323B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of autonomous driving technology, specifically relating to a method, device, electronic device, and storage medium for dynamically loading point cloud maps. Background Technology
[0002] With the rapid development and continuous evolution of autonomous driving technology, accurate positioning has become one of the core elements for achieving safe and efficient autonomous driving. Autonomous driving relies on vehicles accurately understanding their own position and surrounding road conditions in real time. LiDAR sensors and point cloud maps are crucial elements in autonomous driving technology, together providing vehicles with high-precision positioning and environmental perception.
[0003] In the process of implementing the embodiments of the present invention, the inventors of the present invention discovered that when processing large-scale point cloud maps, the amount of data increases dramatically, requiring more computing resources and time for processing and analysis. Therefore, there is a high memory requirement during autonomous driving, which leads to long loading time of point cloud maps and long positioning time of vehicles in the map. Summary of the Invention
[0004] The main technical problem addressed by the embodiments of the present invention is how to shorten the loading time of point cloud maps, thereby enabling rapid vehicle location.
[0005] To solve the above-mentioned technical problems, one technical solution adopted in the embodiments of the present invention is: to provide a point cloud map dynamic loading method, the point cloud map dynamic loading method comprising: acquiring a point cloud map, dividing the point cloud map into equal intervals according to a coordinate system to obtain multiple map sub-regions, acquiring a map sub-region of a preset range of vehicle position coordinates based on the multiple map sub-regions, processing the map sub-region of the preset range of vehicle position coordinates according to preset principles, stitching the processed map sub-regions together to obtain a combined map, acquiring a target point cloud region of the combined map, and performing map positioning based on the target point cloud region.
[0006] In some embodiments, acquiring a point cloud map and dividing the point cloud map into equal intervals according to a coordinate system to obtain multiple map sub-regions includes: acquiring a point cloud map using a LiDAR, wherein any point cloud in the point cloud map includes UTM coordinates; determining the specifications and boundaries of the map sub-regions; using the specifications and boundaries as the equal interval division principle; and performing equal interval division of the point cloud map according to the UTM coordinates and the equal interval division principle to obtain multiple map sub-regions.
[0007] In some embodiments, obtaining a map sub-region with a preset range of vehicle position coordinates based on the plurality of map sub-regions includes: receiving the vehicle's position coordinates and obtaining a map sub-region with a preset range based on the position coordinates among the plurality of map sub-regions.
[0008] In some embodiments, processing the map sub-region of the vehicle's location coordinates within a preset range according to preset principles includes: obtaining a map sub-region to be loaded and a map sub-region to be cleared according to the preset range of map sub-regions and preset rules, clearing the map sub-region to be cleared, and loading the map sub-region to be loaded.
[0009] In some embodiments, stitching together the processed map sub-regions to obtain a combined map includes: obtaining the loaded map sub-regions, wherein the loaded map sub-regions include direction information and coordinate information; determining the connection relationship and relative position between each loaded map sub-region based on the direction information and coordinate information; and stitching together the loaded map sub-regions based on the connection relationship and relative position to obtain a combined map.
[0010] In some embodiments, obtaining the target point cloud region of the combined map includes: acquiring scanning data based on LiDAR, wherein the scanning data includes distance information and the current position coordinates of the vehicle, and cropping the combined map based on the distance information, the current position coordinates and a set distance threshold to obtain the target point cloud region.
[0011] In some embodiments, the point cloud map dynamic loading method further includes: receiving target location coordinates set by the user, and obtaining a map sub-region of a preset range based on the target location coordinates in the plurality of map sub-regions.
[0012] According to another aspect of the present invention, a point cloud map dynamic loading device is provided. The point cloud map dynamic loading device includes: a region division module, used to acquire a point cloud map and divide the point cloud map into equal intervals according to a coordinate system to acquire multiple map sub-regions; a first acquisition module, used to acquire a map sub-region with a preset range of vehicle position coordinates based on the multiple map sub-regions; a data processing module, used to process the map sub-region with the preset range of vehicle position coordinates according to a preset principle; a map stitching module, used to stitch the processed map sub-regions to acquire a combined map; and a second acquisition module, used to acquire a target point cloud region of the combined map for map positioning based on the target point cloud region.
[0013] According to another aspect of the present invention, an electronic device is provided, characterized in that it includes: at least one processor and at least one memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the point cloud map dynamic loading method described above.
[0014] According to another aspect of the present invention, a computer storage medium is provided, characterized in that the computer storage medium stores computer-executable instructions, which, when executed by an electronic device, cause the electronic device to perform the steps of the point cloud map dynamic loading method described in any of the above embodiments.
[0015] Unlike related technologies, the point cloud map dynamic loading method provided in this embodiment of the invention includes: acquiring a point cloud map and dividing the point cloud map into equal-distance regions according to a coordinate system to obtain multiple map sub-regions; acquiring a map sub-region with a preset range of vehicle position coordinates based on the multiple map sub-regions; processing the map sub-region with the preset range of vehicle position coordinates according to preset principles; stitching the processed map sub-regions together to obtain a combined map; and acquiring a target point cloud region of the combined map for map positioning based on the target point cloud region. By dividing the point cloud map into multiple map sub-regions according to a coordinate system and processing the map sub-regions using preset principles, the loading time of the point cloud map is shortened, thereby achieving rapid vehicle positioning. Attached Figure Description
[0016] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0017] Figure 1 This is a flowchart of the point cloud map dynamic loading method provided in the embodiments of the present invention;
[0018] Figure 2 This is a schematic diagram of point cloud loading provided in an embodiment of the present invention;
[0019] Figure 3 This is provided by the embodiments of the present invention. Figure 1 Flowchart of the method for obtaining a sub-region of a map;
[0020] Figure 4 This is provided by the embodiments of the present invention. Figure 1 Flowchart of the method for obtaining a map sub-region within a preset range;
[0021] Figure 5This is provided by the embodiments of the present invention. Figure 1 Flowchart of the method for processing map sub-regions;
[0022] Figure 6 This is provided by the embodiments of the present invention. Figure 1 Flowchart of the method for obtaining a composite map;
[0023] Figure 7 This is provided by the embodiments of the present invention. Figure 1 Flowchart of the method for obtaining the target point cloud region;
[0024] Figure 8 This is a schematic diagram of the point cloud map dynamic loading device provided in the embodiments of this application;
[0025] Figure 9 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0027] It should be noted that, unless otherwise specified, the various features in the embodiments of the present invention can be combined with each other, and all are within the protection scope of the present invention. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different module division or in a different order than that shown in the device schematic diagram or the flowchart.
[0028] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention.
[0029] Please see Figure 1 , Figure 1 This is a flowchart of a point cloud map dynamic loading method provided by an embodiment of the present invention. The method includes the following steps:
[0030] S11. Obtain a point cloud map and divide the point cloud map into equal intervals according to the coordinate system to obtain multiple map sub-regions.
[0031] Point cloud maps represent 3D models of objects and terrain in an environment, typically composed of a large number of discrete points. A coordinate system describes the position of these points in space. Map sub-regions represent smaller areas or grid cells that divide the entire point cloud map; each sub-region contains a portion of the point cloud map data. Equidistant partitioning divides the point cloud map into sub-regions of the same size and shape, with uniform boundaries and spacing between them. This equidistant partitioning is achieved by dividing the map coordinate system into uniform grids or cells.
[0032] Specifically, technicians install sensors on vehicles to measure the distance and position of objects, and drive the vehicle to scan and record within a predetermined area. These scans generate high-resolution point cloud data, which is used to pre-generate a point cloud map. This point cloud map contains the three-dimensional structure of the environment, such as roads, buildings, traffic signs, trees, etc. The predetermined area represents a specific geographical region determined in advance in autonomous driving or map modeling tasks. The specific installation location of the sensors on the vehicle is related to the vehicle type, autonomous driving requirements, etc. Isochronous subdivision can be used to more effectively manage and process large maps and helps to analyze data in specific areas. Map sub-regions can be rectangular, square, or other shapes, and the specific shape and size depend on the specific application requirements and can be selected according to the actual situation. This application does not impose specific limitations in this regard.
[0033] Please see Figure 3 , Figure 3 This is provided by the embodiments of the present invention. Figure 1 The flowchart illustrates a method for obtaining map sub-regions, which involves acquiring a point cloud map and dividing the point cloud map into equal-distance sub-regions based on a coordinate system. These sub-regions include:
[0034] S111. Obtain a point cloud map using a lidar, wherein any point cloud in the point cloud map includes UTM coordinates.
[0035] LiDAR (Light Detection and Ranging) is a sensor technology used to measure distances and create high-resolution 3D maps. A LiDAR transmitter emits a non-visible laser beam, typically infrared, emitting short pulses along one or more directions. When the laser beam strikes an object's surface, it reflects back to the LiDAR. The LiDAR receiver records the pulse's return time and intensity. By measuring the time it takes for the laser pulse to travel from emission to return, the LiDAR can calculate the distance between the object and the sensor, generating discrete point distance data, or point clouds. By scanning the direction of the laser beam, the LiDAR can generate a large amount of discrete point data, which together form a point cloud map. In this embodiment, LiDAR can be used in conjunction with other sensors such as cameras and GPS to provide comprehensive environmental perception. In the field of autonomous driving, the use of vehicle-mounted LiDAR to acquire point cloud maps is well-known to those skilled in the art and will not be elaborated upon further here.
[0036] The Universal Transverse Mercator (UTM) is a map projection coordinate system used to describe the coordinates of different locations on Earth. The UTM coordinate system divides the Earth's surface into multiple zones, each with a specific central longitude. This coordinate system uses meters as the unit and provides two coordinate values, east and north, to accurately represent the location of different places on Earth.
[0037] Specifically, when the lidar installed on the vehicle emits a laser beam and measures its reflection to obtain point cloud data, a Global Positioning System (GPS) is used to obtain the longitude, latitude, and altitude of the vehicle's location, and an Inertial Measurement Unit (IMU) is used to obtain the vehicle's attitude information, including pitch, roll, and yaw angles. Since the relative coordinates of each point in the point cloud data are typically in the vehicle's coordinate system, the acquired GPS position and IMU attitude information are used to convert the relative coordinates of each point in the lidar-acquired point cloud data into coordinates in the UTM coordinate system, ensuring that any point in the point cloud map includes UTM coordinates. The conversion of the relative coordinates of each point in the lidar-acquired point cloud data into coordinates in the UTM coordinate system is well-known to those skilled in the art and will not be elaborated upon here. GPS is a satellite navigation system that provides location information to ground receivers through a group of satellites orbiting the Earth. A GPS antenna is a device used to receive signals from GPS satellites. The GPS antenna is usually installed on the roof or near the sunroof of a vehicle. An IMU is usually placed inside the vehicle and can be installed in the chassis, cabin, or other suitable locations.
[0038] S112. Determine the specifications and boundaries of the map sub-regions, and use the specifications and boundaries as the principle of equidistant division.
[0039] The specifications and boundaries of map sub-regions include, but are not limited to, the width, height, and starting UTM coordinates of the map sub-regions. The principle of equidistant division is a principle for dividing a geographic area into sub-parts of equal size and distance. The width of a map sub-region represents its horizontal size, usually in meters, and defines the distance from left to right. The height of a map sub-region represents its vertical size, usually in meters, and defines the distance from top to bottom. The starting UTM coordinates specify the UTM coordinates of the upper left corner of the first map sub-region, marking its starting point. In some embodiments, the starting UTM coordinates can specify UTM coordinates at other locations within the first map sub-region, such as setting the UTM coordinates of the lower left, upper right, or lower right corners of the first map sub-region as the starting UTM coordinates.
[0040] For example: when the size of a map sub-region is set to 100 meters × 100 meters, and the starting UTM coordinates are located at the upper left corner of the first map sub-region, the starting UTM coordinates are (500000, 4649776), indicating that each map sub-region is a square with a side length of 100 meters, that is, the width and height of the map sub-region are both 100 meters, and starting from the starting UTM coordinates (500000, 4649776), it moves to the right and down according to the specified size, and the width and height of each map sub-region are both 100 meters.
[0041] The specifications of map sub-regions are usually determined based on the performance parameters of the lidar used, especially the effective ranging range of the lidar. Lidars of different models and manufacturers may have different ranging capabilities. Therefore, the specifications of map sub-regions may vary depending on the performance of the lidar and can be set according to the actual situation. This application does not impose specific restrictions on this.
[0042] S113. Perform equidistant division of the point cloud map according to the UTM coordinates and the equidistant division principle to obtain multiple map sub-regions.
[0043] Specifically, each point in the point cloud map is accessed or inspected one by one, and the offset of each point relative to the starting UTM coordinates is calculated. The offset includes horizontal and vertical offsets. Based on the horizontal and vertical offsets, the relative position of each point with respect to the starting UTM coordinates can be determined. Based on the relative position, it can be determined which map sub-region the point belongs to, and the point is added to the corresponding sub-region data structure. The sub-region data structure can be an array, list, or other data type, which can store the point cloud data in each map sub-region. The above process is repeated until all points in the point cloud map are processed, so that each point is assigned to the corresponding map sub-region.
[0044] For example: Consider a point cloud map with initial UTM coordinates set to (1000, 2000). The map sub-region is 100 meters × 100 meters in size. Four point cloud data points are identified as A, B, C, and D. Each point has UTM coordinates: A (1050, 2100), B (1100, 2200), C (1075, 2050), and D (1125, 2150). Calculate the offset of point A relative to the initial UTM coordinates (1000, 2000). The horizontal offset is 50, and the vertical offset is 100. Therefore, point A can be assigned to the first map sub-region based on its relative position to the initial UTM coordinates (1000, 2000). Similarly, for point B, calculate the relative position of point B with respect to the starting UTM coordinates; for point C, calculate the relative position of point C with respect to the starting UTM coordinates; for point D, calculate the relative position of point D with respect to the starting UTM coordinates. Based on the relative positions of points B, C, and D with respect to the starting UTM coordinates, assign points B, C, and D to the corresponding map sub-regions.
[0045] S12. Obtain a map sub-region with a preset range of vehicle position coordinates based on the multiple map sub-regions.
[0046] The location coordinates represent the vehicle's current geographical location, typically expressed using geographic coordinates, such as UTM coordinates or latitude and longitude. These coordinates identify the vehicle's specific location on the Earth's surface. The preset range is a predefined geographic area, which can be set according to the actual application scenario. This application does not impose specific restrictions on this; for example, the area within 500 meters of the vehicle's location coordinates. The method of obtaining map sub-regions within the preset range of the vehicle's location coordinates based on multiple map sub-regions means determining which map sub-regions within multiple map sub-regions are located within the predefined geographic area based on the vehicle's current geographic location coordinates. By determining the vehicle's location coordinates, map sub-regions outside the range of interest can be filtered out, reducing unnecessary data processing and analysis, allowing focus on specific geographic areas and improving efficiency.
[0047] Please see Figure 4 , Figure 4 This is provided by the embodiments of the present invention. Figure 1 A flowchart of a method for obtaining a preset range of map sub-regions, which obtains the vehicle's position coordinates within a preset range of map sub-regions based on the multiple map sub-regions, including:
[0048] S121, Receive the vehicle's location coordinates.
[0049] The vehicle is equipped with GPS or other positioning devices that can obtain the vehicle's geographical location data in real time.
[0050] S122. Based on the location coordinates, obtain a map sub-region of a preset range from the multiple map sub-regions.
[0051] For each map sub-region, its geographic coordinates are compared with the vehicle's location coordinates, such as by calculating the distance between the two points or checking whether the coordinates are within a predefined range. After comparing the vehicle's location coordinates with the coordinates of the map sub-region, it is determined which map sub-regions' coordinates are within the predefined geographic range. Based on the comparison results, which map sub-regions are within the preset range are recorded or marked.
[0052] In some embodiments, the point cloud map dynamic loading method further includes: receiving target location coordinates set by the user; and obtaining a map sub-region of a preset range based on the target location coordinates in the plurality of map sub-regions.
[0053] The target location coordinates represent the location that the user is interested in, such as a destination, landmark, or specific location. The target location coordinates set by the user are compared with the coordinates of each map sub-region to determine which map sub-regions are within the preset geographical range of the target location coordinates, and these map sub-regions are then associated with the user's target location coordinates.
[0054] S13. Process the map sub-region of the vehicle's position coordinates within a preset range according to preset principles.
[0055] Among them, preset principles refer to a set of predefined rules or conditions used to determine which map sub-regions need to be loaded and which need to be cleared based on the vehicle's location coordinates and preset map sub-regions, so as to process the map sub-regions and meet specific application needs and user experience. Preset principles include, but are not limited to, distance principles, direction principles, time principles, points of interest principles, terrain or feature principles, and user interaction principles.
[0056] Please see Figure 5 , Figure 5 This is provided by the embodiments of the present invention. Figure 1The flowchart of the method for processing map sub-regions describes the processing of map sub-regions within a preset range of the vehicle's position coordinates according to preset principles, including:
[0057] S131. Obtain the map sub-region to be loaded and the map sub-region to be cleared according to the preset range of map sub-regions and preset rules.
[0058] Among the preset principles, the distance principle defines a distance threshold, such as 500 meters, meaning that map sub-regions within 500 meters of the vehicle need to be loaded, while other map sub-regions need to be cleared; the direction principle defines an angle range, such as 30 degrees directly in front, determining which map sub-regions are related to the vehicle's driving direction, and only map sub-regions within this range need to be loaded, while other map sub-regions need to be cleared; the time principle defines which map sub-regions need to be loaded within a specific time period based on the current time or date, for example, map data may differ between day and night; the point of interest principle defines which map sub-regions are related to specific points of interest, for example, loading map sub-regions related to restaurants, gas stations, or attractions based on user queries or settings; the terrain or feature principle defines which sub-regions are related to geographical conditions based on the vehicle's current geographical environment or terrain features, for example, loading mountain map data when driving in mountainous areas; and the user interaction principle dynamically loads or unloads map sub-regions based on user interaction behaviors, such as map zooming or dragging, to meet the user's current map needs. Based on the principles, determine which map sub-regions should be loaded (i.e., obtain the map sub-regions to be loaded) and which map sub-regions should be cleared (i.e., obtain the map sub-regions to be cleared).
[0059] S132. Clear the map sub-region to be cleared.
[0060] Clear means stop loading and displaying map data for the map sub-region to be cleared.
[0061] S133. Load the sub-region of the map to be loaded.
[0062] Loading indicates that map data for the sub-region of the map to be loaded is retrieved and displayed so that users can view map information relevant to their current location and needs.
[0063] Autonomous vehicles have limited computing resources and memory. Loading and clearing map sub-regions helps to effectively manage resources, loading only necessary data into memory, thereby reducing memory usage and computational burden. Fast loading and clearing of map sub-regions helps ensure the real-time performance of the system. The vehicle only needs to process data from nearby areas, thus enabling faster updates to positioning and navigation information to adapt to constantly changing environments. Fast loading of point cloud maps is crucial for rapid vehicle positioning and real-time performance, improving the performance and effectiveness of applications such as navigation, positioning, and route planning.
[0064] S14. The processed map sub-regions are stitched together to obtain a combined map.
[0065] Here, the processed map sub-regions represent portions of the loaded, processed, and filtered map data, and splicing represents the process of combining multiple map sub-regions into a unified map. The combined map is a complete map containing information from all the loaded map sub-regions.
[0066] Please see Figure 6 , Figure 6 This is provided by the embodiments of the present invention. Figure 1 The flowchart of the method for obtaining a composite map includes stitching together the processed map sub-regions to obtain a composite map, including:
[0067] S141. Obtain the loaded map sub-region, wherein the loaded map sub-region includes direction information and coordinate information.
[0068] The directional information refers to the orientation or direction of map elements or geographic features, including but not limited to map directional information indicating the orientation of the map and road directional information indicating the orientation of roads, streets, or paths. Please refer to [link to relevant documentation]. Figure 2 The arrow points in the direction the vehicle is moving. The coordinate information indicates the location of various points or geographical features on the map, including but not limited to the longitude and latitude of the points on Earth and the UTM coordinates that describe the locations on the map.
[0069] S142. Based on the direction information and coordinate information, determine the connection relationship and relative position between each loaded map sub-region.
[0070] The connectivity relationships describe the connection methods between various map sub-regions, depicting how one map sub-region is adjacent to or in contact with another. Connectivity relationships include adjacency, rotation, and no connection. Adjacency means two map sub-regions share one or more boundaries and are in contact with each other, implying they are directly connected in physical space. Rotation means two map sub-regions do not have a direct boundary connection, but they may have a rotational relationship; one map sub-region has a certain rotation angle relative to the other, and they are angularly related but do not share a boundary. No connection means two map sub-regions neither share a boundary nor have a clear rotational relationship; they exist independently in physical space without direct contact or association. Relative position describes the location and relative arrangement of map sub-regions in the composite map. Relative position includes position coordinates and rotation angle. Position coordinates represent the coordinate position of each map sub-region in the composite map. Rotation angle indicates the rotation angle between two sub-regions if a rotational relationship exists. This represents the rotation direction and angle of one map sub-region relative to another, ensuring that loaded map sub-regions are correctly aligned and arranged in the composite map.
[0071] Specifically, the distances between map elements are calculated based on coordinate information to determine which map elements share boundaries or contact points and which map elements are spatially adjacent to each other, thus obtaining the connectivity relationships. The orientation of map elements is determined based on direction information to determine the relative directions between map elements, thus obtaining their relative positions. The connectivity relationships and relative position information are stored in appropriate data structures for subsequent processing and map stitching.
[0072] S143. Based on the connection relationship and relative position, the loaded map sub-regions are stitched together to obtain a combined map.
[0073] Specifically, the coordinates of the map sub-regions are transformed according to their relative positions to ensure that the map sub-regions are correctly arranged. If there is a rotation relationship, the map sub-regions are rotated and adjusted so that they are correctly positioned relative to each other. The coordinates of the map sub-regions are merged into the coordinate system of the composite map to ensure that the boundaries of adjacent map sub-regions are correctly aligned. The stitched map sub-regions are merged into a complete composite map. The composite map is verified and repaired to ensure that there are no errors or overlaps in the stitched composite map. Verification and repair include, but are not limited to, checking whether the boundary matching and coordinate transformation are correct.
[0074] S15. Obtain the target point cloud region of the combined map, and perform map positioning based on the target point cloud region.
[0075] The target point cloud region is a specific area extracted from the entire composite map that is related to the vehicle's current location. This region contains point cloud data, which is a set of discrete points, each representing a specific location on the map. Map positioning means comparing the target point cloud region with the previously generated map data to determine the vehicle's precise location and orientation on the map.
[0076] Please see Figure 7 , Figure 7 This is provided by the embodiments of the present invention. Figure 1 A flowchart illustrating a method for obtaining a target point cloud region in a composite map. Obtaining the target point cloud region of the composite map includes:
[0077] S151. Acquire scanning data based on lidar, wherein the scanning data includes distance information and the current position coordinates of the vehicle.
[0078] Specifically, when the vehicle is actually driving, the LiDAR continuously scans the surrounding environment, generating real-time scan data. The distance information in the scan data is typically expressed in meters (m), representing the distance to objects around the vehicle. The current position coordinates in the scan data are the vehicle's real-time position coordinates on the composite map. Please refer to [link / reference]. Figure 2 The coordinates of the pentagram represent the vehicle's current position.
[0079] S152. Based on the distance information, the current location coordinates, and the set distance threshold, the combined map is cropped to obtain the target point cloud region.
[0080] The distance threshold is a predefined distance value used to determine the range of the target point cloud region. Typically, this threshold is used to determine how far away point cloud data around the vehicle should be included in the target point cloud region. The distance threshold can be set according to the actual situation, and this application does not impose specific restrictions on it. After cropping and obtaining the target point cloud region, the target point cloud region is sent to the vehicle's locator for precise positioning.
[0081] The composite map consists of multiple map sub-regions, which are very large. However, precise positioning only requires selecting and extracting the map portion that is relevant to the vehicle's current location and surrounding environment from the entire composite map. Therefore, only the required area needs to be cropped, such as the area within 100 meters of the current location. After cropping, the area is sent to the locator for precise positioning, instead of using the complete composite map.
[0082] By cropping the desired target point cloud region, vehicles can reduce the complexity of data processing, focusing only on the map portion relevant to their current task and location, thus performing navigation, obstacle avoidance, and other autonomous driving tasks more efficiently. This helps reduce the demand for computing resources and improve system responsiveness.
[0083] In this embodiment, by dividing the point cloud map into multiple map sub-regions at equal intervals according to the coordinate system, and by loading or clearing the map sub-regions using preset principles, the loading time of the point cloud map is shortened, thereby achieving rapid vehicle location.
[0084] Please see Figure 8 , Figure 8 This is a schematic diagram of the point cloud map dynamic loading device provided in this application embodiment. The point cloud map dynamic loading device 200 includes:
[0085] The region division module 21 is used to acquire a point cloud map and divide the point cloud map into equal intervals according to the coordinate system to obtain multiple map sub-regions.
[0086] The first acquisition module 22 is used to acquire a map sub-region with a preset range of vehicle position coordinates based on the multiple map sub-regions.
[0087] Data processing module 23 is used to process a map sub-region within a preset range of the vehicle's position coordinates according to preset principles.
[0088] The map stitching module 24 is used to stitch together the processed map sub-regions to obtain a combined map.
[0089] The second acquisition module 25 is used to acquire the target point cloud region of the combined map, so as to perform map positioning based on the target point cloud region.
[0090] The above-described apparatus can execute the point cloud map dynamic loading method provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects of the method. Technical details not described in detail in this embodiment can be found in the point cloud map dynamic loading method provided in the embodiments of this application.
[0091] like Figure 9 As shown, the electronic device 300 includes: one or more processors 31 and a memory 32. Figure 9 Take a processor 31 as an example.
[0092] Processor 31 and memory 32 can be connected via a bus or other means. Figure 8 Taking the example of a connection between China and Israel via a bus.
[0093] The memory 32, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the point cloud map dynamic loading method in the embodiments of the present invention. The processor 31 executes various functional applications and data processing of the solid-state drive by running the non-volatile software programs, instructions, and modules stored in the memory 32, thereby implementing the point cloud map dynamic loading method in the above method embodiments.
[0094] The memory 32 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and application programs required for at least one function. Furthermore, the memory 32 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 32 may optionally include memory remotely located relative to the processor 31.
[0095] The one or more modules are stored in the memory 32. When executed by the one or more processors 31, they perform the point cloud map dynamic loading method in any of the above method embodiments, for example, the method described above. Figure 1 , Figures 3 to 7 The method and steps of any one of them.
[0096] The above-described product can execute the point cloud map dynamic loading method provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects of the method. Technical details not described in detail in this embodiment can be found in the point cloud map dynamic loading method provided in the embodiments of this application.
[0097] It is understood that the above-described embodiments of the apparatus or device are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0098] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software and a general-purpose hardware platform, or of course, using hardware. Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of this application as described above, which are not provided in detail for the sake of brevity; although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for dynamically loading point cloud maps, characterized in that, The method for dynamically loading point cloud maps includes: Obtain a point cloud map and divide the point cloud map into equal intervals according to the coordinate system to obtain multiple map sub-regions; Based on the multiple map sub-regions, obtain a map sub-region with a preset range of vehicle location coordinates; The map sub-regions within a preset range of the vehicle's location coordinates are processed according to preset principles. These preset principles include distance, direction, time, points of interest (POIs), terrain or feature, and user interaction principles. The distance principle determines which map sub-regions need to be loaded or cleared based on the distance between the vehicle's current location and the map sub-region. The direction principle determines map sub-regions related to the vehicle's current driving direction based on the relationship between the map sub-region and the vehicle's position. The time principle determines which map sub-regions need to be loaded or cleared based on the current time or date. The POI principle determines map sub-regions related to the user-set or queried POIs. The terrain or feature principle determines map sub-regions matching the current geographical environment, terrain, or feature characteristics. The user interaction principle determines which map sub-regions need to be loaded or cleared based on the user's interaction behavior. The processed map sub-regions are stitched together to obtain a composite map; Obtain the target point cloud region of the combined map, and perform map positioning based on the target point cloud region; The step of processing the map sub-region of the vehicle's position coordinates within a preset range according to preset principles includes: obtaining a map sub-region to be loaded and a map sub-region to be cleared according to the preset range of map sub-regions and preset rules; clearing the map sub-region to be cleared; and loading the map sub-region to be loaded. The step of obtaining the target point cloud region of the combined map includes: acquiring scanning data based on LiDAR, wherein the scanning data includes distance information and the current position coordinates of the vehicle; and cropping the combined map based on the distance information, the current position coordinates, and a set distance threshold to obtain the target point cloud region.
2. The point cloud map dynamic loading method according to claim 1, characterized in that, The process involves acquiring a point cloud map and dividing it into equal-distance sub-regions based on a coordinate system, including: Point cloud maps are acquired using lidar, wherein any point cloud in the point cloud map includes UTM coordinates; Determine the specifications and boundaries of the map sub-regions, and use these specifications and boundaries as the principle for equidistant division; The point cloud map is divided into multiple map sub-regions based on the UTM coordinates and the equidistant division principle.
3. The point cloud map dynamic loading method according to claim 1, characterized in that, The map sub-regions for obtaining the vehicle's location coordinates within a preset range based on the multiple map sub-regions include: Receive the vehicle's location coordinates; Based on the location coordinates, a map sub-region of a preset range is obtained from the multiple map sub-regions.
4. The point cloud map dynamic loading method according to claim 1, characterized in that, The step of stitching together the processed map sub-regions to obtain a combined map includes: Obtain the loaded map sub-region, wherein the loaded map sub-region includes direction information and coordinate information; Based on the direction and coordinate information, the connection relationships and relative positions between the various loaded map sub-regions are determined. Based on the connection relationships and relative positions, the loaded map sub-regions are stitched together to obtain a combined map.
5. The point cloud map dynamic loading method according to claim 3, characterized in that, The method for dynamically loading point cloud maps also includes: Receive the target location coordinates set by the user; Based on the target location coordinates, a map sub-region of a preset range is obtained from the multiple map sub-regions.
6. A point cloud map dynamic loading device, characterized in that, The point cloud map dynamic loading device includes: The region division module is used to acquire a point cloud map and divide the point cloud map into equal intervals according to the coordinate system to obtain multiple map sub-regions; The first acquisition module is used to acquire a map sub-region with a preset range of vehicle position coordinates based on the multiple map sub-regions; The data processing module is used to process map sub-regions within a preset range of the vehicle's location coordinates according to preset principles. These preset principles include distance, direction, time, points of interest (POIs), terrain or feature characteristics, and user interaction. The distance principle determines which map sub-regions need to be loaded or cleared based on the distance between the vehicle's current location and the map sub-region. The direction principle determines map sub-regions related to the vehicle's current driving direction based on the relationship between the map sub-region and the vehicle's position. The time principle determines which map sub-regions need to be loaded or cleared based on the current time or date. The POI principle determines map sub-regions related to the user-set or queried POIs. The terrain or feature characteristics principle determines map sub-regions matching the current geographical environment. The user interaction principle determines which map sub-regions need to be loaded or cleared based on the user's interaction behavior. The map stitching module is used to stitch together the processed map sub-regions to obtain a combined map; The second acquisition module is used to acquire the target point cloud region of the combined map, so as to perform map positioning based on the target point cloud region; Specifically, the data processing module is used to: obtain a map sub-region to be loaded and a map sub-region to be cleared according to the preset range of map sub-regions and preset rules; clear the map sub-region to be cleared; and load the map sub-region to be loaded. The second acquisition module is specifically used for: acquiring scanning data based on lidar, wherein the scanning data includes distance information and the vehicle's current position coordinates; and cropping the combined map based on the distance information, the current position coordinates, and a set distance threshold to obtain a target point cloud region.
7. An electronic device, characterized in that, include: At least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the point cloud map dynamic loading method according to any one of claims 1 to 5.
8. A computer storage medium, characterized in that, The computer storage medium stores computer-executable instructions, which, when executed by an electronic device, cause the electronic device to perform the steps of the point cloud map dynamic loading method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Map merging method and device, robot, storage medium and program product
CN115096286A
Multi-sensor fusion positioning method in long tunnel scene based on dynamic point cloud
CN116067379A
