Device relocation error recovery method, device, computer device and storage medium

By caching and restoring the global map before relocation, the problem of device relocation errors is solved, the device location is accurately updated and the path planning is correct, and mapping and path planning errors caused by mislocation are avoided.

CN113190380BActive Publication Date: 2024-09-24GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110447878.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-25
Publication Date
2024-09-24
Estimated Expiration
2041-04-25

AI Technical Summary

Technical Problem

The existing technology lacks a recovery solution for device relocation errors, which causes the device to continue to use incorrect location information for mapping and path planning after mislocation, resulting in mapping distortion and path planning errors.

Method used

By caching the global map before relocation, deleting the updated global map when a relocation location error is detected, restoring the global map before relocation, and re-relocating the updated location to achieve recovery from device relocation errors.

Benefits of technology

It effectively avoids mapping distortion and path planning errors caused by mispositioning of the equipment, and improves the accuracy and success rate of relocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113190380B
    Figure CN113190380B
Patent Text Reader

Abstract

The present application relates to a method, apparatus, computer equipment and storage medium for recovering from device relocation errors, wherein the method comprises: when the relocation function needs to be started, caching a global map before relocation as a backup, the device operates according to a position determined by relocation, and continuously detects whether there is an error in the previous relocation position during the operation. If so, deleting the global map updated based on the position after relocation, restoring to the backup global map before relocation, relocating again according to the global map before relocation, and updating the position of the device to achieve device relocation error recovery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of positioning technology, and in particular to a method, apparatus, computer equipment and storage medium for recovering from device relocation errors. Background Art

[0002] Repositioning refers to repositioning. In actual applications, positioning-based devices need to reposition themselves when entering a new working environment to confirm their own position in order to accurately perform operations. Taking a sweeping robot as an example, when the sweeping robot is trapped or enters an area that violates the user's cleaning intention, it will be manually moved and cause the sweeping robot to lose its position. In addition, when the sweeping robot imports a historical map for a second cleaning, it also needs to confirm its own position in the historical map in order to continue to use the map and make reasonable path planning. The positioning requirements for other devices based on positioning operations are the same, so I will not go into details here.

[0003] After triggering relocation, three results will be generated: (1) relocation success; (2) relocation failure; (3) relocation error. Among them, after relocation is successful, the device continues to work according to the existing map. If relocation fails, the map construction and operation will be restarted. The above two results will not cause abnormal problems in map construction and path planning. In the case of relocation error, continue to take the sweeping robot as an example, Figure 1 As shown in the figure, there are three similar scenes in the map, namely, position 2, position 3, and position 4. When the sweeping robot is moving from position 1 to position 4, after relocation is triggered, the sweeping robot displays position 2 as the relocation position, which results in an incorrect positioning. If a relocation error occurs in the sweeping robot, the sweeping robot believes that it has successfully relocated in the map, but the position of the sweeping robot in the actual scene is inconsistent with the position on the map. The main reason for the relocation error is that there are multiple similar environments in the map. The sweeping robot did not correctly distinguish similar features during the relocation judgment process, but believed the position information of one of them, resulting in an incorrect positioning judgment. When a relocation error occurs in the sweeping robot, the entire machine will use the wrong position information to continue real-time mapping and path planning, which will cause subsequent mapping to be distorted and path planning to be incorrect.

[0004] Traditional technologies focus more on how to achieve device relocation, but there is no solution for device relocation error recovery yet. Summary of the invention

[0005] Based on this, it is necessary to provide an accurate device relocation error recovery method, apparatus, computer equipment and storage medium to address the above technical issues.

[0006] A device relocation error recovery method, the method comprising:

[0007] Start the relocation function and cache the global map before relocation;

[0008] Perform operations based on the position determined by relocation;

[0009] When a relocation position error is detected during the operation, the updated global map is deleted and restored to the global map before relocation;

[0010] Reposition again according to the global map before repositioning and update the current position.

[0011] In one embodiment, initiating the relocation function includes:

[0012] Collect environmental image data and build a local map based on the current location;

[0013] Perform feature matching between the local map and the global map before relocalization;

[0014] When the similar area corresponding to the feature matching result is not unique, move to a new position, return to collect environmental image data, and construct a local map based on the current position;

