Force and torque guided robotic assembly technology

Through the robot control method of receiving force or torque data training in reinforcement learning models, the diversity and uncertainty of robot control in unstructured environments are solved, and effective application and cross-platform in environments such as construction sites are realized. applicability.

CN114378811BActive Publication Date: 2024-11-05AUTODESK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111172353.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-09-10
Filing Date
2021-10-08
Publication Date
2024-11-05
Estimated Expiration
2041-10-08

AI Technical Summary

Technical Problem

Existing robot control technology is difficult to adapt to diversity and uncertainty in unstructured environments, especially due to its dependence on robots and environmental objects, which lead to limited application in environments such as construction sites and difficult to promote to other areas. Robot platform.

Method used

Using a machine learning model based on reinforcement learning, trains through receiving force or torque data to generate and control the movements of the robot. The strategies learned during the training are robot-agnostic and can be applied to various types of robots to avoid poses. Directly capture or infer.

Benefits of technology

It realizes that the robot can perform assembly tasks without pose input in an unstructured environment, improves the practicality of application in an unstructured environment, and can be applied to a variety of robot platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114378811B_ABST
    Figure CN114378811B_ABST
Patent Text Reader

Abstract

Disclosed are techniques for training and applying machine learning models to control robotic assembly. In some embodiments, force and torque measurements are input into a machine learning model that includes a memory layer that introduces recursion. The machine learning model is trained via reinforcement learning in a robot-agnostic environment to generate actions for achieving assembly tasks given force and torque measurements. During training, experience is collected as transitions within an episode, transitions are grouped into sequences, and the last two sequences of each episode have a variable overlap. The collected transitions are stored in a prioritized sequence replay buffer, from which the learner samples the sequences to be learned based on transition and sequence priorities. Once trained, the machine learning model can be deployed to control various types of robots to perform assembly tasks based on force and torque measurements obtained by their sensors.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of priority to U.S. Provisional Patent Application Serial No. 63 / 087,841, entitled “RECURRENT DISTRIBUTED REINFORCEMENT LEARNING FOR PARTIALLY OBSERVABLE ROBOTIC ASSEMBLY,” filed on October 5, 2020. The subject matter of this related application is hereby incorporated herein by reference. Background Art

[0003] Public domain

[0004] Embodiments of the present disclosure relate generally to robotics, and more particularly to force and torque guided robotic assembly techniques.

[0005] Description of Related Technology

[0006] Robotic systems have been widely used to assemble products and perform tasks in manufacturing environments that can be precisely controlled, which ensures that robots operating in these environments can perform tasks in a predictable and repeatable manner. However, many environments (such as construction sites) are not precisely controlled or cannot be precisely controlled, which requires robots operating in these environments to perform tasks in different and sometimes unpredictable situations. These latter types of environments are referred to herein as "unstructured" environments.

[0007] While traditional robot control techniques cannot adapt to the diversity and uncertainty in unstructured environments, such as misalignment of the robot's initial pose or physical noise, reinforcement learning-based techniques have been shown to be more successful in controlling robots in unstructured environments. However, in order to control robots to perform complex tasks in unstructured environments, conventional learning-based techniques require the poses of the robot and / or other objects in the environment as input, which can be captured directly via motion capture or other tracking systems, or indirectly inferred via vision-based systems.

[0008] One disadvantage of using motion capture or other tracking systems is that such systems are difficult to calibrate and deploy in many environments, including construction sites. One disadvantage of using vision-based systems is that during the contact-rich phase of assembly in unstructured environments, during which assembly parts are often in close contact with each other, vision-based systems may be negatively affected by occlusions and poor lighting conditions. Therefore, conventional learning-based techniques for controlling robots require capturing the pose of the robot and / or other objects in the environment via motion capture or other tracking systems, or inferring indirectly via vision-based systems, and have limited real-world practicality. Another disadvantage of conventional learning-based techniques for controlling robots is that such techniques are robot-specific and cannot be easily generalized to other robotic platforms.

[0009] As noted above, what is needed in the art are more efficient techniques for controlling robots in unstructured environments. Summary of the invention

[0010] One embodiment of the present disclosure provides a computer-implemented method for controlling a robot. The method includes receiving sensor data associated with the robot, wherein the sensor data includes at least one of force or torque data. The method further includes applying a machine learning model to the sensor data to generate an action, wherein the machine learning model is trained via reinforcement learning. In addition, the method includes causing the robot to perform one or more movements based on the action.

[0011] Other embodiments of the present disclosure include, but are not limited to, computer-readable media including instructions for performing one or more aspects of the disclosed technology and computing devices for performing one or more aspects of the disclosed technology.

[0012] One technical advantage of the disclosed technology over the prior art is that, for the disclosed technology, a machine learning model can be trained to control a robot to perform an assembly task in an unstructured environment without requiring as input the pose of the robot and / or other objects in the environment, which needs to be captured via a motion capture or other tracking system, or indirectly inferred via a vision-based system. In addition, for the disclosed technology, the policies learned during training are robot agnostic, which enables these policies to be used to control various types of robots. These technical advantages provide one or more technical advances over prior art methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to be able to understand in detail the manner in which the above-mentioned features of the present disclosure are achieved, a more particular description of the present disclosure briefly summarized above may be made by reference to embodiments, some of which are illustrated in the accompanying drawings. It should be noted, however, that the accompanying drawings illustrate only typical embodiments of the present disclosure and are therefore not to be considered limiting of its scope, as the present disclosure may admit of other equally effective embodiments.

