A robot 3D point cloud map dynamic update method, device and robot
By judging the difference in the robot's posture and projecting the depth image format, the dynamic update of the 3D point cloud map is realized, which solves the problem of map obsolescence caused by environmental changes and improves the robot's positioning accuracy and automation level.
Patent Information
- Application Number
- CN202210437336.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-21
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-04-21
AI Technical Summary
In the existing technology, the 3D point cloud map of an autonomous mobile robot becomes outdated due to environmental changes, resulting in reduced positioning accuracy, and manual maintenance is not real-time, affecting the robot's automation level.
By obtaining the angle or displacement difference between the first and second postures of the robot based on the 3D point cloud map, it is determined whether the local map needs to be updated, and the sub-map and the local map are projected in the depth image format, and the variance difference is used to determine Whether to update the map to achieve dynamic updates.
It achieves efficient and accurate dynamic updating of 3D point cloud maps, improves robot positioning accuracy and automation level, and avoids the shortcomings of manual intervention.
Smart Images

Figure CN114964207B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robots, and in particular to a method and device for dynamically updating a 3D point cloud map of a robot, and a robot. Background Art
[0002] Autonomous mobile robots require the robot to be able to achieve autonomous path-finding and walking capabilities, and the premise for achieving this capability is that the robot knows its location. Therefore, the positioning technology of autonomous mobile robots has been one of the hot research technologies in recent years. Currently, the positioning methods widely used in autonomous navigation mobile robots include laser positioning, GPS positioning, and visual positioning. Patrol robots are a specific application of automatic mobile robots. They are usually equipped with 3D laser radar for positioning and navigation. They are mainly used for patrolling, taking pictures, and recording in parks, buildings, and other places.
[0003] The patrol robot realizes positioning and navigation based on the pre-built 3D laser point cloud map. However, most real-world scene environments, such as the addition of buildings in park scenes and the trees in parks in spring and winter, will become outdated easily if these changes are not taken into account. This will affect the positioning accuracy of the robot and may even cause the robot to lose its position. Therefore, it is necessary to automatically update and maintain the 3D point cloud map.
[0004] The existing technical solution to solve the problem of outdated 3D point cloud maps of mobile robots is mainly to manually update the maps by maintenance / technical personnel. However, the above-mentioned update has the following problems: 1. Manual intervention not only wastes manpower but also affects the automation level of the robot;
[0005] 2. Manual maintenance is difficult to achieve in real time. Usually, the map is updated only when there is a problem with the robot's positioning;
[0006] The background description provided herein is for the purpose of generally presenting the context of the present disclosure. Unless otherwise indicated herein, the materials described in this section are not prior art to the claims of this application and are not admitted to be prior art by inclusion in this section. Summary of the invention
[0007] In view of the above technical problems in the related art, the present invention proposes a method for dynamically updating a robot 3D point cloud map, which comprises the following steps:
[0008] S1, obtain the first pose_map of the robot based on the 3D point cloud map;
[0009] S2, based on the robot's second pose pose_odom output by the laser odometer, and maintains a sub-map sub_map for a predetermined time;
[0010] S3, determining whether the angle difference between the first pose pose_map and the second pose pose_odom is always greater than a first threshold or the displacement difference is always greater than a second threshold in a continuous second time period; if so, executing step S4;
[0011] S4, extracting the local map local_map corresponding to the current position from the existing 3D point cloud map;
[0012] S5, performing point cloud map projection on the sub-map sub_map and the local map local_map into depth image format, which are recorded as sub-map depth map sub_map_img and local map depth map local_map_img respectively;
[0013] S6, when the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img is greater than a third threshold, the sub-map sub_map directly replaces the local map local_map, thereby completing the dynamic update of the map.
[0014] Specifically, the predetermined time is 5 seconds.
[0015] Specifically, the second time period is 5s.
[0016] Specifically, the first threshold is 3 degrees or the second threshold is 0.3 m.
[0017] Specifically, the third threshold is 0.5.
[0018] In a second aspect, another embodiment of the present invention discloses a robot 3D point cloud map dynamic update device, which includes the following units:
[0019] The first pose acquisition unit is used to obtain the first pose pose_map of the robot based on the 3D point cloud map positioning;
[0020] A second posture acquisition unit is used to maintain a sub-map sub_map for a predetermined time according to the second posture pose_odom of the robot output by the laser odometer;
[0021] A posture comparison unit is used to determine whether the angle difference between the first posture pose_map and the second posture pose_odom is always greater than a first threshold or the displacement difference is always greater than a second threshold in a continuous second time period; if so, the local map acquisition unit is executed;
[0022] A local map acquisition unit, used to extract a local map local_map corresponding to the current position from an existing 3D point cloud map;
[0023] A depth map projection unit, used for performing point cloud map projection on the sub-map sub_map and the local map local_map into a depth image format, which are respectively recorded as the sub-map depth map sub_map_img and the local map depth map local_map_img;
[0024] The local map updating unit is used to directly replace the local map local_map with the sub-map sub_map when the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img is greater than a third threshold, so as to complete the dynamic update of the map.
[0025] Specifically, the predetermined time and the second time period are both 5 seconds.
[0026] Specifically, the first threshold is 3 degrees or the second threshold is 0.3 m.
[0027] Specifically, the third threshold is 0.5.
[0028] In the third aspect, another embodiment of the present invention provides a robot, comprising a central processing unit, a storage unit, the memory storing instructions, and the instructions, when executed by the processor, are used to implement the above-mentioned robot 3D point cloud map dynamic update method.
[0029] The present invention considers that the local map of this position may need to be updated when the angle difference between the first pose pose_map and the second pose pose_odom is always greater than a first threshold value in the second time period or the displacement difference is always greater than a second threshold value in the second time period, and further considers that the local map of this position needs to be updated when the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img is greater than a third threshold value. The present invention uses an image algorithm, that is, evaluates the change of the 3D point cloud map according to the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img, and can efficiently and accurately detect the degree of change of the 3D point cloud map, so as to accurately determine whether the map needs to be updated. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1It is a flow chart of a method for dynamically updating a robot 3D point cloud map provided by an embodiment of the present invention;
[0032] Figure 2 It is a schematic diagram of a robot 3D point cloud map dynamic update device provided by an embodiment of the present invention;
[0033] Figure 3 Schematic diagram of a robot provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0035] Embodiment 1
[0036] refer to Figure 1 This embodiment discloses a method for dynamically updating a robot 3D point cloud map, which comprises the following steps:
[0037] S1, obtain the first pose_map of the robot based on the 3D point cloud map;
[0038] Specifically, the robot starts positioning in the scene based on the 3D point cloud map and outputs the robot's first pose pose_map.
[0039] Specifically, when the robot patrols in a preset scene, it will use a positioning method based on a 3D point cloud map to achieve the robot's positioning.
[0040] The robot is equipped with a laser radar and locates itself based on the laser radar and a pre-stored 3D point cloud map.
[0041] S2, based on the robot's second pose pose_odom output by the laser odometer, and maintains a sub-map sub_map for a predetermined time;
[0042] Specifically, the robot in this embodiment is equipped with a laser odometry (LiDAR odometry), which is a method of estimating the breeding position and direction by tracking the laser speckle pattern reflected by surrounding objects.
[0043] Specifically, the scheduled time is 5 seconds.
[0044] S3, determining whether the angle difference between the first pose pose_map and the second pose pose_odom is always greater than a first threshold or the displacement difference is always greater than a second threshold in a continuous second time period; if so, executing step S4;
[0045] Specifically, in this embodiment, the angle difference between the first pose pose_map and the second pose pose_odom is always greater than the first threshold in a continuous second time period, for example, the angle difference between the first pose pose_map and the second pose pose_odom is always greater than the first threshold within 5 seconds.
[0046] The specific first threshold is 3 degrees.
[0047] Or in this embodiment, the displacement difference between the first pose pose_map and the second pose pose_odom is always greater than the second threshold in a continuous second time period, for example, the displacement difference between the first pose pose_map and the second pose pose_odom is always greater than the second threshold in 5 seconds.
[0048] Specifically, the second threshold is 0.3 m.
[0049] If the angle difference between the first pose pose_map and the second pose pose_odom is always greater than a first threshold value in the second time period or the displacement difference is always greater than a second threshold value in the second time period, it is preliminarily considered that the local map of this position may need to be updated.
[0050] S4, extracting the local map local_map corresponding to the current position from the existing 3D point cloud map;
[0051] Specifically, the robot stores an established 3D point cloud map, and the established 3D point cloud map may be different from the current moment.
[0052] This embodiment obtains a local map of the current position from an established 3D map based on the obtained current position of the robot.
[0053] S5, performing point cloud map projection on the sub-map sub_map and the local map local_map into depth image format, which are recorded as sub-map depth map sub_map_img and local map depth map local_map_img respectively;
[0054] Specifically, the point cloud map (x, y, z) is converted into a depth image (u, v, pixel);
[0055] In this embodiment, the resolution of each image pixel size is 0.1m. In this embodiment, the point cloud map (x, y, z) is converted into a depth image (u, v, pixel) according to the following formula: u = round (x*0.1), v = round (y*0.1), pixel = round (z*100 / 256), where round() is rounded to the nearest integer.
[0056] Depth images, also known as range images, refer to images that use the distance from the image collector to each point in the scene as pixel values. They directly reflect the geometric shape of the visible surface of the scene.
[0057] S6, when the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img is greater than a third threshold, directly replacing the local map local_map with the sub-map sub_map, thereby completing the dynamic update of the map;
[0058] Specifically, this embodiment calculates the variance value of the local map depth map local_map_img. This embodiment first calculates the mean Pmean=1 / n(P(u,v,1)+P(u,v,2)+...........+P(u,v,n)) of the local map depth map local_map_img; then calculates the variance V=1 / n[(P(u,v,1)-Pmean)^2+(P(u,v,2)-Pmean)^2+...........+(P(u,v,n)-Pmean)^2] of the local map depth map local_map_img according to the mean.
[0059] The specific third threshold is 0.5.
[0060] In this embodiment, when the angle difference between the first pose pose_map and the second pose pose_odom is always greater than a first threshold value in the second time period or the displacement difference is always greater than a second threshold value in the second time period, it is considered that the local map of this position may need to be updated. Further, when the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img is greater than a third threshold value, it is considered that the local map of this position needs to be updated. In this embodiment, the image algorithm is used to evaluate the change of the 3D point cloud map according to the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img, so as to efficiently and accurately detect the degree of change of the 3D point cloud map, so as to accurately determine whether the map needs to be updated.
[0061] Embodiment 2
[0062] refer to Figure 2 , this embodiment discloses a robot 3D point cloud map dynamic update device, which includes the following units:
[0063] The first pose acquisition unit is used to obtain the first pose pose_map of the robot based on the 3D point cloud map positioning;
[0064] Specifically, the robot starts positioning in the scene based on the 3D point cloud map and outputs the robot's first pose pose_map.
[0065] Specifically, when the robot patrols in a preset scene, it will use a positioning method based on a 3D point cloud map to achieve the robot's positioning.
[0066] The robot is equipped with a laser radar and locates itself based on the laser radar and a pre-stored 3D point cloud map.
[0067] A second posture acquisition unit is used to maintain a sub-map sub_map for a predetermined time according to the second posture pose_odom of the robot output by the laser odometer;
[0068] Specifically, the robot in this embodiment is equipped with a laser odometry (LiDAR odometry), which is a method of estimating the breeding position and direction by tracking the laser speckle pattern reflected by surrounding objects.
[0069] Specifically, the scheduled time is 5 seconds.
[0070] A posture comparison unit is used to determine whether the angle difference between the first posture pose_map and the second posture pose_odom is always greater than a first threshold or the displacement difference is always greater than a second threshold in a continuous second time period; if so, the local map acquisition unit is executed;
[0071] Specifically, in this embodiment, the angle difference between the first pose pose_map and the second pose pose_odom is always greater than the first threshold in a continuous second time period, for example, the angle difference between the first pose pose_map and the second pose pose_odom is always greater than the first threshold within 5 seconds.
[0072] The specific first threshold is 3 degrees.
[0073] Or in this embodiment, the displacement difference between the first pose pose_map and the second pose pose_odom is always greater than the second threshold in a continuous second time period, for example, the displacement difference between the first pose pose_map and the second pose pose_odom is always greater than the second threshold in 5 seconds.
[0074] Specifically, the second threshold is 0.3 m.
[0075] If the angle difference between the first pose pose_map and the second pose pose_odom is always greater than a first threshold value in the second time period or the displacement difference is always greater than a second threshold value in the second time period, it is preliminarily considered that the local map of this position may need to be updated.
[0076] A local map acquisition unit, used to extract a local map local_map corresponding to the current position from an existing 3D point cloud map;
[0077] Specifically, the robot stores an established 3D point cloud map, and the established 3D point cloud map may be different from the current moment.
[0078] This embodiment obtains a local map of the current position from an established 3D map based on the obtained current position of the robot.
[0079] A depth map projection unit, used for performing point cloud map projection on the sub-map sub_map and the local map local_map into a depth image format, which are respectively recorded as the sub-map depth map sub_map_img and the local map depth map local_map_img;
[0080] Specifically, the point cloud map (x, y, z) is converted into a depth image (u, v, pixel);
[0081] In this embodiment, the resolution of each image pixel size is 0.1m. In this embodiment, the point cloud map (x, y, z) is converted into a depth image (u, v, pixel) according to the following formula: u = round (x*0.1), v = round (y*0.1), pixel = round (z*100 / 256), where round() is rounded to the nearest integer.
[0082] Depth images, also known as range images, refer to images that use the distance from the image collector to each point in the scene as pixel values. They directly reflect the geometric shape of the visible surface of the scene.
[0083] The local map updating unit is used to directly replace the local map local_map with the sub-map sub_map when the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img is greater than a third threshold, so as to complete the dynamic update of the map.
[0084] Specifically, this embodiment calculates the variance value of the local map depth map local_map_img. This embodiment first calculates the mean Pmean=1 / n(P(u,v,1)+P(u,v,2)+...........+P(u,v,n)) of the local map depth map local_map_img; then calculates the variance V=1 / n[(P(u,v,1)-Pmean)^2+(P(u,v,2)-Pmean)^2+...........+(P(u,v,n)-Pmean)^2] of the local map depth map local_map_img according to the mean.
[0085] The specific third threshold is 0.5.
[0086] In this embodiment, when the angle difference between the first pose pose_map and the second pose pose_odom is always greater than a first threshold value in the second time period or the displacement difference is always greater than a second threshold value in the second time period, it is considered that the local map of this position may need to be updated. Further, when the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img is greater than a third threshold value, it is considered that the local map of this position needs to be updated. In this embodiment, the image algorithm is used to evaluate the change of the 3D point cloud map according to the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img, so as to efficiently and accurately detect the degree of change of the 3D point cloud map, so as to accurately determine whether the map needs to be updated.
[0087] Embodiment 3
[0088] refer to Figure 3 , Figure 3 : is a schematic diagram of the structure of the robot of this embodiment. The robot 20 of this embodiment includes a processor 21, a memory 22, and a computer program stored in the memory 22 and executable on the processor 21. When the processor 21 executes the computer program, the steps in the above method embodiment are implemented. Alternatively, when the processor 21 executes the computer program, the functions of each module / unit in the above device embodiments are implemented.
[0089] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 22 and executed by the processor 21 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the robot 20. For example, the computer program may be divided into the modules in Embodiment 2. For the specific functions of each module, please refer to the working process of the device described in the above embodiment, which will not be repeated here.
[0090] The robot 20 may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that the schematic diagram is merely an example of the robot 20 and does not limit the robot 20. The robot 20 may include more or fewer components than shown in the figure, or may combine certain components, or different components. For example, the robot 20 may also include input and output devices, network access devices, buses, etc.
[0091] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the robot 20, and various parts of the entire robot 20 are connected using various interfaces and lines.
[0092] The memory 22 can be used to store the computer program and / or module. The processor 21 realizes various functions of the robot 20 by running or executing the computer program and / or module stored in the memory 22 and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0093] Wherein, if the module / unit integrated in the robot 20 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor 21, the steps of the above-mentioned various method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include electrical carrier signals and telecommunication signals.
[0094] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0095] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for dynamically updating a robot 3D point cloud map, comprising the following steps: S1, obtain the first pose_map of the robot based on the 3D point cloud map; S2, based on the robot's second pose pose_odom output by the laser odometer, and maintains a sub-map sub_map for a predetermined time; S3, determining whether the angle difference between the first pose pose_map and the second pose pose_odom is always greater than a first threshold or the displacement difference is always greater than a second threshold in a continuous second time period; if so, executing step S4; S4, extracting the local map local_map corresponding to the current position from the existing 3D point cloud map; S5, performing point cloud map projection on the sub-map sub_map and the local map local_map into depth image format, which are recorded as sub-map depth map sub_map_img and local map depth map local_map_img respectively; S6, when the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img is greater than a third threshold, the sub-map sub_map directly replaces the local map local_map, thereby completing the dynamic update of the map.
2. According to the method of claim 1, the predetermined time is 5s.
3. According to the method of claim 2, the second time period is 5s. The method according to claim 3 , wherein the first threshold is 3 degrees or the second threshold is 0.3 m. The method according to claim 4 , wherein the third threshold is 0.
5.
6. A robot 3D point cloud map dynamic update device, comprising the following units: The first pose acquisition unit is used to obtain the first pose pose_map of the robot based on the 3D point cloud map positioning; A second posture acquisition unit is used to maintain a sub-map sub_map for a predetermined time according to the second posture pose_odom of the robot output by the laser odometer; A posture comparison unit is used to determine whether the angle difference between the first posture pose_map and the second posture pose_odom is always greater than a first threshold or the displacement difference is always greater than a second threshold in a continuous second time period; if so, the local map acquisition unit is executed; A local map acquisition unit, used to extract a local map local_map corresponding to the current position from an existing 3D point cloud map; A depth map projection unit, used for performing point cloud map projection on the sub-map sub_map and the local map local_map into a depth image format, which are respectively recorded as the sub-map depth map sub_map_img and the local map depth map local_map_img; The local map updating unit is used to directly replace the local map local_map with the sub-map sub_map when the variance difference between the local map depth map local_map_img and the sub-map depth map sub_map_img is greater than a third threshold, so as to complete the dynamic update of the map. The device according to claim 6 , wherein the predetermined time and the second time period are both 5 seconds. The device according to claim 7 , wherein the first threshold is 3 degrees or the second threshold is 0.3 m. The apparatus according to claim 8 , wherein the third threshold is 0.
5.
10. A robot, comprising a central processing unit and a storage unit, wherein the storage unit stores instructions, and when the instructions are executed by the processor, the instructions are used to implement the method according to any one of claims 1 to 5.
