Map updating method and device and storage medium
By dividing the height interval in the prior map and matching the key frame point cloud data, and updating the point cloud data of the target height interval, the problem of low map update efficiency in the existing technology is solved, and efficient and accurate map update and positioning are achieved. Great sex.
Patent Information
- Application Number
- CN202410645159.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-10-11
AI Technical Summary
Existing positioning methods based on prior maps have low map update efficiency and long time consumption in dynamic environments, and are difficult to meet the positioning robustness and efficiency requirements of robot carriers such as AGVs with high real-time requirements.
Divide multiple height intervals by obtaining the point cloud data height information in the prior map, obtain key frame point cloud data, and match and update the point cloud data in the target height interval to improve map update efficiency and accuracy.
It achieves efficient response to environmental changes while ensuring map accuracy and positioning robustness, and reduces the time-consuming and computing resource usage of map updates.
Smart Images

Figure CN118758282A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of map construction technology, and in particular to a map updating method, device, and storage medium. Background Art
[0002] Mobile robotics technology is rapidly developing and has become a hot topic in intelligent manufacturing. The most commonly used positioning method is the LiDAR-based positioning method based on a priori maps.
[0003] Prior maps are typically constructed based on static objects, but the robot's actual operating environment is dynamic. Therefore, existing localization methods update the prior map based on real-time environmental information, thereby improving the robustness of the robot's localization and navigation in dynamic environments.
[0004] However, map updates are time-consuming and computationally expensive. For robotic vehicles with high real-time requirements (such as AGVs), improving map update efficiency while ensuring robust positioning has become a key issue. Summary of the Invention
[0005] This application at least provides a map updating method, apparatus, device, and computer-readable storage medium.
[0006] In a first aspect, the present application provides a map updating method, comprising: determining a plurality of height intervals based on height information of each point cloud data in an acquired prior map; acquiring keyframe point cloud data; matching point cloud data in the keyframe point cloud data belonging to the same height interval with point cloud data in the corresponding height interval in the prior map to obtain a matching rate for each height interval; using a height interval in which the matching rate is within a preset matching threshold range as a target height interval; and updating the prior map based on the point cloud data in the target height interval.
[0007] In one embodiment, the step of determining multiple height intervals based on the height information of each point cloud data in the acquired prior map includes: based on the point cloud data acquired in the current environment, determining the height at which the point cloud data is most densely packed as the first height; determining the height distribution information of the target object in the current environment based on the point cloud data in the current environment; and determining multiple height intervals based on the first height, the height distribution information and the height information of the prior map.
[0008] In one embodiment, the height distribution information includes a second height where the most target objects exist and a third height where the highest target object exists. The step of determining multiple height intervals based on the first height, the height distribution information and the height information of the prior map includes: determining the area between the first height and the second height as a first height interval, the first height being less than the second height; determining the area between the second height and the third height as a second height interval, the second height being less than the third height; and determining the area between the third height and the highest height of the prior map as a third height interval, the third height being less than the highest height.
[0009] In one embodiment, the step of determining the area between the second height and the third height as a second height interval includes: dividing the second height interval based on a preset first division threshold to obtain a plurality of second height sub-intervals; the step of determining the area between the third height and the highest height of the prior map as a third height interval includes: dividing the third height interval based on a preset second division threshold to obtain a plurality of third height sub-intervals, and the second division threshold is greater than the first division threshold.
[0010] In one embodiment, the step of matching the point cloud data belonging to the same height interval in the key frame point cloud data with the point cloud data of the corresponding height interval in the prior map to obtain the matching rate of each height interval includes: traversing the point cloud of each height interval in the acquired key frame respectively, and searching for a reference point cloud adjacent to the target point cloud in the prior map based on the currently traversed target point cloud to obtain the point cloud distance between the target point cloud and the reference point cloud; determining a point cloud whose point cloud distance is less than a preset first distance threshold as a matching point cloud; and determining the matching rate of the height interval based on the number of matching point clouds in the height interval and the total number of point clouds in the height interval.
[0011] In one embodiment, the step of obtaining key frame point cloud data includes: obtaining current frame point cloud data and historical frame point cloud data, the timing of the current frame point cloud data being later than that of the historical frame point cloud data; if the difference between the current posture determined based on the current frame point cloud data and the historical posture determined based on the historical frame point cloud data is greater than a preset difference threshold, and the point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data is less than a preset repetition threshold, then the current frame point cloud data is used as the key frame point cloud data.
[0012] In one embodiment, before the step of using the current frame point cloud data as the key frame point cloud data if the difference between the current posture determined based on the current frame point cloud data and the historical posture determined based on the historical frame point cloud data is greater than a preset difference threshold, and the point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data is less than a preset repetition threshold, the method further includes: traversing each point cloud in the current frame point cloud data, and determining adjacent point clouds in the historical frame point cloud data based on the current traversed point cloud; in response to the point cloud distance between the current traversed point cloud and the adjacent point cloud being less than a preset second distance threshold, determining the current traversed point cloud as a repeated point cloud; and determining the point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data based on the number of repeated point clouds and the total number of point clouds in the current frame point cloud data.
[0013] In one embodiment, the step of updating the prior map based on the point cloud data in the target height interval includes: selecting at least one target key frame point cloud data from multiple key frame point cloud data; clustering the point cloud data in the target key frame point cloud data to obtain a candidate point cloud set; eliminating the candidate point cloud sets in which the number of point clouds in the candidate point cloud set is less than a preset threshold value to obtain a target point cloud set; and updating the prior map accordingly based on the height interval in which each target point cloud set is located.
[0014] In a second aspect, the present application provides a map updating device, comprising: an interval determination module for determining a plurality of height intervals based on the height information of each point cloud data acquired in a priori map; an acquisition module for acquiring keyframe point cloud data; a point cloud matching module for matching the point cloud data belonging to the same height interval in the keyframe point cloud data with the point cloud data of the corresponding height interval in the priori map, and obtaining a matching rate for each height interval; a target determination module for taking a height interval whose matching rate is within a preset matching threshold range as a target height interval; and a map updating module for updating the priori map based on the point cloud data in the target height interval.
[0015] A third aspect of this application provides an electronic device, including a memory and a processor, the processor being configured to execute program instructions stored in the memory to implement the map updating method described above.
[0016] The fourth aspect of this application provides a computer-readable storage medium having program instructions stored thereon, which, when executed by a processor, implement the above-described map update method.
[0017] The above scheme determines multiple height intervals based on the height information of each point cloud data in the acquired prior map. After obtaining the keyframe point cloud data, the keyframe point cloud data and the prior map point cloud data belonging to the same height interval can be matched, and then the matching rate of the point cloud data in each height interval can be obtained respectively. Therefore, the height interval with a matching rate greater than the matching threshold can be determined as the target height interval that can be used for map update, and the height interval with a matching rate less than the matching threshold can be determined as the height interval that cannot be used for map update, so as to avoid using the point cloud in the height interval with a lower matching rate to update the map, thereby reducing the accuracy of the map. Using the point cloud data in the target height interval to update the map can ensure the map accuracy and positioning robustness, respond to real-time changes in the environment, and achieve accurate and efficient map updates.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to illustrate the technical solutions of the present application.
[0020] Figure 1 is a flowchart of an exemplary embodiment of the map updating method of the present application;
[0021] Figure 2 This is a schematic diagram of an exemplary height interval division in the map updating method of the present application;
[0022] Figure 3 is a block diagram of a map updating device shown in an exemplary embodiment of the present application;
[0023] Figure 4 This is a structural diagram of an embodiment of an electronic device of the present application;
[0024] Figure 5 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0025] The following describes the embodiments of the present application in detail with reference to the accompanying drawings.
[0026] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.
[0027] The term "and / or" in this article is simply a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0028] For ease of understanding, one of the applicable scenarios of the map updating method of the present application is now exemplified. At present, the application of mobile robots has become a hot topic in intelligent manufacturing. The most commonly used positioning method in the field of robotics is usually a positioning method based on a priori maps and mainly based on lidar. In this method, the prior map is usually a static object map constructed in advance, but in many application scenarios, the actual map environment changes dynamically. Therefore, more and more positioning methods have added modules for real-time construction of local maps to update the latest map of the current environment, thereby improving the robustness of positioning in dynamic environments.
[0029] However, building a local map is a time-consuming operation that consumes a relatively large amount of computing resources. For carriers with high real-time requirements (such as AGVs), how to optimize the time spent building a local map in real time while ensuring positioning robustness has become a very important optimization problem.
[0030] Please see Figure 1 , Figure 1 This is a flowchart illustrating an exemplary embodiment of the map update method of this application. Specifically, the map update method of this application can be applied to at least a mobile device equipped with a LiDAR, and may include the following steps:
[0031] Step S101 : determining a plurality of height intervals based on the height information of each point cloud data in the acquired prior map.
[0032] First, the point cloud data and its height information in the prior map can be determined using existing technology, which will not be elaborated here. For example, point cloud data with a height less than a certain threshold can be considered as ground-level point cloud data to obtain ground point cloud data.
[0033] For example, reference may be made to Figure 2 , Figure 2 This is an exemplary diagram illustrating the height interval division in the map update method of this application. The height of the entire prior map is denoted as H. top, which represents the highest height that the point cloud data in the prior map can reach; by analyzing the height of the point cloud data of each target object in the prior map, the highest target object is determined from each target object and the height corresponding to the point cloud data of the highest target object is recorded as That is, it represents the height that the highest target object in the prior map can reach; the height corresponding to the point cloud data with the most target objects is recorded as That is, it represents the height that most target objects in the prior map can reach. Usually, the point cloud close to the ground is denser than the point cloud at other heights. Therefore, the height corresponding to the most densely distributed point cloud data in the prior map can be recorded as H. f , which represents the height of the ground point cloud data, or directly obtains the ground height.
[0034] In summary, based on the height information obtained above, the following can be arranged sequentially from bottom to top: Determined as the first altitude range; if Then Determined as the second altitude range; and if Then Determined as the third height interval.
[0035] In another embodiment, in addition to dividing the height intervals by the height information of each point cloud data in the prior map, the host computer system can also collect point cloud data collected by the laser radar within a preset period of time (the preset period is not limited to 1 to 3 days, etc.), combine the above interval division method and similarly perform area division based on the height information of these point cloud data. Because the robot's operating environment may change frequently, using the point cloud data in the prior map as a reference will reduce accuracy. Therefore, this embodiment divides the height intervals based on the most recently collected point cloud data within the preset period, which is more timely than dividing the height intervals based on the prior map. Among them, the point cloud data collected by the laser radar can be regarded as the initial point cloud data, which generally includes dynamic point clouds of dynamic objects in the current scene, temporarily stationary objects, and static point clouds of static objects. Among them, temporarily stationary objects refer to objects that are stationary in some point cloud frames and may move in other point cloud frames, such as goods that have been placed for a period of time and are moved during a certain period of time. Therefore, we can refer to the existing methods to perform semantic segmentation on the point clouds in the initial point cloud data that do not match the prior map, and eliminate the dynamic point clouds in the initial point cloud data (such as vehicles, animals, other robots, etc.). The remaining are point clouds that are in a static state for a certain period of time (such as placed goods, workbenches, etc.). Since such point clouds do not change frequently and are relatively stable, determining each height interval for analysis and processing based on static point cloud data can provide good robustness.
[0036] It should also be noted that, in order to avoid the inability to apply semantic segmentation methods to certain point clouds, the determination of dynamic and static point clouds can be made not only by performing semantic segmentation on the initial point cloud, but also by analyzing the degree of change of the same point cloud within a preset time period. For example, the degree of change between point cloud A collected on the first day and point cloud A collected on the second day; if the degree of change is greater than a preset change threshold, point cloud A can be considered a dynamic point cloud. Furthermore, for the same point cloud collected at least three times, the degree of change can be determined based on the average value between the multiple degree of change. For example, first calculate the first degree of change between point cloud A collected on the first day and point cloud A collected on the second day, and calculate the second degree of change between point cloud A collected on the second day and point cloud A collected on the third day, and then calculate the average value between the first degree of change and the second degree of change to characterize the degree of change of point cloud A within the preset time period.
[0037] In summary, by dividing the map into multiple height intervals during the map construction process, we can filter out the point clouds of potential dynamic objects, temporary static objects, or static objects in the current scene. These interval point clouds usually do not overlap with the pre-built prior map, which not only does not sacrifice localization robustness and accuracy but also reduces time consumption. Furthermore, we can continuously update the status of each height interval to determine whether it is available for map updates, in order to cope with changes in the environment.
[0038] Step S102: Acquire key frame point cloud data.
[0039] The key frame point cloud data may refer to each frame of point cloud data acquired by the lidar, or may refer to a portion of the frame point cloud data extracted from all the frame point cloud data acquired by the lidar, and there is no limitation here.
[0040] It should be noted that in the map update method of the present application, the map update efficiency can be improved by simplifying the data volume, which may at least include determining key frames among all frames acquired by the lidar, and performing subsequent analysis and processing based on the point cloud data in the key frames.
[0041] Understandably, in the application scenario of this application, frequently acquiring the same point cloud would make map updates difficult. Therefore, this application selects keyframes by using point cloud frames acquired at different poses as keyframes, or by using point cloud frames with significant changes as keyframes, or by combining the aforementioned two criteria to use point cloud frames with significant changes acquired at different poses as keyframes. Thus, the point cloud data obtained through the above methods exhibits significant changes between keyframes, avoiding data redundancy caused by acquiring similar data. This prevents the repeated processing of most similar data in subsequent data processing, thereby reducing data processing efficiency.
[0042] In step S103 , the point cloud data belonging to the same height interval in the key frame point cloud data is matched with the point cloud data of the corresponding height interval in the priori map, and the matching rate of each height interval is obtained respectively.
[0043] In conjunction with the above steps, the point cloud data in each newly acquired point cloud frame can be used to determine the height interval corresponding to each current point cloud data based on the height interval divided in the above steps, and then the point cloud data belonging to the same height interval in the key frame and the prior map can be matched to obtain the point cloud matching rate of each height interval. For example, by matching the point cloud data in the first height interval in the key frame with the point cloud data in the first height interval in the prior map, the matching rate between the key frame and the prior map in the first height interval can be obtained. Similarly, the calculation method of the matching rate of other height areas is the same and will not be repeated here.
[0044] Step S104: taking the height interval whose matching rate is within the preset matching threshold range as the target height interval.
[0045] Among them, the matching threshold range can be used to determine whether the point cloud data in the height interval can be used to update the prior map. The matching threshold range can be set by the preset minimum matching threshold. and the maximum matching threshold It is determined that the matching threshold range can be 100%. It should be noted that the matching threshold ranges corresponding to different height intervals may be the same or different, and are not limited here.
[0046] It should be noted that the matching rate of the height interval can be recorded as Here, i refers to the i-th height interval, and m refers to the m-th keyframe. For example, if you need to count the matching rates of each height interval within a period of time (such as 10s) with the current moment as the time base, you need to obtain the keyframe point cloud data from the k-t1 frame to the k-th frame within this period, and match the point cloud data of each height interval in each keyframe with the point cloud data of the corresponding height interval in the prior map to obtain the matching rate of each height interval in each keyframe. Where (k-t1≤m≤k).
[0047] For example, if the matching rate of a certain height interval is If the value is less than the minimum matching threshold, it can be considered that the difference between the keyframe point cloud and the prior map point cloud in this height interval is large, and it is not suitable to use the point cloud in this height interval to update the prior map. Therefore, the height interval can be set to a state that is not used for mapping.
[0048] If the matching rate of a certain height range If the value is greater than the maximum matching threshold, it indicates that the difference between the keyframe point cloud and the prior map point cloud in this height range is small, and it can be considered that there may be no significant change between the keyframe point cloud and the prior map point cloud in this height range. Although using this point cloud data to update the map will not have a negative impact on map accuracy, map updates based on such point cloud data will still be time-consuming and have little effect, which means that map updates based on such point cloud data are not efficient enough. Therefore, in order to improve efficiency, the point cloud in this height range can be temporarily not selected for updating the prior map. Similarly, this height range can be set to not be used for mapping.
[0049] If the matching rate of a certain height range If the value is greater than or equal to the minimum matching threshold and less than or equal to the maximum matching threshold, the keyframe point cloud obtained in this height interval can be considered suitable for updating the prior map. Therefore, this height interval is determined as the target height interval and can be set to a state that can be used for mapping.
[0050] Step S105 : updating the prior map based on the point cloud data in the target height interval.
[0051] To illustrate the above steps, the target height interval is the height interval that can be used for map construction, and the point cloud data within it can be used for map construction. Therefore, after obtaining the target height interval, the corresponding height interval in the prior map can be updated based on the point cloud data within the target height interval of the keyframe. The specific update method can be referenced by existing methods and will not be detailed here.
[0052] For example, if the number of key frames selected within a period of time is one, when the prior map is updated based on the point cloud data in the target height interval of one key frame, the point cloud data in the corresponding height interval in the prior map can be directly updated based on the point cloud data in the target height interval of the frame. If the number of key frames selected within a period of time is at least two, all point cloud data in each key frame can be clustered to obtain target point cloud data, and then the target height interval that can be used to update the map is determined based on the target point cloud data, and the point cloud data in the corresponding height interval in the prior map is updated. Among them, the clustering method can be distance clustering. The specific process can refer to the existing method and will not be described in detail here. After clustering, the clustered point cloud (point cloud set, which may include one or more point cloud data) can also be screened, for example, point cloud sets with less than a preset threshold (e.g., 5) are eliminated, and the remaining can be used as target point cloud data, thereby eliminating possible moving objects to avoid interference with mapping.
[0053] It can be seen that the present application determines multiple height intervals based on the height information of each point cloud data in the acquired prior map. After acquiring the keyframe point cloud data, the keyframe point cloud data and the prior map point cloud data belonging to the same height interval can be matched, and then the matching rate of the point cloud data in each height interval can be obtained respectively. Thus, the height interval with a matching rate greater than the matching threshold can be determined as the target height interval that can be used for map updating, and the height interval with a matching rate less than the matching threshold can be determined as the height interval that cannot be used for map updating, so as to avoid reducing the accuracy of the map after using the point cloud in the height interval with a lower matching rate to update the map. Using the point cloud data in the target height interval to update the map can ensure the map accuracy and positioning robustness, respond to real-time changes in the environment, and achieve accurate and efficient map updates.
[0054] Based on the above embodiment, the present embodiment of the application describes the steps of determining multiple height intervals based on the height information of each point cloud data in the acquired prior map. Specifically, the method of this embodiment includes the following steps:
[0055] Based on the point cloud data obtained in the current environment, the height at which the point cloud data is most densely populated is determined as the first height; based on the point cloud data in the current environment, the height distribution information of the target object in the current environment is determined; and based on the first height, the height distribution information and the height information of the prior map, multiple height intervals are determined.
[0056] With reference to the foregoing embodiments, in the map updating method of the present application, it can be: 1. Determine each height interval based on the point cloud distribution of each point cloud data in the prior map. In addition, it can also be: 2. Collect the point cloud data collected by the lidar within a preset time period according to the upper computer system corresponding to the robot (the preset time period is not limited, such as 1 to 3 days from the current map update period), and then determine each height interval based on the point cloud data collected in these recent time periods. These point cloud data are more timely than the point cloud data in the prior map. Furthermore, it can also be: 3. Determine the height interval based on the distribution of the point cloud data currently collected by the robot in real time, but this method has high requirements for real-time computing power and is easily interfered by the real-time changes of point cloud data in the current environment. Therefore, under normal circumstances, it is more effective to choose the second implementation method.
[0057] In addition, in another embodiment, in addition to determining the height interval according to the distribution of the point cloud data, one or more height thresholds H may be preset. s Each height threshold corresponds to a height dividing line. Multiple height intervals can be divided by the preset height threshold, the highest height of the prior map and the ground height, which is equivalent to presetting multiple height intervals.
[0058] It should also be noted that the current environment can refer to the entire environment corresponding to the entire prior map, or the environment in which the robot is currently located. The scope of the overall environment is greater than or equal to the robot's current environment. Therefore, when dividing the height intervals, the map update method of the present application can be based on the analysis and division of all point cloud data in the overall environment, or based on the analysis and division of point cloud data in the robot's current environment. This can achieve the division criteria of one or more height intervals in a priori map. For example, the overall environment corresponding to the prior map is composed of multiple rooms or multiple areas. Therefore, the overall environment can be divided into multiple sub-environments based on the map information of the prior map, and the internal environment of each room can be regarded as a sub-environment. Each time the robot arrives at a sub-environment, it can determine the various height intervals in the sub-environment based on the point cloud distribution information within the sub-environment (i.e., the current environment) combined with the height interval division method of the aforementioned embodiment. Subsequently, the part that needs to be updated can be determined based on the point cloud data in each height interval of each sub-environment. Therefore, different sub-environments can have the same or different height interval division standards to adapt to the conditions of their respective sub-environments, making the point cloud analysis process more detailed and improving the accuracy of map updates.
[0059] Based on the above embodiment, the present embodiment describes the steps of determining multiple height intervals based on the first height, height distribution information, and height information from a priori maps. The height distribution information includes the second height at which the most target objects are located, and the third height at which the highest target objects are located. Specifically, the method of this embodiment includes the following steps:
[0060] The area between the first height and the second height is determined as the first height interval, where the first height is less than the second height; the area between the second height and the third height is determined as the second height interval, where the second height is less than the third height; and the area between the third height and the highest height of the prior map is determined as the third height interval, where the third height is less than the highest height.
[0061] In conjunction with the above embodiment, the first height is the height at which the point cloud in the current environment is most densely distributed. Generally, the closer the point cloud is to the ground, the denser the distribution is. Therefore, the first height is equivalent to the lowest height of the point cloud distribution (close to the ground height). The second height is the height corresponding to the point cloud data with the most target objects in the current environment, which is equivalent to the height value corresponding to most target objects in the current environment. The highest height of each target object can be used as a judgment standard. For example, in the current environment, there are 3 target objects with a height of 0.5m, 6 target objects with a height of 1m, and 2 target objects with a height of 1.5m. Therefore, the second height with the most target objects in the current environment is the 1m height corresponding to the 6 target objects, that is, the second height in the current environment is 1m; similarly, in the current environment, the third height with the highest target object is 1.5m.
[0062] It should be noted that, under common circumstances, the first object between the first height and the second height is usually a whole (for example, a table, cabinet, workbench, etc. placed on the ground). Therefore, the interval between the first height and the second height is taken as the first height interval. The second object between the second height and the third height is usually placed above the first object, such as goods placed on a table, parts placed on a workbench, etc. Therefore, the interval between the second height and the third height can be taken as the second height interval. Above the third height, it is usually mainly point clouds related to buildings and building structures in the environment (such as wall point clouds, etc.). Therefore, above the third height is a third object different from the first object and the second object, so the interval between the third height and the highest height of the prior map is taken as the third height interval. Among them, if there are the same number of target objects at each height in the current environment (that is, it is impossible to distinguish the height corresponding to the most target objects), the average value can be calculated based on the heights of all target objects in the current environment, and the average height can be taken as the second height.
[0063] In addition, it should be noted that if the first height and / or the second height and / or the third height cannot be determined based on the above implementation in the current scenario, the preset height threshold H s Divide the height into intervals.
[0064] Based on the above embodiment, the embodiment of the present application describes the steps of determining the area between the second height and the third height as the second height interval and the step of determining the area between the third height and the highest height of the prior map as the third height interval. Specifically, the method of this embodiment includes the following steps:
[0065] The second height interval is divided based on a preset first division threshold to obtain multiple second height sub-intervals; the third height interval is divided based on a preset second division threshold to obtain multiple third height sub-intervals, and the second division threshold is greater than the first division threshold.
[0066] It should be noted that in order to further improve the accuracy of the map updating method of the present application, the second height interval and the third height interval can be subdivided to obtain the second height sub-interval and the third height sub-interval. Since the first object in the first height interval is usually a whole, the first height interval does not need to be further divided; while there may be multiple second objects in the second height interval. Under the premise of ensuring that the overall point cloud of each second object is within the same height interval as much as possible, the second height interval will be divided more finely; similarly, the point cloud of the third object in the third height interval is usually more integrated than that of the second object. For example, the wall point cloud is usually a large whole, so the third height interval is divided more sparsely.
[0067] For example, a first division threshold h1 and a second division threshold h2 can be preset. The division thresholds are used to divide the interval into sub-intervals, where h1 < h2, which means that the division granularity of the first division threshold h1 is smaller than that of the second division threshold h2, and the resulting second height sub-interval will also be smaller than the third height sub-interval. For example, if h1 = 1m, it means that the second height interval is divided into one second height sub-interval at every 1m, and the last second height sub-interval is directly generated if the second height interval is less than 1m. Similarly, if h2 = 2m, it means that the third height interval is divided into one third height sub-interval at every 2m, and the last third height sub-interval is directly generated if the third height interval is less than 2m. This allows for a more detailed analysis of the second and third height intervals. Since the point cloud data in the second height interval is usually richer than the point cloud data in the third height interval, a finer division granularity is required for the second height interval. It should also be noted that the present application provides a more efficient interval division method, that is, the second height interval and the third height interval can be further divided; and in another possible implementation method, a height threshold can be preset to further divide the first height interval, which will not be elaborated here.
[0068] Specifically described in conjunction with the above embodiment, the second height interval can be expressed as The third altitude range can be represented as: If the second height interval is divided based on the first height threshold h1, the range of the i-th second height sub-interval can be obtained as And the last sub-interval in the second height interval (i last The range of the interval (the second height sub-interval) is Similarly, if the third height interval is divided based on the second height threshold h2, the range of the jth third height sub-interval can be obtained as Hts+j*h2, and the interval range of the last subinterval in the third height interval (jlast third height subinterval) is
[0069] In another embodiment, if the height information of the first to third height intervals cannot be accurately obtained according to the above embodiment, it is necessary to determine the height interval according to a preset height threshold. For example, there is a preset height threshold of H s Based on the ground height h f and preset height threshold H s Determine the first height interval [h f ,H s ), based on the preset height threshold H s and the maximum height H of the prior map top Determine the second altitude range [H] s ,H top Therefore, the first height threshold is used to divide the first height interval, and the second height threshold is used to divide the second height interval, so that the height sub-intervals closer to the ground are denser and the height sub-intervals farther from the ground are sparser. In addition, if the highest height H of the prior map cannot be obtained for some reason, top The highest altitude that can be collected can also be determined based on the laser radar setting parameters on the robot. For example, the maximum value of the laser radar distance is recorded as The height at which the laser radar is installed on the vehicle body is recorded as The maximum height can then be determined as
[0070] Based on the above embodiment, the present embodiment of the application describes the steps of matching the point cloud data belonging to the same height interval in the key frame point cloud data with the point cloud data of the corresponding height interval in the prior map, and obtaining the matching rate of each height interval. Specifically, the method of this embodiment includes the following steps:
[0071] The point clouds of each height interval in the acquired key frame are traversed respectively, and the reference point clouds adjacent to the target point cloud are searched in the prior map based on the currently traversed target point cloud to obtain the point cloud distance between the target point cloud and the reference point cloud; the point cloud whose point cloud distance is less than the preset first distance threshold is determined as the matching point cloud; the matching rate of the height interval is determined based on the number of matching point clouds in the height interval and the total number of point clouds in the height interval.
[0072] With reference to the above embodiment, the key frame point cloud data currently being analyzed is recorded as the k-th key frame. Each laser point cloud data in the current key frame is traversed, and based on the currently traversed target point cloud, the nearest point cloud (i.e., the point cloud adjacent to the target point cloud) is searched in the prior map to obtain a reference point cloud, wherein the specific search method may include but is not limited to methods such as constructing a KD number, which is not limited here. If the point cloud distance between the target point cloud and the reference point cloud is less than the preset first distance threshold, it can be considered that the target point cloud of the current key frame and the reference point cloud in the prior map are successfully matched, and the successfully matched target point cloud is determined as the matching point cloud; conversely, if the point cloud distance between the target point cloud and the reference point cloud is greater than or equal to the preset first distance threshold, it can be considered that the target point cloud of the current key frame and the reference point cloud in the prior map have failed to match.
[0073] Furthermore, based on the point cloud height of each point cloud in the keyframe, the height interval of each point cloud is determined. Therefore, the total number of point clouds in the i-th height interval of the k-th keyframe can be determined as follows: And the number of matching point clouds in the i-th height interval is Therefore, the matching rate of the i-th height interval can be obtained based on the number of matching point clouds in the i-th height interval and the total number of point clouds in the i-th height interval. It is understandable that after obtaining the matching rate of each height interval in the k-th key frame, the matching rate of each height interval can be stored in an array to facilitate subsequent calculation and analysis processing.
[0074] Based on the above embodiment, the present embodiment describes the steps for obtaining keyframe point cloud data. Specifically, the method of this embodiment includes the following steps:
[0075] The current frame point cloud data and the historical frame point cloud data are obtained, and the timing of the current frame point cloud data is later than that of the historical frame point cloud data. If the difference between the current pose determined based on the current frame point cloud data and the historical pose determined based on the historical frame point cloud data is greater than a preset difference threshold, and the point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data is less than a preset repetition threshold, the current frame point cloud data is used as the key frame point cloud data.
[0076] As explained in conjunction with the aforementioned embodiments, map updates are a tedious and time-consuming process, especially in some application scenarios where highly variable height intervals are densely packed, resulting in a large and complex amount of data to be analyzed. Therefore, in this application, during the acquisition of keyframe point cloud data, redundant data can be streamlined, significantly reducing the time required for map construction and improving map update efficiency.
[0077] For example, during the movement of the robot, multiple point cloud frames are usually collected continuously, and there is a high probability that a large amount of duplicate data exists between adjacent point cloud frames. Therefore, if the continuously collected point cloud frames are directly analyzed, data redundancy may occur due to the presence of duplicate data, thereby affecting the efficiency of map updating. In this embodiment, the collected point cloud data is projected into the map coordinate system according to the current positioning result. For details, reference may be made to existing methods, such as matching the currently acquired point cloud with the prior map to obtain the position and posture of the lidar (robot) in the map, which is not limited here. If the posture difference between the posture of the lidar in the current frame and the posture of the lidar in the historical frame is greater than a preset difference threshold, and the point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data is less than a preset repetition threshold, the current frame can be determined as a key frame.
[0078] It should be noted that a historical frame can be an ordinary point cloud frame or a key frame that is earlier in time than the current frame. For example, a historical frame can be the previous point cloud frame adjacent to the current frame among the multiple point cloud frames collected, or the previous key frame of the current point cloud frame. The point cloud repetition rate characterizes the degree of repetition between the point cloud scanned by the lidar in the current frame and the point cloud scanned in the historical frames. For example, the ratio of the point cloud data repeatedly scanned in the current frame and the historical frames to the total number of point clouds in the current frame is determined as the point cloud repetition rate of the current frame. If the point cloud repetition rate is less than the repetition threshold, it indicates that the point cloud redundancy between the current frame and the historical frames is low, so the current frame can be used as a key frame. Conversely, if the point cloud repetition rate is greater than or equal to the repetition threshold, it indicates that the point cloud redundancy between the current frame and the historical frames is high. In order to reduce data redundancy and improve map update efficiency, the current frame is not used as a key frame, and the future frames collected are compared in the same way. The future frames are later in time than the current frame.
[0079] Based on the above embodiment, the embodiment of the present application describes the step of using the current frame point cloud data as the key frame point cloud data if the difference between the current pose determined based on the current frame point cloud data and the historical pose determined based on the historical frame point cloud data is greater than a preset difference threshold, and the point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data is less than a preset repetition threshold. Specifically, the method of this embodiment includes the following steps:
[0080] Each point cloud in the current frame point cloud data is traversed, and adjacent point clouds are determined in the historical frame point cloud data based on the current traversed point cloud; in response to the point cloud distance between the current traversed point cloud and the adjacent point cloud being less than a preset second distance threshold, the current traversed point cloud is determined as a repeated point cloud; and the point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data is determined based on the number of repeated point clouds and the total number of point clouds in the current frame point cloud data.
[0081] In conjunction with the above embodiment, before determining whether the current frame can be used as a key frame, it is necessary to calculate the posture difference and point cloud repetition rate between the current frame and the historical frame. The posture difference can be determined based on the existing method after determining the posture of the laser radar (robot) in the current frame and the posture in the historical frame, and the difference between the two postures is determined. It will not be described here. For the point cloud repetition rate, the total number of point clouds scanned and obtained in the current frame is recorded as N new , by traversing each point cloud in the current frame and determining the adjacent point cloud in the historical frame (the point cloud closest to the currently traversed point cloud) based on the currently traversed point cloud. The specific method can refer to the point cloud traversal method when calculating the matching rate of the height interval in the aforementioned embodiment to a certain extent, and will not be described here. If the point cloud distance between the adjacent point cloud and the currently traversed point cloud is less than the second distance threshold (the second distance threshold and the first distance threshold can be the same or different), the currently traversed point cloud is considered to be a duplicate point cloud of the adjacent point cloud. Therefore, after traversing all the point clouds in the current frame, the number N0 of duplicate point clouds in the current frame can be statistically obtained, and then the point cloud repetition rate between the current frame and the historical frame can be obtained.
[0082] Based on the above embodiment, the present embodiment of the present application describes the steps of updating the prior map based on the point cloud data in the target height range. Specifically, the method of this embodiment includes the following steps:
[0083] At least one target keyframe point cloud data is selected from a plurality of keyframe point cloud data; the point cloud data in the target keyframe point cloud data is clustered to obtain a candidate point cloud set; candidate point cloud sets whose point cloud numbers are less than a preset threshold value in the candidate point cloud set are eliminated to obtain a target point cloud set; and the prior map is updated accordingly based on the height intervals in which the target point cloud sets are located.
[0084] In conjunction with the above embodiment, it is possible that among the multiple key frame point cloud data obtained, some key frames may be obtained too early, making it difficult to provide valid data for analysis and processing at the current moment. Therefore, the obtained key frames can be filtered based on the current moment and a preset time interval threshold. For example, key frames with a time interval less than a threshold (such as 400s) with the current moment are filtered out as target key frames. The point cloud data in the target key frames are then clustered to obtain candidate point cloud sets in each target key frame, where each candidate point cloud set includes at least one point cloud data. It is understandable that if the number of point clouds in the point cloud set is small, it is difficult to provide effective data support. Therefore, candidate point cloud sets with less than the number threshold are eliminated, and the remaining candidate point cloud sets are used as target point cloud sets. Then, based on the point clouds in the target point cloud set, the height interval that can be used for map update is determined, and the map update is performed based on the point cloud data in this height interval.
[0085] It should also be noted that for the candidate point cloud set obtained after screening, voxel filtering can also be performed on it according to existing methods. For example, the voxel size is a parameter (such as 0.2m), and the filtered point cloud set is used as the target point cloud set to update the prior map.
[0086] It should be further noted that the map update method may be executed by a map update device. For example, the map update method may be executed by a terminal device, a server, or other processing device, wherein the terminal device may be a user equipment (UE), a computer, a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, etc. In some possible implementations, the map update method may be implemented by a processor invoking computer-readable instructions stored in a memory.
[0087] Figure 3 FIG. 1 is a block diagram of a map updating device according to an exemplary embodiment of the present application. Figure 3 As shown, the exemplary map updating device 300 includes: an interval determination module 310, an acquisition module 320, a point cloud matching module 330, a target determination module 340, and a map updating module 350. Specifically:
[0088] The interval determination module 310 is used to determine multiple height intervals based on the height information of each point cloud data in the acquired prior map.
[0089] The acquisition module 320 is used to acquire keyframe point cloud data.
[0090] The point cloud matching module 330 is used to match the point cloud data belonging to the same height interval in the key frame point cloud data with the point cloud data of the corresponding height interval in the prior map, and obtain the matching rate of each height interval.
[0091] The target determination module 340 is used to select the height range where the matching rate is within a preset matching threshold range as the target height range.
[0092] The map update module 350 is used to update the prior map based on point cloud data in the target height range.
[0093] In this exemplary map updating device, multiple height intervals are determined based on the height information of each point cloud data in the acquired prior map. After the keyframe point cloud data is acquired, the keyframe point cloud data belonging to the same height interval can be matched with the prior map point cloud data, and the matching rate of the point cloud data in each height interval can be obtained respectively. As a result, the height interval with a matching rate greater than the matching threshold can be determined as the target height interval that can be used for map updating, and the height interval with a matching rate less than the matching threshold can be determined as the height interval that cannot be used for map updating, so as to avoid reducing the accuracy of the map after using the point cloud in the height interval with a lower matching rate to update the map. Using the point cloud data in the target height interval to update the map can ensure the map accuracy and positioning robustness, respond to real-time changes in the environment, and achieve accurate and efficient map updates.
[0094] It should be noted that the apparatus provided in the above embodiments and the methods provided in the above embodiments are based on the same concept. The specific manner in which the various modules and units perform their operations has been described in detail in the method embodiments and will not be repeated here. In actual applications, the apparatus provided in the above embodiments can, as needed, allocate the above functions to different functional modules, i.e., divide the internal structure of the apparatus into different functional modules to perform all or part of the functions described above. This is not a limitation herein.
[0095] The functions of each module can be found in the map updating method embodiment, which will not be described in detail here.
[0096] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of an embodiment of an electronic device of the present application. Electronic device 400 includes memory 401 and processor 402. Processor 402 is configured to execute program instructions stored in memory 401 to implement the steps of any of the aforementioned map update method embodiments. In a specific implementation scenario, electronic device 400 may include, but is not limited to, a microcomputer and a server. Furthermore, electronic device 400 may also include mobile devices such as laptops and tablet computers, without limitation herein.
[0097] Specifically, the processor 402 is used to control itself and the memory 401 to implement the steps in any of the above-mentioned map updating method embodiments. The processor 402 can also be called a CPU (Central Processing Unit). The processor 402 may be an integrated circuit chip with signal processing capabilities. The processor 402 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 402 can be implemented by an integrated circuit chip.
[0098] In this exemplary electronic device, multiple height intervals are determined based on the height information of each point cloud data in the acquired prior map. After the key frame point cloud data is acquired, the key frame point cloud data and the prior map point cloud data belonging to the same height interval can be matched, and then the matching rate of the point cloud data in each height interval can be obtained respectively. Thus, the height interval with a matching rate greater than the matching threshold can be determined as the target height interval that can be used for map update, and the height interval with a matching rate less than the matching threshold can be determined as the height interval that cannot be used for map update, so as to avoid reducing the accuracy of the map after using the point cloud in the height interval with a lower matching rate to update the map. Using the point cloud data in the target height interval to update the map can ensure the map accuracy and positioning robustness, respond to real-time changes in the environment, and achieve accurate and efficient map updates.
[0099] See also Figure 5 , Figure 5 This is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application. The computer-readable storage medium 510 stores program instructions 511 that can be executed by a processor. The program instructions 511 are used to implement the steps in any of the above-described map update method embodiments.
[0100] In this exemplary storage medium, multiple height intervals are determined based on the height information of each point cloud data in the acquired prior map by running program instructions within the storage medium. After acquiring keyframe point cloud data, keyframe point cloud data belonging to the same height interval can be matched with prior map point cloud data, thereby obtaining the matching rate of point cloud data in each height interval. Height intervals with matching rates greater than a matching threshold are identified as target height intervals suitable for map updates, while those with matching rates less than the threshold are identified as unsuitable for map updates. This avoids reducing map accuracy by using point clouds from height intervals with low matching rates for map updates. Updating the map using point cloud data from the target height intervals ensures map accuracy and positioning robustness while responding to real-time environmental changes, achieving accurate and efficient map updates.
[0101] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.
[0102] The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced with each other and will not be repeated herein for the sake of brevity.
[0103] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation methods described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0104] In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
Claims
1. A map updating method, characterized in that: The method comprises: Determine multiple height intervals based on the height information of each point cloud data in the acquired prior map; Get keyframe point cloud data; Matching the point cloud data belonging to the same height interval in the key frame point cloud data with the point cloud data of the corresponding height interval in the priori map, and obtaining the matching rate of each height interval respectively; The height interval whose matching rate is within a preset matching threshold range is used as the target height interval; The priori map is updated based on the point cloud data in the target height interval.
2. The method according to claim 1, characterized in that The step of determining a plurality of height intervals based on the height information of each point cloud data in the acquired prior map comprises: Based on the acquired point cloud data in the current environment, determining a height at which the point cloud data is most densely populated as a first height; Determine height distribution information of a target object in the current environment based on the point cloud data in the current environment; A plurality of altitude intervals are determined based on the first altitude, the altitude distribution information, and the altitude information of the priori map.
3. The method according to claim 2, characterized in that The height distribution information includes a second height where the most target objects exist and a third height where the highest target object exists, and the step of determining a plurality of height intervals based on the first height, the height distribution information and the height information of the priori map includes: Determine an area between the first height and the second height as a first height interval, wherein the first height is less than the second height; Determine an area between the second height and the third height as a second height interval, wherein the second height is less than the third height; An area between the third height and the highest height of the priori map is determined as a third height interval, and the third height is smaller than the highest height.
4. The method according to claim 3, characterized in that The step of determining the area between the second height and the third height as the second height interval comprises: Divide the second height interval based on a preset first division threshold to obtain a plurality of second height sub-intervals; The step of determining the area between the third height and the highest height of the priori map as the third height interval comprises: The third height interval is divided based on a preset second division threshold to obtain a plurality of third height sub-intervals, wherein the second division threshold is greater than the first division threshold.
5. The method according to claim 1, characterized in that The step of matching the point cloud data belonging to the same height interval in the key frame point cloud data with the point cloud data of the corresponding height interval in the priori map to obtain the matching rate of each height interval includes: The point clouds of each height interval in the acquired key frame are traversed respectively, and based on the currently traversed target point cloud, a reference point cloud adjacent to the target point cloud is searched in the priori map to obtain a point cloud distance between the target point cloud and the reference point cloud; Determine the point cloud whose point cloud distance is less than a preset first distance threshold as a matching point cloud; A matching rate of the height interval is determined based on the number of matching point clouds in the height interval and the total number of point clouds in the height interval.
6. The method according to claim 1, characterized in that The step of obtaining key frame point cloud data includes: Acquire current frame point cloud data and historical frame point cloud data, wherein the timing of the current frame point cloud data is later than that of the historical frame point cloud data; If the difference between the current posture determined based on the current frame point cloud data and the historical posture determined based on the historical frame point cloud data is greater than a preset difference threshold, and the point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data is less than a preset repetition threshold, the current frame point cloud data is used as the key frame point cloud data.
7. The method according to claim 6, characterized in that Before the step of using the current frame point cloud data as the key frame point cloud data if the difference between the current posture determined based on the current frame point cloud data and the historical posture determined based on the historical frame point cloud data is greater than a preset difference threshold, and the point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data is less than a preset repetition threshold, the method further includes: Traversing each point cloud in the current frame point cloud data, and determining adjacent point clouds in the historical frame point cloud data based on the currently traversed point cloud; In response to a point cloud distance between the current traversed point cloud and the adjacent point cloud being less than a preset second distance threshold, determining the current traversed point cloud as a repeated point cloud; The point cloud repetition rate between the current frame point cloud data and the historical frame point cloud data is determined based on the number of repeated point clouds and the total number of point clouds of the current frame point cloud data.
8. The method according to claim 1, characterized in that The step of updating the prior map based on the point cloud data in the target height interval includes: Selecting at least one target key frame point cloud data from a plurality of key frame point cloud data; Clustering the point cloud data in the target key frame point cloud data to obtain a candidate point cloud set; Eliminate the candidate point cloud sets whose point cloud quantity is less than a preset quantity threshold in the candidate point cloud set to obtain a target point cloud set; The prior map is updated accordingly based on the height intervals where each target point cloud set is located.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Map updating method, electronic equipment and storage medium
CN121453027A
Map updating method, electronic equipment and storage medium
CN121557995A