[0014] Figure 1 is a conceptual illustration of a system configured to implement one or more aspects of various embodiments;

[0015] Figure 2 Reinforcement learning methods for controlling robotic assembly according to various embodiments are shown;

[0016] Figure 3 In more detail, various embodiments are shown Figure 2 The layer of the policy network;

[0017] Figure 4 shows an exemplary assignment of episode-to-sequence transitions according to various embodiments;

[0018] Figure 5 illustrates how a trained machine learning model may be deployed to control a number of exemplary robots according to various embodiments;

[0019] Figure 6 is a flow chart of method steps for training a machine learning model to control robotic assembly according to various embodiments; and

[0020] Figure 7 is a flow chart of method steps for controlling a robot while performing an assembly task, according to various embodiments. DETAILED DESCRIPTION

[0021] In the following description, numerous specific details are set forth to provide a more thorough understanding of the present disclosure. However, it will be apparent to one skilled in the art that the present disclosure may be practiced without one or more of these specific details.

[0022] System Overview

[0023] Figure 1 A system 100 configured to implement one or more aspects of various embodiments is shown. As shown, the system 100 includes a machine learning server 110, a data repository 120, and a computing device 140 that communicate via a network 130, which may be a wide area network (WAN) such as the Internet, a local area network (LAN), or any other suitable network.

[0024] As shown, the model trainer 116 is executed on the processor 112 of the machine learning server 110 and stored in the system memory 114 of the machine learning server 110. The processor 112 receives user input from an input device such as a keyboard or a mouse. In operation, the processor 112 is the main processor of the machine learning server 110, controlling and coordinating the operation of other system components. Specifically, the processor 112 can issue commands to control the operation of a graphics processing unit (GPU), which incorporates circuits optimized for graphics and video processing, including (for example) video output circuits. The GPU can deliver pixels to a display device, which can be any conventional cathode ray tube, liquid crystal display, light emitting diode display, etc.

[0025] The system memory 114 of the machine learning server 110 stores content such as software applications and data for use by the processor 112 and the GPU. The system memory 114 can be any type of memory capable of storing data and software applications, such as a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash ROM), or any suitable combination of the foregoing. In some embodiments, a storage device (not shown) can supplement or replace the system memory 114. The storage device may include any number and any type of external memory accessible to the processor 112 and / or GPU. For example, but not limited to, the storage device may include a secure digital card, an external flash memory, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0026] It should be understood that the machine learning server 110 shown herein is illustrative and can be varied and modified. For example, the number of processors 112, the number of GPUs, the number of system memories 114, and the number of applications included in the system memories 114 can be modified as needed. In addition, the number of processors 112, the number of GPUs, the number of system memories 114, and the number of applications included in the system memories 114 can be modified as needed. Figure 1 In some embodiments, any combination of processor 112, system memory 114, and GPU may be replaced by any type of virtual computing system, distributed computing system, or cloud computing environment (such as a public cloud, a private cloud, or a hybrid cloud).

[0027] The model trainer 116 is configured to train a machine learning model via reinforcement learning. Specifically, the model trainer 116 trains a model having a policy for controlling a robot to perform an assembly task so as to maximize a reward function when performing an assembly task in a simulated environment, as shown below in combination with Figures 2 to 3 and Figure 6The machine learning model can be trained for any technically feasible assembly task. Examples of assembly tasks include connecting lap joints and placing pegs in holes. Once trained, the machine learning model can be deployed as an agent 150 to control a robot to perform assembly tasks based on force and torque measurements obtained by sensors mounted on the robot. Figures 2 to 7 Discuss in more detail exemplary machine learning model architectures and techniques for training and deploying machine learning models.

[0028] The training data and / or trained machine learning models can be stored in a data repository 120. In some embodiments, the data repository 120 can include any one or more storage devices, such as a fixed disk drive, a flash drive, an optical storage device, a network attached storage device (NAS), and / or a storage area network (SAN). Although shown as being accessible via a network 130, in some embodiments, the machine learning server 110 can include the data repository 120.

[0029] Agent 150 may be deployed to any suitable application that controls a physical robot or a simulated robot to perform an assembly task, such as Figure 1 The robot control application 146 is shown. Illustratively, the robot control application 146 is stored in the memory 144 and executed on the processor 142 of the computing device 140 to control the robot 160. The robot 160 can be in any suitable environment ( For example , construction or manufacturing environment), which includes one or more sensors for measuring force and torque at the end effector of the robot 160, shown as sensor 162. As shown below in conjunction with Figure 5 and Figure 7 As discussed in more detail, the agent 150 generates actions for controlling the robot 160 given force and torque measurements acquired by the sensors 162 of the robot 160. The components of the computing device 140, including the memory 144 and the processor 142, may be similar to the corresponding components of the machine learning server 110 described above.

[0030] The number of machine learning servers and computing devices can be modified as needed. In addition, the functionality included in any application can be divided across any number of applications or other software, which are stored and executed via any number of devices located in any number of physical locations.

[0031] Reinforcement learning for robot-agnostic force-guided assembly tasks

