A robot motion trajectory planning method, device and robot

By generating and combining observation feature vectors and command feature vectors, the accuracy problem caused by changes in observation angle and joint posture in robot action trajectory planning is solved, and the accuracy and robustness of action trajectory planning are improved.

CN118404590BActive Publication Date: 2024-09-20HISENSE GRP HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410874342.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-20
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

Existing robot action trajectory planning methods have complicated reward function designs and long training times when facing complex actions. In addition, in practical applications, methods based on diffusion strategies have inconsistent data due to changes in observation angles and joint pose changes, resulting in action trajectory planning. The accuracy is poor.

Method used

By obtaining the posture and perspective images of each joint during the robot's target action, the observation feature vector and the command feature vector are generated, combined with the random noise vector input into the trained diffusion model, and the noise vector is iteratively updated to determine the joint posture at the next moment. , ensuring the consistency of action instructions to improve planning accuracy.

Benefits of technology

It improves the accuracy and robustness of robot action trajectory planning, ensures that similar trajectories can still be generated despite changes in observation angles and joint postures, and reduces the difference between prediction results and training results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118404590B
    Figure CN118404590B
Patent Text Reader

Abstract

The present application discloses a robot motion trajectory planning method, device and robot. For the target action to be performed by the robot, in addition to obtaining the first position of each joint before the robot performs the target action and the view image collected by the robot, the target action instruction corresponding to the target action is also obtained; and an observation feature vector is generated according to the first position of each joint and the view image, and an instruction feature vector is generated according to the target action instruction; the observation feature vector and the instruction feature vector are spliced ​​to obtain the target feature vector. Then, the target feature vector and the random noise vector are input into the trained diffusion model, and the predicted noise vector is determined based on the diffusion model. The present application determines the iterative noise vector based on the random noise vector and the predicted noise vector, and then determines the second position of each joint after the target action. The accuracy of the robot motion trajectory planning can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics technology, and in particular to a robot motion trajectory planning method, device and robot. Background Art

[0002] The robot motion trajectory refers to the changes in the trajectories of each joint of the robot on the route from the starting point to the end point where the task is completed. It represents the position and posture of each joint of the robot in the time series.

[0003] At present, robot motion trajectory planning is generally achieved through reinforcement learning or imitation learning. Reinforcement learning is a method that continuously interacts with the environment autonomously and learns the nearest trajectory based on rewards. The problem is that the reward function is complex to design when facing complex actions, and the training time is long. Imitation learning is a supervised learning method, and its core idea is to output a trajectory consistent with the teaching action. The robot motion trajectory planning method based on diffusion policy proposed in the related art belongs to the category of imitation learning. This method first collects the teaching data demonstrated by humans and trains a diffusion model. In the inference stage, the current observation image and the joint posture of the robot are input, and the next action of the robot is output by denoising. The problem with this method is that in actual application, when the position of the robot changes, the perspective image of its observation will change; secondly, when the joint is touched by humans or other equipment during movement, the joint posture will also change. Therefore, it is difficult to ensure that the robot data is consistent with the training process during application. When the data is inconsistent, the predicted action will also be greatly different from the result during training, resulting in poor accuracy of robot motion trajectory planning. Summary of the invention

[0004] The present application provides a robot motion trajectory planning method, device and robot, which are used to solve the problem of poor accuracy of robot motion trajectory planning in existing robot motion trajectory planning technical solutions.

[0005] In a first aspect, the present application provides a robot motion trajectory planning method, the method comprising:

[0006] Obtaining the first position of each joint and the collected view image at the first moment during the robot's execution of the target action, and obtaining the target action instruction corresponding to the target action;

[0007] Generate an observation feature vector according to the first position of each joint and the view image; generate an instruction feature vector according to the target action instruction; and concatenate the observation feature vector and the instruction feature vector to obtain a target feature vector;

[0008] The target feature vector and the random noise vector are input into a trained diffusion model, and a predicted noise vector is determined based on the diffusion model; an iterative noise vector is determined according to the random noise vector and the predicted noise vector, the random noise vector is updated by using the iterative noise vector, and the second posture of each joint of the robot at the next moment is determined according to the predicted noise vector determined after a preset number of iterations.

[0009] In a second aspect, the present application provides a robot motion trajectory planning device, the device comprising:

[0010] An acquisition module is used to acquire the first position of each joint and the collected view image at the first moment in the process of the robot performing the target action, and to acquire the target action instruction corresponding to the target action;

[0011] The first determination module is used to generate an observation feature vector according to the first position of each joint and the view image; generate an instruction feature vector according to the target action instruction; and concatenate the observation feature vector and the instruction feature vector to obtain a target feature vector;

[0012] The second determination module is used to input the target feature vector and the random noise vector into the trained diffusion model, determine the predicted noise vector based on the diffusion model; determine the iterative noise vector according to the random noise vector and the predicted noise vector, use the iterative noise vector to update the random noise vector, and determine the second posture of each joint of the robot at the next moment according to the predicted noise vector determined after a preset number of iterations.

[0013] In a third aspect, the present application provides a robot, including a controller, a mechanical arm, a moving component, and a camera component;

[0014] The camera assembly is used to collect a viewing angle image at the first moment during the robot's execution of a target action, and send the viewing angle image to the controller;

[0015] The controller is used to obtain the first position of each joint of the mechanical arm and the mobile component at the first moment in the process of the robot performing a target action, and obtain the target action instruction corresponding to the target action; generate an observation feature vector according to the first position of each joint and the perspective image; generate an instruction feature vector according to the target action instruction; splice the observation feature vector and the instruction feature vector to obtain a target feature vector; input the target feature vector and the random noise vector into a trained diffusion model, and determine a predicted noise vector based on the diffusion model; determine an iterative noise vector according to the random noise vector and the predicted noise vector, use the iterative noise vector to update the random noise vector, and determine the second position of each joint of the mechanical arm and the mobile component at the next moment according to the predicted noise vector determined after a preset number of iterations.

[0016] The present application provides a robot motion trajectory planning method, device and robot, the method comprising: obtaining the first position of each joint and the collected viewing angle image at the first moment in the process of the robot executing a target action, and obtaining the target action instruction corresponding to the target action; generating an observation feature vector according to the first position of each joint and the viewing angle image; generating an instruction feature vector according to the target action instruction; splicing the observation feature vector and the instruction feature vector to obtain a target feature vector; inputting the target feature vector and the random noise vector into a trained diffusion model, and determining a predicted noise vector based on the diffusion model; determining an iterative noise vector according to the random noise vector and the predicted noise vector, updating the random noise vector with the iterative noise vector, and determining the second position of each joint of the robot at the next moment according to the predicted noise vector determined after a preset number of iterations.

[0017] The above technical solution has the following advantages or beneficial effects:

