Method and system for determining a holding state of a robot after a task failure and safe placement
By determining the status of goods based on holding evidence independent of the final state of the task software, the problem of unclear goods status after robot task failure is solved, achieving safe placement and accounting consistency, and avoiding repeated release actions.
Patent Information
- Application Number
- CN202611611501.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-19
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies cannot effectively determine the physical state of goods after a robot task fails, leading to the failure to identify possible repeated releases or non-release states, resulting in risks such as damage to goods, on-site safety, and accounting inconsistency.
The cargo status is determined by holding evidence independent of the task software's final state, and the permission is reviewed before each release action. Original failure information and post-processing results are saved to ensure uniqueness and secure placement.
This effectively avoids duplicate placement, ensures safe placement of goods, reduces the risk of goods damage and accounting discrepancies, and enables safe placement after mission failure.
Smart Images

Figure CN123129192A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robot control technology, and in particular to a method and system for determining the holding status and safely placing goods after a robot task fails. Background Technology
[0002] With the widespread application of mobile robots in warehousing, retail, and food delivery, the grasping, handling, and placement tasks have become the core of robot operations. However, existing technologies have the following problems:
[0003] The software final state of a pick-up and place-down task may precede the physical disposal of the goods. For example, if the robot fails to navigate after successfully grasping the goods, or fails to write back the status upstream after the gripper opens, both scenarios can result in different physical states of the goods: the goods may still be gripped, may have been released, or may have fallen during transport. Releasing goods is an irreversible physical action that cannot be undone once it occurs. Existing control methods that directly retry the entire process based on task failure codes and infer the physical state of the goods from the software final state cannot guarantee that the same irreversible release action will not be repeated under interruption conditions such as task failure, process restart, or status reporting failure. Released goods may be treated as held goods again, triggering empty placement; the loss of deduplication markers in memory after a process restart may lead to a second placement; and a single failure state may mask the fact that the goods have been safely placed, causing risks of goods damage, on-site safety, and accounting inconsistency.
[0004] The information disclosed in this background section is intended only to enhance the understanding of the general background of the invention and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention
[0005] This invention provides a method and system for determining the holding status and safely placing goods after a robot task fails, thereby effectively solving the problems in the background art.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is: a method for determining the holding status and safely placing goods after a robot task fails, comprising the following steps:
[0007] At the abnormal exit of the retrieval and placement task, the original failure information of the retrieval and placement task is saved. The original failure information and the subsequent cleanup results of the retrieval and placement task are saved independently.
[0008] Obtain cargo holding evidence independent of the software final state of the pick-up and put-down task. The cargo holding evidence includes at least two independent physical observations. Based on the cargo holding evidence, determine the physical state of the cargo as one of three states: held, released, or unknown.
[0009] When the physical state is determined to be holding goods and the clearance for the cleanup action is approved, the cleanup placement attempt is performed no more than the preset limit. The cleanup placement attempt includes navigating to a safe placement point, performing the placement action, and releasing the goods. The clearance for the cleanup action is checked before each physical action is initiated and during the execution of each physical action.
[0010] Before each irreversible action of releasing the cargo is performed, an intent record is written using a unique key consisting of the robot identifier, task identifier, cargo identifier, and grasping generation. After the cargo is released, a release confirmation record is written only when the cargo is determined to have been released again based on the physical observation. After the release confirmation record is persisted, the cleanup result is reported upstream.
[0011] When the entry point for the cleanup placement attempt is re-entered or the process is restarted, the record corresponding to the unique key is read: if the release confirmation record already exists, the action of releasing the goods is prohibited again and the cleanup result is reissued; if only the intent record exists but the release confirmation record does not exist, the goods are determined to be unknown, the release action is not performed and manual verification is requested.
[0012] Furthermore, the at least two independent physical observations are selected from gripper closing stroke, gripping current, gripping force, wrist load and end-effector visual observation, wherein at least one physical observation is independent of the gripper closing command;
[0013] The at least two types of physical observations are taken from observations within the same capture period and whose timestamps do not exceed a preset freshness limit.
[0014] Furthermore, the step of determining the physical state of the goods into one of three states—held, released, or unknown—based on the evidence of possession includes:
[0015] When the clamping jaws do not reach the empty clamping limit during their closing stroke, and the clamping current or clamping force remains above the calibrated lower limit of the goods for a preset duration, the goods are determined to be held.
[0016] When the gripper opens, the gripping force or wrist load drops to the release baseline, and visual confirmation of the placement area is obtained, it is determined that the gripper has been released.
[0017] When the physical observations are missing, contradictory, or timed out, they are determined to be unknown.
[0018] Furthermore, when the physical state is determined to be unknown, the placement action is not automatically executed, and it is further determined whether the gripper holding function is controllable;
[0019] If the clamping function is controllable, maintain the current clamping and request manual review;
[0020] If the clamping function is uncontrollable, the goods will be supported by a mechanical holding mechanism or manually taken over, without holding the goods according to the clamping instructions.
[0021] Furthermore, the permission for the cleanup actions is determined as follows:
[0022] When either the emergency stop state or the upper-level mission safety cancellation state is in effect, it is prohibited to initiate a new cleanup movement or release action;
[0023] The review includes checks before each action is initiated, such as navigation, return to base pose, external axis descent, placement, gripper release and retraction, as well as checks during the execution of a single long-duration action by canceling the token or periodic status callback.
[0024] When the clearance for the cleanup action fails, the submission of subsequent actions is stopped, the ongoing motion is cancelled, the grip is maintained without releasing the jaws while there is still evidence of holding the goods, and the interruption status and the physical state at that time are recorded.
[0025] Furthermore, the safe placement points are determined in the following order:
[0026] First, verify that the originally planned placement point exists, is accessible, has no restrictions, and that its load-bearing surface matches the goods.
[0027] If the conditions are not met, search for the nearest pre-marked safe point; if the conditions are still not met, search for the manual handover point.
[0028] For each candidate placement point, verify the map version, occupancy status, geometric reachability, carrying capacity, and human accessibility. If any condition is unreliable, skip the candidate.
[0029] When all candidates are unavailable, the physical state is unknown, or the preset maximum number of attempts is exhausted, autonomous placement stops, the established clamping or braking state is maintained, and manual intervention is reported. Unverified default placement points are not used.
[0030] Furthermore, the cleanup placement attempts, which are executed no more than a preset maximum number of times, include:
[0031] The next cleanup placement attempt will only be initiated if the previous cleanup placement attempt did not generate the release confirmation record and the fresh evidence of holding the goods is still determined to be holding the goods; after each failed attempt, the evidence of holding the goods will be reacquired and the permission determination for the cleanup action will be performed, and then the next attempt will be initiated after a preset delay.
[0032] When the number of attempts reaches the preset limit or a single action times out, the request for manual intervention is recorded, and no new movement is initiated.
[0033] Furthermore, when a hardware emergency stop occurs while the grippers are already open, the evidence of holding the goods before the emergency stop is not used to infer that the goods are still held. Instead, the release evidence is reread, and the goods are determined to be either released or unknown based on the result of the reread.
[0034] Furthermore, the writing of the release confirmation record is triggered by the physical observation of the goods' physical state being reassessed, rather than by the execution of the release command.
[0035] When the upstream reporting of the post-processing result fails, the locally persisted release confirmation record is used as the criterion for whether the release action has been completed. The release action is not repeated, and only a re-report is sent.
[0036] Furthermore, the record corresponding to the unique key includes five states: intent, placement, release confirmation, interruption, and pending manual intervention. Each state is accompanied by an attempt number and a timestamp, and is written to local persistent storage in a transactional manner. The local persistent storage is implemented by an embedded database, an append-only log, or a reliable event storage.
[0037] The present invention also includes a system for determining the holding status and safely placing goods after a robot task fails, applied to the method described above, the system comprising:
[0038] The failure information storage module is used to store the original failure information of the retrieval and placement task at the abnormal exit point of the retrieval and placement task. The original failure information and the subsequent cleanup results of the retrieval and placement task are stored independently.
[0039] The cargo holding determination module is used to obtain cargo holding evidence that is independent of the software final state of the pick-up and put-down task. The cargo holding evidence includes at least two types of independent physical observations. Based on the cargo holding evidence, the physical state of the cargo is determined to be one of three states: held, released, or unknown.
[0040] The post-purge execution module is used to perform a post-purge placement attempt no more than a preset limit when the physical state is determined to be holding goods and the post-purge action permission determination is passed. The post-purge placement attempt includes navigating to a safe placement point, performing a placement action, and releasing the goods. The post-purge action permission determination is checked before each physical action is initiated and during the execution of each physical action.
[0041] The recording module is used to write an intent record with a unique key consisting of robot identifier, task identifier, cargo identifier and grasping generation before each irreversible action of releasing the cargo is performed; after the cargo is released, a release confirmation record is written only when the cargo is determined to have been released again according to the physical observation, and the cleanup result is reported upstream after the release confirmation record is persisted.
[0042] The verification module is used to read the record corresponding to the unique key when the entry point of the cleanup placement attempt is re-entered or the process is restarted: if the release confirmation record already exists, the action of releasing the goods is prohibited again and the cleanup result is reissued; if only the intent record exists but the release confirmation record does not exist, the goods are determined to be unknown, the release action is not performed and manual verification is requested.
[0043] The present invention also includes a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as described above.
[0044] The present invention also includes a storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described above.
[0045] The beneficial effects of this invention are as follows: the physical state of the goods is expressed by the holding evidence independent of the final state of the task software; the release confirmation record is only triggered by physical evidence and persisted with robot identifier, task identifier, goods identifier and grasping generation as keys; when restarting or re-entering, the review conclusion of this record takes precedence over the upstream task state, so that an irreversible physical release action remains unique under the three interruption conditions of task failure, process restart and status reporting failure, fundamentally avoiding duplicate placement; at the same time, the original failure information and the aftermath processing result are stored independently, and the original failure fact is not overwritten by the successful aftermath. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a flowchart of the method for determining the holding status and safely placing goods after a robot task fails according to the present invention;
[0048] Figure 2 This is an overall flowchart of the method for determining the holding status and safely placing goods after a robot task fails according to the present invention;
[0049] Figure 3 This is a branch diagram illustrating the three-state determination of evidence of possession in this invention;
[0050] Figure 4 This is a schematic diagram illustrating the interruption and holding actions of the emergency stop during the cleanup and placement process of the present invention;
[0051] Figure 5This is a schematic diagram illustrating the state transition of the intended recording and release confirmation record in this invention;
[0052] Figure 6 This is a schematic diagram of the structure of the computer device of the present invention. Detailed Implementation
[0053] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0054] Example 1:
[0055] like Figure 1 As shown: A method for determining the holding status and safely placing goods after a robot task failure, including the following steps:
[0056] At the abnormal exit point of the pick-up and place task, the original failure information of the pick-up and place task is saved. The original failure information and the subsequent cleanup results of the pick-up and place task are saved independently.
[0057] Acquire cargo holding evidence independent of the final state of the software for the pick-up and drop-off tasks. The cargo holding evidence includes at least two independent physical observations. Based on the cargo holding evidence, determine the physical state of the cargo as one of three states: held, released, or unknown.
[0058] When the physical status is determined to be holding goods and the clearance for cleanup actions is approved, cleanup placement attempts are performed no more than the preset limit. Cleanup placement attempts include navigating to a safe placement point, performing placement actions, and releasing goods. The clearance for cleanup actions is checked before each physical action is initiated and during the execution of each physical action.
[0059] Before each irreversible action of releasing cargo is performed, an intent record is written with a unique key consisting of robot identifier, task identifier, cargo identifier, and grasping generation. After the cargo is released, a release confirmation record is written only when the cargo is determined to have been released again based on physical observations. After the release confirmation record is persisted, the cleanup results are reported upstream.
[0060] When the entry point for the cleanup placement attempt is re-entered or the process is restarted, the record corresponding to the unique key is read: if the release confirmation record already exists, the action of releasing the goods is prohibited again and the cleanup result is reissued; if only the intent record exists but the release confirmation record does not exist, the goods are judged as unknown, the release action is not performed and manual verification is requested.
[0061] The physical state of the goods is expressed by the holding evidence independent of the final state of the task software. The release confirmation record is written only by physical evidence and persisted with the robot identifier, task identifier, goods identifier and grab generation as keys. When restarting or re-entering, the review conclusion of this record takes precedence over the upstream task state, so that an irreversible physical release action remains unique under the three interruption conditions of task failure, process restart and status reporting failure, fundamentally avoiding duplicate placement; at the same time, the original failure information and the cleanup results are stored independently, and the original failure facts are not overwritten by the cleanup success.
[0062] In this embodiment, at least two independent physical observations are selected from gripper closing stroke, gripping current, gripping force, wrist load and end-effector visual observation, wherein at least one physical observation is independent of the gripper closing command;
[0063] At least two types of physical observations are taken from observations within the same capture period, and whose timestamps do not exceed a preset freshness limit.
[0064] Among these, the physical state of the goods is determined based on evidence of possession, falling into one of three categories: held, released, or unknown. These include:
[0065] When the clamping jaws do not reach the empty clamping limit during the closing stroke, and the clamping current or clamping force remains above the calibrated lower limit of the goods for a preset duration, the goods are determined to be held.
[0066] When the gripper opens, the gripping force or wrist load drops to the release baseline, and visual confirmation of the placement area is obtained, it is determined that the gripper has been released.
[0067] When physical observations are missing, contradictory, or timed out, they are classified as unknown.
[0068] As a preferred embodiment of the above, when the physical state is determined to be unknown, the placement action is not automatically executed, and it is further determined whether the gripper holding function is controllable.
[0069] If the clamping function is controllable, maintain the current clamping and request manual review;
[0070] If the clamping function is uncontrollable, the goods will be held by a mechanical holding mechanism or manually taken over, without holding the goods according to the clamping instructions.
[0071] In this embodiment, the permission for cleanup actions is determined as follows:
[0072] When either the emergency stop state or the upper-level mission safety cancellation state is in effect, it is prohibited to initiate a new cleanup movement or release action;
[0073] The review includes checking each action before navigation, return to base pose, external axis descent, placement, gripper release and retraction, as well as checking again during the execution of a single long-duration action by canceling the token or periodic state callback;
[0074] When the clearance for the cleanup action is not approved, the submission of subsequent actions is stopped, the ongoing action is cancelled, the grip is maintained without releasing the jaws as long as there is still evidence of holding the goods, and the interruption status and the physical state at that time are recorded.
[0075] The safe placement points are determined in the following order:
[0076] First, verify that the originally planned placement point exists, is accessible, has no restrictions, and that the load-bearing surface matches the goods;
[0077] If the conditions are not met, search for the nearest pre-marked safe point; if the conditions are still not met, search for the manual handover point.
[0078] For each candidate placement point, verify the map version, occupancy status, geometric reachability, carrying capacity, and human accessibility. If any condition is unreliable, skip the candidate.
[0079] If all candidates are unavailable, the physical status is unknown, or the preset number of attempts is exhausted, stop autonomous placement, maintain the established clamping or braking status, and report to manual takeover. Do not use unverified default placement points.
[0080] As a preferred embodiment of the above, the cleanup placement attempt, which is executed no more than a preset maximum number of times, includes:
[0081] The next cleanup placement attempt will only be initiated if the previous cleanup placement attempt has not generated a release confirmation record and the fresh evidence of possession is still determined to be possession; after each failed attempt, the evidence of possession will be reacquired and the cleanup action permission will be determined, and then the next attempt will be initiated after a preset delay.
[0082] When the number of attempts reaches the preset limit or a single action times out, the request for manual intervention is recorded, and no new movements are initiated.
[0083] When a hardware emergency stop occurs while the grippers are already open, the system does not infer that the goods are still held based on the evidence of holding the goods before the emergency stop. Instead, it rereads the release evidence and determines whether the goods have been released or are unknown based on the result of the reread.
[0084] As a preferred embodiment of the above, the writing of the release confirmation record is triggered by the physical observation of the goods' physical state being reassessed, rather than by the execution of the release command.
[0085] When reporting the follow-up processing results upstream fails, the locally persistent release confirmation record is used as the criterion for whether the release action has been completed. The release action is not repeated, and only a re-report is sent.
[0086] In this embodiment, the record corresponding to the unique key includes five states: intent, placement, release confirmation, interruption, and pending manual intervention. Each state is accompanied by an attempt number and a timestamp, and is written to local persistent storage in a transactional manner. The local persistent storage is implemented by an embedded database, an append-only log, or a reliable event storage.
[0087] Example 2:
[0088] This embodiment applies to a scenario where a coffee delivery robot performs a pick-and-place task. For example... Figure 2 As shown, the robot successfully grasped the item (coffee cup) from the shelf. Upon successful grasp, a baseline was established: the task identifier (taskId), the item identifier (wipId), the grasping generation (graspEpoch, incrementing by 1 for each grasping action), the gripper closing stroke, the gripping current, and optional wrist load and end-effector visual baseline were recorded. Subsequently, the robot threw a navigation failure exception while navigating to the placement point, and the task entered the exception exit.
[0089] At the exit point of an error, the robot first saves the original failure information: error type (navigation failure), the step in which it occurred, and taskId. This information is stored separately from the results of subsequent cleanup. Successful cleanup does not rewrite the original task as successful.
[0090] Next, a holding determination is performed: At least two independent physical observations whose timestamps do not exceed the freshness threshold (2 seconds in the example configuration) are reread. In this example, this is the gripper closing stroke and the gripping current, where the gripping current is independent of the gripper closing command. For example... Figure 3 As shown, if the gripper's closing stroke does not reach the empty gripper's closing limit and the clamping current remains continuously above the calibrated lower limit of the cargo for a preset duration (0.5 seconds in the example configuration), it is determined to be holding the cargo. The calibrated lower limit is obtained through empty and full gripper samples: current samples are collected for this type of gripper when the empty gripper is closed and when the cargo is being held, and the lower limit of the envelope of the full gripper sample is taken as the calibrated lower limit.
[0091] After determining that the goods are in possession, a follow-up action permit determination is performed: the emergency stop status and the upper-level task safety cancellation status are both ineffective, so the permit is granted. Next, a safe placement point is determined: first, the existence, accessibility, absence of restrictions, and matching load-bearing surface of the originally planned placement point are verified; if the verification passes, the originally planned placement point is adopted.
[0092] Before performing the irreversible action of releasing the goods, an intent record is written to the local embedded database in a transactional manner, using the robot identifier (robotId), taskId, wipId, and grapeEpoch) as a unique key, along with an attempt number (1) and a timestamp. Then, a cleanup placement attempt is initiated: navigating to the placement point and confirming its location, performing the placement action, and opening the gripper to release the goods. Before each of the navigation, placement, and gripper release actions, the cleanup action permission is reviewed. During the long-duration navigation action, the permission is periodically reviewed by canceling the token; in this example, the permission remains valid.
[0093] After release, the robot re-acquires the gripping current and wrist load: the gripper opens, the gripping current drops to the release baseline, and visual confirmation at the end of the placement area confirms the goods have been placed, thus re-determining that the goods have been released (RELEASED). This physical determination triggers the writing of a release confirmation (RELEASE_CONFIRMED) record—note that this writing is triggered by the re-determination of physical observations, not by the execution return of the gripper open command. Only after the release confirmation record is persisted locally and synchronized does the robot report the cleanup result (SALVAGE_PLACE_DONE) upstream. The original task is still reported as a navigation failure as the final state, and the cleanup result is available for viewing alongside the original failure information.
[0094] In this example, the maximum number of retries is configured to be 3 (the allowed configuration range is 0 to 5, and the actual number of attempts is the maximum plus 1, so the maximum is 4). The attempt interval is configured to be 1 second. In this example, the first attempt is successful and no retry is triggered.
[0095] To verify uniqueness, this embodiment further injects a reporting failure: the upstream returns a conflict error (post-processing result reporting failed). After the robot process restarts and re-enters the post-processing entry point, it first reads the local record using the unique key and finds that the release confirmation record already exists. Therefore, it prohibits the release action from being executed again and only re-sends the post-processing result report. Even if the gripper is still physically open, a second placement action will not be generated.
[0096] Example 3:
[0097] The difference between this embodiment and embodiment 2 is that after the robot successfully grasps the goods, the goods are accidentally dropped during transportation, and the task fails due to navigation timeout and enters an abnormal exit.
[0098] During the cargo holding determination phase, the robot re-reads the gripper closing stroke and holding current: the gripper closing stroke has reached the empty gripping limit (the gripper closes to the mechanical stop point, with no cargo in between), and the holding current is below the calibrated lower limit. Both types of evidence consistently indicate that the cargo is not in the gripper. At this point, neither the cargo holding criterion nor the release criterion is met (no placement action occurred, no visual confirmation of the placement area). Although the evidence is consistent, it points to a third conclusion: because the gripper closing stroke has reached the empty gripping limit and no release action has been performed during the task flow, the robot classifies the cargo as unknown—not excluding the possibility of it falling during transportation.
[0099] If the condition is determined to be unknown, the robot will not automatically perform the placement action. Further checks will be made to determine if the gripper's holding function is controllable: a small-amplitude closing test command will be sent to the gripper, and the drive feedback will be read. If the feedback is normal, the gripping function is controllable. The robot will then maintain the current gripping state (empty gripper), write the status to pending manual intervention (NEEDS_HUMAN), and request manual verification of the site. If the gripper drive feedback is abnormal during this test (gripping function is uncontrollable, such as air leakage or power failure), the gripping command will no longer be relied upon to hold the goods. Instead, the mechanical holding mechanism of the robot's platform will take over, or manual intervention will be implemented. The record will clearly indicate that this method does not guarantee the goods-holding capability under these circumstances.
[0100] This embodiment shows that the same "evidence judgment - unique key record - fracture verification" mechanism can be transferred to any abnormal scenario where the physical state of the goods deviates from the task assumption: when the judgment conclusion is unknown, irreversible actions are not performed, and the uniqueness constraint is still valid.
[0101] Example 4:
[0102] This embodiment examines the scenario where, during the follow-up placement attempt in Embodiment 2, on-site personnel press the hardware emergency stop button midway through the process. For example... Figure 4 As shown, the emergency stop occurs during the robot's long-duration navigation to the placement point. The post-action permission determination is reviewed periodically during action execution via a cancellation token. After the emergency stop takes effect, the robot immediately stops submitting subsequent actions and issues a cancellation for the ongoing navigation motion. At this time, the holding evidence remains valid, the robot maintains its grip without releasing the gripper, writes the INTERRUPTED state and the current physical state (gripping current, gripper stroke snapshot), and transfers the handling to the safety recovery process.
[0103] If an emergency stop occurs while the grippers are already open, the robot does not infer that the goods are still held based on the holding evidence before the emergency stop. After the grippers open, the goods may have already been placed or may be falling. After the emergency stop is released and the safety recovery process is completed, the robot rereads the release evidence: the gripping current and wrist load have dropped to the release baseline, but the end-effector vision cannot obtain visual confirmation of the placement area due to the concurrent failure of this sensor. Only two of the three conditions for the release criterion are met, the evidence is incomplete, so it is judged as unknown, no additional placement action is performed, the status is changed to pending human intervention, and a request is made for human verification of the goods' position.
[0104] This embodiment also covers recording the boundary states of the state machine: such as Figure 5 As shown, the unique key record transitions between five states: INTENT, PLACING, RELEASE_CONFIRMED, INTERRUPTED, and NEEDS_HUMAN. After the process restarts, only the RELEASE_CONFIRMED state allows "prohibited action, only resubmitted report". The INTENT and PLACING states are all treated as unknown due to the lack of reliable release evidence. The missing log does not infer that the goods are still held, nor does the existence of the INTENT record infer that the goods have not been released and directly retry.
[0105] Example 5:
[0106] This embodiment provides a device for determining the holding status and safely placing items after a robot task failure. Deployed in the task execution control unit of a mobile robot, it includes a failure information storage module, a holding determination module, a cleanup execution module, a recording module, and a review module. The failure information storage module stores the original failure information at the abnormal exit point of the pick-up / placement task. The holding determination module connects to a gripper stroke sensor, a gripper drive current sampling sensor, a wrist load sensor, and an end-effector vision unit to perform a three-state determination. The cleanup execution module connects to the navigation control, robotic arm control, and gripper control interfaces to perform bounded cleanup placement attempts and continuously review the cleanup action permission determination. The recording module connects to a local embedded database to write and read unique key records in a transactional manner. The review module reads and adjudicates records before any physical action upon re-entry or process restart. The modules interact through the internal bus of the task execution control unit. Physical observations are input to the holding determination module via the sensor driver layer, and action commands are issued via the motion control layer.
[0107] Please see Figure 6 The diagram shows a structural schematic of a computer device provided in an embodiment of this application. An embodiment of this application provides a computer device 400, including a processor 410 and a memory 420. The memory 420 stores a computer program executable by the processor 410. When the computer program is executed by the processor 410, it performs the method described above.
[0108] This application embodiment also provides a storage medium 430, on which a computer program is stored, and the computer program is executed by a processor 410 to perform the above method.
[0109] The storage medium 430 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0110] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. "A plurality of" means two or more, unless otherwise explicitly specified.
[0111] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0112] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Furthermore, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0113] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0114] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0115] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0116] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0117] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for determining the holding status and safely placing goods after a robot task failure, characterized in that, Includes the following steps: At the abnormal exit of the retrieval and placement task, the original failure information of the retrieval and placement task is saved. The original failure information and the subsequent cleanup results of the retrieval and placement task are saved independently. Obtain cargo holding evidence independent of the software final state of the pick-up and put-down task. The cargo holding evidence includes at least two independent physical observations. Based on the cargo holding evidence, determine the physical state of the cargo as one of three states: held, released, or unknown. When the physical state is determined to be holding goods and the clearance for the cleanup action is approved, the cleanup placement attempt is performed no more than the preset limit. The cleanup placement attempt includes navigating to a safe placement point, performing the placement action, and releasing the goods. The clearance for the cleanup action is checked before each physical action is initiated and during the execution of each physical action. Before each irreversible action of releasing the cargo is performed, an intent record is written using a unique key consisting of the robot identifier, task identifier, cargo identifier, and grasping generation. After the cargo is released, a release confirmation record is written only when the cargo is determined to have been released again based on the physical observation. After the release confirmation record is persisted, the cleanup result is reported upstream. When the entry point for the cleanup placement attempt is re-entered or the process is restarted, the record corresponding to the unique key is read: if the release confirmation record already exists, the action of releasing the goods is prohibited again and the cleanup result is reissued; If only the intent record exists but the release confirmation record does not, the goods will be determined as unknown, the release action will not be performed, and manual verification will be requested.
2. The method according to claim 1, characterized in that, The at least two independent physical observations are selected from gripper closing stroke, gripping current, gripping force, wrist load and end-effector visual observation, wherein at least one physical observation is independent of the gripper closing command; The at least two types of physical observations are taken from observations within the same capture period and whose timestamps do not exceed a preset freshness limit.
3. The method according to claim 2, characterized in that, The step of determining the physical state of the goods into one of three states—held, released, or unknown—based on the evidence of possession includes: When the clamping jaws do not reach the empty clamping limit during their closing stroke, and the clamping current or clamping force remains above the calibrated lower limit of the goods for a preset duration, the goods are determined to be held. When the gripper opens, the gripping force or wrist load drops to the release baseline, and visual confirmation of the placement area is obtained, it is determined that the gripper has been released. When the physical observations are missing, contradictory, or timed out, they are determined to be unknown.
4. The method according to claim 1, characterized in that, When the physical state is determined to be unknown, the placement action is not executed automatically, and the gripper holding function is further determined to be controllable. If the clamping function is controllable, maintain the current clamping and request manual review; If the clamping function is uncontrollable, the goods will be supported by a mechanical holding mechanism or manually taken over, without holding the goods according to the clamping instructions.
5. The method according to claim 1, characterized in that, The permission for the aforementioned cleanup actions is determined as follows: When either the emergency stop state or the upper-level mission safety cancellation state is in effect, it is prohibited to initiate a new cleanup movement or release action; The review includes checks before each action is initiated, such as navigation, return to base pose, external axis descent, placement, gripper release and retraction, as well as checks during the execution of a single long-duration action by canceling the token or periodic status callback. When the clearance for the cleanup action fails, the submission of subsequent actions is stopped, the ongoing motion is cancelled, the grip is maintained without releasing the jaws while there is still evidence of holding the goods, and the interruption status and the physical state at that time are recorded.
6. The method according to claim 1, characterized in that, The safe placement points are determined in the following order: First, verify that the originally planned placement point exists, is accessible, has no restrictions, and that its load-bearing surface matches the goods. If the conditions are not met, search for the nearest pre-marked safe point; if the conditions are still not met, search for the manual handover point. For each candidate placement point, verify the map version, occupancy status, geometric reachability, carrying capacity, and human accessibility. If any condition is unreliable, skip the candidate. When all candidates are unavailable, the physical state is unknown, or the preset maximum number of attempts is exhausted, autonomous placement stops, the established clamping or braking state is maintained, and manual intervention is reported. Unverified default placement points are not used.
7. The method according to claim 1, characterized in that, The cleanup placement attempts, which are executed no more than a preset maximum number of times, include: The next cleanup placement attempt will only be initiated if the previous cleanup placement attempt did not generate the release confirmation record and the fresh evidence of holding the goods is still determined to be holding the goods; after each failed attempt, the evidence of holding the goods will be reacquired and the permission determination for the cleanup action will be performed, and then the next attempt will be initiated after a preset delay. When the number of attempts reaches the preset limit or a single action times out, the request for manual intervention is recorded, and no new movement is initiated.
8. The method according to claim 5, characterized in that, When a hardware emergency stop occurs while the grippers are already open, the evidence of holding the goods before the emergency stop is not used to infer that the goods are still held. Instead, the release evidence is reread, and the goods are determined to be either released or unknown based on the result of the reread.
9. The method according to claim 1, characterized in that, The writing of the release confirmation record is triggered by the physical observation of the cargo's physical state being reassessed, rather than by the execution of the release command. When the upstream reporting of the post-processing result fails, the locally persisted release confirmation record is used as the criterion for whether the release action has been completed. The release action is not repeated, and only a re-report is sent.
10. The method according to any one of claims 1 to 9, characterized in that, The record corresponding to the unique key includes five states: intent, placement, release confirmation, interruption, and pending manual intervention. Each state is accompanied by an attempt number and a timestamp, and is written to local persistent storage in a transactional manner. The local persistent storage is implemented by an embedded database, an append-only log, or a reliable event storage.
11. A system for determining the holding status and safely placing goods after a robot task failure, applied to the method as described in any one of claims 1 to 10, characterized in that, The system includes: The failure information storage module is used to store the original failure information of the retrieval and placement task at the abnormal exit point of the retrieval and placement task. The original failure information and the subsequent cleanup results of the retrieval and placement task are stored independently. The cargo holding determination module is used to obtain cargo holding evidence that is independent of the software final state of the pick-up and put-down task. The cargo holding evidence includes at least two types of independent physical observations. Based on the cargo holding evidence, the physical state of the cargo is determined to be one of three states: held, released, or unknown. The post-purge execution module is used to perform a post-purge placement attempt no more than a preset limit when the physical state is determined to be holding goods and the post-purge action permission determination is passed. The post-purge placement attempt includes navigating to a safe placement point, performing a placement action, and releasing the goods. The post-purge action permission determination is checked before each physical action is initiated and during the execution of each physical action. The recording module is used to write an intent record with a unique key consisting of robot identifier, task identifier, cargo identifier and grasping generation before each irreversible action of releasing the cargo is performed; after the cargo is released, a release confirmation record is written only when the cargo is determined to have been released again according to the physical observation, and the cleanup result is reported upstream after the release confirmation record is persisted. The verification module is used to read the record corresponding to the unique key when the entry point of the cleanup placement attempt is re-entered or the process is restarted: if the release confirmation record already exists, the action of releasing the goods is prohibited again and the cleanup result is reissued; if only the intent record exists but the release confirmation record does not exist, the goods are determined to be unknown, the release action is not performed and manual verification is requested.
12. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1-10.
13. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-10.
