Position correction method, device, equipment and storage medium

By generating half-code acquisition instructions and calculating position information, the problem of the warehouse robot losing its position is solved, and abnormalities are automatically restored without reducing the speed, ensuring efficient and fast operation of the warehouse robot and point-to-point accuracy.

CN113485318BActive Publication Date: 2024-08-16BEIJING KUANGSHI ROBOTICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110594786.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-28
Publication Date
2024-08-16
Estimated Expiration
2041-05-28

AI Technical Summary

Technical Problem

The warehousing robot may lose its position during rapid operation and cannot properly recognize the QR code on the ground, resulting in the inability to achieve precise positioning and affecting work performance.

Method used

By generating half-code collection instructions, the recognizer is controlled to collect the current image, calculate the position information of the identification code, and correct the position of the handling equipment based on this information to ensure that the abnormality is automatically restored after the robot travels to the point, ensuring efficient and fast operation.

Benefits of technology

Precise positioning can be achieved without reducing the speed, ensuring efficient and fast operation of warehousing robots, simplifying product design, saving costs, and improving point accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113485318B
    Figure CN113485318B
Patent Text Reader

Abstract

The present application provides a position correction method, device, equipment and storage medium, the method comprising: when the handling device cannot normally identify the current identification code in the direction of travel, or the second position offset between the handling device and the current identification code exceeds a preset range, generating a half-code acquisition instruction, the half-code acquisition instruction is used to control the identifier to acquire a first image, calculate the position information of the current identification code according to the first image, wherein at least one identification code is set along the preset direction of travel of the handling device; according to the position information of the current identification code, determine the first position offset between the current identification code and the handling device; based on the first position offset, correct the current position of the handling device. When the robot loses its position abnormality after traveling to a point, the present application can automatically recover the abnormality without deliberately reducing the speed to ensure accuracy, thereby ensuring efficient and fast operation of the robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automatic control technology, and in particular to a position correction method, device, equipment and storage medium. Background Art

[0002] Warehouse robots are widely used in e-commerce, logistics, manufacturing plants and other fields. Accurate positioning is an important indicator of the working performance of warehouse robots. The positioning and navigation system based on QR codes has been widely used in warehouse robots due to its advantage of accurate boundaries.

[0003] The positioning and navigation system based on QR code is generally based on the ground code as the fixed beacon of AGV (Automated Guided Vehicle, referred to as "AGV"). The ground code can be a QR code. Different QR codes have a certain interval, and the direction of the QR code is fixed. The warehouse robot can determine the robot's position and correct the robot's direction of travel based on the QR code number and direction scanned on each QR code.

[0004] After stopping or avoiding obstacles after a rapid run, the robot often fails to recognize the QR code on the ground and cannot achieve accurate positioning. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a position correction method, device, equipment and storage medium, which can automatically recover from the abnormality when the robot loses its position, without deliberately reducing the speed to ensure accuracy, thereby ensuring efficient and fast operation of the robot.

[0006] A first aspect of an embodiment of the present application provides a position correction method, comprising: when a transport device cannot normally identify a current identification code in a traveling direction, or a second position offset between the transport device and the current identification code exceeds a preset range, generating a half-code acquisition instruction, wherein the half-code acquisition instruction is used to control an identifier to acquire a first image, and calculate the position information of the current identification code based on the first image, wherein at least one identification code is arranged along a preset traveling direction of the transport device; determining a first position offset between the current identification code and the transport device based on the position information of the current identification code; and correcting the current position of the transport device based on the first position offset.

[0007] In one embodiment, before generating the half-code acquisition instruction, it also includes: controlling the identifier to acquire the label of the current identification code; obtaining the pre-stored position information corresponding to the label of the current identification code, and calculating the second position offset between the pre-stored position information and the current position of the handling device; if the label is the same as the task label, determining whether the second position offset is within a preset range.

[0008] In one embodiment, before generating the half-code acquisition instruction, the method further includes: if the label is different from the task label, issuing an alarm.

[0009] In one embodiment, before the generation of the half-code acquisition instruction, it also includes: controlling the identifier to acquire a second image of the current identification code; detecting whether the number of the current identification code exists in the second image of the current identification code; if the number of the current identification code does not exist in the second image of the current identification code, determining that the transport equipment cannot normally identify the current identification code in the direction of travel.

[0010] In one embodiment, the first image includes at least local information of the current identification code; and calculating the position information of the current identification code based on the first image includes: estimating the position information of the current identification code based on the local information.

[0011] In one embodiment, the generating of the half-code acquisition instruction includes: generating the half-code acquisition instruction when the transport device has position correction authority.

[0012] In one embodiment, the first position offset includes: a translation offset and / or an angle offset.

[0013] In one embodiment, correcting the current position of the transport device based on the first position offset includes: determining whether the first position offset is greater than a correction threshold; when the first position offset is greater than the correction threshold, generating a control instruction based on the correction threshold, the control instruction being used to control the movement of the transport device.

[0014] In one embodiment, the method further includes: when the first position offset is less than or equal to the correction threshold, generating the control instruction based on the first position offset, wherein the control instruction is used to control the movement of the transport device.

[0015] In one embodiment, the first position offset is a lateral offset, and the lateral direction is perpendicular to the forward direction of the transport device; the step of generating a control instruction includes: generating a rotation instruction, the rotation instruction is used to drive the transport device to rotate a preset angle so that the current forward direction of the transport device is along the lateral direction; generating a movement instruction, the movement instruction is used to instruct the transport device to move according to the distance specified in the first position offset.

[0016] In one embodiment, before generating the half-code acquisition instruction, it also includes: judging whether the historical number of position corrections performed by the transport device has exceeded the maximum adjustment number configured by the user; if the historical number does not exceed the maximum adjustment number configured by the user, determining that the transport device has the position correction authority; if the historical number has exceeded the maximum adjustment number configured by the user, issuing an alarm message.