[0018] In the present application, in the process of the robot executing the target action, in addition to obtaining the first position of each joint of the robot at the first moment and the collected view image, the target action instruction corresponding to the target action is also obtained; and the observation feature vector is generated according to the first position of each joint and the view image, and the instruction feature vector is generated according to the target action instruction; the observation feature vector and the instruction feature vector are spliced ​​to obtain the target feature vector. Then the target feature vector and the random noise vector are input into the diffusion model after training, and the prediction noise vector is determined based on the diffusion model. Because for the same action, compared with the training process, when the observed view image changes, or the joint posture changes, the observation feature vector will change, but the action instruction corresponding to the same action is the same. That is, the instruction feature vector corresponding to the same action is the same when the diffusion model is applied and trained. The target feature vector input into the diffusion model of the present application incorporates the instruction feature vector. It can be ensured that a part of the target feature vector is the same as the feature vector corresponding to the same action during training, so it is easy to produce prediction results similar to those during training, and then generate more similar trajectories to achieve better robustness. Therefore, the present application determines the iterative noise vector based on the random noise vector and the predicted noise vector, and further determines the second posture of each joint at the next moment of the first moment in the process of the robot performing the target action, which can improve the accuracy of the robot's motion trajectory planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 Schematic diagram of the robot motion trajectory planning process provided for this application;

[0021] Figure 2 A schematic diagram of the training process of the diffusion model provided for this application;

[0022] Figure 3 The robot motion trajectory planning flow chart provided for this application;

[0023] Figure 4 The task instructions provided for this application are broken down into action instruction diagrams;

[0024] Figure 5 Diagram of the diffusion model training framework provided for this application;

[0025] Figure 6 Flowchart of the observation encoder implementation provided by this application;

[0026] Figure 7 A schematic diagram of the action trajectory planning process in a voice interaction scenario provided for this application;

[0027] Figure 8 Schematic diagram of the action trajectory planning process in the non-voice interaction scenario provided by this application;

[0028] Fig. 9 A schematic diagram of the action instruction switching process provided by this application;

[0029] Fig.10 A schematic diagram of the structure of the robot motion trajectory planning device provided in this application;

[0030] Fig.11 A schematic diagram of a robot structure provided for this application;

[0031] Fig.12 A schematic diagram of another robot structure provided for this application. DETAILED DESCRIPTION

[0032] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0033] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0034] The terms "first", "second", "third", etc. in the specification and the above drawings of this application are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise specified. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0035] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0036] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0037] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0038] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

[0039] Before introducing the robot motion trajectory planning method provided by the embodiment of the present application, for ease of understanding, the technical background of the embodiment of the present application is first introduced in detail below. The robot motion trajectory refers to the change of each joint trajectory of the robot on the route from the starting point to the end point of the task, which represents the position and posture of each joint of the robot in the time series. For a trajectory, it may contain only one action or multiple actions. When the robot performs each action, each joint of the robot has a change in position and posture in the time series. In the related art, a robot motion trajectory planning method based on a diffusion policy is proposed. The method first collects the teaching data demonstrated by humans and trains a diffusion model. In the reasoning stage, the current observation image and the position and posture of each joint of the robot are input, and the next action of the robot is output by denoising, that is, the position and posture of each joint at the next moment are predicted. The problem with this method is that on the one hand, it is difficult to standardize and unify the teaching data during the training process of the diffusion model. This is because the same operation task, the teaching operation of the same person at different times or the teaching operation of different people at the same time will produce completely different motion trajectories, and these teaching data will lead to slow convergence and poor stability when training the model. On the other hand, when the diffusion model is applied, when the position of the robot changes, the observed perspective image will change; secondly, when the joints are touched by humans or other equipment during movement, the joint posture will also change. Therefore, it is difficult to ensure that the robot data is consistent with the training process when applied. When the data is inconsistent, the predicted action will also be greatly different from the results during training, resulting in poor accuracy in the robot's motion trajectory planning.

[0040] In order to avoid the above-mentioned problems, in the present application, the first position of each joint and the collected viewing angle image at the first moment in the process of the robot executing the target action are obtained, and the target action instruction corresponding to the target action is obtained; according to the first position of each joint and the viewing angle image, an observation feature vector is generated; according to the target action instruction, an instruction feature vector is generated; the observation feature vector and the instruction feature vector are spliced ​​to obtain the target feature vector; the target feature vector and the random noise vector are input into the trained diffusion model, and the predicted noise vector is determined based on the diffusion model; the iterative noise vector is determined according to the random noise vector and the predicted noise vector, the random noise vector is updated with the iterative noise vector, and the second position of each joint of the robot at the next moment is determined according to the predicted noise vector determined after a preset number of iterations.

[0041] Because for the same action, compared to the training process, when the observed perspective image changes, or the joint posture changes, the observed feature vector will change, but the action command of the same action is the same, that is, the command feature vector is the same as that during training. The target feature vector of the input diffusion model of this application incorporates the command feature vector. It can ensure that a part of the target feature vector is the same as the feature vector corresponding to the same action during training, which makes it easy to produce prediction results similar to those during training, and then generate more similar trajectories, achieve better robustness, and improve the accuracy of robot motion trajectory planning.

[0042] Figure 1 The schematic diagram of the robot motion trajectory planning process provided in this application includes the following steps:

[0043] S101: Obtain the first position of each joint and the collected view image at the first moment in the process of the robot performing a target action, and obtain a target action instruction corresponding to the target action.

[0044] S102: Generate an observation feature vector according to the first position of each joint and the view image; generate an instruction feature vector according to the target action instruction; and concatenate the observation feature vector and the instruction feature vector to obtain a target feature vector.

[0045] S103: Input the target feature vector and the random noise vector into the trained diffusion model, and determine the predicted noise vector based on the diffusion model; determine the iterative noise vector according to the random noise vector and the predicted noise vector, use the iterative noise vector to update the random noise vector, and determine the second posture of each joint of the robot at the next moment according to the predicted noise vector determined after a preset number of iterations.

[0046] The robot motion trajectory planning method provided in the present application is applied to a robot. In the present application, the action currently being performed by the robot is referred to as the target action, and the moment at which the robot is in the current state is referred to as the first moment. The first position of each joint and the collected visual image at the first moment in the process of the robot performing the target action are obtained. Among them, each joint refers to the joints of the robot's mechanical arm and the mobile component. The robot can obtain the position of each joint through each joint sensor. The position of each joint includes information such as the angular velocity of each joint. In the present application, the position of each joint at the first moment in the process of the robot performing the target action obtained is referred to as the first position of each joint. In addition, the visual image collected by the camera component in the robot at the first moment in the process of the robot performing the target action is obtained. In addition, the robot also obtains the target action instruction corresponding to the target action. It should be noted that the target action instruction can be a voice instruction or a text instruction. Optionally, the voice instruction input by the user can be collected by the voice collection component of the robot, and then the target action instruction corresponding to the target action can be analyzed. Alternatively, the text instruction input by the user can be collected by the text collection component of the robot, and then the target action instruction corresponding to the target action can be analyzed. The text collection component is, for example, a display screen in the robot, and the user can enter text on the display screen to input text instructions into the robot. Alternatively, the robot can pre-store the action instructions corresponding to each action in the action sequence corresponding to the action trajectory planning, and then determine the action instruction corresponding to the target action as the target action instruction.

