Robot task generation method, system and related device

By acquiring scene object state information through the visual sensors or natural language commands of the embodied intelligent robot, and using a pre-built skill library to generate candidate task chains that meet the preconditions and postconditions, and calculating difficulty scores and generalizing to generate task variants, the problem of low efficiency in generating training tasks for embodied intelligent robots is solved, and efficient and systematic task generation and quality improvement of training data are achieved.

CN123129150APending Publication Date: 2026-11-20GUANGLUN INTELLIGENT (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611323523.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, the generation of training tasks for embodied intelligent robots is inefficient and lacks systematic coverage, resulting in low robot task execution efficiency, poor adaptability, and a lack of systematic lifecycle state management and task data traceability.

Method used

By acquiring structured scene object state information through the robot's visual sensors or natural language commands, candidate task chains that meet the pre- and post-conditions are generated using a pre-built skill library. Difficulty scores are calculated and task variants are generated through generalization to ensure the temporal coherence and physical executability of the task chains.

Benefits of technology

It achieves efficient and systematic task generation, ensures the logical correctness and physical feasibility of task chains, improves the coverage and quality of training data, and enhances the efficiency and adaptability of training tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123129150A_ABST
    Figure CN123129150A_ABST
Patent Text Reader

Abstract

The application relates to the field of embodied intelligence, and particularly provides a robot task generation method, a system and related equipment, aiming to solve the problems of low robot task execution efficiency and poor adaptability. To this end, the robot task generation method comprises the following steps: acquiring scene object state information; generating a to-be-processed task set according to the scene object state information and a pre-constructed skill library; the skills in the skill library comprise preconditions and postconditions; the to-be-processed task set comprises multiple candidate task chains and meets the time sequence consistency constraint of the preconditions and the postconditions of the skills; calculating difficulty scores of the multiple candidate task chains, and generating task variants in a generalization manner; generating a training task set of the robot based on the difficulty scores and the task variants; and the training task set is used for loading to a task execution mechanism of the robot, so as to control the robot to execute tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of embodied intelligence technology, specifically providing a robot task generation method, system, and related equipment. Background Technology

[0002] The training of embodied intelligent robots relies on a large amount of high-quality, diverse task teaching data. Current data production processes suffer from two core problems: 1. At the task source level: tasks are entirely defined manually, resulting in low efficiency and unsystematic coverage. Operators need to conceive tasks, describe action sequences and success conditions one by one, failing to guarantee systematic coverage of all objects and robot skills in the scenario, leading to significant skill blind spots and scenario biases in the dataset; 2. At the task management level: a complete management system from task definition to data standardization is lacking, task description formats are inconsistent, executability verification is missing, and lifecycle states are chaotic, failing to support industrial-grade data production.

[0003] The limitations of existing related technologies include: 1. Task generation based on large language models (such as SayCan and Codeas Policies): The generated results are highly probabilistic, and the legality of the preconditions cannot be guaranteed. The generated task sequences may be physically unexecutable, and it is difficult to systematically cover the skill space; 2. Manual task definition + rule filtering: Low efficiency, unsystematic coverage, and lack of quantitative evaluation of the functional value of tasks; 3. Existing task management systems: Lack of pre-detection of the feasibility of actions for different robot hand shapes, lack of systematic life cycle state management, and insufficient traceability of task data.

[0004] Based on the above limitations, the defects of existing technologies include: 1. Disconnect between task generation and scenario / skill: Existing methods cannot automatically derive legal tasks using the structured information of the scenario (object category, spatial relationship, object state) and the formal definition of the skill library (precondition / postcondition), resulting in inconsistent quality of generated tasks; 2. Uneven skill coverage: When manually defining tasks, operators tend to repeat familiar task types, resulting in a serious under-collection of some skills (such as fine operation and two-handed collaboration), affecting the model's generalization ability; 3. Lack of constraints on multi-step task combination: There is a lack of an automatic multi-step task combination mechanism based on precondition / postcondition chain matching, making it impossible to systematically generate meaningful long-chain tasks; 4. Separation of task verification and management: Task generation, feasibility verification, value assessment, and lifecycle management are independent of each other, lacking an end-to-end unified framework.

[0005] Accordingly, there is a need in the field for a new embodied intelligent robot task generation scheme to solve the above problems. Summary of the Invention

[0006] In order to overcome the above-mentioned defects, this application is made to solve or at least partially solve the following technical problem: the training task of embodied intelligent robots is inefficient and lacks systematic coverage, resulting in low robot task execution efficiency and poor adaptability.

[0007] In a first aspect, this application provides a robot task generation method, comprising: acquiring scene object state information, wherein the scene object state information is obtained through a robot's visual sensor or through processing natural language commands input by a user; generating a set of tasks to be processed based on the scene object state information and a pre-built skill library; wherein the skills in the skill library include preconditions and postconditions; the set of tasks to be processed includes multiple candidate task chains and satisfies the temporal coherence constraints of the preconditions and postconditions of the skills; calculating the difficulty scores of the multiple candidate task chains and generalizing to generate task variants; and generating a training task set for the robot based on the difficulty scores and the task variants, wherein the training task set is loaded into the robot's task execution mechanism to control the robot to perform tasks.

[0008] In some exemplary embodiments of this application, based on the foregoing scheme, obtaining scene object state information includes: performing target detection and state recognition processing on point cloud data or image data collected by the visual sensor to obtain object category, initial state attribute and spatial reachability information in the point cloud data or image data, and converting the extracted information into structured scene object state information; or performing semantic parsing on the natural language instruction to extract object category, initial state attribute and spatial reachability information in the natural language instruction, and converting the extracted information into structured scene object state information.

[0009] In some exemplary embodiments of this application, based on the foregoing scheme, a set of tasks to be processed is generated according to the scene object state information and a pre-built skill library, including: constructing a skill state transition graph according to the scene object state information and the pre-built skill library, the skill state transition graph including a graph structure with object states as nodes and skill-object pairing as directed edges; performing path search and filtering processing on the skill state transition graph to generate multiple candidate task chains that satisfy the temporal coherence constraints of the preconditions and postconditions; when the skill coverage rate or object category coverage rate of the multiple candidate task chains is lower than a preset threshold, performing supplementary generation to obtain the set of tasks to be processed; the skill coverage rate is the proportion of matched skills in the multiple candidate task chains to the total number of skills in the skill library; the object category coverage rate is the proportion of matched object categories in the multiple candidate task chains to the total number of object categories in the scene object state information.

[0010] In some exemplary embodiments of this application, the difficulty score of multiple candidate task chains is calculated based on the foregoing scheme, including: calculating the difficulty score of the multiple candidate task chains based on the difficulty level and chain length effect weight in the skill library; the chain length effect weight is determined based on the number of skills in the multiple candidate task chains and the dependency relationship between skills.

[0011] In some exemplary embodiments of this application, based on the foregoing scheme, generalizing to generate task variants includes: deriving a generalization axis to generate task variants, wherein the generalization axis includes an object category axis, a placement position axis, and a skill parameter axis; the object category axis is used to replace the target object in the task with other instances of the same category, the placement position axis is used to sample different initial positions within the reachable area, and the skill parameter axis is used to define a range of values ​​for continuous skill parameters.

[0012] In some exemplary embodiments of this application, generating a training task set for a robot based on the foregoing scheme includes: classifying multiple candidate task chains based on the difficulty scores, and combining the classified candidate task chains with the task variants to generate the training task set.

[0013] In some exemplary embodiments of this application, based on the foregoing scheme, after generating the training task set, the method further includes: verifying whether the task variant satisfies the temporal coherence constraint between the precondition and the postcondition; and verifying whether the task variant is within the capability range of the robot's task execution mechanism.

[0014] In a second aspect, this application provides a robot task generation system, comprising: a scene information acquisition device for acquiring scene object state information, the scene object state information being obtained through a robot's visual sensor or through natural language commands input by a user; a task generator for generating a set of tasks to be processed based on the scene object state information and a pre-built skill library; the skills in the skill library include preconditions and postconditions; the set of tasks to be processed includes multiple candidate task chains and satisfies the temporal coherence constraints of the preconditions and postconditions of the skills; calculating the difficulty scores of the multiple candidate task chains and generalizing to generate task variants; generating a training task set for the robot based on the difficulty scores and the task variants; and a task execution mechanism for executing tasks based on the loaded training task set.

[0015] In a third aspect, an electronic device is provided, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program, which, when executed by the at least one processor, implements the method described in any of the above-described technical solutions for robot task generation.

[0016] In a fourth aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored therein, the program codes being adapted to be loaded and run by a processor to perform the method described in any of the above-described technical solutions for robot task generation.

[0017] The above-described technical solutions of this application have at least one or more of the following beneficial effects: In implementing the robot task generation method, system, and related equipment technical solutions provided in this application, structured scene object state information is obtained through visual sensors or natural language instructions, and formally matched with a skill library containing preconditions and postconditions. The generated candidate task chain strictly satisfies the temporal continuity constraint, ensuring that the postconditions of the previous skill and the preconditions of the next skill are seamlessly connected in terms of object state, thus avoiding invalid task chains that are logically correct but physically infeasible from the source.

[0018] Secondly, by using a nonlinear calculation model that combines basic skill difficulty with chain length effect weights, the task complexity is upgraded from step accumulation to a quantitative indicator of dependency perception. The difficulty score not only reflects the number of skills, but also the dependencies between skills and the risk of state transitions, providing a precise grading basis for robot training.

[0019] Then, through a three-dimensional generalization mechanism of object category axis + placement position axis + skill parameter axis, the single task chain is expanded into a training sample set covering multiple dimensions of objects, space and parameters in a low-cost and high-fidelity manner. The generalization process is strictly based on physical constraints (such as reachable area, same category, parameter safety range) to ensure that all variants meet the temporal coherence constraints, avoiding the problem of overgeneralization leading to invalid variants in traditional generalization methods, and achieving exponential expansion of training data at extremely low cost.

[0020] Finally, through standardized encapsulation of difficulty grading and variant combination, discrete task data is transformed into a unified format containing difficulty level labels, task chain sequences, variant metadata, and verification status. This format can be directly loaded into the robot's task execution mechanism without secondary conversion or manual annotation. At the same time, the grading and combination mechanism makes the difficulty distribution of the training task set quantifiable and controllable, ensuring deep integration of basic tasks and generalized variants and improving training efficiency. Attached Figure Description

[0021] The disclosure of this application will become more readily understood with reference to the accompanying drawings. It will be readily understood by those skilled in the art that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this application. Wherein: Figure 1 This is a schematic diagram of the main steps of the robot task generation method in the embodiments of this application; Figure 2 This is a schematic diagram illustrating the complete implementation process of the robot task generation method in the embodiments of this application. Detailed Implementation

[0022] Some embodiments of this application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of this application and are not intended to limit the scope of protection of this application.

[0023] In the description of this application, "module" and "processor" can include hardware, software, or a combination of both. A module can include hardware circuitry, various suitable sensors, communication ports, memory, and may also include software components, such as program code, or a combination of software and hardware. A processor can be a central processing unit, microprocessor, image processor, digital signal processor, or any other suitable processor. The processor has data and / or signal processing capabilities. The processor can be implemented in software, in hardware, or a combination of both. Computer-readable storage media includes any suitable medium capable of storing program code, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The terms "at least one A or B" or "at least one of A and B" have a similar meaning to "A and / or B" and can include only A, only B, or A and B. The singular terms "a" or "this" can also include plural forms.

[0024] Here we will first explain some of the terms used in this application.

[0025] Scene: A structured representation of a simulated or real environment, including a list of objects, object states, a spatial relationship diagram, and scene category labels.

[0026] Skill: An atomic or semi-atomic action unit that the robot can perform. Each Skill defines a Precondition, a Postcondition, Applicable_Object_Categories, and Required_Hand_Capabilities.

[0027] The compatibility matrix (Scene-Skill) is a two-dimensional matrix with objects in the scene as rows and skills in the skill library as columns. The matrix elements indicate whether the (object, skill) pairing is legal and executable.

[0028] Skill chain: A directed sequence of multiple skills arranged according to their Precondition / Postcondition dependencies, representing a multi-step task.

[0029] Generalization axis: A discrete dimension that allows tasks to vary, used to automatically generate task variations, such as object category, placement location, tool type, etc.

[0030] Hand Capability Constraint Library: A structured knowledge base describing the actions that can be performed, are prohibited, and are conditional for different hand shapes. It is in JSON format, with the key being the hand type (Hand_Type).

[0031] Coverage: The proportion of scene object categories and skills in the skill library that the generated task set covers, used to measure the diversity of the task set.

[0032] Dynamic Time Warping (DTW): Used to calculate the temporal similarity between different teaching trajectories of the same task. Similarity scores below 0.6 are marked as anomalies.

[0033] Trial collection: A small-batch verification collection before formal large-scale collection, with a default of 10 records, used to evaluate the feasibility of the task and the quality of the data.

[0034] See appendix Figure 1 , Figure 1 This is a schematic flowchart illustrating the main steps of a robot task generation method according to an embodiment of this application. Figure 1 As shown, the robot task generation method in this application embodiment mainly includes the following steps S102 to S108.

[0035] S102, Obtain scene object status information. The scene object status information is obtained through the robot's vision sensor or through natural language commands input by the user.

[0036] In some embodiments, the scene object state information in this application refers to the complete set of physical and semantic attributes of the target object required by the robot to perform a task. It is a direct input for task planning and skill scheduling. For example, when the task is "put the red cup on the table into the dishwasher", the scene object state information not only includes the category identifier of the red cup, but also its precise three-dimensional pose (x, y, z coordinates and rotation quaternion), current state (such as upright, cup mouth facing up), spatial accessibility (such as being located in the working space of the robotic arm, with no obstruction in front), and physical attributes (such as fragile, weight 0.3kg). If the state attribute of cup mouth facing up is missing, the robot may mistakenly grab the cup body, causing the liquid to spill; if the accessibility information of no obstruction in front is missing, the robotic arm may collide with the edge of the table during movement.

[0037] The visual sensor in this embodiment is a hardware sensing unit for the robot to acquire raw data of the physical world. It is responsible for converting light signals or distance signals into digital signals to provide a data foundation for subsequent state recognition. It typically includes: binocular stereo vision camera, time-of-flight (ToF) depth camera, 3D structured light camera, red-green-blue (RGB) camera, red-green-blue-depth (RGB-D) camera, etc. For example, in the task of "grabbing a transparent glass", if only an ordinary RGB camera is used, the target detection algorithm is very likely to miss or falsely detect the target because the glass and the background are similar in color and have no texture. However, after using an RGB-D camera, the depth information can clearly distinguish the geometric boundary between the glass and the background. Even if the colors are similar, its three-dimensional contour and pose can be accurately extracted, thereby generating reliable information.

[0038] The natural language instruction processing in this embodiment is a semantic parsing process that transforms unstructured human language into structured state information. This is a key technical step for robots to understand human intentions. For example, when a user inputs "put that freshly washed apple in the refrigerator," the natural language instruction processing needs to perform the following parsing: First, semantic analysis identifies "freshly washed" as a state attribute (e.g., corresponding to "wet surface" and "no dirt"), excluding unwashed apples; second, through referential resolution, it determines that "that" refers to a specific apple instance currently detected by the visual sensor, rather than all apples; finally, "put in the refrigerator" is transformed into constraints on the "placement location axis" (e.g., "refrigerator compartment" and "temperature zone of 4°C"). If only the keywords "apple" and "refrigerator" are extracted, the robot may mistakenly grab an unwashed apple or place it in the freezer compartment, leading to task failure.

[0039] In some embodiments, the obtained scene object state information is represented in a structured manner, including the following fields: scene unique identifier (Scene_Id); scene category (Scene_Category), such as kitchen, office, warehouse; object list (Objects), where each object contains object identifier (Object_Id), object category (Object_Category), object instance (Object_Instance), initial state (Initial_State) (key-value pairs, such as {located on desktop: yes, on state: no}), spatial relationships (Spatial_Relations) (a list of spatial relationships with other objects, such as {spatial relationship: above, reference point: table}); scene-level operational possibility description (Affordances), such as {surface height: 0.8 meters, reachable area: [x_min, x_max, y_min, y_max]}.

[0040] S104. Generate a set of tasks to be processed based on the scene object state information and the pre-built skill library. The skills in the skill library include preconditions and postconditions. The set of tasks to be processed includes multiple candidate task chains and satisfies the temporal continuity constraints of the preconditions and postconditions of the skills.

[0041] In some embodiments, the pre-built skill library in this application includes a unique skill identifier (Skill_Id), a skill name (Skill_Name) such as grasp, place, open, pour, wipe, a skill category (Skill_Category), a list of execution preconditions, each containing a subject / object (Object_Role), a required object state key-value pair (Required_State), a spatial constraint (Spatial_Requirement, such as reachable), a list of post-execution state changes (i.e., postconditions), each containing an Object_Role, a state change key-value pair (State_Delta, such as {held state: yes, on tabletop: no}), a list of applicable object categories (Applicable_Object_Categories) such as cup, water bottle, box, a list of required hand capabilities (Required_Hand_Capabilities) referencing the Action_Category in the hand capability constraint library, and a skill difficulty level (Difficulty_Level) including 1-5 for task difficulty stratification.

[0042] In this embodiment, the preconditions and postconditions are formal constraints on each skill in the skill library. The preconditions are the "admission rules" for skill execution, and the postconditions are the "acceptance criteria" for skill completion. Together, they form a logical closed loop for skill invocation. For example, for the task of "putting a cup in a dishwasher," the preconditions for the "placement" skill include "the robotic arm's end effector holds the cup, the dishwasher door is open, and the target location is unobstructed"; the postconditions include "the robotic arm's end effector is empty, the cup is located in the designated position inside the dishwasher, and the door remains open." If the robot detects that "the dishwasher door is not open," the preconditions are not met, and the skill cannot be scheduled. If, after execution, "the cup does not reach the designated position," the postconditions are not met, and the system will determine that the skill execution has failed and trigger a retry or error message.

[0043] The temporal continuity constraint in this application embodiment is a logical rule that multiple candidate task chains in the task set to be processed must satisfy. This ensures that the task chain can be executed continuously and without conflict in the physical world. It requires that the postcondition of the preceding skill strictly match the precondition of the following skill in terms of state, forming a seamless state transition chain. For example, in the task chain "grab a cup → place it on the table," the postcondition of the "grab" skill is "the robotic arm's end-effector holds a cup," while the precondition of the "place" skill is "the robotic arm's end-effector holds a cup, and the table is reachable." Only when the "grab" skill is successfully executed and its postcondition is satisfied is the precondition of the "place" skill satisfied, and the task chain can continue. If the "grab" fails, resulting in the robotic arm's end-effector being empty, the precondition of the "place" skill is not satisfied, and the task chain is interrupted at this point, preventing the robot from executing invalid or dangerous actions.

[0044] The candidate task chains in this application embodiment satisfy the temporal coherence constraint and represent a feasible path for the robot to complete a specific goal. For example, for the goal of "moving the red square from area A to area B", two candidate task chains may be generated: chain 1 is "grab the red square → move to area B → place"; chain 2 is "push the red square to the edge of area B → grab → place". Both chains satisfy the temporal coherence constraint, but chain 1 is suitable for the square being located in an open area, while chain 2 is suitable for the scenario where the square is partially occluded by other objects. This multi-chain generation mechanism ensures that the task set can cover the execution requirements under different scenarios.

[0045] The task set to be processed in this embodiment is a collection of multiple candidate task chains. It should be noted that the task set to be processed in this embodiment is not the final execution instruction delivered to the robot, but a task set that has been preliminarily screened and meets basic logical constraints. It needs to be further transformed into a training task set through coverage verification and difficulty evaluation.

[0046] More specifically, this embodiment of the application iterates through each object in the scene and each skill in the skill library, checking the following three compatibility conditions: object category matching: the object category belongs to the set of object categories applicable to the skill; precondition satisfaction: all necessary states in the skill's preconditions are satisfied in the object's initial state; spatial reachability: the object's position is within the robot's reachable area (determined based on reachable area parameters). If all three conditions are met, the matrix element is marked as 1 (valid); otherwise, it is marked as 0 (invalid). Then, for objects marked as 1 in the matrix, skill pairing is performed, and the hand capability constraint library is further checked to filter out pairings that cannot be executed by the current hand shape, generating the final compatibility matrix.

[0047] In some embodiments, for each legal object in the compatibility matrix, skill pairing is performed to directly generate a single-step task. Then, based on the chain matching of preconditions and postconditions, a multi-step task chain is automatically combined to obtain a set of tasks to be processed. It can be seen that, based on the automatic generation of the compatibility matrix in the embodiments of this application, hundreds of legal task candidates can be generated in a single scenario within seconds, which is more than 100 times more efficient than manual definition, and greatly improves the task generation efficiency.

[0048] Specifically, generating a single-step task includes: the task name is composed of the skill name and the object category (e.g., grab a cup, open a bottle); the action sequence is a structured list containing the action type, target object, preconditions and postconditions; the success criteria are automatically derived from the skill postconditions, and the state changes are transformed into quantifiable acceptance criteria.

[0049] In addition, the generation of multi-step task chains in this embodiment includes: using object states as nodes, and object-skill pairings as directed edges, with the starting point of the edge being the state corresponding to the skill's precondition and the ending point being the new state after executing the postcondition; performing a depth-first search (DFS) on the state transition graph to generate all legal paths with a length of 2 to the maximum task chain length (default 5), with each path corresponding to a multi-step task; checking whether the preconditions and postconditions of two adjacent skills in the path are completely matched (state key-value pairs are consistent), pruning mismatched paths, and performing legality filtering; calculating semantic fingerprints (hash values ​​of action type sequences) for the generated multi-step tasks, and removing semantically repetitive task variants.

[0050] S106, calculate the difficulty scores of multiple candidate task chains and generalize to generate task variants.

[0051] In some embodiments, the difficulty score in this application is a quantitative evaluation index of the execution complexity of candidate task chains. For example, in a desktop organization scenario, the basic difficulty of grabbing a single cube is 1, and the basic difficulty of putting the cube into a drawer is 2. If the task chain is: grab a cube → put it into a drawer, its difficulty score is not simply 1+2=3, but needs to take into account the chain length effect weight. For example, when the task chain length exceeds 3 steps, the weight coefficient increases from 1.0 to 1.5, and the difficulty score is (1+2)×1.5=4.5. If the task chain also includes the dependency of avoiding obstacles, the weight coefficient is further adjusted to 2.0, and the difficulty score becomes (1+2)×2.0=6.

[0052] In this embodiment, the generalization generation of task variants refers to generating new task samples with diversity but consistent logic based on the generated candidate task chains by deriving generalization axes. For example, for the task chain of grabbing a red square → placing it in a drawer, three generalization axes are derived to generate variants: 1. Object category axis: Replacing the red square with instances of the same category of rigidly graspable objects such as blue cylinders and yellow spheres, generating new task chains such as grabbing a blue cylinder → placing it in a drawer; 2. Placement position axis: Sampling different initial positions within the reachable area inside the drawer, generating variants such as grabbing a red square → placing it in the upper left corner of the drawer, grabbing a red square → placing it in the lower right corner of the drawer; 3. Skill parameter axis: Defining the value range of continuous parameters such as the gripper opening angle and gripping speed for the grabbing skill, generating variants such as slow grabbing a red square → placing it in a drawer, fast grabbing a red square → placing it in a drawer; All variants are checked for temporal coherence constraints to ensure that the post-conditions of grabbing the skill always match the pre-conditions of placing the skill, avoiding the generation of invalid variants.

[0053] S108, based on the difficulty score and task variants, generates a training task set for the robot. The training task set is loaded into the robot's task execution mechanism to control the robot to perform tasks.

[0054] In some embodiments, the training task set in this application is a standardized data set that has been expanded and generalized after difficulty grading, and can be directly used for robot training and deployment. It contains complete execution parameters, difficulty labels and variant information. For example, a sample of L3 difficulty contains a complete instruction sequence of "grab the blue cylinder → place it in the center of the tray", as well as a parameter range of 0.8-1.2 rad for the gripper opening angle and 0.3-0.5 m / s for the moving speed. This task set can be directly imported into the robot training platform and training can be started without secondary conversion.

[0055] In some embodiments of this application, obtaining scene object state information includes: performing target detection and state recognition processing on point cloud data or image data collected by a visual sensor to obtain object category, initial state attribute and spatial reachability information in the point cloud data or image data, and converting the extracted information into structured scene object state information; or performing semantic parsing on natural language instructions to extract object category, initial state attribute and spatial reachability information in the natural language instructions, and converting the extracted information into structured scene object state information. Specifically, this application embodiment converts the raw point cloud / image data collected by the visual sensor and the natural language commands input by the user into structured data containing object categories, initial state attributes, and spatial reachability through object detection, state recognition, and semantic parsing. This enables the perception layer and the planning layer to use the same set of semantic standards, achieving semantic alignment between perception data and task planning. In addition, this application embodiment supports both visual perception and natural language commands as input methods, which can adapt to autonomous exploration scenarios without preset commands (such as a robot autonomously tidying up a table) as well as human intention-driven interaction scenarios (such as the user's voice command "put the freshly washed apple in the refrigerator"). Dual-modal input avoids the limitations of a single perception method and improves the scenario adaptability of task generation.

[0056] It should be noted that, in the embodiments of this application, spatial reachability information refers to the set of reachable areas and operable poses formed by the target object relative to the robot body after considering factors such as kinematic constraints, environmental occlusion, and operational requirements. It is directly related to the robot's kinematic constraints and collision detection capabilities, making the generated task chain physically executable, rather than merely satisfying logical coherence. If spatial reachability information is lacking, the task chain may be interrupted during execution due to physical constraints such as joint limits and collisions, resulting in invalid training data.

[0057] In some embodiments, this application generates a set of tasks to be processed based on scene object state information and a pre-built skill library, including: constructing a skill state transition graph based on scene object state information and a pre-built skill library, the skill state transition graph including a graph structure with object states as nodes and skill-object pairing as directed edges; performing path search and filtering processing on the skill state transition graph to generate multiple candidate task chains that satisfy the temporal continuity constraints of preconditions and postconditions; when the skill coverage rate or object category coverage rate of multiple candidate task chains is lower than a preset threshold, performing supplementary generation to obtain the set of tasks to be processed; the skill coverage rate is the proportion of matched skills in multiple candidate task chains to the total number of skills in the skill library; the object category coverage rate is the proportion of matched object categories in multiple candidate task chains to the total number of object categories in the scene object state information. Specifically, this application embodiment constructs a skill state transition graph with object states as nodes and skill-object pairings as directed edges, transforming the nonlinear task planning problem into a path search problem in graph theory. Path search and filtering are performed on the skill state transition graph to ensure that the generated candidate task chains strictly satisfy the temporal coherence constraint that the postconditions of the previous skill and the preconditions of the next skill match in the object state. This constraint verification is completed in the graph search stage, avoiding the generation of invalid task chains caused by generation and verification in traditional methods, and greatly improving the physical executability of the task set.

[0058] For example, in a desktop organization scenario, if traditional rule-based stitching is used, a fixed order of grasping → moving → placing needs to be manually defined, which cannot handle complex situations such as objects being obscured and needing to be pushed first. However, through the skill state transition graph in this application embodiment, all paths that satisfy the preconditions / postconditions can be automatically searched, including non-linear paths such as: pushing → grasping → placing, grasping → placing → grasping → placing, ensuring the completeness and physical legality of the task chain. In addition, if the task chain is "grab a cup → place it on the table", this application embodiment will check whether the postcondition of "grab" (the end holding a cup) matches the precondition of "place" (the end holding a cup, the table is reachable) during graph search. If they do not match (such as grasping failure resulting in an empty end), the path will be directly filtered out and will not enter the candidate task set, avoiding the robot from executing invalid actions.

[0059] In some embodiments, this application optimizes the coverage of multiple candidate task chains to improve the task set and obtain the task set to be processed. Specifically, it includes: calculating the coverage index of the currently generated task set: skill coverage = number of different skills appearing in the task set / total number of skills in the skill library; object category coverage = number of different object categories appearing in the task set / total number of scene object categories; task chain length distribution: distribution of the number of tasks for each chain length; if the skill coverage or object category coverage is lower than the target threshold (default is 80%), supplementary generation is performed for the insufficiently covered skills or object categories, and the object with the largest coverage gap is selected first for skill pairing.

[0060] The coverage optimization mechanism in this application embodiment ensures that the generated task set systematically covers all skills and object categories, eliminates skill blind spots when manually defined, and significantly improves the diversity of the dataset.

[0061] In some embodiments, this application calculates the difficulty score of multiple candidate task chains, including: calculating the difficulty score of multiple candidate task chains based on the difficulty level in the skill library and the chain length effect weight; the chain length effect weight is determined based on the number of skills and the dependencies between skills in the multiple candidate task chains. Specifically, this application introduces the chain length effect weight, so that the difficulty score increases non-linearly with the number of skills and dependencies, truly mapping the cognitive load and execution risk of the robot when performing long tasks; the quantified difficulty score provides an accurate grading basis for robot training, and can dynamically adjust the distribution of training samples and the difficulty gradient according to the difficulty score, avoiding training oscillations and slow convergence caused by difficulty jumps in traditional random training; furthermore, the dependency dimension between skills in the chain length effect weight enables the difficulty score to distinguish between task chains with many steps but few dependencies and task chains with few steps but many dependencies, avoiding the misjudgment that "long tasks are necessarily difficult", ensuring the balance of the training task set in terms of difficulty distribution, and preventing high-difficulty tasks from being overly concentrated in long sequence tasks.

[0062] In some embodiments, this application calculates a difficulty score for each generated task: Difficulty score = Sum of skill difficulty levels / Task chain length × Chain length effect weight, where the chain length effect weight increases with chain length (default 1.0 / 1.3 / 1.6 / 2.0 / 2.5 correspond to chain lengths L1-L5). Tasks are divided into three levels based on difficulty score: easy (<2.0), medium (2.0-3.5), and difficult (>3.5), supporting course-based data collection and scheduling.

[0063] In some embodiments, the difficulty-stratified task set automatically generated by this application can be directly used for course-based training scheduling to improve model training efficiency.

[0064] In some embodiments, the generalization generation of task variants in this application includes: deriving a generalization axis to generate task variants. The generalization axis includes an object category axis, a placement position axis, and a skill parameter axis. The object category axis is used to replace the target object in the task with other instances of the same category. The placement position axis is used to sample different initial positions within the reachable region. The skill parameter axis is used to define the value range of continuous skill parameters. Specifically, through the combination of three-dimensional generalization axes, a single basic task chain can generate dozens of variant task chains, achieving exponential expansion of training data with extremely low computational cost, avoiding the high cost problem of manual annotation or simulation collection in traditional methods. The derivation of the generalization axis is strictly based on physical constraints such as reachable region, same category, and continuous parameter range, ensuring that all generated variant task chains are physically executable and guaranteeing the quality of the training task set.

[0065] In addition, when generalizing to generate task variants, the aforementioned difficulty score in this application embodiment is used as a verification benchmark to ensure that the generated variants are consistent with the difficulty level of the basic task chain, thereby avoiding difficulty drift caused by changes in objects, positions, and parameters during the generalization process and ensuring the stability of the difficulty distribution of the training task set.

[0066] In some embodiments, the generalization generation of task variants in this application specifically includes: performing structured parsing on the basic task chain, extracting generalizable dimensions, and defining the value constraints for each dimension, including the object category axis, placement position axis, and skill parameter axis; generating variant task chains based on the definition of the three generalization axes using Cartesian product or constraint sampling strategies; ensuring that the generated variant task chains are logically correct and physically executable through double verification; and standardizing and encapsulating the verified variant task chains to form a task set that can be directly used for training.

[0067] In this embodiment, the object category axis identifies the target object in the task chain, searches for its "generalizable category" (such as rigid cylinder, flexible fabric) in the skill library, and filters other instances belonging to the same category from the scene object state information as replacement candidate sets; the placement position axis calculates the "reachable area mask" of the target object based on the kinematic model of the task execution mechanism and the collision detection results of the current scene, and samples multiple spatial coordinates within the mask at a preset density as a position variant candidate set; the skill parameter axis is for continuous skills (such as grasping force, movement speed) in the task chain, determines the value range of each parameter according to the parameter safety range and hardware limits defined in the skill library, and generates multiple parameter combinations within the range in an equally spaced or random manner.

[0068] In some embodiments, the dual verification of the variant task chains generated by this application includes: temporal coherence verification and physical executability verification. The temporal coherence verification checks whether the preconditions and postconditions of adjacent skills in the variant task chain match. For example, after replacing the object, the postcondition "holding a new object at the end" of the "grab" skill must be semantically identical to the precondition "holding an object at the end" of the "place" skill; otherwise, the variant is discarded. The physical executability verification inputs the variant task chain into a simulation environment or physical constraint model to verify whether it meets conditions such as kinematic reachability, collision safety, and parameter hardware limits. For example, whether the newly generated placement position is within the reachable area mask, whether the replaced object meets the grasping pose requirements, and whether the parameter combination exceeds the upper limit of the motor torque. If not, it is discarded.

[0069] In some embodiments, this application automatically derives a generalization axis for each generated task, wherein: object category axis: replaces the target object in the task with other instances of the same category (based on the scene object list and external object knowledge base); placement position axis: samples different initial positions within the reachable area; skill parameter axis: defines the value range for continuous skill parameters (such as the tilting angle of the tilt and the trajectory length of the wiping); the generated task variant directly enters the verification process.

[0070] In some embodiments, before automatically generated tasks enter the task pool, the same two-stage verification as manually defined tasks is performed: rule-based hard filtering and weighted scoring. Rule-based hard filtering includes: functional significance: at least one action in the action sequence changes the physical state of an object (guaranteed by post-conditions, naturally satisfied by automatically generated tasks); verifiability: the success criteria include at least one quantifiable indicator (automatically derived from post-conditions); state difference: at least one object's state changes before and after task execution (guaranteed by differences in pre-conditions / post-conditions). Weighted scoring includes: comprehensive score = functional score × 0.4 + verifiability score × 0.4 + scene relevance score × 0.2 (each item 0-5 points, normalized to a threshold of 0.6); tasks below the threshold enter the low-value task pool, with a default quota limit of 20% (configurable from 10%-35%).

[0071] It should be noted that, based on data from multiple experiments, the rule-based hard filtering verification in this application embodiment has a pass rate of nearly 100%, with extremely low verification overhead, enabling verification upon generation and reducing redundancy.

[0072] In some embodiments, this application generates a training task set for a robot, including: classifying multiple candidate task chains based on difficulty scores, and combining the classified candidate task chains with task variants to generate a training task set. Specifically, this application uses a difficulty score-based classification mechanism to transform discrete candidate task chains into standardized difficulty levels (e.g., L1-L5 difficulty levels), giving the training task set a learning structure from easy to difficult. The robot can gradually unlock training samples according to the difficulty level, avoiding training oscillations and slow convergence caused by difficulty jumps in traditional random training. This application combines the classified candidate task chains with task variants, so that basic tasks and generalized variants form an organic "trunk-branch" structure in the training task set, rather than an isolated data set. This fusion ensures that the robot learns basic skills while simultaneously encountering generalized variants. Furthermore, through standardized encapsulation of classification and combination, the training task set is transformed into a unified format containing: difficulty level labels, task chain sequences, variant metadata, and verification status, which can be directly loaded into the robot's task execution mechanism without secondary conversion or manual annotation, significantly improving training deployment efficiency.

[0073] In some embodiments, such as Figure 2 As shown, the complete implementation process of the robot task generation method in this application embodiment includes: S202, traverse each object in the scene and each skill in the skill library, and check the following three compatibility conditions: object category matching, precondition satisfaction, and spatial reachability judgment. If all three conditions are satisfied, the matrix element is marked as 1 (valid); otherwise, it is marked as 0 (invalid).

[0074] S204. For objects marked as 1 in the matrix, perform skill pairing, further check the hand ability constraint library, filter out pairings that cannot be performed by the current hand shape, and generate the final compatibility matrix.

[0075] S206, Construct a skill state transition graph: with object state as node, and object-skill pairing as directed edge, the starting point of the edge is the state corresponding to the skill precondition, and the ending point is the new state after the postcondition is executed.

[0076] S208 performs a depth-first search on the state transition graph to generate all valid paths with a length of 2 to the maximum task chain length (default 5), with each path corresponding to a multi-step task.

[0077] S210, Validity Filtering: Check whether the postconditions and preconditions of two adjacent skills in the path are completely matched (state key-value pairs are consistent), and prune paths that do not match.

[0078] S212, Semantic Deduplication: Calculate the semantic fingerprint (hash value of the action type sequence) for the generated multi-step task and remove semantically duplicated task variants.

[0079] S214, calculate the coverage metrics of the currently generated task set, including: skill coverage, object category coverage, and task chain length distribution.

[0080] S216 If the skill coverage or object category coverage is lower than the target threshold (the default is 80%), perform supplementary generation for the under-covered skills or object categories, prioritizing the object with the largest coverage gap for skill pairing.

[0081] S218 calculates a difficulty score for each generated task: Difficulty Score = Sum of Skill Difficulty Levels / Task Chain Length × Chain Length Effect Weight, where the chain length effect weight increases with chain length (default 1.0 / 1.3 / 1.6 / 2.0 / 2.5 correspond to chain lengths L1-L5). Tasks are categorized into three levels based on difficulty score: Easy (<2.0), Medium (2.0-3.5), and Hard (>3.5), supporting course-based data collection and scheduling.

[0082] S220 automatically derives generalization axes for each generated task, including: object category axis, placement position axis, and skill parameter axis.

[0083] In some embodiments, after generating the training task set, the robot task generation method of this application further includes: verifying whether the task variants meet the temporal coherence constraints of preconditions and postconditions; and verifying whether the task variants are within the capability range of the robot's task execution mechanism. Specifically, during the generalization generation process, object replacement, position sampling, or parameter adjustment may disrupt the temporal coherence of the task chain (e.g., after replacing the object, the postconditions of the preceding skill no longer match the preconditions of the subsequent skill). By verifying the temporal coherence before deployment, such logically broken variants are intercepted before being loaded onto the robot, preventing logically correct but semantically incorrect invalid task chains from entering the training phase, thus ensuring the semantic integrity of the training task set. In addition, the variants generated by generalization may exceed the physical capability boundaries of the robot's task execution mechanism (e.g., joint torque exceeding limits, insufficient end effector travel, excessive collision risk, etc.). By verifying the capability range before deployment, such physically infeasible variants are intercepted before being loaded onto the robot, preventing equipment damage, training interruption, or safety accidents caused by variants exceeding hardware limits during training, thus ensuring the physical safety of the training process.

[0084] In some embodiments, the task lifecycle generated in this application is managed by an eight-state machine, namely: Unverified, Piloting, Collectable, Standardized, Deprecated, Rejected, Offline, and Re-verified. Unverified: The initial state after task generation, requiring two-stage evaluation and hand constraint checks to proceed to the next stage; Piloting: Allocates a default of 10 pilot acquisition quotas, serving as a core evaluation checkpoint for task quality; Collectable: Full acquisition is enabled after pilot acquisition quality meets standards, marking the task's entry into large-scale production; Standardized: A standardized report is generated after accumulating ≥100 acquisitions and achieving a generalized axis coverage rate ≥80%. The task data in the table meets the output standards; Deprecated: Automatically stopped and archived due to scenario offline or no new data collection for 30 consecutive days, used to clean up outdated tasks; Rejected: Triggered when the trial collection success rate is <30% or the average quality score is <2.0, recording the reason for failure and triggering the generation parameter backtracking; Offline: Emergency stop status when security issues are manually discovered or data is seriously substandard, with the highest priority, and can be forcibly entered from any status; Unverified: When a task is in the Rejected or Deprecated state, after modifying the generation parameters and resubmitting, the status is reset to Unverified and re-entering the verification process; It should be noted that automatically generated tasks and manually defined tasks share the same state machine. The Rejected state of automatically generated tasks additionally triggers the generation parameter backtracking: recording the (scenario, object, skill) pairing that caused rejection, updating the confidence weight of the corresponding element in the compatibility matrix, and avoiding the repeated generation of the same type of low-quality tasks.

[0085] It should be noted that the rejected task triggers an update to the compatibility matrix confidence level. The system using the method in the embodiments of this application automatically optimizes the generation strategy as data accumulates, forming a self-improving closed loop.

[0086] In some embodiments, this application provides a four-dimensional evaluation of the single, complete task execution trajectory recorded by sensors when the robot performs tasks through teleoperation, imitation learning, or autonomous execution. This evaluation includes: trajectory integrity: checking whether the action sequence is executed completely, with interruptions marked as incomplete; success determination: automatically determining whether the task is successful based on the quantitative indicators in the success criteria; action smoothness: marking joint angular velocity sequence second-order difference root mean square error exceeding 5 rad / s² as jitter; and temporal consistency: using the DTW algorithm to calculate the trajectory similarity of different teaching data for the same task, with similarities below 0.6 marked as outliers.

[0087] In some embodiments, the methods in this application are applied to an end-to-end unified framework, covering the entire process from scenario input to standardized data output, including task generation, verification, collection, and quality assessment, eliminating the problem of fragmentation between different stages.

[0088] This application also provides a robot task generation system, comprising: a scene information acquisition device for acquiring scene object state information, wherein the scene object state information is obtained through the robot's visual sensor or through natural language commands input by the user; a task generator for generating a set of tasks to be processed based on the scene object state information and a pre-built skill library; the skills in the skill library include preconditions and postconditions; the set of tasks to be processed includes multiple candidate task chains and satisfies the temporal coherence constraints of the preconditions and postconditions of the skills; calculating the difficulty scores of the multiple candidate task chains and generalizing to generate task variants; generating a training task set for the robot based on the difficulty scores and task variants; and a task execution mechanism for executing tasks based on the loaded training task set.

[0089] It should be noted that although the steps in the above embodiments are described in a specific order, those skilled in the art will understand that in order to achieve the effect of this application, different steps do not necessarily have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders. These adjusted solutions are equivalent to the technical solutions described in this application and therefore will also fall within the protection scope of this application.

[0090] Those skilled in the art will understand that all or part of the processes in the method of the above-described embodiment can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable storage medium can include any entity or device capable of carrying the computer program code, a medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0091] Another aspect of this application provides a computer-readable storage medium.

[0092] In one embodiment of a computer-readable storage medium according to this application, the computer-readable storage medium can be configured to store a program that performs the robot task generation method of the above-described method embodiments. This program can be loaded and run by a processor to implement the robot task generation method. For ease of explanation, only the parts related to the embodiments of this application are shown; for specific technical details not disclosed, please refer to the method section of the embodiments of this application. The computer-readable storage medium can be a storage device comprising various electronic devices. Optionally, in the embodiments of this application, the computer-readable storage medium is a non-transitory computer-readable storage medium.

[0093] Another aspect of this application provides an electronic device.

[0094] In an embodiment of an electronic device according to this application, the electronic device may include at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program that, when executed by the at least one processor, implements the method described in any of the above embodiments.

[0095] The electronic devices described in this application may include, but are not limited to, mobile phones, tablets, desktop computers, laptops, handheld computers, notebook computers, in-vehicle devices, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, etc., and the embodiments of this application do not limit them.

[0096] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. Without departing from the principles of this application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of this application.

Claims

1. A method for generating robot tasks, characterized in that, include: The scene object status information is obtained through the robot's vision sensors or by processing natural language commands input by the user. Based on the scene object state information and the pre-built skill library, a set of tasks to be processed is generated; The skills in the skill library include preconditions and postconditions; the task set to be processed includes multiple candidate task chains and satisfies the temporal coherence constraints of the preconditions and postconditions of the skills. Calculate the difficulty scores of multiple candidate task chains and generalize to generate task variants; Based on the difficulty score and the task variant, a training task set is generated for the robot. The training task set is loaded into the robot's task execution mechanism to control the robot to perform tasks.

2. The robot task generation method according to claim 1, characterized in that, Obtain scene object state information, including: The point cloud data or image data acquired by the vision sensor are processed for target detection and state recognition to obtain object categories, initial state attributes, and spatial reachability information from the point cloud data or image data. The extracted information is then converted into structured scene object state information; or The natural language instructions are semantically parsed to extract object categories, initial state attributes, and spatial reachability information from the natural language instructions, and the extracted information is converted into structured scene object state information.

3. The robot task generation method according to claim 2, characterized in that, Based on the scene object state information and the pre-built skill library, a set of tasks to be processed is generated, including: Based on the scene object state information and the pre-built skill library, a skill state transition graph is constructed. The skill state transition graph includes a graph structure with object states as nodes and skill-object pairings as directed edges. Path search and filtering are performed on the skill state transition graph to generate multiple candidate task chains that satisfy the temporal coherence constraints of the preconditions and postconditions. When the skill coverage or object category coverage of multiple candidate task chains is lower than a preset threshold, supplementary generation is performed to obtain the set of tasks to be processed; the skill coverage is the proportion of matched skills in multiple candidate task chains to the total number of skills in the skill library; the object category coverage is the proportion of matched object categories in multiple candidate task chains to the total number of object categories in the scene object state information.

4. The robot task generation method according to claim 1, characterized in that, Calculate the difficulty scores for multiple candidate task chains, including: Based on the difficulty level and chain length effect weight in the skill set, the difficulty score of the multiple candidate task chains is calculated; the chain length effect weight is determined based on the number of skills in the multiple candidate task chains and the dependencies between skills.

5. The robot task generation method according to claim 1, characterized in that, Generalized generation task variants include: A generalization axis is derived to generate task variants. The generalization axis includes an object category axis, a placement position axis, and a skill parameter axis. The object category axis is used to replace the target object in the task with other instances of the same category. The placement position axis is used to sample different initial positions within the reachable region. The skill parameter axis is used to define the value range of continuous skill parameters.

6. The robot task generation method according to claim 1, characterized in that, Generate a training task set for the robot, including: The candidate task chains are graded based on the difficulty scores, and the graded candidate task chains are combined with the task variants to generate the training task set.

7. The robot task generation method according to claim 1, characterized in that, After generating the training task set, the method further includes: Verify whether the task variant satisfies the temporal coherence constraints of the preconditions and postconditions; Verify that the task variant is within the capabilities of the robot's task execution mechanism.

8. A robot task generation system, characterized in that, include: Scene information acquisition device, used to acquire scene object status information, which is obtained through the robot's vision sensor or through natural language commands input by the user; A task generator is used to generate a set of tasks to be processed based on the state information of the scene objects and a pre-built skill library. The skills in the skill library include preconditions and postconditions; the task set to be processed includes multiple candidate task chains and satisfies the temporal coherence constraints of the preconditions and postconditions of the skills. Calculate the difficulty scores of multiple candidate task chains and generalize to generate task variants; based on the difficulty scores and the task variants, generate a training task set for the robot; Task execution mechanism, used to execute tasks based on a loaded training task set.

9. An electronic device, characterized in that, include: At least one processor; And, a memory communicatively connected to the at least one processor; The memory stores a computer program, which, when executed by the at least one processor, implements the robot task generation method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a plurality of program codes, characterized in that, The program code is adapted to be loaded and run by a processor to perform the robot task generation method according to any one of claims 1 to 7.