[0017] A second aspect of an embodiment of the present application provides a position correction device, including: a generation module, used to generate a half-code acquisition instruction when a handling device cannot normally identify a current identification code in a traveling direction, or a second position offset between the handling device and the current identification code exceeds a preset range, the half-code acquisition instruction is used to control an identifier to acquire a first image, and calculate the position information of the current identification code based on the first image, wherein at least one identification code is arranged along a preset traveling direction of the handling device; a calculation module, used to determine a first position offset between the current identification code and the handling device based on the position information of the current identification code; and a correction module, used to correct the current position of the handling device based on the first position offset.

[0018] In one embodiment, it also includes: a first acquisition module, used to control the identifier to acquire the label of the current identification code before generating the half-code acquisition instruction; an acquisition module, used to acquire the pre-stored position information corresponding to the label of the current identification code, and calculate the second position offset between the pre-stored position information and the current position of the handling device; a first judgment module, used to judge whether the second position offset is within a preset range if the label is the same as the task label.

[0019] In one embodiment, it also includes: a second acquisition module, which is used to control the identifier to acquire a second image of the current identification code before generating the half-code acquisition instruction; a detection module, which is used to detect whether the number of the current identification code exists in the second image of the current identification code; and a determination module, which is used to determine that the handling equipment cannot normally identify the current identification code in the direction of travel if the number of the current identification code does not exist in the second image of the current identification code.

[0020] In one embodiment, the first image includes at least local information of the current identification code; and calculating the position information of the current identification code based on the first image includes: estimating the position information of the current identification code based on the local information.

[0021] In one embodiment, the determination module is further configured to: issue an alarm if the label is different from the task label.

[0022] In one embodiment, the generating module is used to generate the half-code acquisition instruction when the transport device has the position correction authority.

[0023] In one embodiment, the first position offset includes: a translation offset and / or an angle offset.

[0024] In one embodiment, the correction module is used to: determine whether the first position offset is greater than a correction threshold; when the first position offset is greater than the correction threshold, generate a control instruction based on the correction threshold, and the control instruction is used to control the movement of the transport device.

[0025] In one embodiment, the correction module is further used to: when the first position offset is less than or equal to the correction threshold, generate the control instruction based on the first position offset, and the control instruction is used to control the movement of the transport device.

[0026] In one embodiment, the first position offset is a lateral offset, and the lateral direction is perpendicular to the forward direction of the transport device; the step of generating a control instruction includes: generating a rotation instruction, the rotation instruction is used to drive the transport device to rotate a preset angle so that the current forward direction of the transport device is along the lateral direction; generating a movement instruction, the movement instruction is used to instruct the transport device to move according to the distance specified in the first position offset.

[0027] In one embodiment, it also includes: a second judgment module, which is used to judge whether the historical number of position corrections performed by the transport device has exceeded the maximum adjustment number configured by the user before generating the half-code acquisition instruction; if the historical number does not exceed the maximum adjustment number configured by the user, it is determined that the transport device has the position correction authority; if the historical number has exceeded the maximum adjustment number configured by the user, an alarm message is issued.

[0028] The third aspect of the embodiment of the present application provides a handling device, including: an identifier for collecting information of an identification code of the current position of the handling device; a memory for storing a computer program; a processor for executing the computer program to implement the method of the first aspect of the embodiment of the present application and any embodiment thereof, so as to correct the current position of the handling device based on the information of the identification code.

[0029] The fourth aspect of the embodiments of the present application provides a non-transitory electronic device readable storage medium, including: a program, which, when run by a transport device, enables the transport device to execute the method of the first aspect of the embodiments of the present application and any one of its embodiments.

[0030] The position correction method, apparatus, device and storage medium provided by the present application, when the handling equipment cannot normally identify the current identification code in the direction of travel, generates a special half-code acquisition instruction to control the identifier to acquire the current first image, and calculates the position information of the current identification code based on the first image, and then obtains the first position offset between the current identification code and the handling equipment based on the position information of the identification code, and corrects the current position of the handling equipment based on the first position offset. In this way, when the robot loses its position abnormality after traveling to a point, the abnormality can be automatically restored without deliberately reducing the speed to ensure accuracy, so as to ensure the efficient and fast operation of the robot. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 A schematic diagram of the structure of an electronic device according to an embodiment of the present application;

[0033] Figure 2 This is a schematic diagram of QR code recognition in a logistics warehousing scenario according to an embodiment of the present application;

[0034] Figure 3 A schematic diagram of a flow chart of a position correction method according to an embodiment of the present application;

[0035] Figure 4 A schematic diagram of a flow chart of a position correction method according to an embodiment of the present application;

[0036] Figure 5 A schematic diagram of a flow chart of a position correction method according to an embodiment of the present application;

[0037] Figure 6 A schematic diagram of verifying a position correction method according to an embodiment of the present application;

[0038] Figure 7 Schematic diagram of the structure of a position correction device according to an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the present application, the terms "first", "second" and the like are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0040] like Figure 1As shown, this embodiment provides a handling device 1, including: at least one processor 11, a memory 12 and an identifier 13, Figure 1 A processor is taken as an example. The processor 11, the memory 12 and the identifier 13 are connected via a bus 10. The identifier 13 is used to collect information of the identification code of the current position of the handling device. The memory 12 stores instructions that can be executed by the processor 11. The instructions are executed by the processor 11 so that the handling device 1 can execute all or part of the process of the method in the following embodiment to correct the current position of the handling device based on the information of the identification code.

[0041] In one embodiment, the identifier may be a camera, a radio frequency identifier, a photoelectric collector, etc. The identifier may capture an image of the identification code. Optionally, the identifier may also determine the location information of the identification code based on the captured image. Specifically, the identifier may read the number of the identification code from the captured image, and determine the location information of the identification code based on the correspondence between the number and the position stored in advance; the identifier may also determine the location information of the identification code using the half-code acquisition method described below, that is, calculate the location information of the identification code based on the area where the identification code is located in the captured image.

