Method and system for automatically updating cleaning robot map
By dividing environmental areas in the cleaning robot, marking key points, and using Bayesian binary theorem to determine map update needs, the positioning problem caused by environmental changes is solved, real-time automatic map updating is achieved, and positioning accuracy and resource rationality are ensured. use.
Patent Information
- Application Number
- CN202210568641.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-05-24
AI Technical Summary
Existing cleaning robot maps are difficult to update in real time when the environment dynamically changes, resulting in positioning failure and reduced accuracy, especially in cleaning tasks that require high positioning accuracy.
By dividing the on-site environment area, marking key points, using sensor data and laser scanning matching scores to judge the environmental quality, combined with Bayesian binary theorem to determine whether the map needs to be updated, and automatically build and update the map at the end of the task, using a queue form Handle multi-region update tasks.
Real-time automatic updating of static maps is achieved to ensure positioning accuracy without manual intervention, reducing operation and maintenance costs, and is suitable for various types of machines and workplaces.
Smart Images

Figure CN114993287B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cleaning robots, and in particular to a method and system for automatically updating a cleaning robot map. Background Art
[0002] Autonomous navigation of robots usually requires SLAM mapping in advance. The constructed map is a static map that only reflects the characteristics of the environment at the time of mapping. However, in fact, the environment changes dynamically, such as the movement of chairs, cabinets and furnishings. When the environment is changed and does not match the prior map, there is a risk of positioning failure. In particular, cleaning robots that need to clean the room require relatively high positioning accuracy. In order to solve this problem, it is necessary to update the static map regularly. The present invention allows the machine to determine whether the map needs to be updated and update it automatically during daily tasks.
[0003] Patent document CN114271729A (application number: 202111404655.1) discloses a map construction method, comprising: a cleaning robot device performs object feature recognition on at least one detected target object to obtain object feature information of the target object; the cleaning robot device constructs a map based on the object feature information of the target object to obtain a map including object feature information; and the cleaning robot device updates the map including object feature information based on the object feature information of the newly detected target object and / or changes in the object feature information of the detected target object. Summary of the invention
[0004] In view of the defects in the prior art, an object of the present invention is to provide a method and system for automatically updating a cleaning robot map.
[0005] A method for automatically updating a cleaning robot map according to the present invention includes:
[0006] Step S1: Divide the on-site environment into different areas according to preset requirements;
[0007] Step S2: Marking points in the corresponding area that meet the preset requirements;
[0008] Step S3: Record the sensor data of the cleaning robot in the corresponding area. When the robot enters the preset range of the marked point, perform laser scanning, and match the laser scanning point with the known map point to obtain a matching score. When the matching score is greater than or equal to the preset value, the current environment is good; when the matching score is less than the preset value, the current environment is poor.
[0009] Step S4: Based on the judgment of the current environment, use the Bayesian binary theorem to determine whether the current map needs to be updated;
[0010] Step S5: When the current map needs to be updated, a map is constructed based on the sensor data and the laser data.
[0011] Preferably, the step S3 adopts: using an icp registration algorithm and / or lilkelihood to match the laser scanning point with the known map point to obtain a match.
[0012] Preferably, the step S4 adopts:
[0013] When the current environment is poor, the edge variable L = L0 + log (p (more) / 1-p (more));
[0014] When the current environment is good, the edge variable L = L0 + log (p (no change) / 1-p (no change));
[0015] Where L0 represents the initial value of the edge variable; p(update) represents the update probability calculated by the current matching point; p(no update) represents the non-update probability calculated by the current matching point;
[0016] After multiple matching iterations, the final value of the edge variable L is obtained;
[0017] Calculate S=1-1 / (1+exp(L)). As the value of L increases or decreases, the value range of S approaches 0 or 1 infinitely. When S is greater than the preset value, it is considered that the current map needs to be updated.
[0018] Preferably, step S5 adopts: after the cleaning robot task is completed, the coordinate transformation relationship, odometer data and laser data of the robot are collected, and a corresponding storage file is generated; a mapping program is executed according to the generated corresponding storage file, and the map is stored in a corresponding directory after the mapping is completed; and the corresponding map is loaded for corresponding update.
[0019] Preferably, when multiple areas need to be updated, the update tasks are in the form of a queue and the updates are completed one by one.
[0020] A system for automatically updating a cleaning robot map according to the present invention includes:
[0021] Module M1: Divide the on-site environment into different areas according to preset requirements;
[0022] Module M2: Mark the points that meet the preset requirements in the corresponding area;
[0023] Module M3: Record the sensor data of the cleaning robot in the corresponding area. When the robot enters the preset range of the marked points, it performs laser scanning and matches the laser scanning points with the known map points to obtain a matching score. When the matching score is greater than or equal to the preset value, the current environment is good; when the matching score is less than the preset value, the current environment is poor.
[0024] Module M4: Based on the judgment of the current environment, use Bayesian binary theorem to determine whether the current map needs to be updated;
[0025] Module M5: When the current map needs to be updated, the map is built based on the sensor data and laser data.
[0026] Preferably, the module M3 adopts: using an icp registration algorithm and / or lilkelihood to match the laser scanning points with known map points to obtain a match.
[0027] Preferably, the module M4 adopts:
[0028] When the current environment is poor, the edge variable L = L0 + log (p (more) / 1-p (more));
[0029] When the current environment is good, the edge variable L = L0 + log (p (no change) / 1-p (no change));
[0030] Where L0 represents the initial value of the edge variable; p(update) represents the update probability calculated by the current matching point; p(no update) represents the non-update probability calculated by the current matching point;
[0031] After multiple matching iterations, the final value of the edge variable L is obtained;
[0032] Calculate S=1-1 / (1+exp(L)). As the value of L increases or decreases, the value range of S approaches 0 or 1 infinitely. When S is greater than the preset value, it is considered that the current map needs to be updated.
[0033] Preferably, the module M5 adopts: after the cleaning robot task is completed, the coordinate transformation relationship, odometer data and laser data of the robot are collected, and a corresponding storage file is generated; a mapping program is executed according to the generated corresponding storage file, and the map is stored in a corresponding directory after the mapping is completed; and the corresponding map is loaded for corresponding update.
[0034] Preferably, when multiple areas need to be updated, the update tasks are in the form of a queue and the updates are completed one by one.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] 1. Ensure real-time automatic update of static maps without manual intervention, thereby ensuring positioning accuracy.
[0037] 2. It does not affect the current state and current task of the robot. As long as there is a data packet, the background map can be automatically built, and it is executed in the form of a queue to ensure that there is only one mapping task to reasonably utilize the robot resources.
[0038] 3. By automatically setting matching judgment points at locations where environmental changes are more likely to occur when executing tasks, the environmental matching degree is calculated in real time to automatically determine whether there are major changes in the environment.
[0039] 4. By recording sensor data, when it is determined that there are major changes in the environment, the map will be updated immediately to effectively solve the positioning and planning problems caused by environmental changes.
[0040] 5. By setting key points to judge whether to update, it can be well applied to various models of machines and working occasions, has good versatility, and reduces after-sales and operation and maintenance costs; BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0042] Figure 1 Flowchart of a method for automatically updating a cleaning robot map. DETAILED DESCRIPTION
[0043] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0044] Example 1
[0045] According to a method for automatically updating a cleaning robot map provided by the present invention, Figure 1 As shown, including:
[0046] Step S1: Divide the on-site environment into different areas according to preset requirements; for example, floors or rooms;
[0047] Step S2: Marking points in the corresponding area that meet the preset requirements; for example, marking points in places where environmental changes are likely to occur, such as the door of a room, inside a room, at a corridor intersection, and near a cabinet, etc.;
[0048] Step S3: Record the sensor data of the cleaning robot in the corresponding area. When the robot enters the preset range of the marked points, it performs laser scanning and matches the laser scanning points with the known map points to obtain a matching score. When the matching score is greater than or equal to the preset value, the current environment is good. When the matching score is less than the preset value, the current environment is poor. Specifically, for example, when the robot receives a task, it starts recording from the time it leaves the charging station. If it is across floors or across rooms, it records the sensor data in segments or by floor or room. For example, if it is on the same floor, it records until the task is completed. If it is across floors, it ends the recording of this floor after entering the elevator on the first floor, and restarts recording the data of the floor to be visited in the elevator. If you go to two floors, it records twice. Determine whether the two floors need to be updated separately.
[0049] Step S4: Based on the judgment of the current environment, use the Bayesian binary theorem to determine whether the current map needs to be updated; the Bayesian binary theorem can effectively solve the jump situation at the update or non-update boundary;
[0050] Step S5: When the current map needs to be updated, a map is constructed based on the sensor data and the laser data.
[0051] Specifically, the step S3 adopts: using the ICP registration algorithm, lilkelihood or other simple methods to align and match the laser scanning points with the known map points to obtain the matching.
[0052] Specifically, the step S4 adopts:
[0053] When the current environment is poor, the edge variable L = L0 + log (p (more) / 1-p (more));
[0054] When the current environment is good, the edge variable L = L0 + log (p (no change) / 1-p (no change));
[0055] Where L0 represents the initial value of the edge variable; p(update) represents the update probability calculated by the current matching point; p(no update) represents the non-update probability calculated by the current matching point;
[0056] After multiple matching iterations, the final value of the edge variable L is obtained;
[0057] Calculate S=1-1 / (1+exp(L)). As the value of L increases or decreases, the value range of S approaches 0 or 1 infinitely. When S is greater than the preset value, it is considered that the current map needs to be updated.
[0058] For example: when L0 = 0.5; p(more) = 0.6, p(no more) = 1-p(more) = 0.4;
[0059] In a certain area, 10 points are matched. When the first match is performed, the current environment is considered bad, so L1 = L0 + log (p (more) / 1-p (more)) = 0.5 + log (0.6 / 0.4) = 0.676; when the second match is performed, the current environment is considered good, so L2 = L1 + log (p (not more) / 1-p (not more)) = 0.676 + log (0.4 / 0.6) = 0.5; and so on, calculate the value of the edge variable L at the 10th match. Then calculate the value of S based on the value of the edge variable L; as the value of L continues to increase or decrease, the value range is infinitely close to -1 or 1. When S is greater than the preset value (such as > 0.8), it is considered that the map needs to be updated.
[0060] Specifically, the step S5 adopts: after the task is completed, the robot returns to the charging pile, ends data collection (records the robot's coordinate transformation relationship, odometer data, laser data) and generates a corresponding storage file. If it is a cross-floor or room task, the corresponding records are stored by floor segment. According to S, it is determined that the map of this floor needs to be updated, and the mapping program is executed. The mapping program reads the data packet to perform background mapping, and stores the map in the corresponding directory after the mapping is completed. Determine whether to reload the map based on the robot task status, and the new map can take effect immediately during non-tasks.
[0061] Specifically, when multiple areas need to be updated, the update tasks are queued and updated one by one.
[0062] A system for automatically updating a cleaning robot map according to the present invention includes:
[0063] Module M1: Divide the on-site environment into different areas according to preset requirements; for example: floors and rooms;
[0064] Module M2: Mark points in the corresponding area that meet the preset requirements; for example, according to the on-site environment, mark points in places where environmental changes are likely to occur, such as: room doors, inside rooms, corridor intersections, and near cabinets;
[0065] Module M3: Record the sensor data of the cleaning robot in the corresponding area. When the robot enters the preset range of the marked points, it performs laser scanning and matches the laser scanning points with the known map points to obtain a matching score. When the matching score is greater than or equal to the preset value, the current environment is good. When the matching score is less than the preset value, the current environment is poor. Specifically, for example, when the robot receives a task, it starts recording from the time it leaves the charging station. If it is across floors or across rooms, it records the sensor data in segments or by floor or room. For example, if it is on the same floor, it records until the task is completed. If it is across floors, it ends the recording of this floor after entering the elevator on the first floor, and restarts recording the data of the floor to be visited in the elevator. If you go to two floors, it records twice. Determine whether the two floors need to be updated separately.
[0066] Module M4: Based on the judgment of the current environment, use the Bayesian binary theorem to determine whether the current map needs to be updated; the Bayesian binary theorem can effectively solve the jump situation at the update or non-update boundary;
[0067] Module M5: When the current map needs to be updated, the map is built based on the sensor data and laser data.
[0068] Specifically, the module M3 adopts: using the ICP registration algorithm, lilkelihood or other simple methods to align and match the laser scanning points with the known map points to obtain the matching.
[0069] Specifically, the module M4 adopts:
[0070] When the current environment is poor, the edge variable L = L0 + log (p (more) / 1-p (more));
[0071] When the current environment is good, the edge variable L = L0 + log (p (no change) / 1-p (no change));
[0072] Where L0 represents the initial value of the edge variable; p(update) represents the update probability calculated by the current matching point; p(no update) represents the non-update probability calculated by the current matching point;
[0073] After multiple matching iterations, the final value of the edge variable L is obtained;
[0074] Calculate S=1-1 / (1+exp(L)). As the value of L increases or decreases, the value range of S approaches 0 or 1 infinitely. When S is greater than the preset value, it is considered that the current map needs to be updated.
[0075] For example: when L0 = 0.5; p(more) = 0.6, p(no more) = 1-p(more) = 0.4;
[0076] In a certain area, 10 points are matched. When the first match is performed, the current environment is considered bad, so L1 = L0 + log (p (more) / 1-p (more)) = 0.5 + log (0.6 / 0.4) = 0.676; when the second match is performed, the current environment is considered good, so L2 = L1 + log (p (not more) / 1-p (not more)) = 0.676 + log (0.4 / 0.6) = 0.5; and so on, calculate the value of the edge variable L at the 10th match. Then calculate the value of S based on the value of the edge variable L; as the value of L continues to increase or decrease, the value range is infinitely close to -1 or 1. When S is greater than the preset value (such as > 0.8), it is considered that the map needs to be updated.
[0077] Specifically, the module M5 adopts: returning to the charging pile after the task is completed, ending data collection (recording the robot's coordinate transformation relationship, odometer data, laser data) and generating corresponding storage files. If it is a cross-floor or room task, the corresponding records are stored by floor segment. According to S, it is determined that the map of this floor needs to be updated, and the mapping program is executed. The mapping program reads the data packet to perform background mapping, and stores the map in the corresponding directory after the mapping is completed. Determine whether to reload the map based on the robot's task status, and the new map can take effect immediately during non-tasks.
[0078] Specifically, when multiple areas need to be updated, the update tasks are queued and updated one by one.
[0079] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.
[0080] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A method for automatically updating a cleaning robot map, characterized in that: include: Step S1: Divide the on-site environment into different areas according to preset requirements; Step S2: Marking points in the corresponding area that meet the preset requirements; Step S3: Record the sensor data of the cleaning robot in the corresponding area. When the robot enters the preset range of the marked point, perform laser scanning, and match the laser scanning point with the known map point to obtain a matching score. When the matching score is greater than or equal to the preset value, the current environment is good; when the matching score is less than the preset value, the current environment is poor. Step S4: Based on the judgment of the current environment, use the Bayesian binary theorem to determine whether the current map needs to be updated; Step S5: When the current map needs to be updated, a map is constructed based on the sensor data and the laser data; The step S4 adopts: When the current environment is poor, the edge variable L = L0 + log (p (more) / 1-p (more)); When the current environment is good, the edge variable L = L0 + log (p (no change) / 1-p (no change)); Where L0 represents the initial value of the edge variable; p(update) represents the update probability calculated by the current matching point; p(no update) represents the non-update probability calculated by the current matching point; After multiple matching iterations, the final value of the edge variable L is obtained; Calculate S=1-1 / (1+exp(L)). As the value of L increases or decreases, the value range of S approaches 0 or 1 infinitely. When S is greater than the preset value, it is considered that the current map needs to be updated.
2. The method for automatically updating the cleaning robot map according to claim 1, characterized in that: The step S3 adopts: using the icp registration algorithm and / or lilkelihood to match the laser scanning points with the known map points to obtain the matching.
3. The method for automatically updating the cleaning robot map according to claim 1, characterized in that: The step S5 adopts: after the cleaning robot completes its task, the coordinate transformation relationship, odometer data and laser data of the robot are collected, and a corresponding storage file is generated; a mapping program is executed according to the generated corresponding storage file, and after the mapping is completed, the map is stored in a corresponding directory; and the corresponding map is loaded for corresponding update.
4. The method for automatically updating the cleaning robot map according to claim 1, characterized in that: When multiple areas need to be updated, the update tasks are queued and updated one by one.
5. A system for automatically updating a cleaning robot map, characterized in that: include: Module M1: Divide the on-site environment into different areas according to preset requirements; Module M2: Mark the points that meet the preset requirements in the corresponding area; Module M3: Record the sensor data of the cleaning robot in the corresponding area. When the robot enters the preset range of the marked points, it performs laser scanning and matches the laser scanning points with the known map points to obtain a matching score. When the matching score is greater than or equal to the preset value, the current environment is good; when the matching score is less than the preset value, the current environment is poor. Module M4: Based on the judgment of the current environment, use Bayesian binary theorem to determine whether the current map needs to be updated; Module M5: When the current map needs to be updated, the map is built based on sensor data and laser data; The module M4 adopts: When the current environment is poor, the edge variable L = L0 + log (p (more) / 1-p (more)); When the current environment is good, the edge variable L = L0 + log (p (no change) / 1-p (no change)); Where L0 represents the initial value of the edge variable; p(update) represents the update probability calculated by the current matching point; p(no update) represents the non-update probability calculated by the current matching point; After multiple matching iterations, the final value of the edge variable L is obtained; Calculate S=1-1 / (1+exp(L)). As the value of L increases or decreases, the value range of S approaches 0 or 1 infinitely. When S is greater than the preset value, it is considered that the current map needs to be updated.
6. The system for automatically updating the cleaning robot map according to claim 5, characterized in that: The module M3 adopts: using the icp registration algorithm and / or lilkelihood to match the laser scanning points with the known map points to obtain the matching.
7. The system for automatically updating the cleaning robot map according to claim 5, characterized in that: The module M5 adopts: after the cleaning robot completes its task, it collects the coordinate transformation relationship, odometer data and laser data of the robot, and generates a corresponding storage file; executes a mapping program according to the generated corresponding storage file, and stores the map in a corresponding directory after the mapping is completed; and loads the corresponding map for corresponding updates.
8. The system for automatically updating the cleaning robot map according to claim 5, characterized in that: When multiple areas need to be updated, the update tasks are queued and updated one by one.