[0032] Figure 21 shows a reinforcement learning method for controlling a robotic assembly according to various embodiments. As shown, actors 250 (individually referred to herein as actors 250 and collectively referred to as actors 250) are configured to take observations 204 including force and torque measurements as input. Given observations 204, actors 250 move in a task space ( For example , Cartesian space), such as the linear velocity and angular velocity at the center of the assembly under control of the assembly task. The actions 206 are then simulated in the distributed robot-agnostic environment 202, and the rewards associated with these actions 206 are calculated. The observations 204, actions 206, and associated rewards are collected as transitions 222 of an episode (sometimes also called "time steps"), and multiple episodes can be simulated during training. Each episode begins at the beginning of the assembly task and ends at the following times: (1) when the assembly task is completed, such as when the distance between the target pose and the pose of the joint component (which is an external part held by the robot) is within a predefined threshold; or (2) when a predefined number of transitions ( For example , 4000 transitions), in which case a new episode may be started. In some embodiments, the transitions 222 within an episode may be grouped together into sequences, and the last two sequences of the episode may have a variable overlap. The collected episode transitions 222 are saved in a prioritized sequence replay buffer 208. The replay buffer 208 stores a collection of sequences, and each sequence includes a collection of transitions.

[0033] The learner 212 samples the sequence 217 to learn from it based on the priorities assigned to the sequence and the priorities assigned to the transitions within the sequence. The learner 212 learns by updating the parameters of the learner neural network based on the sampled sequence 217, and the learner neural network includes a policy network 213, a value network 214, and corresponding target networks 215 and 216 as shown in the figure, so as to maximize the reward over time. The policy network 213 (sometimes also called the "actor" network) is an artificial neural network that takes force and torque measurements as input and outputs actions. The value network 214 (sometimes also called the "evaluation" network) is an artificial neural network that evaluates the actions output by the policy network 213. For example, the value network 214 can predict the value associated with the state or action-state pair (q-value) of each action output by the policy network 213, so as to determine whether improvement is being made. The target networks 215 and 216 improve the stability of training and are periodically synchronized with the policy network 213 and the value network 214, respectively. The learner 212 further updates the transition priority and sequence priority of the replay buffer 208, as shown in the updated transition priority and sequence priority 218. In addition, the participants 250 periodically update the parameters of their own neural networks based on the parameters of the learner networks 213, 214, 215 and 216. Similar to the learner 212, each participant 250 may include a policy network, a value network and a corresponding target network (not shown). A system comprising a learner and N participants, each of which includes a policy network, a target policy network, a value network and a target value network, wherein each neural network includes a long short-term memory (LSTM) layer between a first fully connected layer and a second fully connected layer in the neural network, also referred to herein as a distributed deep deterministic policy gradient (DDPG) system (RD2). Therefore, a machine learning model, namely a policy network 213, which models a strategy for implementing an assembly task through sequential decision making, can be trained via deep reinforcement learning. The trained machine learning model can then be deployed as an agent ( For example , agent 150) that generates actions for moving a physical robot or a robot within a simulation given force and torque measurements acquired by one or more sensors mounted on the robot.

[0034] More specifically, each participant 250 acts within its own instance of the robot-agnostic environment 202 during training to collect actions 206, observations 204 in the form of forces and torques (these forces and torques are received as feedback from the environment 202 when performing actions 205), and episodes (o, a, r) ​​of associated rewards. An instance of the robot-agnostic training environment 202 can be simulated without a robot model. In some embodiments, the simulation can include objects that contribute to force and torque measurements. Illustratively, for an assembly task of connecting a lap joint, the simulation can include a model having a gripper 230 including two fingers, a force-torque sensor 232 mounted above the gripper, and a pair of joint members 234 and 236. When the joint member 234 held by the gripper 230 contacts the joint member 236, forces and torques in different directions can be measured via the force-torque sensor 232. As another example, for an assembly task of placing a peg into a hole, a simulation may include a gripper, a force-torque sensor, and a model of the tampered peg and hole. In this case, the force-torque sensor may sense forces and torques in different directions when the peg held by the gripper contacts the inside of the hole. Although described herein primarily with respect to a gripper as a reference example, in other embodiments, force and torque measurements may be obtained during simulation and when a trained machine learning model is deployed, by sensors mounted on or near any technically feasible end effector of the robot. In some embodiments, during simulation, each dynamic object may also be assigned an estimated inertial property ( For example , mass and center of mass) and applied friction, and can compensate for gravity on the force-torque sensor.

[0035] As described, transitions 222, each including an observation, an action, and an associated reward, are collected, and an episode including multiple transitions is ended when the distance between the target pose and the pose of the joint member is within a predefined threshold, or when a predefined number of transitions is reached. Since the length of each episode is not known before simulation, the model trainer 116 employs a dynamic allocation technique (shown as a dynamic allocator 224) to decompose the transition episode into (o 1 , a 1 , r 1 , ..., o t , a t , r t ) a set of fixed length transition sequences 210, which are then stored in the replay buffer 208. In some embodiments, when processing transitions 222, the dynamic allocator 224 allows the overlap between the last two sequences in each episode to be variable, as shown below in conjunction with Figure 4The variable overlap between the last two sequences helps to preserve the information of the transition between the last two sequences while avoiding crossing episode boundaries.