[0042] In one embodiment, the identification code may be an information code such as a QR code or a bar code. The identification code carries preset identification information and can be used as a beacon for the handling equipment.

[0043] In one embodiment, the handling equipment may be a warehouse robot, such as an AGV, a forklift, a stacker, or other equipment that can move objects from one location to another.

[0044] Please see Figure 2 , which is a schematic diagram of QR code recognition in a logistics warehousing scenario of an embodiment of the present application, wherein the handling equipment 1 may be a warehousing robot 20, and a photoelectric collector 21 is provided on the side of the warehousing robot 20 facing the ground, and the photoelectric collector 21 serves as an identifier.

[0045] In actual applications, the storage robot 20 is deployed in the storage room of the logistics sorting center to work. The storage robot 20 sorts the packages and puts them on the corresponding shelves. In this process, an identification code is laid on the floor of the storage room as a beacon of the storage robot 20. The identification code can be a two-dimensional code. There is a certain interval between different two-dimensional codes. Usually, the storage robot 20 can determine the position of the robot 20 and correct the direction of travel of the robot 20 according to the two-dimensional code number and direction scanned by the photoelectric collector 21 on each two-dimensional code.

[0046] During normal operation, the storage robot 20 will travel based on the route planned in the map information of the current task. When it reaches a QR code at a target location, it should theoretically be able to scan the entire content of the current QR code 30. However, due to the complexity of the actual scene, it is inevitable that the actual route of the storage robot 20 deviates from the planned route, such as Figure 2 As shown, most of the content of the current two-dimensional code 30 has exceeded the range of the photoelectric collector 21 of the storage robot 20, indicating that the storage robot 20 has lost the target position information at this time. The current position of the storage robot 20 needs to be corrected in time to avoid losses caused by route errors.

[0047] Please see Figure 3 , which is a position correction method of an embodiment of the present application, the method can be Figure 1 The handling device 1 shown in the figure can be used to perform Figure 2 In the logistics warehousing scenario shown, the current position of the warehousing robot 20 is corrected based on the information of the current identification code. The method includes the following steps:

[0048] Step 301: When the transport device cannot normally identify the current identification code in the direction of travel, or the second position offset between the transport device and the current identification code exceeds a preset range, a half-code acquisition instruction is generated. The half-code acquisition instruction is used to control the identifier to determine the position information of the current identification code using a half-code acquisition method, that is, the identifier acquires a first image and calculates the position information of the current identification code based on the first image.

[0049] In this step, Figure 2 Taking the scenario in as an example, the identification code may be a QR code on the floor of the storage room, wherein multiple identification codes may be arranged on the floor of the storage room along the preset direction of travel of the handling equipment. The handling equipment may be a storage robot 20 deployed in the storage room, and the identifier may be the photoelectric collector 21 of the storage robot 20. When the storage robot 20 reaches the QR code of the target location according to the planned route, if the target location of the storage robot 20 is lost, such as taking the wrong route, or the accuracy of the arrival point is not enough, a specified half-code acquisition instruction is generated to the photoelectric collector 21 of the storage robot 20, and the half-code acquisition instruction can control the photoelectric collector 21 to acquire the current first image, and calculate the location information of the current identification code based on the first image.

[0050] In one embodiment, the first image at least includes local information of the current identification code; step 301 may specifically include: estimating position information of the current identification code according to the local information.

[0051] In this step, in the half-code acquisition mode, the half-code acquisition instruction will control the photoelectric collector 21 to acquire the current first image. Since the complete current identification code may not be acquired, the first image may not contain all the information of the current identification code, but at least it will include partial image information of the current identification code. Figure 2 As shown, taking the QR code as an example, assuming that the current QR code 30 has 4 superscripts, but actually only two superscript information of the current QR code 30 is collected, then in the half-code collection mode, the estimated information of the entire current QR code 30 will be estimated based on these two superscript information, but this estimated information may not be accurate enough. The first image can be collected for multiple estimates, and the estimated value with appropriate accuracy can be screened out as the final collected information of the current QR code 30, and then the position information of the current QR code 30 is determined based on the final collected information. In other words, the half-code acquisition indicated by the half-code acquisition instruction refers to acquiring the first image within the current shooting range by controlling the identifier on the handling device, and determining the area where the identification code is located in the acquired first image, and then calculating the position information of the identification code based on the area where the identification code is located. The position information here can be the position of the identification code in the first image (i.e., the position in the image coordinate system), or the position of the identification code in the world coordinate system, or the relative position of the identification code relative to the identifier (i.e., the position in the identifier coordinate system), or the relative position of the identification code relative to the handling device (i.e., the position in the handling device coordinate system), which is not limited in the comparison of the embodiments of the present application. It should be understood that coordinates in different coordinate systems can be converted to each other, and the specific conversion method is the prior art, which is not limited in the embodiments of the present application.

[0052] Step 302: Determine a first position offset between the current identification code and the handling device according to the position information of the current identification code.

[0053] Before calculating the first position offset, it is necessary to unify the position information of the identification code and the current position information of the handling device into the same coordinate system, such as the world coordinate system, and then determine the first position offset between the two.

[0054] In this step, in the case of half-code acquisition, the first position offset between the current identification code and the warehouse robot 20 can be calculated based on the position information of the current identification code calculated according to the acquired first image. For example, the first position offset between the two can be determined by calculating the distance between the center of the warehouse robot 20 and the center of the current identification code. For another example, the first position offset between the current identification code and the warehouse robot 20 can also be determined based on the completeness of the position information of the current identification code. Specifically, in the absence of an offset, the warehouse robot 20 should be able to acquire the complete current identification code, and the position information of the current identification code should include all the position information covered by the complete current identification code. In this way, the position information of the current identification code obtained by half-code acquisition can be compared with all the position information covered by the identification code in the pre-planned route of the warehouse robot 20, and then the first position offset between the current identification code and the warehouse robot 20 can be converted.

