Robot control method and device, electronic equipment and storage medium
By generating candidate action sequences through a generative strategy model and performing cluster analysis, and combining task progress and geometric tolerance to determine risk values, hierarchical degradation control is achieved. This solves the problem of unplanned downtime of production line robots caused by ill-conditioned divergence of model output, and improves operational reliability and work continuity.
Patent Information
- Application Number
- CN202611688288.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
Unplanned downtime caused by pathological divergence in the output of the vision-language-motion model of production line robots affects the reliability of production line operation and the continuity of work.
By acquiring current observation data and task progress status data of production line robots, multiple candidate action sequences are generated using a generative strategy model. Key phase features are clustered and decomposed into inter-cluster and intra-cluster components. Risk values are judged by combining task progress and geometric tolerance, thereby achieving hierarchical and degraded control.
It effectively avoids unplanned downtime of production line robots caused by pathological divergence in model output, and improves operational reliability and continuity under multi-objective and highly dynamic working conditions.
Smart Images

Figure CN123169150A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of production line robot control technology, and in particular to a robot control method, robot control device, electronic device and computer-readable storage medium. Background Technology
[0002] In packaging production lines of industries such as consumer electronics, food, and daily chemicals, production line robots driven by vision-language-action (VLA) models need to pick up workpieces from upstream stations and place them into slots in packaging containers that move with the conveyor. The basic requirement for production line robots is "either do it right or stop safely": if the robot stops, the cost is a loss of cycle time, which can be absorbed by buffer zones and manual intervention; however, if the robot makes a mistake and continues to move forward, mis-packed, missing, or over-packed workpieces will flow downstream and be sealed and shipped. Once they enter the market, it will trigger a batch recall, with costs several orders of magnitude higher. Summary of the Invention
[0003] This application provides a robot control method, robot control device, electronic device, and computer-readable storage medium, which can avoid unplanned downtime of production line robots caused by pathological divergence of model output, and improve the operational reliability and work continuity of production line robots under multi-objective and highly dynamic working conditions.
[0004] Firstly, the robot control method provided in this application is applicable to production line robots, and the robot control method includes: Acquire the current observation data of the production line robot and the task progress status data of the operation tasks of the production line robot. The task progress status data is the status data representing the processed workpieces and the occupied container slots. The action head of the generative policy model is sampled using K sets of distinct random initial values to obtain K candidate action sequences under the current observation data; The operation phase of the production line robot is determined based on the current observation data. Key phase features of each candidate action sequence are extracted based on the operation phase. K key phase features are clustered to obtain a modal cluster set. The number of modal clusters in the modal cluster set constitutes the inter-cluster component of the divergence between the K candidate action sequences. The intra-cluster distribution of key phase features within each modal cluster constitutes the intra-cluster component of the divergence. The current allowable target number is determined based on the task progress status data, and the modality legality index is obtained based on the allowable target number, the centroid position of each modality cluster in the modality cluster set, and the number of modality clusters. The dimensionless margin ratio is obtained by taking the geometric tolerance of the intracluster scattering of the modal cluster with the most key phase features in the modal cluster set and the corresponding operational phase. The risk value is obtained by fusing the modal legality index with the dimensionless margin ratio; When the risk value exceeds the corresponding threshold in the multi-level threshold, the corresponding degradation level is determined, and the safety status word corresponding to the degradation level is output to the production line controller to drive the production line robot to perform graded degradation control according to the degradation level.
[0005] Secondly, the robot control device provided in this application is applicable to production line robots, and the robot control device includes: The observation and acquisition module is used to acquire the current observation data of the production line robot and the task progress status data of the operation tasks of the production line robot. The task progress status data is the status data representing the processed workpieces and the occupied container slots. The action sampling module is used to drive the action head of the generative policy model to sample using K sets of distinct random initial values, so as to obtain K candidate action sequences under the current observation data. The modality decomposition module is used to determine the operation phase of the production line robot based on the current observation data, extract the key phase features of each candidate action sequence based on the operation phase, and cluster the K key phase features to obtain a modality cluster set. The number of modality clusters in the modality cluster set constitutes the inter-cluster component of the divergence between the K candidate action sequences, and the intra-cluster distribution of the key phase features within each modality cluster constitutes the intra-cluster component of the divergence. The legality determination module is used to determine the current allowable target number based on the task progress status data, and to obtain the modality legality index based on the allowable target number, the centroid position of each modality in the modality set, and the number of modality clusters. The tolerance normalization module is used to obtain the dimensionless margin ratio based on the geometric tolerance of the intra-cluster scattering of the mode cluster with the most key phase features in the modal cluster set and the corresponding operating phase. The risk fusion module is used to obtain the risk value by fusing the modality legality index and the dimensionless margin ratio. The graded degradation module is used to determine the corresponding degradation level when the risk value is higher than the corresponding threshold in the multi-level threshold, and output the safety status word corresponding to the degradation level to the production line controller to drive the production line robot to perform graded degradation control according to the degradation level.
[0006] Optionally, in one embodiment, when sampling the action heads of a generative policy model driven by K sets of distinct random initial values to obtain K candidate action sequences under the current observation data, the action sampling module is used to: The visual language backbone of the generative policy model is used to perform a forward computation on the current observation data to obtain intermediate features; Using the action head, intermediate features are sampled in parallel with K sets of distinct random initial values to obtain K candidate action sequences; K is determined based on the current cycle time margin of the production line robot.
[0007] Optionally, in one embodiment, when extracting key phase features of each candidate action sequence based on the operation phase, the mode decomposition module is used to: When the operation phase is the grasping phase, for each candidate action sequence, the changes in the end position of the production line robot and the opening and closing state of the gripper are deduced along the candidate action sequence, and the end position at the moment when the gripper first closes in the candidate action sequence is determined as the key phase feature of the candidate action sequence. When the operation phase is the placement phase, for each candidate action sequence, the changes in the end position of the production line robot and the opening and closing state of the gripper are deduced along the candidate action sequence, and the end position at the moment when the gripper first opens in the candidate action sequence is determined as the key phase feature of the candidate action sequence.
[0008] Optionally, in one embodiment, when clustering K key phase features to obtain a set of mode clusters, the mode decomposition module is used to: Using a fixed multiple of the workpiece's circumscribed circle radius as the clustering neighborhood radius, K key phase features are clustered to obtain a modal cluster set. Among them, key phase features of candidate action sequences pointing to the same workpiece are classified into the same modal cluster.
[0009] Optionally, in one embodiment, when obtaining the modality legality index based on the number of permissible targets, the centroid position of each modality cluster in the modality cluster set, and the number of modality clusters, the legality determination module is used to: The proportion of samples in which the centroid of each modal cluster falls outside the allowable target neighborhood is determined. The modality legitimacy index is obtained by considering the degree to which the number of modal clusters exceeds the allowable target number and the sample proportion.
[0010] Optionally, in one embodiment, when obtaining the dimensionless margin ratio based on the geometric tolerance corresponding to the operating phase of the mode cluster containing the most key phase features in the modal cluster set, the tolerance normalization module is used to: When the operation phase is the gripping phase, the smaller of the two values is taken as the geometric tolerance, based on the first half of the difference between the gripper opening of the production line robot and the width of the workpiece, and the first half of the minimum distance between adjacent workpieces. When the operation phase is the placement phase, the smaller of the two values is taken as the geometric tolerance, based on the second half of the difference between the inner dimension of the container compartment and the dimension of the workpiece, and the thickness clearance of the compartment partition. Dividing the cluster dispersion by the geometric tolerance yields the dimensionless margin ratio.
[0011] Optionally, in one embodiment, when obtaining a risk value by fusing the modal validity index and the dimensionless margin ratio, the risk fusion module is used to: Based on the respective weighting coefficients of the modal legitimacy index and the dimensionless margin ratio, the weighted sum of the modal legitimacy index and the dimensionless margin ratio is calculated. Based on current observation data, determine the contact status of the production line robot, the relative height of the end effector to the worktable, and the reworkability status of the workpiece. The reworkability status is used to characterize whether the workpiece has crossed the reworkability range of the production line robot with the conveyor device. The correction factor is determined based on the contact status, relative height, and reworkability. The weighted sum is then adjusted based on the correction factor to obtain the risk value.
[0012] Thirdly, the electronic device provided in this application includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the robot control method provided in this application.
[0013] Fourthly, the computer-readable storage medium provided in this application stores a computer program, which, when executed by a processor, implements the robot control method provided in this application.
[0014] This application provides a robot control scheme that acquires current observation data and task progress status data of a production line robot; it uses K sets of distinct random initial values to drive the action heads of a generative strategy model for sampling, obtaining K candidate action sequences under the current observation data; it extracts key phase features of each candidate action sequence based on the operation phase and clusters them, decomposing the divergence between the K candidate action sequences into inter-cluster components and intra-cluster components, and uses the permissible target number derived from the task progress status data to perform a validity comparison of the inter-cluster components, thus ensuring the validity of the divergence. The risk value is determined by the external task status rather than the divergence degree itself. Legitimate multimodalities are correctly classified as low-risk, and ill-conditioned divergences are correctly classified as high-risk. The resulting risk value exhibits both low false negatives and low false positives in multi-objective scenarios. Intra-cluster components are normalized to dimensionless margin ratios using geometric tolerances, ensuring that the risk value readings are no longer affected by scene geometry such as workpiece size and grid clearance. The multi-level thresholds used for this determination can be reused across workpiece specifications. The risk value is compared with the multi-level thresholds to determine the degradation level, and a safety status word is output to the production line controller to drive the robot's graded degradation. Therefore, this application can avoid unplanned downtime of the production line robot caused by ill-conditioned divergences in the model output, improving the operational reliability and continuity of the production line robot under multi-objective, highly dynamic conditions. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram illustrating an application scenario of the robot control method provided in the embodiments of this application; Figure 2 This is a flowchart illustrating the robot control method provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of the robot control device provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the production line robot provided in the embodiments of this application. Detailed Implementation
[0017] To make the technical problems, technical solutions, and beneficial effects solved by this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0018] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0019] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0020] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0021] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0022] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0023] This application provides a robot control method, a robot control device, an electronic device, a computer-readable storage medium, and a computer program product. The robot control method can be executed by the robot control device or by an electronic device integrating the robot control device.
[0024] Please refer to Figure 1 This application also provides a robot control system, such as Figure 1 As shown, the robot control system includes a production line robot, a production line controller, and electronic equipment. A production line robot is a robot equipped with a robotic arm, end effector, and controller, which performs standard tasks cyclically on a production line; the production line may be an assembly line or packaging line, and the standard tasks may include grasping, handling, assembling, and placing. The production line controller is a programmable logic controller that schedules and manages the safety of the production line, for example, by receiving status words reported by the robot via industrial Ethernet or hardwired digital output. The electronic equipment may be an edge computing device, industrial computer, or server, independent of the production line controller, used to execute the robot control method provided in this application. Data connection between the electronic equipment and the production line controller can be established via industrial Ethernet, fieldbus, or wireless communication.
[0025] It should be noted that, Figure 1 The schematic diagram of the robot control system shown is merely an example. The robot control system and scenario described in this application are intended to more clearly illustrate the technical solutions of this application and do not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of robot control systems and the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.
[0026] Please refer to Figure 2 This is a flowchart illustrating a robot control method disclosed in an embodiment of this application, as shown below. Figure 2 As shown, the flow of this robot control method can be as follows: In S110, the current observation data of the production line robot and the task progress status data of the operation task of the production line robot are acquired. The task progress status data is the status data representing the processed workpieces and the occupied container slots.
[0027] Current observation data refers to the total sensor input collected during the current inference cycle, used to describe the operating scenario and state of the production line robot. For example, current observation data may include top-view images captured by a top-view camera positioned above the production line robot, wrist images captured by a wrist camera positioned at the end of the robotic arm or wrist, the robot's body state determined by the angles of each joint of the robotic arm, the gripper opening, and the gripper fingertip force or joint motor current, etc. The top-view image is used to observe the overall layout of the workpiece and the occupancy of container compartments, while the wrist image is used for close-up observation of the grasped target; together, they constitute the environmental image. The robot's body state can be read through the status interface of the robotic arm controller, and the gripper opening and fingertip force can be read through the status interface of the gripper controller.
[0028] Operational tasks refer to the pick-and-place tasks that the production line robot needs to complete during this production line operation, which are issued by task language instructions or the upper-level production scheduling system, such as "grabbing the materials coming from the upstream of the conveyor belt one by one and placing them into the empty spaces of the packaging container on the right".
[0029] Task progress status data refers to data that characterizes the progress status of the completed portion of an operation task. For example, task progress status data may include the number and location of workpieces processed in this shift or container, the location and number of occupied slots in the container, and the total number of workpieces to be loaded into the container. Task progress status data can be issued by the upper-level Manufacturing Execution System (MES), updated from the visual inspection results of container slots, or obtained through other feasible methods; no specific restrictions are imposed here.
[0030] In practical implementation, electronic devices can also acquire the current cycle time margin of the production line robot. Cycle time margin refers to the remaining time between the current moment and the end time of the current task in the cycle time of the robot's current workstation. The cycle time is determined by the production line's linear speed and the distance between workstations, and the cycle time margin can be calculated from the conveying status and work progress issued by the production line controller.
[0031] In S120, the action heads of the generative policy model are sampled using K sets of distinct random initial values to obtain K candidate action sequences under the current observation data.
[0032] Generative policy models refer to policy models in which neural networks learn a mapping of "observed actions," and the action generation process is driven by random initial values. For example, a generative policy model can be a vision-language-action model, which uses a vision-language backbone to jointly encode images and language instructions, and uses action heads to generate action sequences.
[0033] An action head refers to a lightweight quantum network in a generative policy model that generates action sequences from intermediate features. Specifically, a flow-matching action head generates actions using a flow-matching method: the action generation process is modeled as a solution to an ordinary differential equation; a vector field of the ordinary differential equation with a set of random initial values evolves to the termination time, yielding an action trajectory. A diffusion action head generates actions using a diffusion-denoised method, starting from random noise initial values and undergoing a finite-step denoising process to obtain the action sequence.
[0034] Random initial values refer to the initial input values in the action head generation process, such as the initial noise of the ordinary differential equation in the flow matching action head, or the initial Gaussian noise in the diffusion action head. By changing the random initial values for the same observation, multiple legitimate output samples of the generative policy model under the current observation can be obtained without additional training, loading multiple models, or keeping the dropout layer on.
[0035] The K candidate action sequences refer to the K action trajectories obtained by driving the action head with K sets of distinct random initial values. Each action sequence contains the end-effector pose increment or joint position increment of the production line robot at multiple future time steps. All K candidate action sequences are valid outputs of the generative policy model under the current observation, and the differences between them represent the sampling divergence of the policy under the current observation.
[0036] In this embodiment, the electronic device uses K sets of distinct random initial values to drive the action head of the generative policy model to solve in parallel, resulting in K candidate action sequences. Since the K samplings only repeat a lightweight action head portion, the electronic device can complete this in real time on a single consumer-grade graphics processor.
[0037] In S130, the operation phase of the production line robot is determined based on the current observation data, and the key phase features of each candidate action sequence are extracted based on the operation phase. The K key phase features are clustered to obtain a modal cluster set. The number of modal clusters in the modal cluster set constitutes the inter-cluster component of the divergence between the K candidate action sequences, and the intra-cluster distribution of the key phase features within each modal cluster constitutes the intra-cluster component of the divergence.
[0038] An operation phase refers to the current stage of the work process. For example, an operation phase may include a gripping phase and a placement phase. The gripping phase refers to the stage where the production line robot approaches and closes its gripper on the workpiece, while the placement phase refers to the stage where the production line robot carries the workpiece to the container compartment. The operation phase can be determined based on the gripper's opening and closing state and the height of the end effector relative to the worktable. For example, when the gripper is in an open state and the end effector is higher than a preset height, it is determined to be a gripping phase; when the gripper is in a closed state and the end effector is descending towards the compartment, it is determined to be a placement phase. Alternatively, it can be determined according to the stage markers in the action sequence, but this embodiment does not limit this.
[0039] Key phase features are the features extracted from a candidate action sequence that best characterize the operational target to which the candidate is directed. Divergence refers to the degree of difference between K candidate action sequences. Inter-cluster component refers to the component of divergence characterized by the number and distribution of modal clusters, reflecting how many equally correct choices the policy considers possible; intra-cluster component refers to the component of divergence characterized by the distribution of key phase features within each modal cluster, reflecting how uncertain the policy is about the execution pose of a specific target.
[0040] A modal cluster set refers to the set of clusters obtained by clustering K key phase features. Clustering can be implemented using density clustering or hierarchical clustering algorithms; the embodiments of this application do not limit the specific clustering algorithm.
[0041] In practice, for each candidate action sequence, the electronic device extrapolates the changes in the end position of the production line robot and the opening and closing state of the gripper along the candidate action sequence, and extracts key phase features from the candidate action sequence; then, the K key phase features are clustered by the neighborhood radius related to the workpiece size, so that candidates pointing to the same workpiece are grouped into the same cluster and candidates pointing to different workpieces are grouped into different clusters; the number of modal clusters C, the number of key phase features in each modal cluster (i.e., the sample proportion), and the centroid position of each modal cluster are obtained statistically.
[0042] Thus, the divergence between candidate action sequences is decomposed into two components: inter-cluster components and intra-cluster components, laying the foundation for subsequent interpretation of the two with opposite semantics. Compared with directly measuring the overall divergence by variance, the two decomposed components can be compared with the external task state and scene geometric tolerance, respectively, avoiding the contamination of risk criteria by legitimate multimodality.
[0043] In S140, the current permissible target number is determined based on the task progress status data, and the modality legality index is obtained based on the permissible target number, the centroid position of each modality cluster in the modality cluster set, and the number of modality clusters.
[0044] The permissible target number refers to the actual number of permissible targets existing at any given time based on the task progress. For example, in the grab phase, the permissible target number is the number of unprocessed workpieces to be moved; in the placement phase, the permissible target number is the number of target cells specified for this operation, usually 1. The permissible target number is derived from the task progress status data; for example, the more workpieces processed, the fewer remaining permissible targets; when there is only one empty space left in the container, the permissible target number for the placement phase is 1.
[0045] The permissible target neighborhood refers to the spatial neighborhood defined by the position of the permissible target and a radius related to the workpiece size. For example, in the grasping phase, the permissible target is the location of each unprocessed workpiece, and the neighborhood radius can be a fixed multiple of the radius of the workpiece's circumcircle; in the placement phase, the permissible target is the center of the specified target grid, and the neighborhood radius can be a fixed multiple of the grid's diagonal size.
[0046] The modality validity index is an indicator that characterizes the degree to which the current modality diverges from a valid state. Specifically, when the number of modal clusters does not exceed the allowable target number, and the centroid of each modal cluster falls within the neighborhood of the allowable target, the current multimodality is considered valid task multimodality, and the modality validity index is zero. When the number of modal clusters exceeds the allowable target number, or when there are modal clusters whose centroids fall outside the neighborhood of the allowable target (i.e., some candidates point to already processed workpieces or ungraspable locations), the modality validity index is significantly greater than zero. Therefore, the same high divergence reading is classified as low risk when the number of allowable targets is large, and as high risk when the number of allowable targets is one and there are clusters pointing to already processed workpieces, thus achieving both low false negatives and low false positives in multi-target scenarios.
[0047] In S150, the dimensionless margin ratio is obtained based on the geometric tolerance corresponding to the intracluster scattering of the modal cluster with the largest number of key phase features in the modal cluster set and the operating phase.
[0048] The largest modal cluster refers to the modal cluster containing the most key phase features, i.e., the modal cluster with the largest sample proportion, and its corresponding strategy is most inclined to execute the target. Intra-cluster dispersion refers to the degree of dispersion of each key phase feature within a modal cluster relative to the centroid of the cluster. For example, it can be taken as the square root of the largest eigenvalue of the covariance matrix of the key phase feature positions within the cluster.
[0049] Geometric tolerance refers to the physical upper limit of the allowable execution position deviation under the current operating phase, determined by the scene's geometric parameters.
[0050] The dimensionless margin ratio refers to the ratio of cluster dispersion to geometric tolerance. A margin ratio less than 1 indicates that the dispersion of the largest modal cluster is still within the physical tolerance, and even if there are divergences, it will not lead to collisions or missed grasps. A margin ratio greater than 1 indicates that the dispersion has exceeded the tolerance, and failure is physically unavoidable. Because the margin ratio is dimensionless, its judgment threshold can be directly reused across workpiece specifications, gripper specifications, and box types, without the need for readjustment during type change.
[0051] In S160, the risk value is obtained by fusing the modal legitimacy index with the dimensionless margin ratio.
[0052] The risk value is a numerical value that comprehensively characterizes the degree of risk of runtime failure in the current inference cycle. In addition to the modal validity index and the dimensionless margin ratio, other failure signals can be further combined during fusion, and the severity of the consequences caused by the workpiece situation can be corrected. The specific implementation method is described in detail in the following embodiments.
[0053] In S170, when the risk value is higher than the corresponding threshold in the multi-level threshold, the corresponding degradation level is determined, and the safety status word corresponding to the degradation level is output to the production line controller to drive the production line robot to perform hierarchical degradation control according to the degradation level.
[0054] Multi-level thresholds refer to multiple judgment thresholds arranged from low to high risk values.
[0055] Degradation levels refer to the operational levels classified from high to low based on safety margin. For example, degradation levels can include five levels from L0 to L4: L0 is normal operation, executing the candidate action sequence as usual; L1 is execution with confirmation, enhancing the verification of the execution results of the action sequence; L2 is conservative execution, such as slowing down the execution speed, reducing the range of motion, or retrying the grasping action; L3 is a conservative strategy fallback, abandoning the current high-risk action and switching to a pre-defined conservative action strategy, such as circling around in a fixed safe posture, increasing the approach height, and then slowly descending; L4 is a safe shutdown, where the robot stops moving and requests manual intervention from the production line controller.
[0056] A safety status word is a field that represents a degrade level in the form of digital bits. The production line controller can directly parse and execute the corresponding handling logic.
[0057] Graded degradation control refers to intervening in the operation of production line robots with different intensities according to the degradation level, such as requesting re-inspection, reducing cycle time, degrading operation, switching to conservative strategy, or stopping the machine.
[0058] In this embodiment, after the electronic device obtains the risk value through fusion, it first determines the degradation level corresponding to the risk value, and then outputs the safety status word corresponding to the degradation level to the production line controller. The production line controller parses the status word and drives the production line robot to perform hierarchical degradation control, thereby shifting the failure from post-event detection to pre-event handling.
[0059] As can be seen from the above, the robot control scheme provided in this application acquires the current observation data and task progress status data of the production line robot; it uses K sets of distinct random initial values to drive the action heads of the generative strategy model for sampling, obtaining K candidate action sequences under the current observation data; it extracts the key phase features of each candidate action sequence based on the operation phase and clusters them, decomposing the divergence between the K candidate action sequences into inter-cluster components and intra-cluster components, and using the permissible target number derived from the task progress status data to perform a validity comparison of the inter-cluster components, making the divergence reasonable. The legality is determined by the external task state rather than by the degree of divergence itself. Legitimate multimodalities are correctly classified as low-risk, and ill-conditioned divergences are correctly classified as high-risk. The risk value obtained through this fusion exhibits both low false negatives and low false positives in multi-objective scenarios. Intra-cluster components are normalized to dimensionless margin ratios using geometric tolerances, ensuring that the risk value readings no longer vary with scenario geometry such as workpiece size and grid clearance. The multi-level thresholds used for judgment can be reused across workpiece specifications. The risk value is compared with the multi-level thresholds to determine the degradation level, and a safety status word is output to the production line controller to drive the robot's graded degradation. Therefore, this application can avoid unplanned downtime of the production line robot caused by ill-conditioned divergences in the model output, improving the operational reliability and continuity of the production line robot under multi-objective, highly dynamic conditions.
[0060] Optionally, in one embodiment, the action heads of the generative policy model are sampled using K sets of distinct random initial values to obtain K candidate action sequences under the current observation data, including: The visual language backbone of the generative policy model is used to perform a forward computation on the current observation data to obtain intermediate features; Using the action head, intermediate features are sampled in parallel with K sets of distinct random initial values to obtain K candidate action sequences; K is determined based on the current cycle time margin of the production line robot.
[0061] The visual-language backbone refers to the backbone network in a generative policy model that jointly encodes images and language instructions, such as a combination of a Vision Transformer (ViT) and a language model, which accounts for the majority of the computational power of the generative policy model.
[0062] Intermediate features refer to the feature representations output by the visual language backbone that integrate observation scene information and task instruction information, such as fused feature vectors or feature map sequences.
[0063] In practice, the number of sampling groups K is determined based on the current cycle time margin of the production line robot. The more ample the current cycle time margin, the larger the value of K, for more reliable early warnings; conversely, the more strained the cycle time margin, the smaller the value of K, to ensure real-time performance. For example, K is set to 8 when the current cycle time margin is ample, and to 3 when the current cycle time margin is strained. Whether the cycle time margin is ample or strained can be determined by comparing the cycle time margin with a preset threshold. For instance, if the current cycle time margin is greater than or equal to the preset threshold, it is considered ample; if it is less than the preset threshold, it is considered strained.
[0064] In this embodiment, the electronic device performs only one forward computation on the current observation data through the visual language backbone of the generative policy model. The intermediate features output are shared by K action head samples. K sets of distinct random initial values drive the action heads to solve in parallel, resulting in K candidate action sequences. Since the K sampling only repeats a lightweight part of the action head, the computational overhead of the K sampling sets increases slowly with K, allowing it to run in real time on a consumer-grade graphics processor.
[0065] Furthermore, the existing calculation results of the intermediate denoising step in the flow matching action head can be reused for approximate sampling, further reducing sampling overhead.
[0066] Optionally, in one embodiment, extracting key phase features of each candidate action sequence based on the operation phase includes: When the operation phase is the grasping phase, for each candidate action sequence, the changes in the end position of the production line robot and the opening and closing state of the gripper are deduced along the candidate action sequence, and the end position at the moment when the gripper first closes in the candidate action sequence is determined as the key phase feature of the candidate action sequence. When the operation phase is the placement phase, for each candidate action sequence, the changes in the end position of the production line robot and the opening and closing state of the gripper are deduced along the candidate action sequence, and the end position at the moment when the gripper first opens in the candidate action sequence is determined as the key phase feature of the candidate action sequence.
[0067] Inference refers to the process of calculating the end effector position and gripper opening / closing state step by step along the future motion described by the candidate motion sequence. The candidate motion sequence describes the end effector pose increment or joint position increment for multiple future time steps. The electronic device sequentially accumulates the increments of each time step to the current end effector pose, thus obtaining the inferred end effector position for each time step; at the same time, it infers the changes in the gripper opening / closing state according to the values of the gripper control components in the sequence.
[0068] The first closing moment refers to the time step when the gripper changes from open to closed for the first time during the deduction of the candidate action sequence. The first opening moment refers to the time step when the gripper changes from closed to open for the first time during the deduction of the candidate action sequence.
[0069] In this embodiment of the application, when the operation phase is the grasping phase, the electronic device deduces the first closing time of the gripper and the deduced end position for each candidate action sequence, which serves as the key phase feature of each candidate action sequence; when the operation phase is the placement phase, the electronic device deduces the first opening time of the gripper and the deduced end position for each candidate action sequence, which serves as the key phase feature of each candidate action sequence.
[0070] Since the first closing (or first opening) time and position of different candidate action sequences under the same observation may be different, the K key phase features are therefore different. Their clustering results directly reflect the divergence of candidate action sequences in target selection (inter-cluster component) and uncertainty in execution pose (intra-cluster component).
[0071] Optionally, in one embodiment, clustering K key phase features to obtain a set of mode clusters includes: Using a fixed multiple of the workpiece's circumscribed circle radius as the clustering neighborhood radius, K key phase features are clustered to obtain a modal cluster set. Among them, key phase features of candidate action sequences pointing to the same workpiece are classified into the same modal cluster.
[0072] The circumcircle radius refers to the radius of the circumcircle of the workpiece's projection in the horizontal plane, which can be obtained from the workpiece's specifications (such as computer-aided design CAD drawings or material master data).
[0073] The clustering neighborhood radius refers to the distance threshold used in density clustering to determine whether two points are adjacent. It can be a fixed multiple of the circumscribed circle radius, such as 1.5 times or 2 times, so that candidate key phase features pointing to the same workpiece (with mutual deviation not exceeding the workpiece size order of magnitude) will necessarily be assigned to the same cluster, and candidate key phase features pointing to different workpieces (with mutual deviation at least equal to the workpiece spacing) will necessarily be assigned to different clusters.
[0074] In this embodiment, for K key phase features, the electronic device can use clustering methods such as density-based spatial clustering of applications with noise (DBSCAN) or hierarchical clustering, and cluster them with a fixed multiple of the radius of the workpiece's outer circle as the neighborhood radius; among them, isolated features that are not absorbed by any cluster can be classified into a noise cluster or form a separate cluster, and this embodiment does not limit this.
[0075] In other embodiments, complete candidate trajectories can also be clustered according to Dynamic Time Warping (DTW) distance, clustering can be performed in the latent variable space of the action head, or hard assignment can be made to candidates directly using the segmentation mask of the workpiece pointed to by each candidate action sequence. The embodiments of this application do not limit the specific clustering method.
[0076] Optionally, in one embodiment, a modality legality index is obtained based on the number of permissible targets, the centroid position of each modality cluster in the modality cluster set, and the number of modality clusters, including: The proportion of samples in which the centroid of each modal cluster falls outside the allowable target neighborhood is determined. The modality legitimacy index is obtained by considering the degree to which the number of modal clusters exceeds the allowable target number and the sample proportion.
[0077] The sample proportion refers to the proportion of key phase features contained in mode clusters that fall outside the allowable target neighborhood to the value of K. For example, if K=8, and the centroids of mode clusters containing 3 key phase features fall outside the allowable target neighborhood, then the sample proportion is 0.375.
[0078] In practical implementation, the modal legality index can be calculated using the following formula: ; Where C is the number of modal clusters, N_adm is the number of allowed targets, π_out is the proportion of samples whose modal clusters fall outside the neighborhood of allowed targets, and λ is the calibrated proportion coefficient, for example, 0.5. max(0,·) means that the first term is zero when the number of clusters does not exceed the number of allowed targets.
[0079] The above formula means that when C ≤ N_adm and the centroids of all modal clusters fall within the allowable target neighborhood, D_mode = 0, that is, the legal task multimodal is correctly judged as low risk; when C > N_adm, or there is a modal cluster pointing to the processed workpiece, D_mode is significantly greater than 0, that is, the ill-conditioned divergence is correctly judged as high risk.
[0080] It should be noted that the allowable target number can be derived from task progress status data, the number of remaining empty spaces in the container, the quantity to be filled in the container issued by the MES, or the upstream material supply count. This application embodiment does not limit this.
[0081] Optionally, in one embodiment, the dimensionless margin ratio is obtained based on the geometric tolerance between the intra-cluster scattering of the mode cluster containing the most key phase features and the operating phase, including: When the operation phase is the gripping phase, the smaller of the two values is taken as the geometric tolerance, based on the first half of the difference between the gripper opening of the production line robot and the width of the workpiece, and the first half of the minimum distance between adjacent workpieces. When the operation phase is the placement phase, the smaller of the two values is taken as the geometric tolerance, based on the second half of the difference between the inner dimension of the container compartment and the dimension of the workpiece, and the thickness clearance of the compartment partition. Dividing the cluster dispersion by the geometric tolerance yields the dimensionless margin ratio.
[0082] The jaw opening refers to the maximum width of the opening between the two fingers of the jaw, which can be obtained from the jaw specification data.
[0083] The width of a workpiece refers to its maximum external dimension in the gripping direction.
[0084] The minimum spacing between adjacent workpieces refers to the minimum distance between the outer edges of two adjacent workpieces in the current work scene, which can be obtained from the detection results of the top view image or the material layout data.
[0085] The inner dimension of a container compartment refers to the clear space between the inner walls of the compartment.
[0086] The thickness clearance of the partition plate refers to the net clearance between the partition plates for the workpiece to pass through.
[0087] In this embodiment, the first half-value describes the clearance on one side of the gripper, and the second half-value describes the net clearance on one side of the container compartment. When determining the geometric tolerance accordingly, in the gripping phase, the geometric tolerance τ is the smaller of the clearance on one side of the gripper and the half-distance between adjacent workpieces; that is, if the dispersion exceeds either upper limit, it may collide with adjacent workpieces or fail to grip. In the placement phase, the geometric tolerance τ is the smaller of the net clearance on one side of the compartment and the clearance of the partition thickness. Subsequently, the intra-cluster dispersion σ of the largest modal cluster is divided by the geometric tolerance τ to obtain the dimensionless margin ratio ρ = σ / τ.
[0088] Since ρ is dimensionless, its judgment threshold can be directly reused across workpiece specifications, gripper specifications, and box types. For example, the threshold set on workpiece specification A can be directly transferred to workpiece specification B, which has different dimensions, gripper openings, and grid clearances, without the need for resetting when changing the type.
[0089] It should be noted that in other embodiments, the geometric tolerance may be obtained from a single calibration measurement or by inferring from the quantiles of the distribution of historically successful capture locations, in addition to being calculated from the specification data. This application does not limit this.
[0090] Optionally, in one embodiment, the risk value is obtained by fusing the modal validity index and the dimensionless margin ratio, including: Based on the respective weighting coefficients of the modal legitimacy index and the dimensionless margin ratio, the weighted sum of the modal legitimacy index and the dimensionless margin ratio is calculated. Based on current observation data, determine the contact status of the production line robot, the relative height of the end effector to the worktable, and the reworkability status of the workpiece. The reworkability status is used to characterize whether the workpiece has crossed the reworkability range of the production line robot with the conveyor device. The correction factor is determined based on the contact status, relative height, and reworkability. The weighted sum is then adjusted based on the correction factor to obtain the risk value.
[0091] The weighting coefficients are calibration coefficients that act on the modal validity index and the dimensionless margin ratio respectively. They are used to balance the contribution of the two types of failure signals to the risk value and can be calibrated according to the operation scenario.
[0092] Contact status refers to whether contact has been established between the production line robot and the workpiece. This can be determined based on the fingertip force of the gripper or the joint motor current. For example, contact is considered established when the fingertip force exceeds the contact threshold or when the motor current shows a sudden change in contact characteristics. Relative height refers to the height of the end effector relative to the worktable. Reworkable status refers to whether the current position of the workpiece is still within the reworkable range of this station: once the workpiece has passed the reworkable range of this station (i.e., the irreversible point) with the conveyor, any failure cannot be recovered within this station.
[0093] The correction factor is a coefficient that increases with the degree of irreversibility of the workpiece's situation. For example, the correction factor can be calculated as follows: Calculate, where 1[·] is an indicator function, taking 1 when the condition is true and 0 when it is false; h is the height of the end relative to the worktable, and h_ref is the preset drop damage threshold height, that is, the height at which the workpiece will be damaged when it falls from this height; This is the calibration coefficient. Since w is calculated from physical quantities such as contact state, height from the platform, and position of crossing the line, rather than from empirical tables, it is transferable to different workpieces and tooling.
[0094] Multiplying the weighted sum by the correction factor yields the risk value. Where α and β are the weighting coefficients corresponding to the modal legitimacy index and the dimensionless margin ratio, respectively. The dimensionless margin ratio can also be presented in a threshold form, that is, when the dimensionless margin ratio is less than 1 (margin ratio threshold), this item does not contribute to the risk.
[0095] In other embodiments, the fusion of risk values can also introduce cross-block belief change as a failure signal orthogonal to the modal legitimacy index and the dimensionless margin ratio. The generative policy model employs an action block mechanism, where each inference outputs an action block covering multiple future control cycles, with overlapping time intervals between action blocks output in adjacent inference cycles. The cross-block belief change Δ is obtained by taking the average difference between the corresponding time step positions of the previous action block output in the previous inference cycle and the current action block output in the current inference cycle within the overlapping interval, divided by geometric tolerance normalization. The modal legitimacy index and the dimensionless margin ratio measure the uncertainty of the policy at this moment, while the cross-block belief change measures how much the policy's judgment of the near future has changed between two cycles. The latter reflects a conflict between the world state and expectations (e.g., workpiece slippage, container being bumped, occlusion occurring), and can detect failures that the former is insensitive to. Furthermore, the intermediate layer features can be specified by the visual encoder of the generative policy model, and the Mahalanobis distance or nearest neighbor distance relative to the training set distribution can be calculated. After being normalized to [0,1] by the offline quantile mapping, the feature distribution deviation is obtained, which reflects the degree of scene distribution drift and participates in the risk value fusion. Here, the Mahalanobis distance refers to the deviation distance measured by the covariance of the feature distribution.
[0096] Optionally, in one embodiment, determining the corresponding downgrade level when the risk value is higher than the corresponding threshold in the multi-level threshold includes: when the risk value rises above the corresponding threshold, determining an increase in the downgrade level according to the uplink threshold in the multi-level threshold; when the risk value falls below the corresponding threshold, determining a decrease in the downgrade level according to the downlink threshold obtained by subtracting the hysteresis bandwidth from the multi-level threshold.
[0097] Hysteresis bandwidth refers to the downlink hysteresis set to eliminate repeated oscillations of the degradation level around the threshold.
[0098] In other embodiments, graded and degraded execution can follow the principle of skipping levels by clock constraint. That is, before driving the robot to perform the recovery action corresponding to the degraded level, it is first checked whether the remaining clock speed margin of the current station is sufficient to complete the recovery action. If it is insufficient (for example, 300 milliseconds remaining while a certain level requires 1.5 seconds to retry), the recovery action corresponding to that level is skipped, and graded and degraded control is directly executed at a higher level.
[0099] In other embodiments, a watchdog bit can also be set in the safety status word: the production line robot flips the watchdog signal at a fixed period. When the production line controller detects that the watchdog has timed out (i.e. the signal has not flipped at the period), it will handle it at the highest level, such as immediately suspending the carton sealing machine and requesting manual intervention, thereby ensuring failure safety.
[0100] In other embodiments, at the individual workpiece level, electronic equipment can collect the processing results (e.g., pass or fail) of the production line inspection device on the same workpiece, records of manual intervention and rejection for that workpiece, and accumulate them in a time-series pair with the risk values of the entire process for that workpiece. Further, Platt Scaling or ordinal regression is used to fit the mapping relationship between the risk values and the actual failure probability, and the multi-level judgment thresholds are updated by inversely solving according to the target missed detection rate. In practical implementation, the updating of the judgment thresholds can be performed on a shift or batch-by-batch basis.
[0101] To facilitate better implementation of the above robot control methods, this application also provides a corresponding robot control device. The meanings of the terms used are the same as in the above robot control methods; for specific implementation details, please refer to the descriptions in the above method embodiments.
[0102] Please refer to Figure 3 The robot control device may include an observation acquisition module 210, an action sampling module 220, a modal decomposition module 230, a legality determination module 240, a tolerance normalization module 250, a risk fusion module 260, and a hierarchical degradation module 270. Detailed descriptions of each functional module are as follows: The observation and acquisition module 210 is used to acquire the current observation data of the production line robot and the task progress status data of the operation task of the production line robot. The task progress status data is the status data representing the processed workpieces and the occupied container slots. The action sampling module 220 is used to drive the action head of the generative policy model to sample using K sets of distinct random initial values, so as to obtain K candidate action sequences under the current observation data. The modal decomposition module 230 is used to determine the operation phase of the production line robot based on the current observation data, extract the key phase features of each candidate action sequence based on the operation phase, and cluster the K key phase features to obtain a modal cluster set. The number of modal clusters in the modal cluster set constitutes the inter-cluster component of the divergence between the K candidate action sequences, and the intra-cluster dispersion of the key phase features within each modal cluster constitutes the intra-cluster component of the divergence. The legality determination module 240 is used to determine the current allowable target number based on the task progress status data, and to obtain the modality legality index based on the allowable target number, the centroid position of each modality in the modality set and the number of modality clusters. The tolerance normalization module 250 is used to obtain the dimensionless margin ratio based on the geometric tolerance corresponding to the intra-cluster scattering and the operating phase of the mode cluster set that contains the most key phase features. Risk fusion module 260 is used to obtain risk values by fusing modality legality index and dimensionless margin ratio; The graded degradation module 270 is used to determine the corresponding degradation level when the risk value is higher than the corresponding threshold in the multi-level threshold, and output the safety status word corresponding to the degradation level to the production line controller to drive the production line robot to perform graded degradation control according to the degradation level.
[0103] Optionally, in one embodiment, when sampling the action heads of a generative policy model driven by K sets of distinct random initial values to obtain K candidate action sequences under the current observation data, the action sampling module 220 is used to: The visual language backbone of the generative policy model is used to perform a forward computation on the current observation data to obtain intermediate features; Using the action head, intermediate features are sampled in parallel with K sets of distinct random initial values to obtain K candidate action sequences; K is determined based on the current cycle time margin of the production line robot.
[0104] Optionally, in one embodiment, when extracting key phase features of each candidate action sequence based on the operation phase, the mode decomposition module 230 is used to: When the operation phase is the grasping phase, for each candidate action sequence, the changes in the end position of the production line robot and the opening and closing state of the gripper are deduced along the candidate action sequence, and the end position at the moment when the gripper first closes in the candidate action sequence is determined as the key phase feature of the candidate action sequence. When the operation phase is the placement phase, for each candidate action sequence, the changes in the end position of the production line robot and the opening and closing state of the gripper are deduced along the candidate action sequence, and the end position at the moment when the gripper first opens in the candidate action sequence is determined as the key phase feature of the candidate action sequence.
[0105] Optionally, in one embodiment, when clustering K key phase features to obtain a set of mode clusters, the mode decomposition module 230 is used to: Using a fixed multiple of the workpiece's circumscribed circle radius as the clustering neighborhood radius, K key phase features are clustered to obtain a modal cluster set. Among them, key phase features of candidate action sequences pointing to the same workpiece are classified into the same modal cluster.
[0106] Optionally, in one embodiment, when obtaining the modality legality index based on the number of permissible targets, the centroid position of each modality cluster in the modality cluster set, and the number of modality clusters, the legality determination module 240 is used to: The proportion of samples in which the centroid of each modal cluster falls outside the allowable target neighborhood is determined. The modality legitimacy index is obtained by considering the degree to which the number of modal clusters exceeds the allowable target number and the sample proportion.
[0107] Optionally, in one embodiment, when obtaining the dimensionless margin ratio based on the geometric tolerance corresponding to the intra-cluster scattering and operating phase of the modal cluster set containing the most key phase features, the tolerance normalization module 250 is used to: When the operation phase is the gripping phase, the smaller of the two values is taken as the geometric tolerance, based on the first half of the difference between the gripper opening of the production line robot and the width of the workpiece, and the first half of the minimum distance between adjacent workpieces. When the operation phase is the placement phase, the smaller of the two values is taken as the geometric tolerance, based on the second half of the difference between the inner dimension of the container compartment and the dimension of the workpiece, and the thickness clearance of the compartment partition. Dividing the cluster dispersion by the geometric tolerance yields the dimensionless margin ratio.
[0108] Optionally, in one embodiment, when obtaining a risk value by fusing the modal validity index and the dimensionless margin ratio, the risk fusion module 260 is used to: Based on the respective weighting coefficients of the modal legitimacy index and the dimensionless margin ratio, the weighted sum of the modal legitimacy index and the dimensionless margin ratio is calculated. Based on current observation data, determine the contact status of the production line robot, the relative height of the end effector to the worktable, and the reworkability status of the workpiece. The reworkability status is used to characterize whether the workpiece has crossed the reworkability range of the production line robot with the conveyor device. The correction factor is determined based on the contact status, relative height, and reworkability. The weighted sum is then adjusted based on the correction factor to obtain the risk value.
[0109] Specific limitations regarding the robot control device can be found in the limitations of the robot control method described above, and will not be repeated here. Each module in the aforementioned robot control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the production line robot in hardware form or independent of it, or stored in the memory of the production line robot in software form, so that the processor can call and execute the operations corresponding to each module.
[0110] In one embodiment, an electronic device is provided, the internal structure of which can be shown as follows: Figure 4 As shown. The electronic device includes a processor, memory, and network interface connected via a system bus; the electronic device can be a controller for a production line robot, an edge computing device attached to the production line robot, or an industrial control computer.
[0111] The processor in an electronic device is used to provide computing and control capabilities.
[0112] The network interface of an electronic device is used to communicate with external devices.
[0113] The electronic device's memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. When the computer program is executed by a processor, it implements the robot control method provided in this application, for example: Acquire the current observation data of the production line robot and the task progress status data of the operation tasks of the production line robot. The task progress status data is the status data representing the processed workpieces and the occupied container slots. The action head of the generative policy model is sampled using K sets of distinct random initial values to obtain K candidate action sequences under the current observation data; The operation phase of the production line robot is determined based on the current observation data. Key phase features of each candidate action sequence are extracted based on the operation phase. K key phase features are clustered to obtain a modal cluster set. The number of modal clusters in the modal cluster set constitutes the inter-cluster component of the divergence between the K candidate action sequences. The intra-cluster distribution of key phase features within each modal cluster constitutes the intra-cluster component of the divergence. The current allowable target number is determined based on the task progress status data, and the modality legality index is obtained based on the allowable target number, the centroid position of each modality cluster in the modality cluster set, and the number of modality clusters. The dimensionless margin ratio is obtained by taking the geometric tolerance of the intracluster scattering of the modal cluster with the most key phase features in the modal cluster set and the corresponding operational phase. The risk value is obtained by fusing the modal legality index with the dimensionless margin ratio; When the risk value exceeds the corresponding threshold in the multi-level threshold, the corresponding degradation level is determined, and the safety status word corresponding to the degradation level is output to the production line controller to drive the production line robot to perform graded degradation control according to the degradation level.
[0114] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the robot control method described above.
[0115] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0116] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0117] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A robot control method, characterized in that, include: Acquire the current observation data of the production line robot and the task progress status data of the operation task of the production line robot, wherein the task progress status data is the status data representing the processed workpieces and the occupied container slots; The action head of the generative policy model is sampled using K sets of distinct random initial values to obtain K candidate action sequences under the current observation data; The operation phase of the production line robot is determined based on the current observation data, and key phase features of each candidate action sequence are extracted based on the operation phase. K key phase features are clustered to obtain a modal cluster set. The number of modal clusters in the modal cluster set constitutes the inter-cluster component of the divergence degree between the K candidate action sequences, and the intra-cluster distribution of key phase features within each modal cluster constitutes the intra-cluster component of the divergence degree. The current allowable target number is determined based on the task progress status data, and the modality legality index is obtained based on the allowable target number, the centroid position of each modality cluster in the modality cluster set, and the number of modality clusters. The dimensionless margin ratio is obtained by comparing the geometric tolerance of the intracluster distribution of the modal cluster with the largest number of key phase features in the modal cluster set with the operating phase. The risk value is obtained by fusing the modality legality index with the dimensionless margin ratio; When the risk value is higher than the corresponding threshold in the multi-level threshold, the corresponding degradation level is determined, and the safety status word corresponding to the degradation level is output to the production line controller to drive the production line robot to perform graded degradation control according to the degradation level.
2. The robot control method according to claim 1, characterized in that, The action heads of the generative policy model, driven by K sets of distinct random initial values, are sampled to obtain K candidate action sequences under the current observation data, including: The visual language backbone of the generative policy model is used to perform a forward computation on the current observation data to obtain intermediate features; The intermediate features are sampled in parallel using the action head with the K sets of distinct random initial values to obtain the K candidate action sequences; K is determined based on the current cycle time margin of the production line robot.
3. The robot control method according to claim 1, characterized in that, The step of extracting key phase features of each candidate action sequence based on the operation phase includes: When the operation phase is the grasping phase, for each candidate action sequence, the changes in the end position of the production line robot and the opening and closing state of the gripper are deduced along the candidate action sequence, and the end position at the moment when the gripper first closes in the candidate action sequence is determined as the key phase feature of the candidate action sequence. When the operation phase is the placement phase, for each candidate action sequence, the changes in the end position of the production line robot and the opening and closing state of the gripper are deduced along the candidate action sequence, and the end position at the moment when the gripper first opens in the candidate action sequence is determined as the key phase feature of the candidate action sequence.
4. The robot control method according to claim 1, characterized in that, The process of clustering the K key phase features to obtain a set of mode clusters includes: Using a fixed multiple of the workpiece's circumscribed circle radius as the clustering neighborhood radius, K key phase features are clustered to obtain the modal cluster set, wherein key phase features of candidate action sequences pointing to the same workpiece are grouped into the same modal cluster.
5. The robot control method according to claim 1, characterized in that, The modality legitimacy index is obtained based on the allowable target number, the centroid position of each modality cluster in the modality cluster set, and the number of modality clusters, including: The proportion of samples in which the centroid of each modal cluster falls outside the allowable target neighborhood is determined. The modality legitimacy index is obtained based on the degree to which the number of modal clusters exceeds the allowable target number and the sample ratio.
6. The robot control method according to claim 1, characterized in that, The step of obtaining the dimensionless margin ratio based on the geometric tolerance corresponding to the operating phase and the intra-cluster scattering of the mode cluster with the largest number of key phase features in the modal cluster set includes: When the operation phase is the gripping phase, the smaller of the two values is taken as the geometric tolerance, based on the first half value of the difference between the gripper opening of the production line robot and the width of the workpiece, and the first half value of the minimum distance between adjacent workpieces. When the operation phase is the placement phase, the smaller of the two values is taken as the geometric tolerance, based on the second half of the difference between the inner dimension of the container compartment and the dimension of the workpiece, and the thickness clearance of the compartment partition. Divide the cluster dispersion by the geometric tolerance to obtain the dimensionless margin ratio.
7. The robot control method according to claim 1, characterized in that, The step of obtaining the risk value by fusing the modal legitimacy index and the dimensionless margin ratio includes: Based on the weighting coefficients corresponding to the modality legitimacy index and the dimensionless margin ratio, the weighted sum of the modality legitimacy index and the dimensionless margin ratio is calculated. The contact state of the production line robot, the relative height of the end effector to the worktable, and the reworkability state of the workpiece are determined based on the current observation data. The reworkability state is used to characterize whether the workpiece has crossed the reworkability range of the production line robot with the conveying device. The correction coefficient is determined based on the contact state, the relative height, and the reworkability state, and the weighted sum is corrected based on the correction coefficient to obtain the risk value.
8. A robot control device, characterized in that, include: The observation and acquisition module is used to acquire the current observation data of the production line robot and the task progress status data of the operation task of the production line robot. The task progress status data is the status data representing the processed workpieces and the occupied container slots. The action sampling module is used to drive the action head of the generative policy model to sample using K sets of distinct random initial values, so as to obtain K candidate action sequences under the current observation data. The modality decomposition module is used to determine the operation phase of the production line robot based on the current observation data, extract key phase features of each candidate action sequence based on the operation phase, and cluster the K key phase features to obtain a modality cluster set. The number of modality clusters in the modality cluster set constitutes the inter-cluster component of the divergence degree between the K candidate action sequences, and the intra-cluster distribution of key phase features within each modality cluster constitutes the intra-cluster component of the divergence degree. The legality determination module is used to determine the current allowable target number based on the task progress status data, and to obtain the modality legality index based on the allowable target number, the centroid position of each modality cluster in the modality cluster set, and the number of modality clusters. The tolerance normalization module is used to obtain the dimensionless margin ratio based on the geometric tolerance corresponding to the operating phase and the intracluster dispersion of the mode cluster with the largest number of key phase features in the mode cluster set. The risk fusion module is used to obtain a risk value by fusing the modality legality index with the dimensionless margin ratio; The graded degradation module is used to determine the corresponding degradation level when the risk value is higher than the corresponding threshold in the multi-level threshold, and output the safety status word corresponding to the degradation level to the production line controller to drive the production line robot to perform graded degradation control according to the degradation level.
9. An electronic device, characterized in that, It includes 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 robot control method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the robot control method according to any one of claims 1 to 7.