[0047] The robot motion trajectory refers to the change of each joint trajectory on the route from the starting point to the end point of the task completed by the robot, which represents the position and posture of each joint of the robot in the time series. For a trajectory, generally, it will contain a corresponding action sequence, and the action sequence contains multiple actions that are continuous in time. For example, it contains action 1, action 2 and action 3. In the process of robot motion trajectory planning, action 1 is first executed, and the target action is also action 1. After action 1 is executed, action 2 is executed, and the target action is also action 2. After action 2 is executed, action 3 is executed, and the target action is also action 3. In this application, in the process of robot motion trajectory planning, at the stage of executing each action, the user can indicate the target action currently executed by the robot, and then obtain the target action corresponding to the target action. Preferably, after determining each action according to the action sequence, first determine that the target action currently executed is the first action in the action sequence, then automatically identify that the target action has been executed, and automatically switch to the next action as the target action, and continue the process of robot motion trajectory planning. It should be noted that in the process of executing the same target action, the corresponding target action instruction is the same target action instruction. The process of automatically identifying the completion of the target action can be: pre-saving the robot joint postures corresponding to each action when the action is completed, and in the process of the robot executing the target action, after predicting the joint postures of each joint at the next moment each time, determining the similarity between the predicted joint postures of each joint at the next moment and the saved joint postures of each joint of the robot when the target action is completed, if the similarity is greater than a preset similarity threshold, determining that the target action is completed, determining the next action after the target action according to the action sequence, updating the next action to the target action, and performing the subsequent action trajectory planning steps, at this time, using the action instruction corresponding to the next action as the target action instruction. Otherwise, it is determined that the target action is not completed, and the target action instruction remains unchanged.

[0048] The robot generates an observation feature vector according to the first pose of each joint and the view image. Optionally, because the view image is a matrix and the posture of each joint is generally a vector, when the robot generates the observation feature vector according to the first pose of each joint and the view image, the view image can be firstly feature extracted to obtain the image feature vector, and then the image feature vector and the posture feature vector corresponding to the first pose of each joint are spliced ​​to obtain the observation feature vector. Optionally, the splicing of two feature vectors can be spliced ​​according to the dimension of the feature vector. For example, the image feature vector is a feature vector of 1×20, and the posture feature vector is a feature vector of 1×30. The image feature vector and the posture feature vector corresponding to the first pose of each joint are spliced ​​to obtain an observation feature vector of 1×50.

[0049] In addition, a command feature vector is generated according to the target action instruction. Optionally, if the target action instruction is a voice instruction, the feature extraction of the voice instruction can be directly performed to obtain the command feature vector; if the target action instruction is a text instruction, the feature extraction of the text instruction can be directly performed to obtain the command feature vector; or, if the target action instruction is a voice instruction, the voice instruction can be first converted into a text instruction through speech recognition technology, and then the feature extraction of the text instruction can be performed to obtain the command feature vector.

[0050] The observed feature vector and the instruction feature vector are concatenated to obtain a target feature vector. Optionally, the two feature vectors can be concatenated according to the dimension of the feature vector. For example, the observed feature vector is a feature vector of 1×50, and the instruction feature vector is a feature vector of 1×20. The observed feature vector and the instruction feature vector are concatenated to obtain a target feature vector of 1×70.

[0051] The target feature vector and the random noise vector are input into the trained diffusion model, and the target feature vector and the random noise vector are respectively extracted based on the diffusion model to determine the predicted noise vector with the same dimension as the random noise vector. The iterative noise vector is determined according to the random noise vector and the predicted noise vector. Optionally, the difference vector between the random noise vector and the predicted noise vector is used as the iterative noise vector, and then the iterative noise vector is used to update the random noise vector, and then the target feature vector and the updated random noise vector are input into the trained diffusion model, and the target feature vector and the updated random noise vector are respectively extracted based on the diffusion model to determine the predicted noise vector. The iterative noise vector is determined according to the updated random noise vector and the predicted noise vector. The updated random noise vector is then updated using the iterative noise vector. By analogy, after a preset number of iterations, a predicted noise vector is obtained, and then the second posture of each joint of the robot at the next moment is determined according to the predicted noise vector. The preset number of iterations is, for example, 50 times, 55 times, 60 times, etc. The predicted noise vector obtained after a preset number of iterations can be directly used as the second posture of each joint of the robot at the next moment, and the robot's mechanical arm and mobile components are controlled to move according to the second posture of each joint.

[0052] In the present application, in the process of the robot executing the target action, in addition to obtaining the first position of each joint of the robot at the first moment and the collected view image, the target action instruction corresponding to the target action is also obtained; and the observation feature vector is generated according to the first position of each joint and the view image, and the instruction feature vector is generated according to the target action instruction; the observation feature vector and the instruction feature vector are spliced ​​to obtain the target feature vector. Then the target feature vector and the random noise vector are input into the diffusion model after training, and the prediction noise vector is determined based on the diffusion model. Because for the same action, compared with the training process, when the observed view image changes, or the joint posture changes, the observation feature vector will change, but the action instruction corresponding to the same action is the same. That is, the instruction feature vector corresponding to the same action is the same when the diffusion model is applied and trained. The target feature vector input into the diffusion model of the present application incorporates the instruction feature vector. It can be ensured that a part of the target feature vector is the same as the feature vector corresponding to the same action during training, so it is easy to produce prediction results similar to those during training, and then generate more similar trajectories to achieve better robustness. Therefore, the present application determines the iterative noise vector based on the random noise vector and the predicted noise vector, and further determines the second posture of each joint at the next moment of the first moment in the process of the robot performing the target action, which can improve the accuracy of the robot's motion trajectory planning.

[0053] This application can use different methods to obtain target action instructions for different application scenarios. For shopping mall service scenarios, communication between the robot and the user is generally required, so the target action instructions can be determined by obtaining voice information. For the factory manufacturing field, because the robot's actions for each step are fixed and there is no need for voice communication with the user, the action instructions corresponding to each action in the action sequence can be saved in advance. Based on the above considerations, in this application, obtaining the target action instruction corresponding to the target action includes:

[0054] Acquire the user's voice information, and determine the action sequence indicated by the voice information by performing voice recognition on the voice information; perform action segmentation on the action sequence to obtain action instructions corresponding to each action; and determine the target action instruction corresponding to the target action; or