[0055] Step 303: Correct the current position of the transport device based on the first position offset.

[0056] In this step, after obtaining the current first position offset of the storage robot 20, a correction instruction is generated based on the first position offset. The correction instruction is used to control the drive system of the storage robot 20 so that the storage robot 20 changes its posture and returns to the target position.

[0057] The above-mentioned position correction method, when the handling equipment cannot normally identify the current identification code in the direction of travel, generates a special half-code acquisition instruction to control the identifier to acquire the image of the current identification code, calculates the position information of the identification code according to the acquired image, and then calculates the first position offset of the handling equipment based on the position information of the current identification code, and corrects the current position of the handling equipment based on the first position offset. In this way, when the robot 20 loses its position abnormality after traveling to a point, the abnormality can be automatically restored without deliberately reducing the speed to ensure accuracy, so as to ensure the efficient and fast operation of the warehouse robot 20.

[0058] Please see Figure 4 , which is a position correction method of an embodiment of the present application, the method can be Figure 1 The handling device 1 shown in the figure can be used to perform Figure 2 In the logistics warehousing scenario shown, the current position of the warehousing robot 20 is corrected based on the information of the current identification code. The method includes the following steps:

[0059] Step 401: Control the identifier to collect the number of the current identification code. In this step, taking the actual execution of the task by the storage robot 20 as an example, after the current task executed by the storage robot 20 is completed, a collection instruction will be sent to the photoelectric collector 21 (identifier) ​​to enable the photoelectric collector 21 to collect the identification information of the current two-dimensional code 30, and the identification information at least includes: the number id (Identity document, ID number) of the current two-dimensional code 30.

[0060] Step 402: obtaining pre-stored position information corresponding to the number of the current identification code, and calculating a second position offset between the pre-stored position information and the current position of the transport device;

[0061] In this step, the current identification code has a unique number, and the handling equipment system may pre-store the pre-stored position information corresponding to the number. The pre-stored position information of the current identification code can be determined by reading the number of the identification code. It can be seen that this method of determining the position information of the identification code is completely different from the half-code collection. Figure 2 As shown, the second position offset can be determined based on the position information of the current two-dimensional code 30 recorded in the handling device and the current position information of the handling device. The second position offset may include the lateral offset qr_x, the longitudinal offset qr_y and the angular offset qr_yaw of the current two-dimensional code 30 relative to the photoelectric collector 21, as shown in FIG. Figure 2 shown.

[0062] In one embodiment, the current identification code may be pre-stored with the location information of the identification code, or the location information of the identification code may be acquired by capturing an image of the current identification code.

[0063] It should be understood that the current position of the transport device in the world coordinate system may be determined based on an inertial sensor installed on the transport device.

[0064] Step 403: Determine whether the label is the same as the task label. If so, proceed to step 404, otherwise proceed to step 405.

[0065] In this step, in the actual scenario, each identification code of the storage room has a unique label id. Each time the handling equipment performs a handling task, there will be a unique corresponding planned route. In the planned route, the order in which the handling equipment needs to pass through each identification code when performing the task can be set, and the label id of each identification code can be sorted to indicate the order in which they appear. The task label is the label id order corresponding to the current identification code when executing this handling task. For example, in the planned route, the current identification code with label id C should be the third one to appear, that is, its task label is C. Assuming that the label id of the current identification code actually collected is also C, go to step 404, otherwise go to step 405.

[0066] If the label is the same as the task label in step 404, it is determined whether the second position offset is within a preset range. If not, it proceeds to step 405; if yes, it indicates that the transport device has reached the current identification code, and the transport device can continue to move forward and continue to collect the label of the identification code during the movement to determine the position of the transport device, that is, it can return to step 401.

[0067] In this step, the preset range may be a position deviation range that is allowed in the project and is preset by the user. If the second position offset is not within the preset range, it means that the position deviation between the current identification code and the handling equipment is too large and does not meet the user's requirements for the point accuracy of the handling equipment, and the process proceeds to step 405. Otherwise, it means that the detection accuracy meets the position deviation range that is allowed in the project and is preset by the user, that is, it meets the user's requirements for the point accuracy of the handling equipment, and no half-code adjustment is required. The next task can be directly executed, and the process returns to step 401. The preset range may be pre-stored in the handling equipment.

[0068] Step 405 may specifically include: if the label is different from the task label, issuing an alarm.

[0069] In this step, if the number of the current identification code actually collected is different from the task number of the identification code pre-set in the planned route of this task, for example, the current identification code with the id C should be the third one to appear in the planned route, but the number id of the current identification code actually collected is F, it means that the handling equipment may have deviated from the planned route. In this case, it is considered that the handling equipment cannot normally identify the current identification code in the direction of travel, and an alarm can be issued to prompt the staff to deal with it in time.

[0070] In one embodiment, before generating a half-code acquisition instruction, it is also possible to confirm whether the transport equipment is unable to normally identify the current identification code in the direction of travel in the following manner, including: controlling the identifier to acquire a second image of the current identification code; detecting whether there is a number of the current identification code in the second image of the current identification code; if the number of the current identification code does not exist in the second image of the current identification code, determining that the transport equipment is unable to normally identify the current identification code in the direction of travel.

[0071] In this embodiment, first, the collector of the handling equipment is normally controlled to collect the current second image. If the current handling equipment deviates from the planned route, the collected second image may not contain the current identification code, or only contain a partial current identification code. At this time, the second image may not have the unique label of the collected current identification code. For example, only one corner of the current identification code is collected in the second image, and the original label is set at the center of the current identification code. In this case, there is no label of the current identification code in the second image, and it is impossible to determine the position information of the current identification code based on the pre-stored position information corresponding to the label. In this case, it is determined that the handling equipment cannot normally identify the current identification code in the direction of travel. You can directly enter step 406 to perform the subsequent half-code adjustment process.