[0015] When the similar area corresponding to the feature matching result is unique, the device position is relocated according to the feature matching result.

[0016] In one embodiment, when the similar area corresponding to the feature matching result is not unique, moving to a new position includes:

[0017] When the similarity area corresponding to the feature matching result is not unique, select the target point on the boundary of the local map;

[0018] Move to the target point.

[0019] In one embodiment, selecting a target point on a boundary of a local map includes:

[0020] Determine the boundaries of the local map;

[0021] Screen unoccupied boundary points on the boundary;

[0022] Obtain device size parameters, and select candidate target points that support the device to reach from unoccupied boundary points according to the device size parameters;

[0023] Select the point farthest from the current position among the candidate target points to obtain the target point.

[0024] In one embodiment, when the similar area corresponding to the feature matching result is not unique, moving to a new position includes:

[0025] When the similar area corresponding to the feature matching result is not unique, locate the current position;

[0026] With the current location as the center, draw an optional range map according to the preset radius;

[0027] Randomly select an unoccupied point in the optional range map as the target point;

[0028] Move to the target point.

[0029] In one embodiment, performing feature matching between the local map and the global map before relocalization includes:

[0030] Based on the corner point features in the local map, the corner point feature similarity is calculated in the global map before relocalization;

[0031] Determine whether the corner point feature similarity calculation result is greater than the preset similarity threshold.

[0032] In one embodiment, when the similar area corresponding to the feature matching result is not unique, the steps of moving to a new location, returning to collect the environment image data, and constructing a local map based on the current location include:

[0033] When the similar area corresponding to the feature matching result is not unique, move to a new position;

[0034] Delete the constructed local map, return to the step of collecting environmental image data, and construct a local map based on the current location.

[0035] In one of the embodiments, the device relocation error recovery method further includes:

[0036] Receive job requests;

[0037] Extract the job parameters carried in the job request;

[0038] Start the job according to the job parameters and listen for any position mutation events.

[0039] When a position mutation event occurs, the relocation function is initiated.

[0040] A device relocation error recovery device, the device comprising:

[0041] The cache module is used to start the relocation function and cache the global map before relocation;

[0042] An operation module, used for performing operations according to the position determined by relocation;

[0043] A recovery module is used to delete the updated global map and restore to the global map before relocation when a relocation position error is detected during the operation;

[0044] The secondary relocation module is used to relocate again according to the global map before relocation and update the current position.

[0045] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0046] Start the relocation function and cache the global map before relocation;

[0047] Perform operations based on the position determined by relocation;

[0048] When a relocation position error is detected during the operation, the updated global map is deleted and restored to the global map before relocation;

[0049] Reposition again according to the global map before repositioning and update the current position.

[0050] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0051] Start the relocation function and cache the global map before relocation;

[0052] Perform operations based on the position determined by relocation;

[0053] When a relocation position error is detected during the operation, the updated global map is deleted and restored to the global map before relocation;

[0054] Reposition again according to the global map before repositioning and update the current position.

[0055] The above-mentioned device relocation error recovery method, device, computer equipment and storage medium, when it is necessary to start the relocation function, cache the global map before relocation as a backup, the device operates according to the position determined by relocation, and continuously detects whether there is an error in the previous relocation position during the operation. If so, delete the global map that has been updated based on the position after relocation, restore to the backup global map before relocation, relocate again according to the global map before relocation, and update the device location to achieve device relocation error recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 A schematic diagram of a process flow of a device relocation error recovery method in one embodiment;

[0057] Figure 2 A schematic diagram of device relocation in an embodiment;

[0058] Figure 3A schematic diagram of a flow chart of a device relocation error recovery method in another embodiment;

[0059] Figure 4 A schematic diagram of a device relocation error recovery process in an application example;

[0060] Figure 5 A flowchart of a device relocation error recovery method in an application example;

[0061] Figure 6 A structural block diagram of a device relocation error recovery apparatus in one embodiment;

[0062] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0064] In one embodiment, Figure 1 As shown, a device relocation error recovery method is provided, comprising the following steps:

[0065] S200: Start the relocation function and cache the global map before relocation.

