Robot task planning method and system based on affine transformation and behavior tree

Through the robot task planning method based on affine transformation and behavioral tree, the problem of insufficient skill learning and autonomous decision-making capabilities of robots in complex environments is solved, and the reusability of robot behavioral actions and the adaptability of automated production lines is realized, reducing the The manpower and material resources requirements of the production line.

WO2024250289A1PCT designated stage expired Publication Date: 2024-12-12FOSHAN UNIVERSITY

Patent Information

Application Number
PCT/CN2023/099479
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-06-09
Publication Date
2024-12-12

AI Technical Summary

Technical Problem

In the face of complex and changing environments, the robot skill learning and autonomous decision-making capabilities are insufficient, and the existing technology is poorly robust to environmental changes, the skill learning model is complex and has failed to achieve problem modularity.

Method used

Using a robot task planning method based on affine transformation and behavior tree, a robot's behavioral action information is obtained, and the behavioral primitive library is constructed, and affine transformation is used to combine the trajectory data and task execution logic of manual teaching. Technology generalizes the model and realizes robot task execution planning.

Benefits of technology

Improve the reusability of robot behaviors, reduce the error between robot teaching trajectory and online trajectory, modularize complex behavior logic, improve the adaptability and efficiency of automated production lines, and can keep up with product iteration speed and adapt Different new scenarios and new products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023099479_12122024_PF_FP_ABST
    Figure CN2023099479_12122024_PF_FP_ABST
Patent Text Reader

Abstract

A robot task planning method and system based on affine transformation and a behavior tree. The robot task planning method based on affine transformation and a behavior tree comprises: acquiring behavior movement information of a robot and combining same so as to construct a movement primitive library; on the basis of the movement primitive library, acquiring trajectory data of human teaching; combining the logical relationship of movement primitives in the movement primitive library, the trajectory data of human teaching, and a task execution logic so as to construct a preliminary behavior tree model; on the basis of an affine transformation technology, generalizing the preliminary behavior tree model so as to obtain a behavior tree model; and, according to the execution logic of the behavior tree model, planning the task execution of the robot.
Need to check novelty before this filing date? Find Prior Art

Description

Robot task planning method and system based on affine transformation and behavior tree Technical Field

[0001] The present invention relates to the technical field of robot skill learning and motion planning, and in particular to a robot task planning method and system based on affine transformation and behavior tree. Background Art

[0002] Robots are widely used in some specific fields, such as mobile phone parts assembly, fruit picking, etc., which have greatly helped humans improve productivity and work efficiency. As the intersection of manufacturing and information industries, the 3C industry currently has a low level of automation. Due to its large number of products, small size, cumbersome assembly process, and rapid product updates, it urgently needs intelligent technology to achieve autonomous production and make the intelligent system on the production line universal. On the industrial production line, the complex skills of the robot arm are composed of a number of lower-level skill combinations. Through the hierarchical analysis of task-skill-skill primitives, the commonly used basic Skill primitives, such as pushing, pulling, lifting, pressing, rotating, etc., are used to build a basic skill primitive library. When facing new environments and new tasks, skills can be quickly reorganized to adapt to new operating environments and tasks. In recent years, service robots have become a research hotspot. How to make robots evolve from single and fixed task settings to complex and changing environments requires not only the robot system to have the ability to integrate and process high-dimensional perception information from the outside world, but also the robot to have the ability to make rapid autonomous decisions and learn skills. The existing technology has poor robustness to environmental changes, and the skill learning model is complex, and the problem is not modularized.

[0003] Summary of the Invention