[0072] Step 406: Check whether the handling device has the position correction authority. If yes, proceed to step 407, otherwise, issue a warning message.

[0073] In this step, when the warehouse robot 20 cannot normally identify the current identification code in the direction of travel, before correcting the current position, it is necessary to detect whether the warehouse robot 20 is pre-set with the position correction authority by the user. For example, you can check whether the permission parameter configured by the user (such as HALF_QR_ADJ_ENABLE) is enabled to determine whether the user allows the warehouse robot 20 to use the position correction strategy. For example, if HALF_QR_ADJ_ENABLE=1, it means that the warehouse robot 20 is allowed to use the position correction strategy, then enter step 406, otherwise, it means that the user does not allow the warehouse robot 20 to use the position correction strategy, then a warning message can be issued to prompt the staff to handle it in time.

[0074] Step 407: Generate a half-code acquisition instruction. The half-code acquisition instruction is used to control the recognizer to acquire the image within the current shooting range and calculate the position information of the identification code according to the image.

[0075] In this step, the half-code collection instruction can be generated only when the warehouse robot 20 has the position correction authority.

[0076] In one embodiment, before step 407, the following steps may also be included:

[0077] If the user preselects to grant the warehouse robot 20 the position correction authority, it is also necessary to determine whether the historical number of position corrections that the warehouse robot 20 has performed has exceeded the maximum adjustment number MAX_NUM_QR_ADJ configured by the user before step 406. If so, an alarm is directly sent to the server to report the task abnormality so that the user can intervene and participate in the processing. If the historical number does not exceed the maximum adjustment number MAX_NUM_QR_ADJ, step 407 is executed.

[0078] Step 408: Determine the first position offset between the current identification code and the handling device according to the position information of the current identification code. For details, refer to the description of step 302 in the above embodiment.

[0079] Step 409: Determine whether the first position offset is greater than the correction threshold. If so, proceed to step 410; otherwise, proceed to step 411.

[0080] In this step, the correction threshold can be pre-set or pre-stored in the warehouse robot 20. The correction threshold can include a distance threshold and an angle threshold, which represent the maximum position adjustment range of the warehouse robot 20. Adding threshold limits during the correction process can effectively reduce the danger during the correction process.

[0081] Step 410: Generate a control instruction based on the modified threshold, where the control instruction is used to control the movement of the transport device.

[0082] In this step, when the first position offset is greater than the correction threshold, it means that the first position offset exceeds the maximum adjustment range of the warehouse robot 20. In order to ensure the safety of the warehouse robot 20, a control instruction is generated based on the correction threshold. The control instruction is used to control the warehouse robot 20 to move according to the correction threshold to correct the current position.

[0083] Step 411: Generate a control instruction based on the first position offset, where the control instruction is used to control the movement of the transport device.

[0084] In this step, when the first position offset is less than or equal to the correction threshold, it means that the first position offset is safe, and a control instruction can be generated according to the actual first position offset, and the control instruction is used to control the storage robot 20 to adjust the position according to the actual first position offset.

[0085] As Figure 2 Taking the logistics warehousing scenario shown in the figure as an example, the position correction method of an embodiment of the present application may further include the following steps:

[0086] S1: Determine whether the storage robot 20 can recognize the current two-dimensional code 30. If it can recognize the two-dimensional code, enter S2, otherwise enter S4.

[0087] S2: Detect whether the id of the current QR code 30 is the same as the target id preset for the task. If they are the same, enter S3. Otherwise, send an alarm message to the corresponding server to facilitate user participation in processing.

[0088] S3: When the storage robot 20 reaches the position of the current two-dimensional code 30, it detects whether the second position offset between the position information of the current two-dimensional code 30 and the current position of the handling equipment is within the preset range. The second position offset includes but is not limited to: translation offset and / or angle offset. The preset range may be a parameter pre-configured by the user, such as parameters that limit the lateral X distance to the point, the longitudinal Y distance to the point, and the yaw angle to the point of the storage robot 20. Assuming that the second position offset includes the lateral offset qr_x, the longitudinal offset qr_y, and the angular offset qr_yaw of the current two-dimensional code 30 relative to the photoelectric collector 21, the preset range may be the maximum lateral distance to the point MAX_REACHPOINT_X, the maximum longitudinal distance to the point MAX_REACHPOINT_Y, and the maximum yaw angle to the point MAX_REACHPOINT_YAW.

[0089] Then determine whether the following relations are satisfied:

[0090] qr_x <MAX_REACHPOINT_X。

[0091] qr_y <MAX_REACHPOINT_Y。

[0092] qr_yaw <MAX_REACHPOINT_YAW)。

[0093] If the second position offset satisfies the above relationship, it means that when the storage robot 20 reaches the current position of the two-dimensional code 30, the route is normal, and the next task will continue to be performed. If the second position offset does not satisfy the above relationship, it means that when the storage robot 20 reaches the current position of the two-dimensional code 30, the route deviates from the planned route and the next task cannot be performed normally. It is determined that the handling equipment cannot normally identify the current identification code in the direction of travel, and the current position needs to be corrected, and then step S4 is entered.

[0094] S4: If the current QR code 30 cannot be recognized, or the recognition accuracy does not meet the accuracy requirements set by the user, first check whether the permission parameter configured by the user (such as HALF_QR_ADJ_ENABLE) is enabled to determine whether the user is allowed to use the position correction strategy. For example, if HALF_QR_ADJ_ENABLE = 1, it means that the storage robot 20 is allowed to use the position correction strategy, then enter step S6, otherwise enter S5.