[0055] Obtaining action instructions corresponding to each action in a pre-saved action sequence; and determining a target action instruction corresponding to the target action.

[0056] Method 1: The robot obtains the user's voice information and determines the action sequence corresponding to the voice information by performing voice recognition on the voice information. Then the action sequence is split into actions to obtain the action instructions corresponding to each action, which are text action instructions. Then the action instruction corresponding to the target action is determined as the target action instruction.

[0057] For example, by performing speech recognition on the speech information, it is determined that the action sequence corresponding to the speech information is "put the apple on the table", and the action sequence is split into actions, and the various actions are: approach, pick up, move, and put. The action instruction corresponding to "approach" is: "find the apple and approach", the action instruction corresponding to "pick up" is: "pick up the apple", the action instruction corresponding to "move" is: "move to the table", and the action instruction corresponding to "put" is: "put down the apple". If the target action is "approach", the target action instruction is determined to be "find the apple and approach".

[0058] Method 2: The robot pre-saves the action instructions corresponding to each action in the action sequence, and the action instructions are text action instructions. Then the action instructions corresponding to the target action are determined as the target action instructions.

[0059] For example, the actions in the pre-saved action sequence are: approach, pick up, move, and put. The action instruction corresponding to "approach" is: "find the apple and approach", the action instruction corresponding to "pick up" is: "pick up the apple", the action instruction corresponding to "move" is: "move to the table", and the action instruction corresponding to "put" is: "put down the apple". If the target action is "put down", the target action instruction is determined to be "put down the apple".

[0060] In this application, in order to improve the accuracy of robot motion trajectory planning, in this application, the method also includes:

[0061] Obtain the pre-saved third posture of each joint when the robot completes the target action, determine the similarity between the second posture of each joint and the third posture of each joint, and if the similarity is greater than a preset similarity threshold, determine the next action after the target action according to the action sequence, update the next action to the target action, and perform subsequent action trajectory planning steps.

[0062] In this application, for each action in the action sequence, the posture of each joint when the robot completes the action is saved, and for the target action currently being executed, the posture of each joint when the robot completes the target action is called the third posture of each joint. After the robot determines the second posture of each joint at each moment, it determines the similarity between the second posture of each joint and the third posture of each joint. It should be noted that the posture of each joint can be expressed as a vector, and the process of determining the similarity of the second posture of each joint and the third posture of each joint is the process of determining the similarity of two vectors. Among them, the similarity of the second posture of each joint and the third posture of each joint can be determined by algorithms such as the Euclidean norm, cosine similarity, Manhattan distance, and Minkowski distance.

[0063] The robot stores a preset similarity threshold, such as 0.85, 0.9, etc. If the similarity between the second posture of each joint and the third posture of each joint is greater than the preset similarity threshold, it is determined that the target action is completed, the next action after the target action is determined according to the action sequence, the next action is updated to the target action, and the subsequent action trajectory planning steps are performed. If the similarity between the second posture of each joint and the third posture of each joint is not greater than the preset similarity threshold, it is determined that the target action is not completed, and the target action and the corresponding target action instruction remain unchanged.

[0064] In the present application, generating an observation feature vector according to the first pose of each joint and the view image includes:

[0065] The first pose of each joint and the viewing angle image are input into the observation encoder; the viewing angle image passes through the convolution layer, the pooling layer and the linear connection layer in the observation encoder in sequence to obtain an image feature vector; the image feature vector and the pose feature vector corresponding to the first pose of each joint are spliced ​​to obtain the observation feature vector.

[0066] The first pose of each joint and the view image are input into the observation encoder. The first pose of each joint can be represented as a vector, which is used as the pose feature vector corresponding to the first pose of each joint. The convolution layer in the observation encoder performs convolution processing on the view image to obtain the first feature vector; the pooling layer in the observation encoder performs pooling processing on the first feature vector to obtain the second feature vector; the second feature vector passes through the linear connection layer in the observation encoder to obtain the image feature vector. Then the image feature vector and the pose feature vector corresponding to the first pose of each joint are spliced ​​to obtain the observation feature vector.

[0067] In the present application, generating an instruction feature vector according to the target action instruction includes:

[0068] Determine whether there is an instruction feature vector corresponding to the target action instruction among the instruction feature vectors corresponding to each pre-saved action instruction; if so, obtain the instruction feature vector corresponding to the target action instruction; if not, input the target action instruction into a graph-text matching model, encode the target action instruction based on the graph-text matching model, and obtain the instruction feature vector.

[0069] In the present application, it is considered that the same action instructions may exist in different motion trajectory plans. For example, motion trajectory plan A is: put the apple on another table, and its corresponding action instructions are find the apple and approach it, pick up the apple, move to the table position, and put down the apple. Motion trajectory plan B is: pick up the apple on the table, and its corresponding action instructions are find the apple and approach it, and pick up the apple. Motion trajectory plan C is: take the apple out of the refrigerator, and its corresponding action instructions are approach the refrigerator, open the refrigerator door, find the apple and approach it, and pick up the apple. It is found that motion trajectory plan A, motion trajectory plan B, and motion trajectory plan C all contain action instructions to find the apple and approach it and pick up the apple.

[0070] Based on the above considerations, in the present application, the robot pre-saves the instruction feature vectors corresponding to each action instruction. When generating the instruction feature vector according to the target action instruction, first determine whether there is an instruction feature vector corresponding to the target action instruction in the pre-saved instruction feature vectors corresponding to each action instruction; if there is, obtain the instruction feature vector corresponding to the target action instruction, thereby improving the efficiency of the robot's motion trajectory planning and saving the robot's computing resources and power consumption. If there is no instruction feature vector corresponding to the target action instruction in the pre-saved instruction feature vectors corresponding to each action instruction, then the target action instruction is input into the image-text matching model, and the target action instruction is encoded based on the image-text matching model to obtain the instruction feature vector.

[0071] In this application, the training process of the diffusion model includes:

[0072] Obtaining the fourth posture of each joint and the collected sample view image at the second moment during the robot performing the sample action, and obtaining a sample action instruction corresponding to the sample action;

[0073] Generate a sample observation feature vector according to the fourth posture of each joint and the sample view image; generate a sample instruction feature vector according to the sample action instruction; and concatenate the sample observation feature vector and the sample instruction feature vector to obtain a sample feature vector;

[0074] The fifth posture of each joint of the robot at the next moment when the robot performs the sample action is obtained, and a sample random noise vector is added to the fifth posture of each joint to obtain a sixth posture of each joint; the sample feature vector and the sixth posture of each joint are input into a diffusion model to be trained, and a sample prediction noise vector is determined based on the diffusion model; a loss value is determined according to the sample random noise vector and the sample prediction noise vector; and the diffusion model is trained according to the loss value.