[0066] When a sudden change occurs in the position of the device, the relocation function needs to be activated. The device can continue to operate based on the position determined after relocation. Figure 2 When the user moves the sweeping robot from position 1 to position 2, the position of the sweeping robot changes suddenly. In order to ensure that it can continue to clean the whole house, it needs to be relocated, that is, it needs to redetermine the position of the current position 2 in the global map. When the device starts the relocation function, it caches the global map before relocation, that is, the global map before the position suddenly changes (is moved). Generally speaking, relocation is to collect image data of the surrounding environment, build a local map based on the collected image data, and match features between the local map and the global map. If the feature match is successful, the relocation is successful, and the global map will be updated at this time. Here, choose to cache the global map before relocation, that is, the global map before the cache device suddenly changes its position (is moved).

[0067] S400: Perform operations according to the position determined by repositioning.

[0068] The device has re-determined its position in the operating area, updated the global map and operating path according to the re-determined position, and continued to operate based on the updated global map and operating path. Taking the sweeping robot as an example, after the sweeping robot successfully re-locates, it updates / plans the global map and cleaning path according to the determined position 2, obtains an updated whole-house map and an updated whole-house cleaning path, and continues to clean the whole house from position 2 according to these two parts of data.

[0069] S600: When a relocation position error is detected during the operation, the updated global map is deleted and restored to the global map before the relocation.

[0070] When the device is performing operations based on the updated global map and the operation path, it continuously detects / determines whether the previous relocation position is correct. When a relocation position error is detected, the device immediately stops the operation. Since the updated global map currently used is a map updated based on an erroneous relocation position, the updated global map needs to be deleted. In order to achieve relocation error recovery, it is also necessary to restore the global map before relocation cached in S200 and relocate again with the correct global map. Specifically, this detection is a continuous process. When the device finds during the operation that the path planned based on the last relocation does not conform to the actual operation scenario, it determines that the last relocation position is wrong. For example, the path planned based on the last relocation position is that the next step requires a left turn, but in the current application scenario, it is found that there is a wall on the left side of the current position and it is impossible to turn left. Then the device determines that the last relocation position is wrong. In other words, detecting whether the relocation position is wrong is a continuous process that accompanies the operation. As the operation progresses, the device continuously determines whether the path planned based on the last relocation conforms to the actual operation scenario. When a path planning error is detected (discovered), the operation has been performed for a period of time according to the wrong relocation position. The device detects that the last relocation position is wrong, directly deletes the updated global map, and restores it to the global map before relocation.

[0071] S800: Reposition again according to the global map before repositioning and update the current position.

[0072] Since the device has performed a certain distance of work based on the wrong global map, its position has changed. When relocating again, the device needs to re-collect the surrounding environment image data of the current position, build a local map, and perform feature matching on the local map with the correct global map before relocation. When the feature matching is successful, the current position is updated. It should be pointed out that in constructing the local map, environmental image data within a certain range can be collected. For example, environmental image data within a radius of 2 meters can be collected, and a local map can be constructed based on the collected environmental image data.

[0073] The above-mentioned device repositioning error recovery method, when it is necessary to start the repositioning function, caches the global map before repositioning as a backup, and the device operates according to the position determined by the repositioning. During the operation, it continuously detects whether there is an error in the previous repositioning position. If so, the global map updated based on the position after repositioning is deleted, and the global map before repositioning that is backed up is restored. Repositioning is performed again according to the global map before repositioning, and the device position is updated to achieve device repositioning error recovery.

[0074] like Figure 3 As shown, in one embodiment, S200 includes:

[0075] S220: Collect environmental image data and construct a local map based on the current location.

[0076] When the device's position suddenly changes and needs to be relocated, the device starts to collect environmental image data of its current location (new location), and builds a specific map based on the current location based on the collected data.

[0077] S240: Perform feature matching on the local map and the global map before relocalization.

[0078] In order to relocate its position in the global operating area, the device performs feature matching between the local map and the global map before full positioning (before being moved). Before repositioning refers to before the movement that triggers the repositioning function, that is, obtaining the global map before the device is moved (moved) to the new location. Generally speaking, the global map is a map generated for the entire operating area during normal operation of the device. The local map is feature matched with the global map to determine the current position in the entire operating area.