[0095] S5: If the user has not pre-selected the warehouse robot 20 to have the position correction authority, in order to avoid losses caused by incorrect route, an alarm can be directly sent to the server to report the abnormality so that the user can intervene and participate in the processing.

[0096] S6: If the user pre-selects to grant the warehouse robot 20 the position correction authority, first determine whether the historical number of position corrections that the warehouse robot 20 has made has exceeded the maximum adjustment number MAX_NUM_QR_ADJ configured by the user. If so, directly report the task abnormality to the server so that the user can intervene and participate in the processing. If the historical number does not exceed the maximum adjustment number MAX_NUM_QR_ADJ, proceed to step S7.

[0097] S7: First, clear the collection information cached by the photoelectric collector 21, and send a half-code collection instruction to the photoelectric collector 21. The half-code collection instruction is different from the collection instruction of the storage robot 20 during normal operation. Only when the half-code collection mode is specified, the photoelectric collector 21 will start the half-code collection mode. In this mode, the photoelectric collector 21 will collect the two-dimensional code image within the current collection range. Even if the current two-dimensional code 30 deviates from the collection range, the residual two-dimensional code image entering the collection range will be collected.

[0098] In one embodiment, when the storage robot 20 is working normally, the photoelectric collector 21 will directly collect the identification information of the current two-dimensional code 30. When the storage robot 20 needs to correct the position and has the position correction authority, it will specify a preset half-code collection instruction, which will control the photoelectric collector 21 to collect the image of the two-dimensional code 30 within the current collection range. The collected image may include a local area of ​​the two-dimensional code. For example, assuming that the current two-dimensional code 30 has 4 corner marks, but only two corner mark information of the current two-dimensional code 30 is actually collected, then under the preset half-code collection instruction, the position of the entire current two-dimensional code 30 will be estimated based on the two corner mark information, but this position may not be accurate enough, and multiple estimates can be made to select an estimated value with appropriate accuracy as the final position information of the current two-dimensional code 30.

[0099] S8: As can be seen from the above, since there will be an estimation and screening process in the half-code collection mode, the half-code collection mode will make the photoelectric collector 21 take a longer time than normal operation. Therefore, the user can pre-configure the maximum waiting time MAX_WAIT_HALF_QR_ADJ to determine whether the data collection time of the photoelectric collector 21 has exceeded the maximum waiting time. If it has timed out, it can jump back to step S4 and restart the detection. If it has not timed out, continue to execute S9.

[0100] S9: If the data result sent by the photoelectric collector 21 is received within the longest waiting time, it can be determined whether the data result is abnormal. If the position information of the current residual QR code is obtained normally (for example, it can include the horizontal offset half_qr_x, the vertical offset half_qr_y, and the angle offset half_qr_yaw), a log information is generated to record the cause of the data deviation and the data value, the data collection method and other information, so as to facilitate the tracking and resolution of later problems, and then enter step S10. If the data result returns abnormal, it can return to step S4 and restart the detection.

[0101] S10: Calculate the first position offset between the current identification code and the handling device according to the position information of the current identification code. For details, refer to the description of step 302 in the above embodiment.

[0102] S11: Based on the first position offset, correct the current position of the transport device. For details, refer to the description of step 303 in the above embodiment.

[0103] Please see Figure 5 , which is a position correction method of an embodiment of the present application, the method can be Figure 1 The handling device 1 shown in the figure can be used to perform Figure 2 In the logistics warehousing scenario shown, when a task is completed, assuming that the handling equipment has insufficient accuracy to the point, the half-code collection method can be used to recover the current position of the warehousing robot 20 based on the information of the current identification code. The method includes the following steps:

[0104] Step 501: The current task is completed. After the current task is completed, an instruction to collect the current QR code is sent to the collector of the transport equipment.

[0105] Step 502: Based on the collected information, determine whether the transport equipment has arrived at the destination and meets the preset arrival accuracy when the current task is completed. If yes, proceed to step 516. If not, proceed to step 503.

[0106] Step 503: Determine whether the storage robot 20 is allowed to adjust its position. If yes, proceed to step 504; otherwise, proceed to step 515.

[0107] Step 504: Determine whether the historical adjustment times of the storage robot 20 exceeds the preset maximum adjustment times. If yes, proceed to step 515; otherwise, proceed to step 505.

[0108] Step 505 : clearing the cache of the photoelectric collector 21 .

[0109] Step 506 : Sending a preset half-code collection instruction to the photoelectric collector 21 .

[0110] Step 507: Determine whether a normal data result returned by the photoelectric collector 21 is received. If yes, proceed to step 508; otherwise, proceed to step 515.

[0111] Step 508: Record the cause of the offset and the offset information.

[0112] Step 509: Determine whether the received offset information is an angle offset. If yes, proceed to step 510; otherwise, proceed to step 511.

[0113] Step 510: Insert angle adjustment.

[0114] In this step, it can be determined whether the collected residual QR code information is an angle offset. If it is an angle offset, an angle adjustment action is inserted. First, determine whether the collected angle offset half_qr_yaw is greater than the maximum allowable angle adjustment value MAX_YAW_QR_ADJ configured by the user. If it is greater than this value, the current angle value of the warehouse robot 20 that needs to be corrected is half_qr_adj = MAX_YAW_QR_ADJ, otherwise the current angle value that needs to be corrected is half_qr_adj = half_qr_yaw. Then use the current angle value half_qr_adj that needs to be corrected as a parameter to generate an action rotation instruction to control the robot 20 to rotate the angle half_qr_adj. After the angle adjustment action is completed, you can jump back to step 501 and restart the detection.

[0115] Step 511: Determine whether the received offset information is an offset in the Y direction. If yes, proceed to step 512; otherwise, proceed to step 513.

[0116] Step 512: Insert Y-adjustment.

