Device relocation method, device, computer device and storage medium

By collecting environmental image data during the device relocation process, constructing a local map, and selecting target points to update the map when matching fails, the problem of relocation failure in traditional methods is solved and the device positioning success rate and work efficiency are improved.

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

Patent Information

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

AI Technical Summary

Technical Problem

Traditional device relocation methods have the problem of relocation failure when faced with insufficient local map feature points and environmental changes, resulting in reduced device efficiency.

Method used

Construct a local map by collecting environmental image data and match features with the global map. When the matching fails, select a target point at the boundary of the local map, move to that point and collect data again to update the local map until the feature matching is successful.

Benefits of technology

It improves the success rate of device relocation, ensures that the device can accurately determine its location and continue to use the map, avoids repeated cleaning, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113191412B
    Figure CN113191412B
Patent Text Reader

Abstract

The present application relates to a device relocation method, apparatus, computer equipment and storage medium. When relocation is required, environmental image data is collected, a local map based on the current location is constructed, and feature matching is performed between the local map and the global map. When the matching fails, it indicates that the relocation has failed. At this time, the target point for the next move is selected on the boundary of the local map, and the environmental image data is collected again when the target point is moved to update the local map. The feature matching is returned again until the feature matching is successful, indicating that the relocation is successful and the device position is relocated. During the whole process, when the relocation fails, the target point for the next move is reasonably found, the local map is updated and feature matching is performed again, which improves the success rate of device relocation.
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 device repositioning method, apparatus, computer equipment, and storage medium. Background Art

[0002] Relocalization refers to repositioning. In practice, positioning-based devices require repositioning when entering a new operating environment to confirm their position before accurately performing operations. For example, if a robot vacuum becomes trapped or enters an area that violates the user's cleaning preferences, it may be manually moved, causing the robot to lose its position. Furthermore, when the robot vacuum imports a historical map for a second cleaning, it also needs to confirm its position in the historical map to continue using the map and making appropriate path planning. The positioning requirements for other positioning-based devices are similar and will not be elaborated here.

[0003] Both of the above positioning confirmation requirements require the device to have re-positioning technology to continue using the constructed map. Otherwise, the device will re-build the map and repeat the cleaning of the cleaned part, which will reduce the working efficiency of the device.

[0004] However, traditional device relocalization methods often fail to achieve relocalization when faced with insufficient local map feature points and changes in objects in the current environment. Therefore, there is an urgent need for a high success rate Summary of the Invention

[0005] Based on this, it is necessary to provide a device relocation method, apparatus, computer equipment and storage medium with a high success rate to address the above technical problems.

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

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

[0008] Perform feature matching between the local map and the global map before the move;

[0009] When feature matching fails, a target point is selected on the boundary of the local map;

[0010] Move to the target point to collect environmental image data again, and update the local map based on the collected environmental image data;

[0011] Return to the step of matching the local map with the global map before the movement until the feature match is successful and the device position is determined.

[0012] In one embodiment, the device relocation method further includes:

[0013] Count the number of feature matching failures;

[0014] When the number of feature matching failures reaches a preset threshold, the constructed local map is deleted;

[0015] Return to the step of collecting environmental image data and building a local map based on the current location.

[0016] In one embodiment, when feature matching fails, selecting a target point on a boundary of the local map includes:

[0017] When feature matching fails, determine the boundaries of the local map;

[0018] Screen unoccupied boundary points on the boundary;

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

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

[0021] In one embodiment, moving to the target point and collecting environmental image data again, and updating the local map according to the collected environmental image data again includes:

[0022] Move to the target point and collect environmental image data again;

[0023] Incrementally expand the local map based on the re-collected environment image;

[0024] The number of corner features in the local map after incremental expansion is extracted and counted using a corner feature recognition algorithm;

[0025] When the number of corner features is greater than a preset threshold, the incremental expansion and update of the local map are stopped.

[0026] In one embodiment, collecting environmental image data and constructing a local map based on the current location includes:

[0027] Collect environmental image data by rotating in place and build a local map based on the current location.

[0028] In one embodiment, performing feature matching on the local map and the global map before the movement includes:

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

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

[0031] In one embodiment, the device relocation method further includes:

[0032] Receive job requests;

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