[0079] S260: When the similar area corresponding to the feature matching result is not unique, move to a new position, return to collect environmental image data, and construct a local map based on the current position.

[0080] Based on the feature matching results, it may be found that there are multiple similar regions, such as Figure 2 There are up to 3 similar areas, and the locations that can be further determined are Figure 2 Position 2, position 3, and position 4 in the relocation process have a serious risk of relocation error. Therefore, it is necessary to abandon the result of this relocation, move to a new position, and execute action S220 again at the new position. Furthermore, while returning to execute action S220, the device can also directly abandon the local map constructed based on position 2 as the origin, and use the local map constructed at the new position to perform feature matching with the global map before relocation to perform a new round of relocation.

[0081] S280: When the similar area corresponding to the feature matching result is unique, relocate the device according to the feature matching result.

[0082] When the similar area corresponding to the feature matching result is unique, it indicates that the relocation result is unique. At this time, the risk of relocation error is very low. The current position of the device in the global map is directly determined based on the feature matching result, that is, the device position is relocated.

[0083] In this embodiment, a method for avoiding relocation errors is used to reduce the risk of device relocation errors and improve the accuracy of device relocation.

[0084] In one embodiment, when the similar area corresponding to the feature matching result is not unique, moving to a new position includes:

[0085] When the similar area corresponding to the feature matching result is not unique, select a target point on the boundary of the local map; and move to the position of the target point.

[0086] When the similar area corresponding to the feature matching result is not unique, move to a new location and collect environmental image data again. When the device arrives at an unfamiliar location and needs to be relocated, a local map has been constructed through previous processing. The part within the local map belongs to the known part of the device, and the part outside the local map belongs to the unknown part. The boundary of the local map is the intersection of the known part and the unknown part. In order to update the local map later and improve the success rate of relocation, it is necessary to select the target point on the boundary of the local map. Furthermore, the target point also needs to select an unoccupied point and a point that the device can reach, that is, there are no obstacles at the point and the point can accommodate the device.

[0087] In one embodiment, selecting a target point on a boundary of a local map includes:

[0088] Determine the boundary of the local map; filter unoccupied boundary points on the boundary; obtain device shape dimension parameters, and select candidate target points that support the device to reach from the unoccupied boundary points according to the device shape dimension parameters; select the point farthest from the current position from the candidate target points to obtain the target point.

[0089] When it is necessary to move to a new position again to collect environmental image data and reconstruct the local map, determine the boundary of the constructed local map, that is, determine the boundary of the known part and the unknown part detected at the current position, and select unoccupied boundary points on the boundary. When obtaining the device size parameters, this part of the parameters can be pre-stored in the device memory and is part of the device performance (nameplate) parameters. According to the device size parameters, select candidate target points that can accommodate the device from the unoccupied boundary points. For example, some unoccupied boundary points are in a corner or horn position. The device cannot reach this position at all due to its own large size. In this case, such unoccupied boundary points obviously need to be eliminated to obtain candidate target points. Then, the farthest point is selected from the candidate target points to obtain the target point, so as to update the erroneous local map to the maximum extent and improve the success rate of the next repositioning.

[0090] In one embodiment, when the similar area corresponding to the feature matching result is not unique, moving to a new position includes:

[0091] When the similar area corresponding to the feature matching result is not unique, locate the current position; use the current position as the center of the circle and draw an optional range map according to a preset radius; arbitrarily select an unoccupied point in the optional range map as the target point; and move to the position of the target point.

[0092] In this embodiment, an unoccupied point is randomly selected as a target point within a circle drawn according to a preset radius based on the current position, and the target point is moved to the position. The preset radius is a preset value, which can be set according to actual conditions, for example, it can be preset to 1 meter or 2 meters.

[0093] In one embodiment, performing feature matching between the local map and the global map before relocalization includes:

[0094] According to the corner point features in the local map, the corner point feature similarity is calculated in the global map before relocalization; and it is determined whether the corner point feature similarity calculation result is greater than a preset similarity threshold.