[0075] In the present application, the action performed by the robot during the diffusion model training process is referred to as a sample action, and the moment when the robot is in the process of performing the sample action is referred to as the second moment. The fourth posture of each joint and the collected sample view image at the second moment in the process of the robot performing the sample action are obtained. In addition, the robot also obtains the sample action instruction corresponding to the sample action. It should be noted that the sample action instruction can be a voice instruction or a text instruction. Optionally, during the training process, the sample action instruction corresponding to the sample action can be pre-saved.

[0076] The robot generates a sample observation feature vector according to the fourth posture of each joint and the sample view image. Optionally, because the sample view image is a matrix, and each joint posture is generally a vector, when the robot generates a sample observation feature vector according to the fourth posture of each joint and the sample view image, the sample view image can be firstly feature extracted to obtain a sample image feature vector, and then the sample image feature vector and the sample posture feature vector corresponding to the fourth posture of each joint are spliced ​​to obtain a sample observation feature vector. Optionally, the splicing of two feature vectors can be spliced ​​according to the dimension of the feature vector.

[0077] In addition, a sample instruction feature vector is generated based on the sample action instruction. Optionally, if the sample action instruction is a voice instruction, the feature extraction of the voice instruction can be performed directly to obtain the sample instruction feature vector; if the sample action instruction is a text instruction, the feature extraction of the text instruction can be performed directly to obtain the sample instruction feature vector; or, if the sample action instruction is a voice instruction, the voice instruction can be first converted into a text instruction through speech recognition technology, and then the feature extraction of the text instruction can be performed to obtain the sample instruction feature vector.

[0078] The sample observation feature vector and the sample instruction feature vector are concatenated to obtain a sample feature vector. Optionally, the two feature vectors may be concatenated according to the dimension of the feature vector.

[0079] When the robot performs the sample action, the fifth pose of each joint at the next moment of the second moment is obtained, and the sample random noise vector is added to the fifth pose of each joint to obtain the sixth pose of each joint. Then the sample feature vector and the sixth pose of each joint are input into the diffusion model to be trained, and the sample feature vector and the sixth pose of each joint are respectively extracted based on the diffusion model to determine the sample prediction noise vector with the same dimension as the sample random noise vector. The loss value is determined according to the sample random noise vector and the sample prediction noise vector. The parameters of the diffusion model are trained by iteratively reducing the loss value.

[0080] Figure 2 The training process diagram of the diffusion model provided in this application includes the following steps:

[0081] S201: Acquire the fourth posture of each joint and the collected sample view image at the second moment during the robot's execution of the sample action, and acquire the sample action instruction corresponding to the sample action;

[0082] S202: generating a sample observation feature vector according to the fourth posture of each joint and the sample view image; generating a sample instruction feature vector according to the sample action instruction; and concatenating the sample observation feature vector and the sample instruction feature vector to obtain a sample feature vector;

[0083] S203: Obtain the fifth posture of each joint at the next moment when the robot executes the sample action, add the sample random noise vector to the fifth posture of each joint, and obtain the sixth posture of each joint; input the sample feature vector and the sixth posture of each joint into the diffusion model to be trained, and determine the sample prediction noise vector based on the diffusion model; determine the loss value according to the sample random noise vector and the sample prediction noise vector; and train the diffusion model according to the loss value.

[0084] The robot motion trajectory planning process provided by this application is described in detail below with reference to specific examples.

[0085] In order to solve the problem that the diffusion strategy is greatly affected by the teaching data and has poor reasoning stability, the present application proposes a robot motion trajectory planning method based on an improved diffusion strategy, that is, the target action instructions after task decomposition are introduced into the diffusion strategy in the form of encoding, so that the target feature vector is composed of the observation feature vector to guide the action generation of the diffusion strategy, thereby effectively reducing the problem of poor stability caused by only the observation feature vector to guide.

[0086] Figure 3 The robot motion trajectory planning flow chart provided for this application is as follows: Figure 3 As shown in the figure, each user instruction becomes an action instruction for each step after passing through the task decomposition module. The action instruction corresponding to the currently executed target action is used as the target action instruction, and the target action instruction is extracted as an instruction feature vector through the CLIP algorithm of the image-text matching model.

[0087] The robot's camera component captures the robot's first-person perspective image and the postures of each joint in the robot's current state, generates an observation feature vector based on the perspective image and the postures of each joint, and splices it with the instruction feature vector to obtain the target feature vector, which is input into the diffusion model for iterative denoising.

[0088] For a robot to learn an action, it needs to collect multiple teaching trajectories. Although the observation feature vectors of different teaching trajectories are different, the action tasks they correspond to are the same, that is, the instruction feature vectors are consistent. Therefore, introducing action instructions into the diffusion strategy can reduce the impact of multiple different teaching trajectories for the same task on model convergence.

[0089] Due to the introduction of action instructions, the robot data of the diffusion model trained in the related technology cannot be directly used in this application. For this reason, this application performs action splitting on each teaching data according to the results of task decomposition. The granularity of the splitting needs to consider the reusability of each action instruction after the splitting, that is, each action instruction after the splitting should be applicable to other task instructions as much as possible, so that the model trained based on a certain action can be quickly fine-tuned to its action field, thereby effectively accelerating the training process of the model.

[0090] If a robot masters the motion trajectory of a task through imitation learning, then this task is fixed, and the motion trajectory of a task can be called a "skill package". For example, if a robot masters taking out apples from the refrigerator through imitation learning, then this skill package cannot complete the scene of taking out eggs from the refrigerator. Different task instructions can have the same action instructions after task splitting. Figure 4 The task instructions provided for this application are decomposed into action instruction diagrams. Task instructions: refers to the commands spoken by the user; action instructions: refers to the specific steps after the task instructions are decomposed. Figure 4 As shown in the figure, the three task instructions are A: put the apple on another table, and the corresponding action instructions are to find the apple and approach it, pick up the apple, move to the table, and put the apple down. B: pick up the apple on the table, and the corresponding action instructions are to find the apple and approach it, and pick up the apple. C: take the apple out of the refrigerator, and the corresponding action instructions are to approach the refrigerator, open the refrigerator door, find the apple and approach it, and pick up the apple. It can be found that task instructions A, B, and C all contain the action instructions to find the apple and approach it and pick up the apple.

[0091] The split action instructions can correspond to different task instructions. The advantage is that when training task instruction A, the trained task instruction B can be used as a pre-trained model because it has the action trajectory of finding the apple, approaching and picking up the apple in task instruction A, which can effectively reduce the learning step length when training task instruction A. It is also convenient for training different action models, and then calling multiple action models according to the complexity of the task.

[0092] For each action instruction after splitting, the last step posture of each robot joint when completing the action needs to be saved, and used as the basis for judging the instruction switching according to the posture similarity when the algorithm is deployed.