[0034] Start the job according to the job parameters and listen for position mutation events;

[0035] When a position mutation event occurs, the relocation function is started.

[0036] A device repositioning apparatus, comprising:

[0037] Image acquisition module, used to collect environmental image data and build a local map based on the current location;

[0038] A feature matching module is used to perform feature matching between the local map and the global map before movement;

[0039] The target point selection module is used to select the target point on the boundary of the local map when feature matching fails;

[0040] A local map updating module is used to move to a target point to collect environmental image data again, and update the local map based on the collected environmental image data;

[0041] The iterative positioning module is used to control the feature matching module to re-execute the feature matching operation of the local map with the global map before the movement until the feature matching is successful and the device position is determined.

[0042] 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 performed:

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

[0044] Perform feature matching between the local map and the global map before the move;

[0045] When feature matching fails, a target point is selected on the boundary of the local map;

[0046] Move to the target point to collect environmental image data again, and update the local map based on the collected environmental image data;

[0047] Return to the step of matching the local map with the global map before the movement until the feature match is successful and the device position is determined.

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

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

[0050] Perform feature matching between the local map and the global map before the move;

[0051] When feature matching fails, a target point is selected on the boundary of the local map;

[0052] Move to the target point to collect environmental image data again, and update the local map based on the collected environmental image data;

[0053] Return to the step of matching the local map with the global map before the movement until the feature match is successful and the device position is determined.

[0054] The above-mentioned device relocation method, apparatus, computer device, and storage medium, when relocation is required, collects environmental image data, constructs a local map based on the current location, and performs feature matching between the local map and the global map. If the match fails, it indicates that the relocation has failed. At this time, a target point for the next move is selected on the boundary of the local map, and the device moves to this target point to collect environmental image data again to update the local map. The device then returns to perform feature matching again until the feature match is successful, indicating that the relocation is successful and the device position is relocated. Throughout this process, when relocation fails, the device reasonably searches for the target point for the next move, performs local map updates, and performs feature matching again, thereby improving the success rate of device relocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 This is a schematic diagram of the relocation solution for traditional equipment;

[0056] Figure 2 1 is a flow chart of a device relocation method according to an embodiment;

[0057] Figure 3 This is a schematic diagram of the position movement during the equipment relocation process;

[0058] Figure 4 Construct a schematic diagram of the local map during device relocation;

[0059] Figure 5 is a flow chart of a device relocation method according to another embodiment;

[0060] Figure 6 A flowchart of a device relocation method in a specific application example is provided;

[0061] Figure 7 is a structural block diagram of a device repositioning apparatus in one embodiment;

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

[0063] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0064] In order to explain in detail the technical principles of the equipment relocation of the present application and its significant technical advantages over traditional relocation technologies, the following will first introduce the traditional relocation solutions.

[0065] Traditional relocation solutions mainly include the following four types:

[0066] 1. If Figure 1 As shown in (1), the device (robot) remains stationary and only relies on the laser radar to rotate to obtain composition data;

[0067] 2. If Figure 1 As shown in (2), the device (robot) rotates 360° in place and cooperates with the laser radar to obtain composition data;

[0068] 3. If Figure 1 As shown in (3), the device (robot) rotates 360° in place, then moves a short distance (about 0.5m) and rotates in conjunction with the lidar to obtain composition data;

[0069] 4. If Figure 1 As shown in (4), the device (robot) cruises and moves at multiple points in a small area, and rotates in conjunction with the laser radar to obtain composition data.

[0070] The relocalization functions based on the above four relocalization solutions often suffer from a low relocalization success rate when there are insufficient local map feature points and / or when objects in the current environment have changed.

[0071] Based on the above defects in traditional technology, this application proposes a device relocation method with high success rate. Figure 2 As shown, the device relocation method of the present application includes the following steps:

[0072] S100: Collect environmental image data and build a local map based on the current location.

[0073] When the device's position suddenly changes and needs to be relocated, the device starts to collect environmental image data of its location (new location) and builds a specific map based on the current location based on the collected data. Figure 3As shown in the figure, the robot vacuum is moved from position 1 to position 2 by the user. After stabilizing at position 2, the robot vacuum needs to reposition itself to continue cleaning. The robot vacuum activates the repositioning function, collects image data of the environment around position 2, and constructs a local map based on position 2. Optionally, the image collection can be performed while the robot remains stationary or rotates 360° counterclockwise.