[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a robot task planning method and system based on affine transformation and behavior tree, which can accurately control the robot to perform actions through a behavior tree control strategy based on affine transformation technology.

[0005] The first technical solution adopted by the present invention is: a robot task planning method based on affine transformation and behavior tree, comprising the following steps:

[0006] Obtain the robot's behavioral action information and combine it to build an action primitive library;

[0007] Obtain manually taught trajectory data based on the action primitive library;

[0008] Combine the logical relationships of the action primitives in the action primitive library, the manually taught trajectory data, and the task execution logic to build a preliminary behavior tree model;

[0009] Based on the affine transformation technology, the preliminary behavior tree model is generalized to obtain the behavior tree model;

[0010] Plan the robot's task execution based on the execution logic of the behavior tree model.

[0011] Furthermore, the step of obtaining and combining the robot's behavioral action information to construct an action primitive library specifically includes:

[0012] Obtain common operations of robots on 3C production lines;

[0013] Segment the robot's common operations to obtain the robot's behavioral action information;

[0014] The robot's behavioral information includes the displacement vector of the rigid body's geometric center, the gripping force of the end effector or the elastic force output by the robotic arm to the outside world, the opening and closing angle of the end effector's gripper and the opening and closing speed of the end rotation angle, the torque of the robotic arm's end effector rotation, and the end coordinate reset caused by the end effector replacement operation;

[0015] The robot's behavioral action information is combined to construct an action primitive library, which includes the robot's movement primitive, the translation primitive of the robot arm's end effector, the force translation primitive, the return primitive, the opening or closing end effector primitive, the pressure primitive, the rotation primitive, and the gripping and replacement end effector primitive.

[0016] Furthermore, the step of obtaining manually taught trajectory data according to the action primitive library specifically includes:

[0017] Perform manual teaching processing on the primitive data in the action primitive library to obtain teaching trajectory data;

[0018] The teaching trajectory data is preprocessed by discarding the sudden change trajectory method to obtain the preprocessed teaching trajectory data;

[0019] The pre-processed teaching trajectory data is generalized through affine transformation technology to obtain the manually taught trajectory data.

[0020] Furthermore, the expression of the mutation-discarding trajectory method is specifically as follows: q(t)=None

[0021] In the above formula, q(t) represents the teaching trajectory data, represents acceleration, ε represents a constant factor, which is 0.4. express The left and right neighbors of .

[0022] Furthermore, the step of building a preliminary behavior tree model by combining the logical relationships of the action primitives in the action primitive library, the manually taught trajectory data, and the task execution logic specifically includes:

[0023] Defining connection relationships between primitive data according to logical relationships between primitive data in the action primitive library, wherein the connection relationships include unconnectable, progressive, sequential, and parallel connections;

[0024] Set the connection between primitive data as execution nodes to build the behavior tree model to be deleted;

[0025] Based on the robot's task execution logic on the 3C production line, the behavior tree model to be deleted was pruned to obtain a preliminary behavior tree model.

[0026] Furthermore, the step of generalizing the preliminary behavior tree model based on affine transformation technology to obtain the behavior tree model specifically includes:

[0027] The manually taught trajectory data in the preliminary behavior tree model is generalized using affine transformation technology to obtain generalized trajectory data.

[0028] The similarity value between the manually taught trajectory data and the generalized trajectory data is calculated using the Tanimoto similarity function;

[0029] Select the generalized trajectory data that meets the preset accuracy threshold in the similarity value to obtain the execution node;

[0030] Embed the execution node into the preliminary behavior tree model to obtain the behavior tree model.

[0031] Furthermore, the expression of the affine transformation technology is specifically as follows: new (t) = F(q old (t))

[0032] In the above formula, q new (t) represents the generalized trajectory data, q old (t) represents the manually taught trajectory data, and F(·) represents the affine transformation function.

[0033] Furthermore, the expression of the Tanimoto similarity function is specifically as follows:

[0034] In the above formula, q A *q B represents the inner product of two trajectory vectors, ||q A || 2 、||q B || 2Represents the magnitude of the two trajectory vectors.

[0035] The second technical solution adopted by the present invention is: a robot task planning system based on affine transformation and behavior tree, comprising:

[0036] The combination module is used to obtain the robot's behavioral action information and combine it to build an action primitive library;

[0037] An acquisition module is used to obtain manually taught trajectory data based on the action primitive library;

[0038] The construction module is used to combine the logical relationships of action primitives in the action primitive library, manually taught trajectory data, and task execution logic to build a preliminary behavior tree model;

[0039] The generalization module generalizes the initial behavior tree model based on affine transformation technology to obtain a behavior tree model;

[0040] The planning module is used to plan the robot's task execution based on the execution logic of the behavior tree model.

[0041] The beneficial effects of the method and system of the present invention are as follows: the present invention establishes an action primitive library based on the behavior actions of the robots on the production line, and generalizes the action primitive library through affine transformation technology, thereby improving the reusability of the robot's behavior actions and reducing the error between the robot's teaching trajectory and the online trajectory. The present invention further proposes a behavior tree control strategy, modularizes the complex behavior logic, and can reduce manpower and material resources on the automated production line, so that the automated production line can keep up with the speed of product iteration and adapt to different new scenarios and new products. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] FIG1 is a flowchart of the steps of a robot task planning method based on affine transformation and behavior tree according to the present invention;