[0093] In order to integrate the action instruction description of each step into this application, the action instruction is converted into an instruction feature vector through the text encoder, namely the CLIP algorithm. CLIP is a graph-text matching model developed by OpenAI, which can encode the text description Prompt) to generate an instruction feature vector of fixed dimension. The dimension of the instruction feature vector is consistent with the dimension of the observation feature vector, so that vector splicing can be performed.

[0094] Figure 5 The diffusion model training framework diagram provided for this application is as follows: Figure 5 As shown in the figure, the first-person image collected by the robot and each joint posture generate a sample observation feature vector through the observation encoder. The user instruction is split into multiple action instructions after the task decomposition module, and then each action instruction enters the image-text matching model CLIP in turn to be converted into a sample instruction feature vector of the same dimension as the sample observation feature vector. The sample instruction feature vector and the sample observation feature vector are spliced ​​according to the last dimension of the vector, and the vector generated after splicing is called the sample feature vector.

[0095] The robot's joint positions at the next moment are added with random noise and then input into the diffusion model to determine the predicted noise. In each step of the iterative denoising process, the sample feature vector is used to guide the denoising direction of the model. The mean square error between the predicted noise and the added noise is used as the loss value, and the diffusion model parameter update training is performed by iteratively reducing the loss.

[0096] Among them, the task decomposition module can be implemented using a large language model such as GPT, which already has good task planning capabilities. This module can be used directly without fine-tuning or model training.

[0097] Figure 6 The observation encoder implementation flow chart provided for this application is as follows: Figure 6 As shown in the figure, the observation encoder is a module that combines the image and the robot joint pose into an observation feature vector. Because the image is a matrix and the joint pose is generally a vector, the two parts can be spliced ​​together through this module. The composition of the module is shown in the figure below. After the view image passes through the convolution, pooling and linear connection layers, the vector with the same dimension as the joint pose matrix is ​​output, and then the observation feature vector is obtained by splicing the dimensions. When making a training set, each step of action corresponds to an action instruction. Therefore, during the training process, the action instruction is selected based on the current observation image and action label.

[0098] After the diffusion model training is completed, in the inference stage, the trained diffusion model is used to input the target feature vector and the random noise vector to obtain the predicted noise vector; the predicted noise vector is subtracted from the random noise vector, and the random noise vector is continuously iterated to obtain the final action (position of each joint).

[0099] Depending on the application scenario, action instructions can be generated in different ways. For example, for shopping mall service scenarios, it is generally necessary for the robot to communicate with the user, so the target action instructions can be determined by obtaining voice information. For factory manufacturing, because the robot's actions are fixed for each step and there is no need to communicate with the user by voice, the action instructions corresponding to each action in the action sequence can be saved in advance.

[0100] Figure 7 The schematic diagram of the action trajectory planning process in the voice interaction scenario provided for this application is as follows: Figure 7 As shown, the robot first collects the first-person view image and the current joint postures. The user's voice information is obtained, and the user's instructions are split into actions through the task decomposition module to obtain the action instructions corresponding to each action; and the target action instruction corresponding to the target action is determined. The target action instruction generates an instruction feature vector through the CLIP model, and the first-person view image and joint posture generate an observation feature vector. The two vectors together constitute the target feature vector. A random feature vector with the same dimension as the sample noise feature vector in the training phase is generated, and the random feature vector and the target feature vector are input into the diffusion model for noise prediction. The random noise vector is subtracted from the predicted noise vector predicted by the diffusion model to obtain a new noise vector, and the new noise vector is used to replace the random noise vector to continue the next noise prediction, and iterate n times in sequence. The number of iterations is generally about 50 times, and the final value is the next action. After the action instruction switching module, it is determined whether to switch to the next action instruction.

[0101] When each action instruction is switched, the similarity between the current joint posture and the joint posture when the recorded action is completed is calculated using the same method as in training.

[0102] Figure 8 The schematic diagram of the action trajectory planning process in the non-voice interaction scenario provided by this application is as follows: Figure 8As shown, the robot first collects the first-person image and the current joint postures. Obtain the action instructions corresponding to each action in the pre-saved action sequence; and determine the target action instruction corresponding to the target action. The target action instruction generates an instruction feature vector through the CLIP model, and the first-person image and joint posture generate an observation feature vector. The two vectors together constitute the target feature vector. Generate a random feature vector with the same dimension as the sample noise feature vector in the training phase, and input the random feature vector and the target feature vector into the diffusion model for noise prediction. Subtract the predicted noise vector predicted by the diffusion model from the random noise vector to obtain a new noise vector, and replace the random noise vector with the new noise vector to continue the next noise prediction, and iterate in sequence. The number of iterations is generally about 50 times, and the final value is the next action.

[0103] When each action instruction is switched, the similarity between the current joint posture and the joint posture when the recorded action is completed is calculated using the same method as in training.

[0104] Fig. 9 The schematic diagram of the action instruction switching process provided by this application is as follows: Fig. 9 As shown, when the algorithm is deployed and applied, the action instruction switching module is used to determine the method of switching the current action instruction to the next action instruction. Multiple action instructions are combined to complete a user instruction, so it is necessary to know at what moment to switch to the next action instruction for guidance. In this application, when the data set is first made, the joint posture at the end of each action is recorded, and then the action instructions of the task planning are entered in sequence. When the similarity between the calculated current joint state and the joint state at the end of the corresponding action instruction recorded exceeds the threshold, it is considered that the action has ended, and then the next action instruction is switched. For example, when the recorded action instruction "pick up the apple" is executed, the joint postures of each joint are: 0.043, 0.039, ..., 0.075; when the recorded action instruction "move to ** position" is executed, the joint postures of each joint are: 0.084, 0.066, ..., 0.038. In the process of the robot performing the "pick up the apple" action, for example, the current joint postures are 0.045, 0.037, ..., 0.074. Calculate the similarity between the recorded joint postures: 0.043, 0.039, ..., 0.075 and the current joint postures: 0.045, 0.037, ..., 0.074. If the similarity exceeds the preset threshold, the action command is switched from "pick up the apple" to "move to the ** position".

[0105] The essence of the diffusion strategy is to iteratively denoise random noise based on the observed feature vector and output the action. However, when the position of the robot changes, the image it observes will change; secondly, when a person or other equipment touches the joint during movement, the joint posture will also change. Therefore, it is difficult to ensure that the observed feature vector is consistent with the numerical value during training. When the numerical value is inconsistent, the predicted action will also be greatly different from the result during training, resulting in poor stability. In this application, we introduce action instructions into the target feature vector. Since the action instructions for each step are fixed, when the algorithm is applied, it can be guaranteed that part of the numerical value in the target feature vector is the same as that during training, which makes it easy to produce prediction results similar to those during training, and then generate more similar trajectories to achieve better robustness.

[0106] Fig.10 The schematic diagram of the robot motion trajectory planning device provided for this application includes:

[0107] The acquisition module 11 is used to acquire the first position of each joint and the collected view image at the first moment in the process of the robot performing the target action, and acquire the target action instruction corresponding to the target action;

[0108] The first determination module 12 is used to generate an observation feature vector according to the first position of each joint and the view image; generate an instruction feature vector according to the target action instruction; and concatenate the observation feature vector and the instruction feature vector to obtain a target feature vector;

[0109] The second determination module 13 is used to input the target feature vector and the random noise vector into the trained diffusion model, and determine the predicted noise vector based on the diffusion model; determine the iterative noise vector according to the random noise vector and the predicted noise vector, use the iterative noise vector to update the random noise vector, and determine the second posture of each joint of the robot at the next moment according to the predicted noise vector determined after a preset number of iterations.

[0110] The acquisition module 11 is specifically used to obtain the user's voice information, determine the action sequence indicated by the voice information by performing voice recognition on the voice information; split the action sequence into actions to obtain the action instructions corresponding to each action; and determine the target action instructions corresponding to the target action; or obtain the action instructions corresponding to each action in a pre-saved action sequence; and determine the target action instructions corresponding to the target action.

[0111] The device also includes:

[0112] The instruction switching module 14 is used to obtain the pre-saved third posture of each joint when the robot completes the target action, determine the similarity between the second posture of each joint and the third posture of each joint, and if the similarity is greater than a preset similarity threshold, determine the next action after the target action according to the action sequence, update the next action to the target action, and perform subsequent action trajectory planning steps.

[0113] The first determination module 12 is specifically used to input the first pose of each joint and the viewing image into an observation encoder; the viewing image passes through the convolution layer, pooling layer and linear connection layer in the observation encoder in sequence to obtain an image feature vector; the image feature vector and the pose feature vector corresponding to the first pose of each joint are spliced ​​to obtain the observation feature vector.

[0114] The first determination module 12 is specifically used to determine whether there is an instruction feature vector corresponding to the target action instruction in the instruction feature vectors corresponding to each pre-saved action instruction; if so, obtain the instruction feature vector corresponding to the target action instruction; if not, input the target action instruction into a graph-text matching model, encode the target action instruction based on the graph-text matching model, and obtain the instruction feature vector.

[0115] The device also includes:

[0116] The training module 15 is used to obtain the fourth posture of each joint at the second moment when the robot performs the sample action and the collected sample view image, and obtain the sample action instruction corresponding to the sample action; generate a sample observation feature vector according to the fourth posture of each joint and the sample view image; generate a sample instruction feature vector according to the sample action instruction; concatenate the sample observation feature vector and the sample instruction feature vector to obtain a sample feature vector; obtain the fifth posture of each joint at the next moment when the robot performs the sample action, add a sample random noise vector to the fifth posture of each joint, and obtain a sixth posture of each joint; input the sample feature vector and the sixth posture of each joint into the diffusion model to be trained, and determine the sample prediction noise vector based on the diffusion model; determine the loss value according to the sample random noise vector and the sample prediction noise vector; and train the diffusion model according to the loss value.

[0117] Fig.11 A schematic diagram of a robot structure provided in the present application includes a controller 21, a mechanical arm 22, a moving component 23 and a camera component 24;

[0118] The camera assembly 24 is used to collect the perspective image of the robot at the first moment of executing the target action, and send the perspective image to the controller 21;

[0119] The controller 21 is used to obtain the first position of each joint of the mechanical arm 22 and the mobile component 23 at the first moment in the process of the robot performing a target action, and obtain the target action instruction corresponding to the target action; generate an observation feature vector according to the first position of each joint and the perspective image; generate an instruction feature vector according to the target action instruction; splice the observation feature vector and the instruction feature vector to obtain a target feature vector; input the target feature vector and the random noise vector into a trained diffusion model, and determine a predicted noise vector based on the diffusion model; determine an iterative noise vector according to the random noise vector and the predicted noise vector, use the iterative noise vector to update the random noise vector, and determine the second position of each joint of the mechanical arm 22 and the mobile component 23 at the next moment according to the predicted noise vector determined after a preset number of iterations.

[0120] Fig.12 A schematic diagram of another robot structure provided by the present application, a sound collection component 25;

[0121] The sound collection component 25 is used to collect the user's voice information and send the voice information to the controller 21;

[0122] The controller 21 is used to determine the action sequence indicated by the voice information by performing voice recognition on the voice information; perform action segmentation on the action sequence to obtain action instructions corresponding to each action; and determine the target action instruction corresponding to the target action.

[0123] The controller 21 is also used to obtain the pre-saved third posture of each joint when the robot completes the target action, determine the similarity between the second posture of each joint and the third posture of each joint, and if the similarity is greater than a preset similarity threshold, determine the next action after the target action according to the action sequence, update the next action to the target action, and perform subsequent action trajectory planning steps.

[0124] The controller 21 is specifically used to input the first pose of each joint and the perspective image into an observation encoder; the perspective image passes through the convolution layer, pooling layer and linear connection layer in the observation encoder in sequence to obtain an image feature vector; the image feature vector and the posture feature vector corresponding to the first pose of each joint are spliced ​​to obtain the observation feature vector.

[0125] The controller 21 is specifically used to determine whether there is an instruction feature vector corresponding to the target action instruction in the instruction feature vectors corresponding to each pre-saved action instruction; if so, obtain the instruction feature vector corresponding to the target action instruction; if not, input the target action instruction into a graph-text matching model, encode the target action instruction based on the graph-text matching model, and obtain the instruction feature vector.

[0126] The controller 21 is also used to obtain the fourth posture of each joint at the second moment when the robot performs the sample action and the collected sample view image, and obtain the sample action instruction corresponding to the sample action; generate a sample observation feature vector according to the fourth posture of each joint and the sample view image; generate a sample instruction feature vector according to the sample action instruction; splice the sample observation feature vector and the sample instruction feature vector to obtain a sample feature vector; obtain the fifth posture of each joint at the next moment when the robot performs the sample action, add a sample random noise vector to the fifth posture of each joint, and obtain a sixth posture of each joint; input the sample feature vector and the sixth posture of each joint into the diffusion model to be trained, and determine the sample prediction noise vector based on the diffusion model; determine the loss value according to the sample random noise vector and the sample prediction noise vector; and train the diffusion model according to the loss value.

[0127] The controller 21 in the present application can be installed at any position of the robot, can be integrated in the robot, or can be independently set, and the present application does not make specific restrictions. In addition, the installation position of the sound collection component 25 and the camera component 24 on the robot is not limited.

[0128] The robot in the embodiment of the present application may include Fig.12 More or fewer components, such as sensors, radar equipment, display screens, etc. can also be set. In addition, Fig.12 The combination / connection relationship between the components can also be adjusted and modified.

[0129] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the present application is intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0130] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the present application and its equivalent technology, the present application is also intended to include these modifications and variations.

Claims