[0074] S200: Perform feature matching on the local map and the global map before the movement.

[0075] In order to relocate its position within the global operating area, the device performs feature matching between the local map and the global map before the movement. Before the movement refers to the time before the relocation function is triggered, that is, obtaining the global map before the device is moved (relocated) 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 matched with the global map to determine the current position in the entire operating area. Continuing with the example of the sweeping robot, if Figure 3 As shown, the sweeping robot moves from position 1 to position 2. The global map refers to the global cleaning map corresponding to position 1. The local map of position 2 is feature matched with the global cleaning map to determine the position of position 2 in the whole house, that is, to locate the current position of the sweeping robot in the whole house.

[0076] S300: When feature matching fails, select a target point on the boundary of the local map.

[0077] When feature matching fails, it means that this feature matching has failed, and the device cannot determine the exact position in the global map based on the local map constructed at the current location. At this time, a target point is selected on the boundary of the local map, and it is ready to move to the new location to form a new local map. Specifically, when the device arrives at an unfamiliar location and needs to be relocated, a local map has been constructed after the 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 a target point on the boundary of the local map. Continuing with the example of a sweeping robot, if Figure 4 As shown, a local map is constructed at position 2, which is as follows Figure 4 As shown in the dotted box, select a suitable target point on the boundary of the local map. Figure 4 The target point is found as position 3. Specifically, the target point needs to be an unoccupied point and a point that the device can reach, that is, the point has no obstacles and can accommodate the device. Preferably, the point farthest from the candidate target points is further selected as the target point.

[0078] S400: Move to the target point and collect environmental image data again, and update the local map according to the re-collected environmental image data.

[0079] The device moves to the target point and collects environmental image data again, and updates the local map based on the collected environmental image data. Specifically, the device can incrementally expand the original local map by collecting environmental data again when it moves to the target point, that is, adding a local map of a location point (target point) on the basis of the original local map. In addition, the device can also choose to delete the local map constructed at the original location point after moving to the target point, and construct a new local map based on the environmental image data collected at the target point, that is, directly replace the original local map to complete the update of the local map. Continuing with the example of the sweeping robot, see Figure 4 When the sweeping robot moves to position 3, it again collects environmental image data. Specifically, it may begin collecting environmental image data during the process of moving to position 3, and incrementally expand the local map constructed at position 2 with the collected environmental image data to update and expand the local map. Furthermore, during the incremental expansion process, the number of corner point features in the real-time updated local map may be extracted and counted. When the corner point feature data exceeds a preset corner point feature number threshold, the incremental expansion is stopped, an updated local map is obtained, and the process returns to S200 for feature matching.

[0080] S500: Return to S200 until the feature matching is successful and the device location is determined.

[0081] After the local map is updated, it returns to S200 to perform feature matching with the global map again. Since new corner point features are adjusted / added in the updated local map, the feature matching success rate with the global map is improved, that is, the repositioning success rate is increased. If the feature matching is successful, it indicates that the device is repositioned successfully and the device position is determined; if the feature matching fails again, continue the above S300~S400 processing.

[0082] The above-mentioned device relocation method, when relocation is needed, collects environmental image data, constructs a local map based on the current location, and performs feature matching between the local map and the global map. If the match fails, it indicates that the relocation has failed. At this time, a target point for the next move is selected on the boundary of the local map. The device moves to this target point and collects environmental image data again to update the local map. The device then returns and performs feature matching again until a match is successful, indicating that the relocation is successful and the device position is relocated. Throughout this process, when relocation fails, the device reasonably searches for the target point for the next move, performs local map updates, and performs feature matching again, thereby improving the success rate of device relocation.

[0083] In one embodiment, the device relocation method further includes:

[0084] Counting the number of feature matching failures; when the number of feature matching failures reaches a preset threshold, deleting the constructed local map; returning to the step of collecting environmental image data and constructing a local map based on the current location.