[0036] During training, exploration is disconnected from learning by having multiple participants 250 interact with their own environment and send the collected transitions 222 to the replay buffer 208. The learner 212 asynchronously samples transition sequences from the replay buffer 208 (shown as sampled sequences 217) based on the priorities assigned to the sequences and transitions within the sequences. Transitions and sequences with higher priorities are considered more important and are more likely to be sampled and used to update the parameters of the learner networks 213, 214, 215 and 216. The use of priorities can speed up the learning process by prioritizing unexpected transitions that provide more information during the learning process and are associated with higher priorities. Experience has shown that the use of priorities for sequences in addition to transition priorities can stabilize the training process. Given a sequence sampled based on transition and sequence priorities, the learner 212 performs learning operations ( For example , Deep Q Learning) to update the parameters of the learner networks 213, 214, 215, and 216. The learner 212 further updates 218 the priorities of the sequence and each transition. The learner 212 can use the updated priorities in future sampling. The parameters of the neural network of the participant 250 are periodically updated based on the parameters of the learner networks 213, 214, 215, and 216.

[0037] After training, the policy network 213 of the learner 212 models a policy for performing an assembly task. The trained policy network 213 can then be deployed (without retraining) to control various types of robots to perform the same assembly task. For example, the policy network 213 can be deployed as an agent 150 included in the robot control application 146, as described above in conjunction with Figure 1 In such cases, the robot control application 150 may input force and torque measurements acquired by the sensors 162 of the robot 160 into the policy network of the agent 150 , and the agent outputs may then be used to control the actions of the robot 160 .

[0038] More formally, the robotic assembly task problem can be modeled as a partially observable Markov decision process (POMDP) ​​consisting of a set of states S, a set of actions A, and a set of decisions for state transitions s. t →s t+1 The conditional probability set p(s t+1 |s t , a t ), reward function Observation set Ω, conditional observation probability set p(? t |s t) and discount factor γ∈[0,1]. In operation, the agent ( For example , agent 150 or one of participants 250) based on the history of observations and actions h t =(o 1 , a 1 , o 2 , a 2 …, o t , a t ) to make a decision. The goal of training is to learn the best strategy π θ , in order to maximize the expected discounted reward that indicates the performance of the assembly task:

[0039]

[0040] The trajectory τ=(s 1 , o 1 , a 1 ,s 2 , o 2 , a 2 , ..., s T , o T , a T ), θ is the parameterization of the policy π, and

[0041] In some embodiments, a physics engine ( For example , Bullet physics engine) to simulate robotic assembly tasks. In such cases, the simulator can be used entirely to perform training, while the trained machine learning model can be deployed to control the physical robot or the robot in the simulation. Example simulations for different types of assembly tasks are described above. During simulation, the observation space can be 6-dimensional force and torque measurements (f x , f y , f z , τ x , τ y , τ z The action space is the continuous and 6-dimensional required Cartesian space linear velocity (v) at the center of the assembly under control of the assembly task. x , v y , v z ) and angular velocity (w x , w y , w z ).

[0042] During training, the model trainer 116 maximizes a linear reward function that indicates how well the assembly task is performed based on the distance between the target pose and the current pose:

[0043]

[0044] where x is the current pose of the joint component, g is the goal pose, ∈ is the distance threshold, and R is a large positive reward. Negative distance is used as a reward function to discourage wandering around the goal, as negative distance also includes a time penalty.

[0045] For the robot assembly task problem, it is usually impractical to adjust the entire observation history. Some embodiments use a machine learning model to solve this challenge, and the machine learning model is a recursive neural network trained using distributed model-free reinforcement learning, which focuses on the continuous action domain. Then, the trained policy network can be deployed to control the robot in various real-world environments (including construction sites), where the robot is controlled based on the force and torque measurements obtained by the onboard low-dimensional sensors. As described, in some embodiments, the LSTM layer is added between the first fully connected layer and the second fully connected layer in the policy network 213, value network 214, and corresponding target network 215 and 216 of the learner 212 and the similar neural network of the participant 250. The LSTM layer adds the recursiveness of these neural networks, which allows learning to represent memory-based, which helps make decisions by also inputting historical actions and observations, thereby compensating for the partial observability caused by the availability of only force and torque measurements. Therefore, when only force and torque measurements are used, the LSTM layer can compensate for the lack of posture observation. In addition, LSTM may include a gate for forgetting past memories. In addition, experience shows that the LSTM layer can help the policy network adapt to new environments. Although this article mainly discusses the LSTM layer, in some embodiments, one or more memory layers other than the LSTM layer can be used.

[0046] Figure 3The layers of the policy network 213 according to various embodiments are shown in more detail. In some embodiments, the neural networks of the value network 214, the target networks 215 and 216, and the participant 250 also include an LSTM layer between the first fully connected layer and the second fully connected layer of these networks. As shown, the policy network 213 includes a first fully connected layer 304, an LSTM layer 306, a second fully connected layer 308, and a third fully connected layer 310. The LSTM layer 306 itself may include multiple layers. In some embodiments, well-known LSTM layers can be used. In some embodiments, the first fully connected layer 304 takes multiple observations 302 as input, has an output size of 256, and uses a ReLU (rectified linear unit) activation function. In such cases, the LSTM layer 306 may have an input size of 256, an output size of 256, and uses a ReLU activation function. The second fully connected layer 308 may be a Q network layer with an input size of 256 and an output size of 1. In addition, the third fully connected layer 310 may be a π network layer with an input size of 256 and outputs multiple actions 312. In other embodiments, memory layers, such as LSTM layers, may be added to other types of neural networks trained and deployed according to the techniques disclosed herein.

[0047] Back to Figure 2 , the replay buffer 208 stores fixed-length transition sequences. In some embodiments, each sequence includes (m, m = 2k, where ) transitions, and each transition has the form (observation, action, reward). Adjacent sequences may overlap by m / 2 transitions, and sequences do not cross episode boundaries.