[0095] Specifically, the feature matching between the local map and the global map is achieved by calculating the similarity of corner point features. If the corner point feature similarity exceeds the preset similarity threshold, the feature matching is successful, that is, the relocation is successful; if the corner point feature similarity does not exceed the preset similarity threshold, the feature matching fails, and it is necessary to continue moving the position to update the local map and perform feature matching again.

[0096] In one of the embodiments, the device relocation error recovery method further includes:

[0097] Receive job requests; extract job parameters carried in the job requests; start the job according to the job parameters and listen for location mutation events; when location mutation events occur, start the relocation function.

[0098] Continuing with the example of the sweeping robot, the sweeping robot receives the user's cleaning request and extracts the cleaning parameters carried in the cleaning request - the standard mode cleans the whole house. The sweeping robot starts to clean the whole house according to the standard mode and maintains the position mutation event listening state. When it finds that it has been moved, it determines that a position mutation event has occurred and starts the repositioning function.

[0099] In practical applications, take the application in sweeping robot as an example. Figure 4 As shown, after the sweeping robot confirms that its relocation is successful, it still needs to separately save the map and path before relocation. Therefore, when the sweeping robot finds that its relocation result is wrong again during its work, the sweeping robot can abandon the current global map and path, call the separately saved historical map again and perform the relocation calculation again until it succeeds and starts a new cleaning.

[0100] like Figure 5 As shown, when the device relocation method of the present application is applied to the relocation error recovery of the sweeping robot, it specifically includes the following steps:

[0101] 1. The sweeping robot responds to the user's operation and starts cleaning the whole house;

[0102] 2. The user moves the sweeping robot, and the sweeping robot determines the triggering relocation condition;

[0103] 3. The sweeping robot saves the global map and path before being moved;

[0104] 4. Start relocation and determine whether the relocation result corresponds to a unique position. If not, proceed to step 5; if yes, proceed to step 6;

[0105] 5. When multiple similar locations are detected, the robot vacuum cleaner moves and re-performs relocation until a unique location is found;

[0106] 6. Relocation is successful;

[0107] 7. Continue cleaning the whole house based on the successfully relocated position, and determine whether the current position is correct. If so, keep cleaning until the whole house is cleaned and stop position detection and judgment; if not, go to step 8;

[0108] 8. When the current location is detected to be incorrect, delete the newly added map and path after relocation, that is, delete the currently updated global map and path;

[0109] 9. Restore the global map and path saved before triggering relocation, and refresh the position of the sweeping robot.

[0110] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0111] like Figure 6 As shown, the present application also provides a device relocation error recovery device, the device comprising:

[0112] A cache module 200 is used to start the relocation function and cache the global map before relocation;

[0113] An operation module 400 is used to perform an operation according to the position determined by relocation;

[0114] A recovery module 600 is used to delete the updated global map and restore the global map before relocation when a relocation position error is detected during the operation;

[0115] The secondary relocation module 800 is used to relocate again according to the global map before relocation and update the current position.

[0116] The above-mentioned device repositioning error recovery method, when it is necessary to start the repositioning function, caches the global map before repositioning as a backup, and the device operates according to the position determined by the repositioning. During the operation, it continuously detects whether there is an error in the previous repositioning position. If so, the global map updated based on the position after repositioning is deleted, and the global map before repositioning that is backed up is restored. Repositioning is performed again according to the global map before repositioning, and the device position is updated to achieve device repositioning error recovery.

[0117] In one of the embodiments, the above-mentioned device repositioning error recovery device also includes a repositioning module, which is used to collect environmental image data and construct a local map based on the current location; perform feature matching on the local map and the global map before repositioning; when the similar area corresponding to the feature matching result is not unique, move to a new location, return to collect environmental image data, and construct a local map based on the current location; when the similar area corresponding to the feature matching result is unique, relocate the device position according to the feature matching result.

[0118] In one of the embodiments, the relocation module is further used to select a target point on the boundary of the local map when the similar area corresponding to the feature matching result is not unique; and move to the position of the target point.

[0119] In one of the embodiments, the repositioning module is also used to determine the boundary of the local map; filter unoccupied boundary points on the boundary; obtain device shape dimension parameters, and select candidate target points that support the device to reach from the unoccupied boundary points based on the device shape dimension parameters; select the point farthest from the current position from the candidate target points to obtain the target point.