[0085] Count the number of feature matching failures. When the number of feature matching failures reaches the preset threshold, it indicates that the constructed local map is difficult to match the original global map features. To further improve the relocalization success rate, delete the constructed local map, re-collect the environmental image data, and construct a local map based on the current location. Continuing with the example of the sweeping robot, the preset threshold is pre-set to 2 times. Figure 3 , the sweeping robot moves from position 1 to position 2 to trigger relocalization, collects surrounding environment image data at position 2, and constructs local map -2 of position 2; performs feature matching on local map -2 and the global map stored in position 1, the feature matching fails, and the cumulative relocalization failure count is 1, and the target point is searched on the boundary of local map -2, and position 3 is found. The sweeping robot moves to position 3 to collect surrounding environment image data, and incrementally expands local map -2 to update local map -2 and generate local map -23. Perform feature matching on local map -23 and the global map, the feature matching fails, and the cumulative relocalization failure count is 2 times, which has reached the preset number threshold. At this time, delete local map -23, re-collect the surrounding environment image data of position 3, and construct a new local map based on the surrounding environment image data of position 3. Figure 3 , again the local Figure 3 Match with the global map and repeat the above process until the feature matching is successful, that is, relocalization is successful.

[0086] like Figure 5 As shown, in one embodiment, S300 includes:

[0087] S320: When feature matching fails, determining the boundary of the local map;

[0088] S340: screening unoccupied boundary points on the boundary;

[0089] S360: Obtaining device size parameters, and selecting candidate target points that can be reached by the device from unoccupied boundary points based on the device size parameters;

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

[0091] When feature matching fails, determine the boundary of the local map, that is, determine the boundary of the known part and the unknown part detected at the current position, and screen unoccupied boundary points on the boundary. When obtaining the device size parameters, these parameters can be pre-stored in the device memory and are part of the device performance (nameplate) parameters. According to the device size parameters, select candidate target points around the unoccupied boundary points that can accommodate the device. For example, some unoccupied boundary points are in a corner or angular 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 previous erroneous local map to the maximum extent and increase the possibility of successful relocation in the next step.

[0092] In one embodiment, moving to the target point and collecting environmental image data again, and updating the local map according to the collected environmental image data again includes:

[0093] Move to the target point and collect environmental image data again; incrementally expand the local map based on the re-collected environmental image; use the corner feature recognition algorithm to extract and count the number of corner features in the incrementally expanded local map; when the number of corner features is greater than the preset threshold, stop incremental expansion and update the local map.

[0094] Continuing with the example of a sweeping robot, see Figure 3 If the sweeping robot fails in feature matching at position 2, from the perspective of feature matching, it may be caused by insufficient corner features of the local map. Therefore, the sweeping robot can move from position 2 to position 3. The local map constructed with position 2 as the origin is the dotted box part. The dotted box boundary is the intersection of the known part and the unknown part of the local map. If you want to achieve long-distance movement and scene change, you need to select the target point at this intersection, that is, position 3. In the process of moving to position 3, the map constructed with position 2 as the origin will be incrementally expanded. The corner recognition algorithm is used to extract and count the extended map until the number of corner features of the map reaches the preset corner feature number threshold. Then, the local map is used to perform feature matching with the existing global map.

[0095] In one embodiment, collecting environmental image data and constructing a local map based on the current location includes:

[0096] Collect environmental image data by rotating in place and build a local map based on the current location.

[0097] The sweeping robot can collect environmental image data by rotating in place, making the environmental image data collection more comprehensive and complete, thereby constructing a more comprehensive and accurate local map.

[0098] In one embodiment, performing feature matching on the local map and the global map before the movement includes:

[0099] Based on the corner point features in the local map, the corner point feature similarity is calculated in the global map before the movement; and it is determined whether the corner point feature similarity calculation result is greater than a preset similarity threshold.

[0100] Specifically, the feature matching between the local map and the global map is performed 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.

[0101] In one embodiment, the device relocation method further includes:

[0102] Receive job requests; extract job parameters carried in the job request; start the job according to the job parameters and listen for location mutation events; when a location mutation event occurs, start the relocation function.

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

[0104] In practical applications, when the device repositioning method of the present application is applied to the repositioning of a sweeping robot, it specifically includes the following steps: Figure 6 The process shown.

[0105] It should be understood that, although the steps in the above-mentioned flowcharts are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flowcharts may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0106] like Figure 7 As shown, the present application also provides a device repositioning apparatus, the apparatus comprising:

[0107] Image acquisition module 100, used to collect environmental image data and build a local map based on the current location;

[0108] A feature matching module 200 is used to perform feature matching between the local map and the global map before the movement;

[0109] A target point selection module 300 is used to select a target point on the boundary of the local map when feature matching fails;

[0110] A local map updating module 400 is configured to move to a target point to collect environmental image data again, and update the local map based on the collected environmental image data;

[0111] The iterative positioning module 500 is used to control the feature matching module 200 to re-execute the feature matching operation of the local map and the global map before the movement until the feature matching is successful to determine the device location.

[0112] When relocation is required, the device repositioning apparatus collects environmental image data, constructs a local map based on the current location, and performs feature matching between the local map and the global map. If the match fails, indicating repositioning failure, the device selects a target point for the next move on the local map boundary, moves to that target point, and collects environmental image data again to update the local map. Feature matching is then performed again until a successful match is found, indicating successful repositioning and relocating the device. Throughout this process, when repositioning fails, the device rationally searches for the next target point for the next move, performs local map updates, and performs feature matching again, thereby improving the success rate of device repositioning.

[0113] In one embodiment, the above-mentioned device repositioning apparatus further includes a positioning failure counting module for counting the number of feature matching failures; when the number of feature matching failures reaches a preset threshold, the constructed local map is deleted; and the image acquisition module 100 is controlled to re-execute the operation of collecting environmental image data and constructing a local map based on the current location.

[0114] In one embodiment, the target point selection module 300 is also used to determine the boundary of the local map when feature matching fails; 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 among the candidate target points to obtain the target point.

[0115] In one embodiment, the local map update module 400 is further configured to move to a target point and collect environmental image data again; incrementally expand the local map based on the recollected environmental image; use a corner feature recognition algorithm to extract and count the number of corner features in the incrementally expanded local map; and stop incrementally expanding and updating the local map when the number of corner features is greater than a preset threshold.

[0116] In one embodiment, the image acquisition module 100 collects environmental image data about a rotation in situ and constructs a local map based on the current location.

[0117] In one embodiment, the feature matching module 200 is further configured to calculate corner feature similarity in the global map before the movement based on the corner feature in the local map; and determine whether the result of the corner feature similarity calculation is greater than a preset similarity threshold.

[0118] In one embodiment, the above-mentioned equipment relocation device also includes a relocation 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.

[0119] Specific embodiments of the device relocation apparatus can be found in the embodiments of the device relocation method described above and will not be further described here. Each module in the device relocation apparatus can be implemented in whole or in part via software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0120] 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 8 As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. 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 computer program in the non-volatile storage medium. The database of the computer device is used to store device performance parameters and global map data of the operating area. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a device relocation method is implemented.

[0121] Those skilled in the art will understand that Figure 8The 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 shown in the figure, or combine certain components, or have a different component arrangement.

[0122] 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:

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

[0124] Perform feature matching between the local map and the global map before the move;

[0125] When feature matching fails, a target point is selected on the boundary of the local map;

[0126] Move to the target point to collect environmental image data again, and update the local map based on the collected environmental image data;

[0127] Return to the step of matching the local map with the global map before the movement until the feature match is successful and the device position is determined.

[0128] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0129] Counting the number of feature matching failures; when the number of feature matching failures reaches a preset threshold, deleting the constructed local map; returning to the step of collecting environmental image data and constructing a local map based on the current location.

[0130] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0131] When feature matching fails, 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 among the candidate target points to obtain the target point.

[0132] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0133] Move to the target point and collect environmental image data again; incrementally expand the local map based on the re-collected environmental image; use the corner feature recognition algorithm to extract and count the number of corner features in the incrementally expanded local map; when the number of corner features is greater than the preset threshold, stop incremental expansion and update the local map.

[0134] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0135] Collect environmental image data by rotating in place and build a local map based on the current location.

[0136] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0137] Based on the corner point features in the local map, the corner point feature similarity is calculated in the global map before the movement; and it is determined whether the corner point feature similarity calculation result is greater than a preset similarity threshold.

[0138] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0139] Receive job requests; extract job parameters carried in the job request; start the job according to the job parameters and listen for location mutation events; when a location mutation event occurs, start the relocation function.

[0140] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

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