[0048] As described, the length of each episode corresponding to the assembly task can vary. In some embodiments, the overlap between the last two sequences in each episode is The transitions are variable. In some embodiments, the last overlap can be calculated as:

[0049]

[0050] Where O is the number of transitions in the last overlap, and T is the total number of transitions in each episode. Allowing the last overlap in each episode to be variable prevents losing or compromising any transitions at the end of each episode, which may contain critical information, especially for training.

[0051] Figure 4An exemplary allocation of transitions to sequences in a plot according to various embodiments is shown. As shown, exemplary plot 400 includes 851 transitions. Other plots may include different numbers of transitions. As described, the plot begins when the assembly task begins and ends at the following times: (1) when the assembly task is completed, such as when the distance between the target pose and the pose of the joint component is within a predefined threshold; or (2) when a predefined number of transitions ( For example , 4000 transitions). During training, the episode is simulated in the environment of the distributed robot agnostic environment 202, and a plurality of transitions are collected. Then, the dynamic allocator 224 divides the collected transitions into sequences, each of which includes a fixed number of transitions. Illustratively, each sequence 402, 404, 410, and 412 includes 40 transitions out of the 851 transitions of the episode 400. The number of transitions included in the sequence can be based on the number of transitions that the policy network 213 and the value neural network 214 of the learner 212 take as input. In the example of 40 transitions per sequence, the transitions of the episode 400 can be divided so that the first sequence 402 includes transitions 1-40, the second sequence includes transitions 41-80, and so on. However, continuing this division, the last sequence will include 11 transitions from 840-851, rather than the required 40 transitions. In some embodiments, instead of taking transitions from subsequent episodes and adding those transitions to the last sequence, which confuses the neural network, the last sequence is shifted back to overlap with the penultimate sequence. As shown, the penultimate sequence 410 includes transitions 801-840, while the last sequence 412 includes transitions 812-851. Since the number of transitions in any given episode can be variable, the overlap between the last two sequences of an episode can also be variable. In some embodiments, the transitions can be adjusted based on the above combination. Figure 2 Equation (3) is described to calculate the overlap between the last two sequences.

[0052] Back to Figure 2 , in some embodiments during training, the learner 212 samples the sequences in the replay buffer 208 based on the priority p of the sequences, as follows:

[0053]

[0054] where δ is a list of absolute n-step time difference (TD) errors in a sequence, and η can be set to For example0.9 to avoid compressing the range of priorities and limiting the agent's ability to pick out useful experiences. Prioritized replay introduces bias because the distribution of random updates changes in an uncontrolled way, changing the solution the estimate converges to. In some embodiments, bias annealing on the transition level is used to correct the bias of each transition in the sequence to achieve more stable performance, using the following importance sampling weights:

[0055] W i =(N×P(i)) -β , (5)

[0056] where N is the size of the replay buffer and β is set to 0.4. In addition, before sending the sequence to the learner 212 for back propagation through time (BPTT), w i The weight of each transition may be normalized. In some embodiments, two sum tree data structures may be initialized, one of which maintains the priority of the sequence and the other of which maintains the priority of the transition. Experience has shown that such sum tree data structures help stabilize the training process of robotic assembly tasks.

[0057] To implement training in some embodiments, the model trainer 116 uses the zero starting state in the LSTM layer to initialize the learner networks 213, 214, 215, and 216 at the beginning of the sampling sequence and performs training using population-based training (PBT). In some embodiments, each training session may include multiple ( For example , 8) concurrent trials, each of which included a single learner and multiple ( For example , 8) workers. The length of the sequence and n steps can be variable hyperparameters of PBT. Each concurrent trial is repeated every several ( For example , 5 times) iteratively evaluates whether to keep the current training or copy the network parameters from the better experiment. If copying occurs, the variable hyperparameters may be affected For example The perturbation is by a factor of 1.2 or 0.8, resulting in a 25% probability of resampling from the original distribution.

[0058] Figure 5 1 shows how a trained machine learning model can be deployed to control multiple exemplary robots according to various embodiments. As shown, the machine learning model 502 ( For example , policy network 213) and other machine learning models ( For example , learner networks 214, 215 and 216 and the neural network of participant 250) together in a robot agnostic training environment 500 ( For example, distributed robot agnostic environment 202) to take force and torque measurements as input and output actions for performing assembly tasks. Once trained, the machine learning model 502 models the strategy for achieving the assembly task and can be deployed (in For example 504, 506, and 508) that include force and torque sensors to perform the same assembly task. The robots may be physical robots or robots in simulation. The physical robots may operate in any suitable environment, such as a construction site or a manufacturing site. In addition, the machine learning model 502 may be applied to control the robotic arms 504, 506, and 508, even if the machine learning model 502 is not specifically trained for any of those robotic arms 504, 506, and 508.

[0059] In some embodiments, to transfer a policy trained in the robot-free environment 202 to a deployment environment associated with a physical robot, the robot control application 146 applies a coordinate transformation to the force and torque measurements using a force-torque twist matrix. ) is the force and torque of the coordinates in b h=( b f, b τ), and the end effector (frame ) is the force and torque of the coordinates in a h=( a f, a τ), then it is transformed into:

[0060]

[0061] in a R b and a t b From the frame To Frame The rotation matrix and translation vector.