[0117] In this step, if the collected residual two-dimensional code information is a longitudinal offset, a longitudinal adjustment action is inserted. First, determine whether the collected longitudinal offset half_qr_y is greater than the maximum allowable longitudinal adjustment distance MAX_Y_QR_ADJ configured by the user. If it is greater than this value, the longitudinal distance value that needs to be corrected half_qr_adj = MAX_Y_QR_ADJ, otherwise the longitudinal distance value that needs to be corrected half_qr_adj = half_qr_y. Then use the longitudinal distance value half_qr_adj that needs to be corrected as a parameter to generate an action instruction MOVE to control the robot 20 to move the distance half_qr_adj. After the longitudinal adjustment action is completed, you can jump back to step 501 and restart the detection.

[0118] Step 513: Determine whether the received offset information is an X-direction offset. If yes, proceed to step 514.

[0119] Step 514: Insert X-axis adjustment.

[0120] In this step, if the collected residual QR code information is a lateral offset, a lateral adjustment action is inserted. First, determine whether the collected lateral offset half_qr_x is greater than the maximum allowable adjustment distance MAX_X_QR_ADJ configured by the user. If it is greater than this value, the distance value that needs to be corrected in the lateral direction is half_qr_adj = MAX_X_QR_ADJ, otherwise the distance value that needs to be corrected in the lateral direction is half_qr_adj = half_qr_x. If the current walking direction of the warehouse robot 20 is longitudinal, a 90-degree (i.e., preset angle) rotation instruction is generated, and the head direction of the warehouse robot 20 is used to face the lateral direction. Use the distance value half_qr_adj that needs to be corrected in the lateral direction as a parameter to generate a moving instruction MOVE to control the robot 20 to move the distance half_qr_adj. After the lateral adjustment action is completed, you can jump back to step 501 and restart the detection.

[0121] Step 515: Issue an abnormal alarm:

[0122] Step 516: Execute the next task normally.

[0123] In one embodiment, the correction result is verified based on the above position correction method: Figure 6 As shown, it is a photographic image collected by the photoelectric collector 21. The image is divided into 8 directions (up, down, left first, left second, left third, right first, right second, right third) for verification. The QR code is placed in the above 8 directions to simulate the offset working condition and verify the correction effect.

[0124] Assume that the setting parameters of the storage robot 20 are as follows:

[0125] MAX_REACHPOINT_X=5cm

[0126] MAX_REACHPOINT_Y=5cm

[0127] MAX_REACHPOINT_YAW=0.1rad

[0128] MAX_Y_QR_ADJ=4cm

[0129] MAX_X_QR_ADJ=4cm

[0130] MAX_YAW_QR_ADJ=0.08rad

[0131] HALF_QR_ADJ_ENABLE=1

[0132] MAX_NUM_QR_ADJ=3

[0133] MAX_WAIT_HALF_QR_ADJ=100ms

[0134] The verification results are shown in Table 1:

[0135] Table 1

[0136] QR code location Number of tests Number of restores Number of unrecovered Probability of recovery superior 100 95 5 95% Down 100 96 4 96% Left one 100 91 9 91% Second from left 100 93 7 93% Third from left 100 92 8 92% Right one 100 93 7 93% Second from right 100 95 5 95% Third from right 100 92 8 92%

[0137] According to the verification results, the above-mentioned lost position correction method can achieve a very high recovery probability for the upward / downward longitudinal offset, reaching 95% or above, and also has a relatively high correction probability for the lateral offset of left two / right two. The correction probability for the longitudinal and lateral offsets of left one / left three and right one / right three that exist simultaneously can also reach more than 90%.

[0138] The above-mentioned lost position correction method does not require the addition of additional sensors. The abnormality after parking can be restored through existing equipment, which simplifies product design and manufacturing processes and saves product costs. There is no need to deliberately reduce the speed to ensure accuracy, ensuring that the robot 20 can run efficiently and quickly. After the robot 20 reaches the point, the lost position abnormality is allowed to occur, and the abnormality can be automatically restored to correctly identify the QR code. The control details during the operation process have been parameterized, giving users greater automatic selection rights. Threshold limits are added during the recovery process to effectively reduce the danger during the recovery process.

[0139] Please see Figure 7 , which is a position correction device 700 of an embodiment of the present application, the device is applied to Figure 1 The handling device 1 shown can be applied to Figure 2 In the logistics warehousing scenario shown, the position correction method of the above embodiment is used to correct the current position of the robot 20 based on the information of the current identification code. The device includes: a generation module 701, a calculation module 702 and a correction module 703, and the principle relationship of each module is as follows:

[0140] The generation module 701 is used to generate a half-code acquisition instruction when the transport device cannot normally identify the current identification code in the direction of travel, or the second position offset between the transport device and the current identification code exceeds a preset range. The half-code acquisition instruction is used to control the identifier to acquire a first image and calculate the position information of the current identification code based on the first image, wherein at least one identification code is set along the preset direction of travel of the transport device. The calculation module 702 is used to determine the first position offset between the current identification code and the transport device based on the position information of the current identification code. The correction module 703 is used to correct the current position of the transport device based on the first position offset.

[0141] In one embodiment, it also includes: a first acquisition module, used to control the identifier to acquire the label of the current identification code before generating a half-code acquisition instruction; an acquisition module, used to acquire the pre-stored position information corresponding to the label of the current identification code, and calculate the second position offset between the pre-stored position information and the current position of the handling equipment; a first judgment module, used to judge whether the second position offset is within a preset range if the label is the same as the task label.

[0142] In one embodiment, it also includes: a second acquisition module, which is used to control the identifier to acquire the second image of the current identification code before generating the half-code acquisition instruction; a detection module, which is used to detect whether there is a number of the current identification code in the second image of the current identification code; and a determination module, which is used to determine that the handling equipment cannot normally identify the current identification code in the direction of travel if the number of the current identification code does not exist in the second image of the current identification code.

[0143] In one embodiment, the first image includes at least local information of the current identification code; calculating the position information of the current identification code according to the first image includes: estimating the position information of the current identification code according to the local information.