[0043] FIG2 is a block diagram of a robot task planning system based on affine transformation and behavior tree according to the present invention;

[0044] FIG3 is a schematic diagram of the process of constructing a behavior tree model according to actual 3C industry tasks in the present invention;

[0045] FIG4 is a schematic diagram of the structure of the behavior tree model constructed by the present invention. DETAILED DESCRIPTION

[0046] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The step numbers in the following embodiments are provided for ease of description only and do not limit the order of the steps. The order of execution of the steps in the embodiments can be adaptively adjusted based on the understanding of those skilled in the art.

[0047] 3 , an embodiment of the present invention provides a robot task planning framework based on affine transformation and behavior trees. The framework uses a Robot Operating System (ROS) installed on a Turtlebot 2 mobile robot. Signals are fed into ROS via behavior tree instructions. The host computer is an NVIDIA TX2, and the Kinect V2 camera onboard the Turtlebot 2 transmits target parameters to the robot's vision system via ROS.

[0048] 1 , the present invention provides a robot task planning method based on affine transformation and behavior tree, the method comprising the following steps:

[0049] S1. Segment the common operations of the robot arm on the production line and establish an action primitive library;

[0050] Specifically, when establishing the action primitive library, the primitives are classified according to different physical characteristics. In the Cartesian space of the end of the manipulator, there are the following six types of motion information, namely, the displacement vector T of the geometric center of the rigid body, the clamping force of the end effector or the elastic force F output by the manipulator to the outside world, the opening and closing angle of the end effector during the end effector period and the opening and closing speed v of the end rotation angle θ, the torque Torq of the end effector rotation of the manipulator and the end coordinate reset c caused by the replacement of the end effector operation; eight action primitives are combined from the six different motion information, namely: robot movement RM(T), translation AM(T) of the end effector of the manipulator, force translation P(T,F), return H(T,Torq), opening or closing the end effector O(v,θ), pressure Rotate R(Torq,θ), grip and replace the end effector Re(c).

[0051] S2. Manually teach the movement of the robot, translation of the end effector of the manipulator, translation of the force, return, rotation, and gripping primitives in the primitive library. The specific steps of the manual teaching are to manually teach the primitive data in the action primitive library, collect the three-dimensional coordinate data of the trajectory through the optical motion capture system, teach each trajectory 20 times, take the average of the trajectory data to obtain the original teaching trajectory data, pre-process the teaching trajectory data, and then generalize the teaching trajectory data to the manually taught trajectory data through the affine transformation F;

[0052] Specifically, a motion capture system is used to obtain teaching data, which can capture view data in real time at a high frame rate. The method for preprocessing the teaching data is to discard the sudden change trajectory method. If the acceleration of the trajectory is greatly changed, the trajectory is considered unreasonable. The expression of the discarded sudden change trajectory method is as follows: q(t)=None

[0053] In the above formula, q(t) represents the teaching trajectory data, represents acceleration, ε represents a constant factor, which is 0.4. express The left and right neighbors of .

[0054] S3. Based on the logical relationship between primitives, four connection modes between primitives are defined, namely, no connection, progressive connection, sequential connection, and parallel connection;

[0055] Specifically, for example, the movement and opening of the grasping primitive must be progressively connected at the same time; parallel connection is a special form of progressive connection, that is, the start and end times of the two parallel connected primitives are aligned; sequential connection is a strict sequence of execution, that is, the end time of the previous primitive is the start time of the next primitive. In summary, the connection relationship is defined as including progressive connection, sequential connection and parallel connection;

[0056] The progressive connection method of the primitive connection method is defined as:

[0057] In the above formula, P ij (t) is P i (t) and P j (t) The operation mode of the primitive after the two primitives are gradually connected, and They are the start time and end time of the primitive respectively.