[0062] In some embodiments, the motion space is defined as the Cartesian space velocity at the center of the assembly under control, which can be the same in the robot arm setting. Therefore, the motion does not need to be transformed. In addition, when the motion in the assembly task is confined to a sufficiently small operating area, it is ensured that inverse kinematics is satisfied. In such cases, the robot control application 146 can use inverse kinematics to solve the joint motion of the robot, which is required to achieve the motion output by the machine learning model 502.

[0063] Figure 6is a flow chart of method steps for training a machine learning model to control robotic assembly according to various embodiments. Figures 1 to 3 Although the method steps are described with reference to a system, one of ordinary skill in the art will understand that any system configured to perform the method steps in any order is within the scope of the present disclosure.

[0064] As shown, method 600 begins at step 602, where the model trainer 118 initializes the distributed training environment ( For example , distributed robot agnostic environment 202). In some embodiments, the model trainer 118 may initialize multiple training environments ( For example , 16 training environments), multiple participants ( For example , each participant in the participants 250) has a training environment. Although this document is mainly described with respect to a distributed training environment, in other embodiments, the machine learning model can be trained in a non-distributed training environment.

[0065] At step 604, the participant ( For example , participants 250) collect experience in the corresponding training environment and store the experience in the replay buffer ( For example , replay buffer 208). As described, in some embodiments, an experience in an episode may include multiple transitions, each transition including an observation, an action, and an associated reward, and the transitions may be grouped together into sequences. In such cases, the overlap between the last two sequences in an episode is The transitions are variable, such as the above combination Figure 2 described.

[0066] At step 606, if not enough experience has been collected and stored in the replay buffer, the method 600 returns to step 604, where the participant collects additional experience and stores it in the replay buffer. On the other hand, if enough experience has been collected and stored in the replay buffer, the method 600 continues to step 608, where the learner ( For example , learner 212) samples the experience from the replay buffer and trains the learner's neural network ( For example , strategy network 213, value network 214, and target networks 215 and 216). In some embodiments, as described above in conjunction with Figure 2 As described, over time, training maximizes a reward that indicates performance of the assembly task.

[0067] At step 610, the learner updates the parameters of the participant's neural network (similar to the learner neural network), as well as the transition and sequence priorities of the replay buffer. As described, the participant is collecting experience in the training environment. In some embodiments, according to the above combined Figure 2 Describes techniques to compute transition priorities and sequence priorities.

[0068] At step 612, if the termination condition of the training is not met ( For example , the reward is not maximized and the maximum number of iterations has not occurred), then method 600 returns to step 604, where the participants collect additional experience in their respective training environments and store the experience in the replay buffer. Although steps 604-612 are shown as sequential for illustrative purposes, in some embodiments, the participants continue to collect experience and store it in the replay buffer while, in parallel, the learner samples experience from the replay buffer, trains the learning neural network, and updates the parameters of the participant's neural network and the transition priority and sequence priority of the replay buffer.

[0069] Figure 7 is a flow chart of method steps for controlling a robot when performing an assembly task according to various embodiments. Figures 1 to 3 Although the method steps are described with reference to a system, one of ordinary skill in the art will understand that any system configured to perform the method steps in any order is within the scope of the present disclosure.

[0070] As shown, method 700 begins at step 702, where the robot control application 146 receives force and torque measurement data associated with the robot. As described, in some embodiments, the sensor may be mounted above the gripper of the robot, or elsewhere on the end effector of the robot (which may or may not be a gripper) to obtain 6-dimensional force and torque measurements (f x , f y , f z , τ x , τ y , τ z In some embodiments, the above combination is also used Figure 5 The force-torque transformation matrix applies a coordinate transformation to the force and torque measurements.

[0071] At step 704, the robot control application 146 inputs the force and torque measurements (after applying the coordinate transformation) into a machine learning model, which generates the actions to be performed. For example , agent 150) includes a policy network ( For example , strategy network 213), the strategy network is based on the above combination Figure 6 The described method 600 performs training to generate actions for achieving an assembly task given force and torque measurements as input.

[0072] At step 706, the robot control application 146 determines the joint motion of the robot using inverse dynamics based on the motion generated at step 704. As described, the motion generated by the agent may include the task space ( For example , Cartesian space), such as the linear and angular velocities at the center of an assembly under control of an assembly task. In such cases, inverse dynamics can be used to solve for the joint motions required for the robot to achieve the velocity.

[0073] At step 708, the robot control application 146 causes the joints of the robot to move according to the determined joint motion. For example, the robot control application 146 may transmit command signals directly to the joints of the robot or to controllers of the joints.

[0074] At step 710, if the termination condition has not been met, the method 700 returns to step 702, where the robot control application 146 receives additional force and torque measurement data from the robot. In some embodiments, the termination condition may include that the distance between the pose of the joint member and the target pose is less than a threshold, or the number of transitions is equal to the maximum number of transitions. If the termination condition has been met, the method 700 ends.

[0075] In summary, a technique for training and applying a machine learning model to control a robot assembly task is disclosed. In some embodiments, force and torque measurements are input into a machine learning model that includes a memory layer that introduces recursion to compensate for partial observability caused by using force and torque measurements instead of posture observations. The machine learning model is trained via reinforcement learning in a robot-agnostic environment to learn strategies for generating actions that implement assembly tasks given force and torque measurements as inputs. During training, experience is collected as transitions within an episode. Transitions are grouped together into sequences, and the last two sequences of each episode have a variable overlap. The collected transitions are stored in a prioritized sequence replay buffer, from which the learner samples the sequence to be learned based on transition priority and sequence priority. The learner learns by updating the parameters of the learner machine learning model based on the sampled sequence, and the learner further updates the transition priority and sequence priority. Once trained, the machine learning model can be deployed (without retraining) to control these robots to perform assembly tasks based on force and torque measurements obtained by sensors installed on various types of robots.