[0120] In one of the embodiments, the relocation module is also used to locate the current position when the similar area corresponding to the feature matching result is not unique; use the current position as the center of the circle and draw an optional range map according to a preset radius; arbitrarily select an unoccupied point in the optional range map as a target point; and move to the position of the target point.

[0121] In one of the embodiments, the relocation module is further used to calculate the similarity of corner point features in the global map before relocation based on the corner point features in the local map; and determine whether the calculation result of the corner point feature similarity is greater than a preset similarity threshold.

[0122] In one of the embodiments, the relocation module is also used to move to a new location when the similar area corresponding to the feature matching result is not unique; delete the constructed local map, return to the collected environment image data, and construct a local map based on the current location.

[0123] In one of the embodiments, the above-mentioned device relocation error recovery device also includes a startup module, which is used to receive a job request; extract the job parameters carried in the job request; start the job according to the job parameters, and listen for whether a position mutation event occurs; when a position mutation event occurs, start the relocation function.

[0124] The specific embodiments of the device relocation error recovery device can refer to the embodiments of the device relocation error recovery method in the above text, which will not be repeated here. Each module in the above-mentioned device relocation error recovery device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.

[0125] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as global maps and device performance parameters. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a device relocation error recovery method is implemented.

[0126] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0127] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0128] Start the relocation function and cache the global map before relocation;

[0129] Perform operations based on the position determined by relocation;

[0130] When a relocation position error is detected during the operation, the updated global map is deleted and restored to the global map before relocation;

[0131] Reposition again according to the global map before repositioning and update the current position.

[0132] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0133] Collect environmental image data and build a local map based on the current location; perform feature matching on the local map and the global map before relocation; when the similar area corresponding to the feature matching result is not unique, move to a new location and return to the step of collecting environmental image data and building a local map based on the current location; when the similar area corresponding to the feature matching result is unique, relocate the device position according to the feature matching result.

[0134] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0135] When the similar area corresponding to the feature matching result is not unique, select a target point on the boundary of the local map; and move to the position of the target point.

[0136] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0137] Determine the boundary of the local map; filter unoccupied boundary points on the boundary; obtain device shape dimension parameters, and select candidate target points that support the device to reach from the unoccupied boundary points according to the device shape dimension parameters; select the point farthest from the current position from the candidate target points to obtain the target point.

[0138] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0139] When the similar area corresponding to the feature matching result is not unique, locate the current position; use the current position as the center of the circle and draw an optional range map according to a preset radius; arbitrarily select an unoccupied point in the optional range map as the target point; and move to the position of the target point.

[0140] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0141] According to the corner point features in the local map, the corner point feature similarity is calculated in the global map before relocalization; and it is determined whether the corner point feature similarity calculation result is greater than a preset similarity threshold.

[0142] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0143] When the similar area corresponding to the feature matching result is not unique, move to a new position; delete the constructed local map, return to the collected environment image data, and construct a local map based on the current position.

[0144] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0145] Receive job requests; extract job parameters carried in the job requests; start the job according to the job parameters and listen for location mutation events; when location mutation events occur, start the relocation function.

[0146] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0147] Start the relocation function and cache the global map before relocation;

[0148] Perform operations based on the position determined by relocation;

[0149] When a relocation position error is detected during the operation, the updated global map is deleted and restored to the global map before relocation;

[0150] Reposition again according to the global map before repositioning and update the current position.

[0151] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0152] Collect environmental image data and build a local map based on the current location; perform feature matching on the local map and the global map before relocation; when the similar area corresponding to the feature matching result is not unique, move to a new location and return to the step of collecting environmental image data and building a local map based on the current location; when the similar area corresponding to the feature matching result is unique, relocate the device position according to the feature matching result.

[0153] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0154] When the similar area corresponding to the feature matching result is not unique, select a target point on the boundary of the local map; and move to the position of the target point.

[0155] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0156] Determine the boundary of the local map; filter unoccupied boundary points on the boundary; obtain device shape dimension parameters, and select candidate target points that support the device to reach from the unoccupied boundary points according to the device shape dimension parameters; select the point farthest from the current position from the candidate target points to obtain the target point.