[0058] S4. Build a generalized behavior tree model based on the task execution logic in multiple scenarios. Based on the primitive connection method in step S3, use each action primitive as an execution node in the behavior tree model.

[0059] Specifically, as shown in Figure 4, the root node of the generalized behavior tree is a sequential node, and the root node contains four alternative child nodes from left to right: judging whether the environment is safe, judging whether the mobile robot is within the charging range, judging whether the task is completed, and judging whether the robot is charging.

[0060] S5. When facing a new task, according to the task execution logic, artificially delete the general behavior tree to obtain the behavior tree BT * , to adapt to new needs;

[0061] S6. New behavior tree BT for step S5 * The action primitives in the execution node are transformed by affine transformation q due to the change of their tasks. new (t) = F(q old (t)), where q new (t) is the trajectory of the new generalization, qold (t) is the teaching trajectory, and the behavior tree BT * The teaching trajectory of the execution node is generalized to obtain BT ** ;

[0062] Specifically, to ensure that the affine-transformed trajectory retains the speed, smoothness, and other data of the taught trajectory to the greatest extent possible, the Tanimoto similarity function is used to calculate the similarity between the taught trajectory data and the affine-transformed trajectory data. A threshold is then defined based on the actual accuracy requirements to discard some generalized trajectories with low similarity to the original trajectory parameters. Trajectory data with high similarity is then used as the behavior tree execution node.

[0063] The affine transformation q in step S6 is new (t) = F(q old (t)) The correlation function is defined as the Tanimoto similarity function, and its expression is as follows:

[0064] In the above formula, q A *q B represents the inner product of two trajectory vectors, ||q A || 2 、||q B || 2 Represents the modulus of the two trajectory vectors;

[0065] The calculation expression of the modulus of the trajectory vector is as follows:

[0066] In the above formula, n represents the length of the vector, and i represents starting from the first element.

[0067] S7, finally get BT according to step S6 ** The execution logic puts the execution order into the queue channel in sequence, and executes the action primitives of the new demand tasks on the 3C production line one by one after being processed by the CPU, such as moving from one workbench to another, twisting the workpiece in a narrow space, etc. The parameters and execution order of the tasks can be adjusted by BT ** Make changes within a certain range.

[0068] Specifically, the memory RAM size described in S7 should be no less than 8GB, and the CPU parameters should be no less than Intel 8th generation i5 or AMD-FX8300.

[0069] Referring to Figure 2, the robot task planning system based on affine transformation and behavior tree includes:

[0070] The combination module is used to obtain the robot's behavioral action information and combine it to build an action primitive library;

[0071] An acquisition module is used to obtain manually taught trajectory data based on the action primitive library;

[0072] The construction module is used to combine the logical relationships of action primitives in the action primitive library, manually taught trajectory data, and task execution logic to build a preliminary behavior tree model;

[0073] The generalization module generalizes the initial behavior tree model based on affine transformation technology to obtain a behavior tree model;

[0074] The planning module is used to plan the robot's task execution based on the execution logic of the behavior tree model.

[0075] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0076] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A robot task planning method based on affine transformation and behavior tree, characterized in that: The following steps are involved: Obtain the robot's behavior information and combine it to build an action primitive library; Obtain manually taught trajectory data based on the action primitive library; Combine the logical relationship of action primitives in the action primitive library, the trajectory data of manual teaching and the task execution logic to build a preliminary behavior tree model; Based on the affine transformation technology, the preliminary behavior tree model is generalized to obtain the behavior tree model; Plan the robot's task execution according to the execution logic of the behavior tree model.

2. The robot task planning method based on affine transformation and behavior tree according to claim 1, characterized in that: The step of obtaining the robot's behavior action information and combining them to construct an action primitive library specifically includes: Obtain common operations of robots on 3C production lines; Segment the robot's common operations to obtain the robot's behavior information; The behavior information of the robot includes the displacement vector of the geometric center of the rigid body, the clamping force of the end effector or the elastic force output by the robot arm to the outside world, the opening and closing angle of the end effector during the end effector period and the opening and closing speed of the end rotation angle, the torque of the end effector rotation of the robot arm, and the end coordinate reset caused by the operation of replacing the end effector; The behavior action information of the robot is combined to construct an action primitive library, which includes the robot's movement primitive, the translation primitive of the end effector of the robot arm, the force translation primitive, the return primitive, the opening or closing end effector primitive, the pressing primitive, the rotation primitive and the clamping and replacement end effector primitive.