[0144] In one embodiment, the determination module is further configured to: issue an alarm if the label is different from the task label.

[0145] In one embodiment, the generating module 701 is used to generate a half-code acquisition instruction when the transport device has the position correction authority.

[0146] In one embodiment, the first position offset includes: a translation offset and / or an angle offset.

[0147] In one embodiment, the correction module 703 is used to: determine whether the first position offset is greater than a correction threshold. When the first position offset is greater than the correction threshold, a control instruction is generated based on the correction threshold, and the control instruction is used to control the movement of the transport device.

[0148] In one embodiment, the correction module 703 is further configured to: when the first position offset is less than or equal to the correction threshold, generate a control instruction based on the first position offset, where the control instruction is used to control the movement of the transport device.

[0149] In one embodiment, the first position offset is a lateral offset, and the lateral direction is perpendicular to the forward direction of the transport device. The step of generating a control instruction includes: generating a rotation instruction, the rotation instruction is used to drive the transport device to rotate a preset angle so that the current forward direction of the transport device is along the lateral direction. Generating a movement instruction, the movement instruction is used to instruct the transport device to move according to the distance specified in the first position offset.

[0150] In one embodiment, it further includes: a second judgment module, which is used to judge whether the historical number of position corrections performed by the handling device has exceeded the maximum number of adjustments configured by the user before generating the half-code acquisition instruction. If the historical number does not exceed the maximum number of adjustments configured by the user, it is determined that the handling device has the position correction authority. If the historical number has exceeded the maximum number of adjustments configured by the user, an alarm message is issued.

[0151] For a detailed description of the position correction device 700 , please refer to the description of the relevant method steps in the above embodiment.

[0152] The embodiment of the present invention also provides a non-transient electronic device readable storage medium, including: a program, when it is run on a transport device, the transport device can execute all or part of the process of the method in the above embodiment. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated: HDD) or a solid-state drive (SSD), etc. The storage medium can also include a combination of the above types of memories.

[0153] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A position correction method, characterized in that: include: When the second position offset between the handling device and the current identification code exceeds a preset range, a half-code acquisition instruction is generated, wherein the half-code acquisition instruction is used to control the identifier to acquire a first image, and calculate the position information of the current identification code according to the first image, wherein at least one identification code is arranged along a preset travel direction of the handling device; Determining a first position offset between the current identification code and the handling device according to the position information of the current identification code; Based on the first position offset, correcting the current position of the transport device; Before generating the half-code acquisition instruction, the method further includes: Controlling the identifier to collect the number of the current identification code; Acquire the pre-stored position information corresponding to the number of the current identification code, and calculate a second position offset between the pre-stored position information and the current position of the transport device; If the label is the same as the task label, it is determined whether the second position offset is within the preset range.

2. The method according to claim 1, characterized in that The first image at least includes local information of the current identification code; and the step of calculating the position information of the current identification code according to the first image includes: The position information of the current identification code is estimated according to the local information.

3. The method according to claim 1 or 2, characterized in that: The generating half-code acquisition instruction comprises: When the transport device has the position correction authority, the half-code collection instruction is generated.

4. The method according to claim 1 or 2, characterized in that: The first position offset includes: a translation offset and / or an angle offset.

5. The method according to claim 1 or 2, characterized in that: The correcting the current position of the transport device based on the first position offset includes: Determining whether the first position offset is greater than a correction threshold; When the first position deviation is greater than the correction threshold, a control instruction is generated based on the correction threshold, where the control instruction is used to control the movement of the transport device.

6. The method according to claim 5, characterized in that Also includes: When the first position offset is less than or equal to the correction threshold, the control instruction is generated based on the first position offset, and the control instruction is used to control the movement of the transport device.

7. The method according to claim 5, characterized in that The first position offset is a lateral offset, and the lateral direction is perpendicular to the forward direction of the transport device; The step of generating a control instruction comprises: generating a rotation instruction, wherein the rotation instruction is used to drive the transport device to rotate a preset angle so that the current forward direction of the transport device is along the horizontal direction; A movement instruction is generated, wherein the movement instruction is used to instruct the transport device to move according to the distance specified in the first position offset.

8. The method according to claim 1 or 2, characterized in that: Before generating the half-code acquisition instruction, the method further includes: Determine whether the historical number of position corrections performed by the transport device has exceeded the maximum number of adjustments configured by the user; If the historical number does not exceed the maximum adjustment number configured by the user, it is determined that the transport device has the position correction authority; If the historical number has exceeded the maximum adjustment number configured by the user, an alarm message is issued.

9. A position correction device, characterized in that: include: A generating module, configured to generate a half-code acquisition instruction when a second position offset between the handling device and the current identification code exceeds a preset range, wherein the half-code acquisition instruction is used to control the identifier to acquire a first image, and calculate the position information of the current identification code according to the first image, wherein at least one identification code is arranged along a preset travel direction of the handling device; A calculation module, used for determining a first position offset between the current identification code and the handling device according to the position information of the current identification code; a correction module, configured to correct a current position of the transport device based on the first position offset; The position correction device also includes: A first acquisition module, used for controlling the identifier to acquire the number of the current identification code before generating the half-code acquisition instruction; An acquisition module, used for acquiring pre-stored position information corresponding to the number of the current identification code, and calculating a second position offset between the pre-stored position information and the current position of the transport device; The first judgment module is used to judge whether the second position offset is within a preset range if the label is the same as the task label.

10. A handling device, characterized in that: include: An identifier for collecting image information of an identification code of a current position of a handling device; Memory for storing computer programs; A processor, configured to execute the computer program to implement the method according to any one of claims 1 to 8.

11. A non-transitory electronic device readable storage medium, characterized in that: The method comprises: a program which, when executed by a transport device, causes the transport device to execute the method according to any one of claims 1 to 8.