[0076] One technical advantage of the disclosed technology over the prior art is that, for the disclosed technology, a machine learning model can be trained to control a robot to perform an assembly task in an unstructured environment without requiring as input the pose of the robot and / or other objects in the environment, which needs to be captured via a motion capture or other tracking system, or indirectly inferred via a vision-based system. In addition, for the disclosed technology, the policies learned during training are robot agnostic, which enables these policies to be used to control various types of robots. These technical advantages provide one or more technical advances over prior art methods.

[0077] 1. In some embodiments, a computer-implemented method for controlling a robot includes: receiving sensor data associated with the robot, wherein the sensor data includes at least one of force data or torque data; applying a machine learning model to the sensor data to generate an action, wherein the machine learning model is trained via reinforcement learning; and causing the robot to perform one or more movements based on the action.

[0078] 2. A computer-implemented method as described in clause 1, wherein the machine learning model includes at least one memory layer.

[0079] 3. A computer-implemented method as described in clause 1 or 2, wherein the machine learning model also includes at least one of a fully connected layer, a Q network, or a pi network.

[0080] 4. A computer-implemented method as described in any of clauses 1 to 3, wherein during the reinforcement learning, the machine learning model is trained in an environment that does not include a model of the robot.

[0081] 5. A computer-implemented method as described in any of clauses 1 to 4, wherein during the reinforcement learning, the learner updates parameters of the machine learning model, and the learner further updates one or more priorities for sampling stored transitions, each of which includes observations, actions, and rewards, and one or more priorities for sampling sequences, each of which includes multiple transitions.

[0082] 6. A computer-implemented method as described in any of clauses 1 to 5, wherein during the reinforcement learning, the learner further updates parameters of at least one other machine learning model, and the at least one other machine learning model is applied in at least one simulated environment.

[0083] 7. A computer-implemented method as described in any of clauses 1 to 6, wherein during the reinforcement learning, the last two time series comprising transitions in a transition episode overlap, and the amount of overlap is based on the length of the episode, and each transition included in the transition episode comprises an observation, an action, and a reward.

[0084] 8. A computer-implemented method as described in any of clauses 1 to 7, wherein the action includes a target speed, and causing the robot to perform the one or more movements based on the action includes: calculating one or more movements of one or more joints of the robot using inverse dynamics based on the target speed; and transmitting at least one command signal to the robot based on the one or more movements of the one or more joints.

[0085] 9. A computer-implemented method as described in any of clauses 1 to 8, wherein the sensor data is acquired by a sensor mounted on an end effector of the robot.

[0086] 10. The computer-implemented method of any of clauses 1 to 9, further comprising determining whether a distance between a pose of the joint member and a target pose is less than a threshold distance.

[0087] 11. In some embodiments, one or more non-transitory computer-readable media include instructions that, when executed by at least one processor, cause the at least one processor to perform steps for controlling a robot, the steps comprising: receiving sensor data associated with the robot, wherein the sensor data includes at least one of force or torque data; applying a machine learning model to the sensor data to generate an action, wherein the machine learning model is trained via reinforcement learning; and causing the robot to perform one or more movements based on the action.

[0088] 12. One or more non-transitory computer-readable storage media as described in clause 11, wherein, when executed by the at least one processor, the instructions further cause the at least one processor to perform the following steps: determining whether the distance between the posture of the joint component and the target posture is less than a threshold distance.

[0089] 13. One or more non-transitory computer-readable storage media as described in clause 11 or 12, wherein the action includes a target speed, and causing the robot to perform the one or more movements based on the action includes: calculating one or more movements of one or more joints of the robot using inverse dynamics based on the target speed; and transmitting at least one command signal to the robot based on the one or more movements of the one or more joints.

[0090] 14. One or more non-transitory computer-readable storage media as described in any of clauses 11 to 13, wherein the sensor data is acquired by a sensor mounted on an end effector of the robot.

[0091] 15. One or more non-transitory computer-readable storage media as described in any of clauses 11 to 14, wherein the machine learning model includes long short-term memory.

[0092] 16. One or more non-transitory computer-readable storage media as described in any of clauses 11 to 15, wherein the machine learning model also includes at least one of a fully connected layer, a Q network, or a pi network.

[0093] 17. One or more non-transitory computer-readable storage media as described in any of clauses 11 to 16, wherein during the reinforcement learning, the machine learning model is trained together with at least one other machine learning model in a distributed environment that does not include a model of the robot.

[0094] 18. One or more non-transitory computer-readable storage media as described in any of clauses 11 to 17, wherein during the reinforcement learning, the learner updates parameters of the machine learning model, and the learner further updates one or more priorities for sampling stored transitions that each include observations, actions, and rewards and one or more priorities for sampling sequences that each include multiple transitions.

[0095] 19. One or more non-transitory computer-readable storage media as described in any of clauses 11 to 18, wherein during the reinforcement learning, the last two time series of transitions in a transition episode overlap, and the amount of overlap is based on the length of the episode, and each transition included in the transition episode includes an observation, an action, and a reward.