[0157] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0158] When the similar area corresponding to the feature matching result is not unique, locate the current position; use the current position as the center of the circle and draw an optional range map according to a preset radius; arbitrarily select an unoccupied point in the optional range map as the target point; and move to the position of the target point.

[0159] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0160] According to the corner point features in the local map, the corner point feature similarity is calculated in the global map before relocalization; and it is determined whether the corner point feature similarity calculation result is greater than a preset similarity threshold.

[0161] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0162] When the similar area corresponding to the feature matching result is not unique, move to a new position; delete the constructed local map, return to the collected environment image data, and construct a local map based on the current position.

[0163] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0164] Receive job requests; extract job parameters carried in the job requests; start the job according to the job parameters and listen for location mutation events; when location mutation events occur, start the relocation function.

[0165] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0166] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0167] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A device relocation error recovery method, characterized in that: The method comprises: Start the relocation function and cache the global map before relocation; Perform operations based on the position determined by relocation; When a relocation position error is detected during the operation, the updated global map is deleted and restored to the global map before the relocation; Repositioning again according to the global map before repositioning to update the current position; Starting the relocation function includes: collecting environmental image data, building a local map based on the current location; performing feature matching between the local map and the global map before relocation; when the similar area corresponding to the feature matching result is not unique, moving to a new location, returning to the collected environmental image data, and building a local map based on the current location; When the similar area corresponding to the feature matching result is not unique, moving to a new position includes: when the similar area corresponding to the feature matching result is not unique, selecting a target point on the boundary of the local map; moving to the position of the target point; The selecting of the target point on the boundary of the local map includes: determining the boundary of the local map; screening unoccupied boundary points on the boundary; obtaining device shape dimension parameters, and selecting candidate target points that support the device to reach from the unoccupied boundary points according to the device shape dimension parameters; and selecting the point farthest from the current position from the candidate target points to obtain the target point.

2. The method according to claim 1, characterized in that: The startup relocation function also includes: When the similar area corresponding to the feature matching result is unique, the device position is relocated according to the feature matching result.

3. The method according to claim 1, characterized in that The feature matching of the local map with the global map before relocation comprises: Based on the corner point features in the local map, calculating the similarity of the corner point features in the global map before relocalization; Determine whether the corner point feature similarity calculation result is greater than the preset similarity threshold.

4. The method according to claim 1, characterized in that: When the similar area corresponding to the feature matching result is not unique, the step of moving to a new position, returning the collected environment image data, and constructing a local map based on the current position includes: When the similar area corresponding to the feature matching result is not unique, move to a new position; The step of deleting the constructed local map, returning to the collected environment image data, and constructing a local map based on the current location.

5. A device relocation error recovery device, characterized in that: The device comprises: The cache module is used to start the relocation function and cache the global map before relocation; An operation module, used for performing operations according to the position determined by relocation; A recovery module, used to delete the updated global map and restore to the global map before relocation when a relocation position error is detected during the operation; A secondary relocation module is used to relocate again according to the global map before relocation and update the location; A repositioning module is used to collect environmental image data and build a local map based on the current location; perform feature matching on the local map and the global map before repositioning; when the similar area corresponding to the feature matching result is not unique, determine the boundary of the local map; filter unoccupied boundary points on the boundary; obtain device shape dimension parameters, and select candidate target points that support the device to reach from the unoccupied boundary points according to the device shape dimension parameters; select the point farthest from the current location from the candidate target points to obtain the target point, and move to the location of the target point; return to the step of collecting environmental image data and building a local map based on the current location.

6. The device according to claim 5, characterized in that The relocation module is also used to relocate the device according to the feature matching result when the similar area corresponding to the feature matching result is unique.

7. The device according to claim 5, characterized in that The relocation module is further used to calculate the similarity of corner point features in the global map before relocation based on the corner point features in the local map; and to determine whether the calculation result of the corner point feature similarity is greater than a preset similarity threshold.

8. The device according to claim 5, characterized in that The relocation module is also used to move to a new position when the similar area corresponding to the feature matching result is not unique; delete the constructed local map, return the collected environment image data, and construct a local map based on the current position.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.