1. A robot motion trajectory planning method, characterized in that: The method comprises: Obtaining the first position of each joint and the collected view image at the first moment during the robot's execution of the target action, and obtaining the target action instruction corresponding to the target action; Generate an observation feature vector according to the first position of each joint and the view image; generate an instruction feature vector according to the target action instruction; and concatenate the observation feature vector and the instruction feature vector to obtain a target feature vector; The target feature vector and the random noise vector are input into the trained diffusion model, and a predicted noise vector is determined based on the diffusion model; an iterative noise vector is determined according to the random noise vector and the predicted noise vector, the random noise vector is updated by using the iterative noise vector, and the second posture of each joint of the robot at the next moment is determined according to the predicted noise vector determined after a preset number of iterations; The training process of the diffusion model includes: Obtaining the fourth posture of each joint and the collected sample view image at the second moment during the robot performing the sample action, and obtaining a sample action instruction corresponding to the sample action; Generate a sample observation feature vector according to the fourth posture of each joint and the sample view image; generate a sample instruction feature vector according to the sample action instruction; and concatenate the sample observation feature vector and the sample instruction feature vector to obtain a sample feature vector; The fifth posture of each joint of the robot at the next moment when the robot performs the sample action is obtained, and a sample random noise vector is added to the fifth posture of each joint to obtain a sixth posture of each joint; the sample feature vector and the sixth posture of each joint are input into a diffusion model to be trained, and a sample prediction noise vector is determined based on the diffusion model; a loss value is determined according to the sample random noise vector and the sample prediction noise vector; and the diffusion model is trained according to the loss value.

2. The method according to claim 1, characterized in that Obtaining the target action instruction corresponding to the target action includes: Acquire the user's voice information, and determine the action sequence indicated by the voice information by performing voice recognition on the voice information; perform action segmentation on the action sequence to obtain action instructions corresponding to each action; and determine the target action instruction corresponding to the target action; or obtain the action instructions corresponding to each action in a pre-saved action sequence; and determine the target action instruction corresponding to the target action.

3. The method according to claim 2, characterized in that The method further comprises: Obtain the pre-saved third posture of each joint when the robot completes the target action, determine the similarity between the second posture of each joint and the third posture of each joint, and if the similarity is greater than a preset similarity threshold, determine the next action after the target action according to the action sequence, update the next action to the target action, and perform subsequent action trajectory planning steps.

4. The method according to claim 1, characterized in that Generating an observation feature vector according to the first pose of each joint and the view image comprises: The first pose of each joint and the viewing angle image are input into the observation encoder; the viewing angle image passes through the convolution layer, the pooling layer and the linear connection layer in the observation encoder in sequence to obtain an image feature vector; the image feature vector and the pose feature vector corresponding to the first pose of each joint are spliced ​​to obtain the observation feature vector.

5. The method according to claim 1, characterized in that Generating an instruction feature vector according to the target action instruction includes: Determine whether there is an instruction feature vector corresponding to the target action instruction among the instruction feature vectors corresponding to each pre-saved action instruction; if so, obtain the instruction feature vector corresponding to the target action instruction; if not, input the target action instruction into a graph-text matching model, encode the target action instruction based on the graph-text matching model, and obtain the instruction feature vector.

6. A robot motion trajectory planning device, characterized in that: The device comprises: An acquisition module is used to acquire the first position of each joint and the collected view image at the first moment in the process of the robot performing the target action, and to acquire the target action instruction corresponding to the target action; The first determination module is used to generate an observation feature vector according to the first position of each joint and the view image; generate an instruction feature vector according to the target action instruction; and concatenate the observation feature vector and the instruction feature vector to obtain a target feature vector; A second determination module is used to input the target feature vector and the random noise vector into a trained diffusion model, determine a predicted noise vector based on the diffusion model; determine an iterative noise vector according to the random noise vector and the predicted noise vector, use the iterative noise vector to update the random noise vector, and determine the second posture of each joint of the robot at the next moment according to the predicted noise vector determined after a preset number of iterations; The training process of the diffusion model includes: Obtaining the fourth posture of each joint and the collected sample view image at the second moment during the robot performing the sample action, and obtaining a sample action instruction corresponding to the sample action; Generate a sample observation feature vector according to the fourth posture of each joint and the sample view image; generate a sample instruction feature vector according to the sample action instruction; and concatenate the sample observation feature vector and the sample instruction feature vector to obtain a sample feature vector; The fifth posture of each joint of the robot at the next moment when the robot performs the sample action is obtained, and a sample random noise vector is added to the fifth posture of each joint to obtain a sixth posture of each joint; the sample feature vector and the sixth posture of each joint are input into a diffusion model to be trained, and a sample prediction noise vector is determined based on the diffusion model; a loss value is determined according to the sample random noise vector and the sample prediction noise vector; and the diffusion model is trained according to the loss value.

7. A robot, characterized in that: Including controller, robotic arm, moving component and camera component; The camera assembly is used to collect a viewing angle image at the first moment during the robot's execution of a target action, and send the viewing angle image to the controller; The controller is used to obtain the first position of each joint of the mechanical arm and the mobile component at the first moment in the process of the robot performing a target action, and obtain the target action instruction corresponding to the target action; generate an observation feature vector according to the first position of each joint and the perspective image; generate an instruction feature vector according to the target action instruction; splice the observation feature vector and the instruction feature vector to obtain a target feature vector; input the target feature vector and the random noise vector into a trained diffusion model, and determine a predicted noise vector based on the diffusion model; determine an iterative noise vector according to the random noise vector and the predicted noise vector, use the iterative noise vector to update the random noise vector, and determine the second position of each joint of the mechanical arm and the mobile component at the next moment according to the predicted noise vector determined after a preset number of iterations; The controller is also used to obtain the fourth posture of each joint at the second moment when the robot performs the sample action and the collected sample view image, and obtain the sample action instruction corresponding to the sample action; generate a sample observation feature vector according to the fourth posture of each joint and the sample view image; generate a sample instruction feature vector according to the sample action instruction; splice the sample observation feature vector and the sample instruction feature vector to obtain a sample feature vector; obtain the fifth posture of each joint at the next moment when the robot performs the sample action, add a sample random noise vector to the fifth posture of each joint, and obtain a sixth posture of each joint; input the sample feature vector and the sixth posture of each joint into the diffusion model to be trained, and determine the sample prediction noise vector based on the diffusion model; determine the loss value according to the sample random noise vector and the sample prediction noise vector; and train the diffusion model according to the loss value.

8. The robot according to claim 7, characterized in that: Also included: a sound collection component; The sound collection component is used to collect the user's voice information and send the voice information to the controller; The controller is used to determine the action sequence indicated by the voice information by performing voice recognition on the voice information; perform action segmentation on the action sequence to obtain action instructions corresponding to each action; and determine the target action instruction corresponding to the target action.