[0096] 20. In some embodiments, a system includes: one or more memories storing instructions; and one or more processors coupled to the one or more memories, and when executing the instructions, the one or more processors are configured to: receive sensor data associated with the robot, wherein the sensor data includes at least one of force or torque data; apply a machine learning model to the sensor data to generate an action, wherein the machine learning model is trained via reinforcement learning; and cause the robot to perform one or more movements based on the action.

[0097] The description of the various embodiments has been presented for purposes of illustration, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.

[0098] Aspects of embodiments of the present invention may be embodied as systems, methods, or computer program products. Thus, aspects of the present disclosure may take the form of a complete hardware implementation, a complete software implementation (including firmware, resident software, microcode, etc.), or an implementation combining software aspects and hardware aspects, which may all be generally referred to herein as "modules" or "systems." In addition, aspects of the present disclosure may take the form of a computer program product embodied in one or more computer-readable media having computer-readable program code embodied thereon.

[0099] Any combination of one or more computer-readable media may be utilized. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) would include the following media: an electrical connection with one or more wires, a portable computer floppy disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer-readable storage medium may be any tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus.

[0100] Aspects of the present disclosure are described above with reference to the flowchart illustrations and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It will be understood that each frame in the flowchart illustration and / or block diagram and the combination of frames in the flowchart illustration and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine. The instructions enable the function / action specified in one or more frames of the flowchart and / or block diagram to be implemented when executed by the processor of a computer or other programmable data processing device. Such processors can be, but are not limited to, general-purpose processors, special-purpose processors, special-purpose processors or field programmable gate arrays.

[0101] The flow charts and block diagrams in the accompanying drawings illustrate the architecture, functions and operations of possible implementations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram may represent a module, a segment of code or a part of code including one or more executable instructions for implementing one or more specified logical functions. It should also be noted that in some alternative implementations, the functions mentioned in the box may not appear in the order mentioned in the accompanying drawings. For example, the two boxes shown in succession can actually be executed substantially simultaneously, or these boxes can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart diagram and the combination of boxes in the block diagram and / or flow chart diagram can be implemented by a combination of a dedicated hardware-based system or dedicated hardware and computer instructions that performs a specified function or action.

[0102] While the foregoing is directed to embodiments of the present disclosure, other and further embodiments of the present disclosure may be envisaged without departing from the basic scope of the present disclosure, and the scope of the present disclosure is determined by the appended claims.

Claims

1. A computer-implemented method for controlling a robot, the method comprising: receiving sensor data associated with the robot, wherein the sensor data includes at least one of force data or torque data; applying a machine learning model to the sensor data to generate actions, wherein the machine learning model has been trained via reinforcement learning; and causing the robot to perform one or more movements based on the action, Wherein, during the reinforcement learning, the learner network includes a plurality of learner neural networks, which are used to: sampling a plurality of sequences of stored transitions to learn therefrom based on one or more sequence priorities assigned to the sequences and one or more transition priorities assigned to the transitions, wherein transitions and sequences having higher priorities are sampled; as well as The parameters of the machine learning model are updated based on the sampled sequence.

2. The computer-implemented method of claim 1 , wherein the machine learning model comprises at least one memory layer.

3. A computer-implemented method as described in claim 2, wherein the machine learning model also includes at least one of a fully connected layer, a Q network, or a pi network.

4. The computer-implemented method of claim 1 , wherein during the reinforcement learning, a training environment does not include a model of the robot.

5. The computer-implemented method of claim 1 , wherein the plurality of stored transitions each comprises: an action that can be simulated in a training environment, an observation in the form of at least one of force feedback data and torque feedback data received as feedback from the training environment when the action is simulated in the training environment, and a reward calculated based on the simulation of the action in the training environment.

6. The computer-implemented method of claim 1 , wherein the plurality of learner neural networks comprises: a policy neural network configured to take as input at least one of the force training data and the torque training data and output an action; a value neural network configured to evaluate the action output from the policy neural network; a first target neural network configured to periodically synchronize with the policy neural network; as well as A second target neural network is configured to be periodically synchronized with the value neural network.

7. The computer-implemented method of claim 1 , wherein the plurality of stored sequences of transitions are grouped to form a transition episode, and wherein: During the reinforcement learning, last two time series comprising transitions in the transition episode overlap, and an amount of the overlap is based on a length of the episode; and Each transition included in the transition episode includes an observation, an action, and a reward.

8. The computer-implemented method of claim 6, wherein the number of transitions included in each sequence is based on the number of transitions received as input by a learning neural network of the plurality of learner neural networks.

9. The computer-implemented method of claim 1 , wherein the action comprises a target speed, and causing the robot to perform the one or more movements based on the action comprises: calculating one or more movements of one or more joints of the robot using inverse dynamics based on the target velocity; as well as At least one command signal is transmitted to the robot based on the one or more movements of the one or more joints.

10. The computer-implemented method of claim 1, wherein the sensor data is acquired by a sensor mounted on an end effector of the robot.

11. The computer-implemented method of claim 1, further comprising determining whether a distance between a pose of the joint member and a target pose is less than a threshold distance.

12. One or more non-transitory computer-readable storage media comprising instructions that, when executed by at least one processor, cause the at least one processor to perform the method of any one of claims 1-11.

13. One or more non-transitory computer-readable storage media as described in claim 12, wherein the machine learning model includes long short-term memory.

14. A system for controlling a robot, comprising: one or more memories storing instructions; as well as One or more processors, the one or more processors being coupled to the one or more memories and being configured to perform the method of any one of claims 1-11 when executing the instructions.