[0142] Perform feature matching between the local map and the global map before the move;

[0143] When feature matching fails, a target point is selected on the boundary of the local map;

[0144] Move to the target point to collect environmental image data again, and update the local map based on the collected environmental image data;

[0145] Return to the step of matching the local map with the global map before the movement until the feature match is successful and the device position is determined.

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

[0147] Counting the number of feature matching failures; when the number of feature matching failures reaches a preset threshold, deleting the constructed local map; returning to the step of collecting environmental image data and constructing a local map based on the current location.

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

[0149] When feature matching fails, 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 among the candidate target points to obtain the target point.

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

[0151] Move to the target point and collect environmental image data again; incrementally expand the local map based on the re-collected environmental image; use the corner feature recognition algorithm to extract and count the number of corner features in the incrementally expanded local map; when the number of corner features is greater than the preset threshold, stop incremental expansion and update the local map.

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

[0153] Collect environmental image data by rotating in place and build a local map based on the current location.

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

[0155] Based on the corner point features in the local map, the corner point feature similarity is calculated in the global map before the movement; and it is determined whether the corner point feature similarity calculation result is greater than a preset similarity threshold.

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

[0157] Receive job requests; extract job parameters carried in the job request; start the job according to the job parameters and listen for location mutation events; when a location mutation event occurs, start the relocation function.

[0158] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented 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 may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may 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).

[0159] The technical features of the above embodiments can 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.

[0160] The above embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A device relocation method, characterized in that: The method comprises: Collect environmental image data and build a local map based on the current location; Performing feature matching between the local map and the global map before moving; When feature matching fails, selecting a target point on the boundary of the local map, where the boundary of the local map is the boundary between the known part and the unknown part; Move to the target point and collect environmental image data again, and update the local map according to the re-collected environmental image data, wherein the update is an incremental expansion; Returning to the step of performing feature matching between the local map and the global map before the movement, until the feature matching is successful, the device location is determined; When feature matching fails, selecting a target point on the boundary of the local map includes: when feature matching fails, 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 from the candidate target points that is farthest from the current position to obtain the target point.

2. The method according to claim 1, characterized in that Also includes: Count the number of feature matching failures; When the number of feature matching failures reaches a preset number threshold, deleting the constructed local map; Returning to the step of collecting the environment image data and constructing a local map based on the current location.

3. The method according to claim 1, characterized in that The moving to the target point to collect environmental image data again, and updating the local map according to the re-collected environmental image data comprises: Move to the target point and collect environmental image data again; Incrementally expanding the local map according to the re-collected environment image; Using a corner feature recognition algorithm to extract and count the number of corner features in the local map after incremental expansion; When the number of corner point features is greater than a preset threshold, the incremental expansion and updating of the local map is stopped.

4. The method according to claim 1, characterized in that: The collecting of environmental image data and constructing a local map based on the current location includes: Collect environmental image data by rotating in situ and build a local map based on the current location.

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

6. The method according to claim 1, characterized in that Also includes: Receive job requests; Extracting the job parameters carried in the job request; Starting the operation according to the operation parameters, and listening for position mutation events; When a position mutation event occurs, the relocation function is initiated.

7. A device repositioning device, characterized in that: The device comprises: Image acquisition module, used to collect environmental image data and build a local map based on the current location; A feature matching module, used for performing feature matching between the local map and the global map before movement; A target point selection module, used for selecting a target point on the boundary of the local map when feature matching fails, wherein the boundary of the local map is the boundary between the known part and the unknown part; A local map updating module, used for moving to the target point to collect environmental image data again, and updating the local map according to the re-collected environmental image data, wherein the update is an incremental expansion; an iterative positioning module, used for controlling the feature matching module to re-execute the operation of performing feature matching between the local map and the global map before the movement, until the feature matching is successful, thereby determining the device location; The target point selection module is also used to determine the boundary of the local map when feature matching fails; screen 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.

8. The device according to claim 7, characterized in that The local map update module is also used to move to the target point to collect environmental image data again; incrementally expand the local map according to the re-collected environmental image; use a corner point feature recognition algorithm to extract and count the number of corner point features in the local map after incremental expansion; when the number of corner point features is greater than a preset threshold, stop incremental expansion and updating the local map.

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 6 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 6 are implemented.