3. The robot task planning method based on affine transformation and behavior tree according to claim 2 is characterized in that: The step of obtaining artificially taught trajectory data according to the action primitive library specifically includes: Performing manual teaching processing on primitive data in the action primitive library to obtain teaching trajectory data; The teaching trajectory data is preprocessed by discarding the mutation trajectory method to obtain the preprocessed teaching trajectory data; The preprocessed teaching trajectory data is generalized through affine transformation technology to obtain the artificial teaching trajectory data.

4. The robot task planning method based on affine transformation and behavior tree according to claim 3 is characterized in that: The expression of the discarded mutation trajectory method is specifically as follows: q(t)=None In the above formula, q(t) represents the teaching trajectory data, represents acceleration, ε represents a constant factor, which is 0.

4. express The left and right neighbors of , None means giving q(t) a null value.

5. The robot task planning method based on affine transformation and behavior tree according to claim 4 is characterized in that: The step of combining the logical relationship of the action primitives in the action primitive library, the manually taught trajectory data and the task execution logic to construct a preliminary behavior tree model specifically includes: According to the logical relationship between the primitive data in the action primitive library, a connection relationship between the primitive data is defined, wherein the connection relationship includes unconnectable, progressive, sequential and parallel connection; Set the connection relationship between primitive data as execution nodes to build the behavior tree model to be deleted; According to the task execution logic of the robot on the 3C production line, the behavior tree model to be deleted is deleted to obtain a preliminary behavior tree model.

6. The robot task planning method based on affine transformation and behavior tree according to claim 5, characterized in that: The step of generalizing the preliminary behavior tree model based on the affine transformation technology to obtain the behavior tree model specifically includes: The artificially taught trajectory data in the preliminary behavior tree model is generalized by using affine transformation technology to obtain generalized trajectory data; The similarity value between the manually taught trajectory data and the generalized trajectory data is calculated by the Tanimoto similarity function; Select the generalized trajectory data that meets the preset accuracy threshold in the similarity value to obtain the execution node; Embed the execution node into the preliminary behavior tree model to obtain the behavior tree model.

7. The robot task planning method based on affine transformation and behavior tree according to claim 6, characterized in that: The expression of the affine transformation technology is specifically as follows: new (t) = F(q old (t)) In the above formula, q new (t) represents the generalized trajectory data, q old (t) represents the manually taught trajectory data, and F(·) represents the affine transformation function.

8. The robot task planning method based on affine transformation and behavior tree according to claim 7, characterized in that: The expression of the Tanimoto similarity function is specifically as follows: In the above formula, q A *q B represents the inner product of two trajectory vectors, ||q A || 2 、||q B || 2 Represents the magnitude of two trajectory vectors.

9. A robot task planning system based on affine transformation and behavior tree, characterized in that: Includes the following modules: The combination module is used to obtain the robot's behavior action information and combine it to build an action primitive library; An acquisition module, used for acquiring trajectory data of manual teaching according to the action primitive library; The construction module is used to combine the logical relationship of action primitives in the action primitive library, the trajectory data of manual teaching and the task execution logic to build a preliminary behavior tree model; The generalization module generalizes the preliminary behavior tree model based on the affine transformation technology to obtain the behavior tree model; The planning module is used to plan the robot's task execution according to the execution logic of the behavior tree model.

Citation Information

Patent Citations

  • Metal shaft surface defect identification method based on deep learning

    CN109829907A

  • Panorama-based city image processing method and application

    CN113506275A

  • Mechanical arm task planning system based on behavior tree and application method

    CN114536333A

  • Robot task planning method and system based on affine transformation and behavior tree

    CN116117826A

  • Controlling an apparatus with a behavior tree

    US20220244708A1

Cited By

  • Task planning method and system of building robot, robot and medium

    CN120134309A

  • Fruit tree picking control method and system based on image recognition

    CN122323187A