Robot model learning device, robot model machine learning method, robot model machine learning program, robot control device, robot control method, and robot control program

The robot model learning device optimizes learning through actual value acquisition, predictive models, and reward-based action refinement using corrective and adversarial forces, addressing inefficiencies in existing learning methods and enhancing robot model robustness and task success.

JP7563215B2Active Publication Date: 2024-10-08OMRON CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021020049
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-02-10
Publication Date
2024-10-08
Estimated Expiration
2041-02-10

AI Technical Summary

Technical Problem

The challenge in learning robot models through machine learning lies in setting parameters and designing reward functions efficiently, making it difficult to achieve effective learning.

Method used

A robot model learning device that includes an acquisition unit for actual robot values, a state transition model for predicting positions and orientations, an external force model for predicting applied forces, and a reward calculation unit to optimize action commands based on errors and external forces, using corrective and adversarial external forces to refine the learning process.

Benefits of technology

This approach enables efficient learning of robot models, enhancing their robustness against environmental changes and improving task success rates, even with varying conditions such as different materials and friction coefficients.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007563215000003
    Figure 0007563215000003
  • Figure 0007563215000004
    Figure 0007563215000004
  • Figure 0007563215000005
    Figure 0007563215000005
Patent Text Reader

Abstract

To enable a robot model to learn efficiently through machine learning.SOLUTION: A robot control device 40 is configured to: acquire an actual value of a position attitude of a robot 10 and an actual value of external force applied to the robot 10, and executes a robot model LM including a state transition model for calculating a prediction value of the position attitude of the robot 10 and an external force model for calculating a prediction value of the external force applied to the robot 10, on the basis of an actual value of the position attitude at a certain time and an action command which can be given to the robot 10; calculate a reward on the basis of an error of the position attitude and the prediction value of the external force; generate a plurality of action command candidates and give them to the robot model LM, for each control period; determine an action command that maximizes the reward on the basis of rewards calculated in correspondence with the plurality of action command candidates respectively; and update the external model so as to minimize an error between the prediction value of the external force calculated using the external force model according to the determined action command and the actual value of the external force corresponding to the prediction value of the external force.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The disclosed technology relates to a robot model learning device, a robot model machine learning method, a robot model machine learning program, a robot control device, a robot control method, and a robot control program. [Background technology]

[0002] In order to automatically acquire the control laws necessary for a robot to accomplish a task, a robot model is trained using machine learning.

[0003] For example, Patent Document 1 discloses a technology for a control device that controls an industrial robot having a function of detecting forces and moments applied to a manipulator, the control device comprising: a control unit that controls the industrial robot based on control commands; a data acquisition unit that acquires at least one of the forces and moments applied to a manipulator of the industrial robot as acquired data; and a pre-processing unit that generates, as status data, force state data including information related to the forces applied to the manipulator and control command adjustment data that indicates adjustment actions of a control command related to the manipulator, based on the acquired data, and executes machine learning processing related to the adjustment actions of the control commands related to the manipulator based on the status data. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2020-055095 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, setting parameters and designing reward functions when training a robot model through machine learning are difficult, making it difficult to learn efficiently.

[0006] The disclosed technology has been made in consideration of the above-mentioned points, and aims to provide a robot model learning device, a robot model machine learning method, a robot model machine learning program, a robot control device, a robot control method, and a robot control program that are capable of efficiently learning a robot model through machine learning. [Means for solving the problem]

[0007] A first aspect of the disclosure is a learning device for a robot model, comprising: an acquisition unit that acquires an actual value of a position and posture of a robot and an actual value of an external force applied to the robot; a robot model including a state transition model that calculates a predicted value of a position and posture of the robot at a next time point based on the actual value of the position and posture at a certain time point and a behavioral command that can be given to the robot, and an external force model that calculates a predicted value of an external force applied to the robot; a model execution unit that executes the robot model; a reward calculation unit that calculates a reward based on an error between the predicted value of the position and posture and a target value of the position and posture to be reached and the predicted value of the external force; a behavior determination unit that generates a plurality of candidates for the behavioral command for each control period and gives them to the robot model, and determines a behavioral command that maximizes the reward based on the reward calculated by the reward calculation unit corresponding to each of the plurality of candidates for the behavioral command; and an external force model update unit that updates the external force model so that a difference between the predicted value of the external force calculated by the external force model based on the determined behavioral command and the actual value of the external force corresponding to the predicted value of the external force is reduced.

[0008] In the first aspect described above, the configuration may further include a state transition model update unit that updates the state transition model so as to reduce an error between a predicted value of the position and attitude calculated by the state transition model based on the determined action command and an actual value of the position and attitude corresponding to the predicted value of the position and attitude.

[0009] In the first aspect, when the external force is a corrected external force that suppresses the increase of the error, the reward calculation unit may calculate the reward by a calculation in which a predicted value of the corrected external force is a factor for reducing the reward.

[0010] In the first aspect, when the external force is a hostile external force that suppresses the reduction of the error, the reward calculation unit may calculate the reward by a calculation in which a predicted value of the hostile external force is a factor for increasing the reward.

[0011] In the first aspect, when the external force is a corrective external force that suppresses the increase of the error, the reward calculation unit may calculate the reward by a calculation in which a predicted value of the corrective external force is a factor that reduces the reward, and when the external force is a hostile external force that suppresses the reduction of the error, the reward calculation unit may calculate the reward by a calculation in which a predicted value of the hostile external force is a factor that increases the reward.

[0012] In the first aspect, the reward calculation unit may calculate the reward by a calculation such that a range of change in the amount of decrease in the reward based on the predicted value of the corrected external force during task execution is smaller than a range of change in the reward based on the error, and a range of change in the amount of increase in the reward based on the predicted value of the hostile external force during task execution is smaller than a range of change in the reward based on the error.

[0013] In the first aspect, the external force model may include a modified external force model that outputs a predicted value of the modified external force when the external force is the modified external force, and an hostile external force model that outputs a predicted value of the hostile external force when the external force is the hostile external force, and the external force model update unit may include a modified external force model update unit that updates the modified external force model so that a difference between the predicted value of the modified external force calculated by the modified external force model based on the determined action command and an actual value of the external force becomes small when the external force is the modified external force, and an hostile external force model update unit that updates the hostile external force model so that a difference between the predicted value of the hostile external force calculated by the hostile external force model based on the determined action command and an actual value of the external force becomes small when the external force is the hostile external force.

[0014] In the first aspect, the robot model includes an integrated external force model equipped with the modified external force model and the hostile external force model, the modified external force model and the hostile external force model are neural networks, at least one layer of one or more intermediate layers and output layers of the hostile external force model integrates outputs of layers preceding a corresponding layer of the modified external force model by a progressive neural network technique, the hostile external force model outputs a predicted value of an external force and identification information indicating whether the external force is a modified external force or an hostile external force, the integrated external force model uses an output of the hostile external force model as its own output, and the reward calculation unit may calculate the reward by a calculation in which the predicted value of the external force is a factor that reduces the reward when the identification information indicates a modified external force, and calculate the reward by a calculation in which the predicted value of the external force is a factor that increases the reward when the identification information indicates an hostile external force.

[0015] In the above first aspect, the configuration may further include a reception unit that receives a designation of whether the external force is the modified external force or the hostile external force, and a learning control unit that enables operation of the modified external force model update unit when the designation is the modified external force, and enables operation of the hostile external force model update unit when the designation is the hostile external force.

[0016] In the above first aspect, the configuration may further include a learning control unit that determines whether the external force is the modified external force or the hostile external force based on the actual value of the position and posture and the actual value of the external force, enables operation of the modified external force model update unit when the result of the determination is the modified external force, and enables operation of the hostile external force model update unit when the result of the determination is the hostile external force.

[0017] A second aspect of the disclosure is a machine learning method for a robot model, comprising: preparing a robot model including a state transition model that calculates a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at a next time and an external force model that calculates a predicted value of an external force applied to the robot; acquiring the actual value of the position and posture and the actual value of the external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and providing the generated plurality of candidates for the behavior command to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a target value of the position and posture to be reached and a plurality of predicted values ​​of the external forces calculated by the external force model corresponding to the plurality of candidates for the behavior command; and updating the external force model so that a difference between the predicted value of the external force calculated by the external force model based on the determined behavior command and the actual value of the external force corresponding to the predicted value of the external force is reduced.

[0018] In the second aspect, the state transition model may be updated so as to reduce an error between a predicted value of the position and attitude calculated by the state transition model based on the determined action command and an actual value of the position and attitude corresponding to the predicted value of the position and attitude.

[0019] In the second aspect described above, when the external force is a corrected external force that suppresses the increase of the error, the reward may be calculated by a calculation in which a predicted value of the corrected external force is used as a factor for reducing the reward.

[0020] In the above second aspect, when the external force is a hostile external force that suppresses the reduction of the error, the reward may be calculated by a calculation in which a predicted value of the hostile external force is a factor for increasing the reward.

[0021] In the above second aspect, when the external force is a correcting external force that suppresses the increase of the error, the reward may be calculated by a calculation in which a predicted value of the correcting external force is a factor that reduces the reward, and when the external force is a hostile external force that suppresses the reduction of the error, the reward may be calculated by a calculation in which a predicted value of the hostile external force is a factor that increases the reward.

[0022] In the second aspect, the external force model includes a modified external force model that outputs a predicted value of the modified external force when the external force is the modified external force, and an hostile external force model that outputs a predicted value of the hostile external force when the external force is the hostile external force, and when the external force is the modified external force, the modified external force model is updated so that a difference between the predicted value of the modified external force calculated by the modified external force model based on the determined action command and an actual value of the external force is reduced when the external force is the hostile external force, and the hostile external force model is updated so that a difference between the predicted value of the hostile external force calculated by the hostile external force model based on the determined action command and an actual value of the external force is reduced when the external force is the hostile external force.

[0023] In the second aspect, the corrective external force may be applied to the robot when the error is increasing, and the hostile external force may be applied to the robot when the error is decreasing.

[0024] A third aspect of the disclosure is a machine learning program for learning a robot model, the machine learning program including a state transition model that calculates a predicted value of a position and posture of a robot at a certain time based on an actual value of the position and posture of the robot at the next time and a behavioral command that can be given to the robot, and an external force model that calculates a predicted value of an external force applied to the robot, the machine learning program acquiring the actual value of the position and posture and the actual value of the external force applied to the robot for each control cycle, generating a plurality of candidates for the behavioral command for each control cycle and giving them to the robot model, and calculating the predicted value of the behavioral command. The computer is caused to perform each of the following processes: determining a behavioral command that maximizes a reward based on a plurality of rewards calculated corresponding to a plurality of candidates for the behavioral command, based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to a plurality of candidates and a target value of the position and posture to be reached, and a plurality of predicted values ​​of the external force calculated by the external force model corresponding to a plurality of candidates for the behavioral command; and updating the external force model so that a difference between the predicted value of the external force calculated by the external force model based on the determined behavioral command and an actual value of the external force corresponding to the predicted value of the external force is reduced.

[0025] A fourth aspect of the disclosure is a robot control device comprising: a model execution unit that executes a robot model including a state transition model that calculates a predicted value of a position and posture of the robot at a certain time and an external force model that calculates a predicted value of an external force applied to the robot based on an actual value of a position and posture of the robot at a certain time and a behavioral command that can be given to the robot; an acquisition unit that acquires the actual values ​​of the position and posture of the robot and actual values ​​of the external force applied to the robot; a reward calculation unit that calculates a reward based on an error between the predicted value of the position and posture calculated by the robot model and a target value of the position and posture to be reached and the predicted value of the external force calculated by the robot model; and a behavior determination unit that generates a plurality of candidates for the behavioral command for each control period and gives them to the robot model, and determines a behavioral command that maximizes the reward based on the reward calculated by the reward calculation unit corresponding to each of the plurality of candidates for the behavioral command.

[0026] A fifth aspect of the disclosure is a robot control method, comprising: preparing a robot model including a state transition model that calculates a predicted value of a position and posture of the robot at a certain time based on an actual value of a position and posture of the robot at a next time and an external force model that calculates a predicted value of an external force applied to the robot; acquiring the actual value of the position and posture and the actual value of the external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and applying the generated plurality of candidates for the behavior command to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a target value of the position and posture to be reached and a plurality of predicted values ​​of the external force calculated by the external force model corresponding to the plurality of candidates for the behavior command; and controlling the robot based on the determined behavior command.

[0027] A sixth aspect of the disclosure is a robot control program for controlling a robot using a robot model including a state transition model that calculates a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at the next time and a behavioral command that can be given to the robot, and an external force model that calculates a predicted value of an external force applied to the robot, the program causing a computer to perform each of the following processes: acquiring the actual value of the position and posture and the actual value of the external force applied to the robot for each control cycle; generating a plurality of candidates for the behavioral command for each control cycle and giving them to the robot model; determining a behavioral command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavioral command based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavioral command and a target value of the position and posture to be reached and a plurality of predicted values ​​of the external force calculated by the external force model corresponding to the plurality of candidates for the behavioral command; and controlling the robot based on the determined behavioral command. Effect of the Invention

[0028] According to the disclosed technology, when learning a robot model through machine learning, learning can be performed efficiently. [Brief description of the drawings]

[0029] [Figure 1] 1 is a configuration diagram of a robot system according to a first embodiment. [Diagram 2] 1A is a diagram showing a schematic configuration of a robot 10, and FIG. 1B is an enlarged view of the tip end side of the robot's arm. [Diagram 3] FIG. 13 is a diagram for explaining a corrected external force and a hostile external force. [Figure 4] FIG. 2 is a block diagram showing a hardware configuration of the robot control device. [Diagram 5] FIG. 2 is a configuration diagram of a robot model. [Figure 6] FIG. 13 is a configuration diagram of a robot model according to a modified example. [Figure 7] FIG. 13 is a configuration diagram of a robot model according to a modified example. [Figure 8] FIG. 1 is a configuration diagram of an integrated external force model. [Figure 9] 4 is a flowchart of a learning process according to the first embodiment. [Figure 10] 10 is a flowchart of a learning process according to the second embodiment. [Figure 11] FIG. 11 is a configuration diagram of a robot system according to a third embodiment. [Figure 12] 13 is a flowchart of a learning process according to the third embodiment. [Figure 13] Graph (A) is a graph showing a learning curve for position error, and graph (B) is a graph showing a learning curve for external force. [Figure 14] (A) is a graph showing the number of times the task was successfully completed for different frictions, and (B) is a graph showing the number of times the task was successfully completed for different peg masses. [Figure 15] 13 is a graph showing the number of times a task was successful for different peg materials. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0030] Hereinafter, an example of an embodiment of the disclosed technology will be described with reference to the drawings. In each drawing, the same or equivalent components and parts are given the same reference numerals. In addition, the dimensional ratios of the drawings may be exaggerated for the convenience of explanation and may differ from the actual ratios.

[0031] First Embodiment

[0032] 1 shows the configuration of a robot system 1 according to this embodiment. The robot system 1 includes a robot 10, a state observation sensor 20, tactile sensors 30A and 30B, a robot control device 40, a display device 50, and an input device 60.

[0033] (robot)

[0034] 2(A) and (B) are diagrams showing a schematic configuration of a robot 10. The robot 10 in this embodiment is a six-axis vertical articulated robot, and a gripper (hand) 12 is provided at the tip 11a of an arm 11 via a flexible part 13. The robot 10 performs a fitting operation in which the gripper 12 grasps a part (e.g., a peg) and fits it into a hole. Note that while the robot 10 is an actual robot in this embodiment, it may also be a virtual robot in a simulation.

[0035] As shown in FIG. 2(A), the robot 10 has an arm 11 with six degrees of freedom equipped with joints J1 to J6. Each of the joints J1 to J6 connects links to each other so that they can rotate in the directions of the arrows C1 to C6 by a motor (not shown). Although a vertical articulated robot is given as an example here, a horizontal articulated robot (SCARA robot) may also be used. Furthermore, although a six-axis robot is given as an example, a five-axis or seven-axis articulated robot or other articulated robot with other degrees of freedom may also be used, or a parallel link robot may also be used.

[0036] The gripper 12 has a pair of clamping parts 12a, and clamps a part by controlling the clamping parts 12a. The gripper 12 is connected to the tip 11a of the arm 11 via the flexible part 13, and moves with the movement of the arm 11. In this embodiment, the flexible part 13 is composed of three springs 13a to 13c arranged in a positional relationship such that the bases of the springs are the vertices of an equilateral triangle, but the number of springs may be any number. The flexible part 13 may be any other mechanism as long as it generates a restoring force against a change in position and obtains flexibility. For example, the flexible part 13 may be an elastic body such as a spring or rubber, a damper, a pneumatic or hydraulic cylinder, or the like. It is preferable that the flexible part 13 is composed of a passive element. The flexible part 13 allows the tip 11a of the arm 11 and the gripper 12 to be relatively movable by 5 mm or more, preferably 1 cm or more, and more preferably 2 cm or more in the horizontal and vertical directions.

[0037] A mechanism may be provided that allows the gripper 12 to be switched between a flexible state and a fixed state relative to the arm 11.

[0038] In addition, although the configuration in which the flexible part 13 is provided between the tip 11a of the arm 11 and the gripper 12 has been exemplified here, the flexible part 13 may be provided in the middle of the gripper 12 (for example, at the location of the finger joint or in the middle of the columnar part of the finger) or in the middle of the arm (for example, at any of the joints J1 to J6 or in the middle of the columnar part of the arm). The flexible part 13 may be provided in a plurality of these locations.

[0039] The robot system 1 uses machine learning (e.g., model-based reinforcement learning) to obtain a robot model for controlling the robot 10 having the flexible part 13 as described above. Because the robot 10 has the flexible part 13, it is safe to bring the gripped part into contact with the environment, and even if the control cycle is slow, fitting work and the like can be realized. On the other hand, because the flexible part 13 makes the positions of the gripper 12 and the part uncertain, it is difficult to obtain an analytical robot model. Therefore, in this embodiment, the robot model is obtained using machine learning.

[0040] (Status Observation Sensor)

[0041] The state observation sensor 20 observes the position and orientation of the gripper 12 as the state of the robot 10, and outputs the observed position and orientation as an actual value. For example, an encoder for the joints of the robot 10, a visual sensor (camera), motion capture, etc. are used as the state observation sensor 20. When a marker for motion capture is attached to the gripper 12, the position and orientation of the gripper 12 can be identified, and the orientation of the part (work object) can be estimated from the position and orientation of the gripper 12.

[0042] Also, a visual sensor can detect the position and orientation of the gripper 12 itself and the part gripped by the gripper 12 as the state of the robot 10. If the portion between the gripper 12 and the arm 11 is flexible, the position and orientation of the gripper 12 relative to the arm 11 can also be identified by a displacement sensor that detects the displacement of the gripper 12 relative to the arm 11.

[0043] (Tactile Sensor)

[0044] Although not shown in FIG. 2, tactile sensors 30A and 30B are attached to the gripper body 12b of the gripper 12 as shown in FIG.

[0045] As an example, the tactile sensors 30A and 30B are provided at positions along the direction in which a pair of clamping parts 12a face each other. As an example, the tactile sensors 30A and 30B are sensors that detect three-axis or six-axis forces, and can detect the magnitude and direction of an external force applied to them. A user applies an external force to the gripper 12 by grasping the gripper body 12b and moving the gripper 12 so that the hand (fingers) contacts both the tactile sensors 30A and 30B.

[0046] The external forces include corrective external forces that provide correction (advisory) so that the task (work) performed by the robot 10 is successful, and hostile external forces that provide adversarial correction so that the task fails. The corrective external forces are external forces that suppress the expansion of the error between the predicted value of the position and posture of the robot 10 predicted by the robot model and the target value of the position and posture that the robot 10 should reach. The hostile external forces are external forces that reduce the expansion of the error between the predicted value of the position and posture of the robot 10 predicted by the robot model and the target value of the position and posture that the robot 10 should reach.

[0047] Specifically, in the case where the task executed by the robot 10 is to insert a peg 70 into a hole 74 provided in a platform 72 as shown in Fig. 3, in order to insert the peg 70 into the hole 74, it is necessary to move the peg 70 in the direction of the arrow A. In this case, an external force applied in the direction of the arrow A, which is the correct direction for successfully completing the task of inserting the peg 70 into the hole 74, is the corrective external force. On the other hand, an external force applied in the direction of the arrow B, which is the direction opposite to the direction of the arrow A and which causes the task to fail, is the hostile external force.

[0048] 3, when a user grasps the gripper 12 and applies a corrective external force in the direction of the arrow A, the force detected by the tactile sensor 30A is greater than that detected by the tactile sensor 30B, and it can be determined that a corrective external force is being applied. On the other hand, when a hostile external force is applied in the direction of the arrow B, the force detected by the tactile sensor 30B is greater than that detected by the tactile sensor 30A, and it can be determined that a hostile external force is being applied.

[0049] In this embodiment, a case where two tactile sensors 30A and 30B are provided on the gripper body 12b will be described, but the present invention is not limited to this. For example, three or more tactile sensors may be provided at equal intervals around the gripper body 12b. When three or more tactile sensors are provided and the combined detection results of the three or more tactile sensors can determine at least the direction of an external force in a plane perpendicular to the axis of the gripper 12, each tactile sensor may detect only the magnitude of the external force.

[0050] (Robot control device)

[0051] The robot control device 40 functions as a learning device that learns a robot model by machine learning. The robot control device 40 also functions as a control device that controls the robot 10 using the learned robot model.

[0052] Fig. 4 is a block diagram showing the hardware configuration of the robot control device according to this embodiment. As shown in Fig. 4, the robot control device 40 has the same configuration as a general computer (information processing device), and includes a CPU (Central Processing Unit) 40A, a ROM (Read Only Memory) 40B, a RAM (Random Access Memory) 40C, a storage 40D, a keyboard 40E, a mouse 40F, a monitor 40G, and a communication interface 40H. Each component is connected to each other so as to be able to communicate with each other via a bus 40I.

[0053] In this embodiment, the ROM 40B or the storage 40D stores a program for machine learning the robot model and a robot control program. The CPU 40A is a central processing unit, and executes various programs and controls each configuration. That is, the CPU 40A reads a program from the ROM 40B or the storage 40D, and executes the program using the RAM 40C as a working area. The CPU 40A controls each of the above configurations and performs various arithmetic processing according to the program recorded in the ROM 40B or the storage 40D. The ROM 42 stores various programs and various data. The RAM 40C temporarily stores programs or data as a working area. The storage 40D is composed of a HDD (Hard Disk Drive), an SSD (Solid State Drive), or a flash memory, and stores various programs including an operating system and various data. The keyboard 40E and the mouse 40F are examples of the input device 60, and are used to perform various inputs. The monitor 40G is, for example, a liquid crystal display, and is an example of the display device 50. The monitor 40G may employ a touch panel system and function as the input device 60. The communication interface 40H is an interface for communicating with other devices, and uses standards such as Ethernet (registered trademark), FDDI, or Wi-Fi (registered trademark).

[0054] Next, the functional configuration of the robot control device 40 will be described.

[0055] 1, the robot control device 40 has, as its functional configuration, an acquisition unit 41, a model execution unit 42, a reward calculation unit 43, a behavior determination unit 44, an external force model update unit 45, a learning control unit 46, and a user interface (UI) control unit 47. Each functional configuration is realized by a CPU 40A reading out a machine learning program stored in a ROM 40B or a storage 40D, expanding the program in a RAM 40C, and executing the program. Note that some or all of the functions may be realized by a dedicated hardware device.

[0056] The acquisition unit 41 acquires the actual value of the position and posture of the robot 10 and the actual value of the external force applied to the robot 10. The position and posture of the robot 10 is, for example, the position and posture of the gripper 12 serving as an end effector of the robot 10. The external force applied to the robot 10 is, for example, the external force applied to the gripper 12 serving as an end effector of the robot 10. The actual value of the external force is measured by the tactile sensors 30A and 30B. In the case of the robot 10 in which it is difficult to identify which part is the end effector, it is sufficient to identify the part where the position and posture are measured and the part where the external force is applied as appropriate from the viewpoint of the part of the robot that has an effect on the operation target object.

[0057] In this embodiment, since the gripper 12 is provided at the tip 11a of the arm 11 via the flexible part 13, it is preferable that the gripper 12 can be physically displaced flexibly when an external force is applied to the gripper 12, or can be displaced by control in response to the external force. Note that the disclosed technology can also be applied by applying an external force by hand to a rigid robot that does not have flexibility.

[0058] In this embodiment, the position and posture of the robot 10 are expressed by values ​​of a maximum total of six degrees of freedom, three degrees of freedom for position and three degrees of freedom for posture, but the degrees of freedom may be fewer depending on the degrees of freedom of movement of the robot 10. For example, in the case of a robot in which the posture of the end effector does not change, the "position and posture" may be expressed by values ​​of only three degrees of freedom for position.

[0059] The model execution unit 42 executes the robot model LM.

[0060] As shown in FIG. 5, the robot model LM includes a state transition model DM that calculates a predicted value of the position and posture of the robot 10 at the next time based on the actual value (measured value) of the position and posture at a certain time and a behavioral command (candidate value or decision value) that can be given to the robot 10, and an external force model EM that calculates a predicted value of the external force applied to the robot 10.

[0061] In addition, when the robot model LM is "based on" (=input) and "calculate" (=output), this means that when the model execution unit 42 executes the model, it executes the model using the input data, and calculates (generates) output data by executing the model.

[0062] The external force model EM includes a modified external force model EM1 that outputs a predicted value of a modified external force and an hostile external force model EM2 that outputs a predicted value of a hostile external force.

[0063] The reward calculation unit 43 calculates a reward based on the error between the predicted value of the position and posture and the target value of the position and posture to be reached, and the predicted value of the external force. The position and posture to be reached may be the position and posture to be reached when the task is completed, or may be the position and posture as an intermediate target before the task is completed.

[0064] When the external force is a corrected external force that suppresses the increase of the error, the reward calculation unit 43 calculates the reward by a calculation in which the predicted value of the corrected external force is a factor for reducing the reward.

[0065] The corrective external force, which is an external force that suppresses the expansion of an error, is an external force that slows down the rate of expansion when the position and orientation error is expanding, and does not necessarily have to be an external force that changes the expansion of the error into a reduction.

[0066] A calculation in which the predicted value of the modified external force is used as a factor for decreasing the reward means that the reward calculated using the predicted value of the modified external force calculated by the external force model is smaller than the reward calculated when the predicted value of the modified external force is set to 0. Note that a decrease does not mean a decrease over time, and even if the predicted value of the modified external force calculated by the modified external force model EM1 is used in the calculation, the reward does not necessarily decrease over time.

[0067] Even when the position and orientation error is increasing, it is preferable to apply a corrective external force when the position and orientation error is large (for example, when the peg 70 is far away from the hole 74 in FIG. 3), and it is not necessary to apply a corrective external force when the position and orientation error is small (when the peg 70 is near the hole 74). Also, when the position and orientation error is large, it is preferable to apply a larger corrective external force the faster the position and orientation error increases.

[0068] Furthermore, the reward calculation unit 43 calculates the reward by a calculation such that the range of change in the amount of reduction in reward based on the predicted value of the corrected external force during task execution is smaller than the range of change in reward based on the error.

[0069] Furthermore, when the external force is a hostile external force that suppresses the reduction of the error, the reward calculation unit 43 calculates the reward by a calculation in which the predicted value of the hostile external force is a factor for increasing the reward.

[0070] An antagonistic external force that suppresses the reduction of an error is an external force that slows down the rate of reduction when the position and orientation error is being reduced, and does not necessarily have to be an external force that changes the reduction of the error into an increase.

[0071] A calculation that uses the predicted value of hostile external force as a factor for increasing the reward means that the reward is greater when calculated using the predicted value of hostile external force calculated by the hostile external force model than when the predicted value of hostile external force is set to 0. Note that an increase does not mean an increase over time, and even if the predicted value of hostile external force calculated by the hostile external force model EM2 is used in the calculation, the reward does not necessarily increase over time.

[0072] Even when the position and orientation error is decreasing, it is preferable to apply the hostile external force when the position and orientation error is small (for example, when the peg 70 is near the hole 74 in FIG. 3), and it is not necessary to apply the hostile external force when the position and orientation error is large. Also, when the position and orientation error is small, it is preferable to apply a larger hostile external force as the speed at which the position and orientation error is decreasing increases.

[0073] Further, the reward calculation unit 43 calculates the reward by a calculation such that the range of change in the amount of increase in reward based on the predicted value of the hostile external force during task execution is smaller than the range of change in reward based on the error.

[0074] The behavior decision unit 44 generates multiple candidates for behavior commands for each control period and provides them to the robot model LM, and determines a behavior command that maximizes the reward based on the reward calculated by the reward calculation unit 43 corresponding to each of the multiple candidates for the behavior command.

[0075] In this embodiment, the behavior command is a speed command, but it may be a position command, a torque command, a combined command of speed, position, and torque, etc. Also, the behavior command may be a series of behavior commands spanning multiple time periods. Also, multiple candidates for the behavior command may be multiple series of candidates for the behavior command.

[0076] Maximizing the reward means maximizing the reward as a result of exploration within a limited time; the reward does not have to be the true maximum value in that situation.

[0077] The external force model update unit 45 updates the external force model so as to reduce the difference between a predicted value of an external force calculated by the external force model based on the determined behavioral command and an actual value of the external force corresponding to the predicted value of the external force.

[0078] The external force model updating unit 45 includes a modified external force model updating unit 45A and an hostile external force model updating unit 45B.

[0079] The modified external force model update unit 45A updates the modified external force model EM1 so as to reduce the difference between the predicted value of the modified external force calculated by the modified external force model EM1 based on the behavior command determined by the behavior determination unit 44 and the actual value of the modified external force.

[0080] The hostile external force model update unit 45B updates the hostile external force model EM2 so as to reduce the difference between the predicted value of the hostile external force calculated by the hostile external force model EM2 based on the action command determined by the action determination unit 44 and the actual value of the hostile external force.

[0081] The learning control unit 46 determines whether the external force is a modified external force or a hostile external force based on the actual value of the position and posture and the actual value of the external force, and enables the operation of the modified external force model update unit if the result of the determination is a modified external force, and enables the operation of the hostile external force model update unit 45B if the result of the determination is a hostile external force. Furthermore, it disables the operation of the modified external force model update unit 45A if the result of the determination is not a modified external force, and disables the operation of the hostile external force model update unit 45B if the result of the determination is not a hostile external force.

[0082] In this embodiment, a case will be described in which the learning control unit 46 automatically determines whether the external force is a modified external force or a hostile external force based on the actual value of the position and posture and the actual value of the external force, but the learning control unit 46 may be configured to further include a reception unit that receives a designation of whether the external force is a modified external force or a hostile external force.

[0083] In this case, the user operates the input device 60 to apply an external force to the gripper 12 by specifying whether the external force to be applied to the gripper 12 is a corrective external force or an antagonistic external force.

[0084] Then, the learning control unit 46 enables the operation of the modified external force model updating unit 45A when the specified external force is a modified external force, and enables the operation of the hostile external force model updating unit 45B when the specified external force is a hostile external force. Furthermore, if the specified external force is not a modified external force, the learning control unit 46 disables the operation of the modified external force model updating unit 45A, and if the specified external force is not a hostile external force, the learning control unit 46 disables the operation of the hostile external force model updating unit 45B.

[0085] In the example of Fig. 5, the state transition model DM, the modified external force model EM1, and the hostile external force model EM2 are each independent models, but the configuration of the robot model LM is not limited to this. For example, as in the robot model LM1 shown in Fig. 6, the robot model LM may be composed of a common part CM, a state transition model specific part DMa, a modified external force model specific part EM1a, and an hostile external force model specific part EM2a. In this case, the common part CM performs processing common to the state transition model DM, the modified external force model EM1, and the hostile external force model EM2. The modified external force model specific part EM1a performs processing specific to the modified external force model EM1. The hostile external force model specific part EM2a performs processing specific to the hostile external force model EM2.

[0086] Also, like the robot model LM2 shown in Fig. 7, a configuration may be adopted that includes an integrated external force model IM equipped with the modified external force model EM1 and the hostile external force model EM2 of Fig. 5. In this case, the integrated external force model IM outputs a predicted value of the external force, and also outputs identification information for identifying whether the external force is a modified external force or a hostile external force.

[0087] The integrated external force model IM may be an integration of the modified external force model EM1 and the hostile external force model EM2 using a progressive neural network technique. In this case, the modified external force model EM1 and the hostile external force model are configured as neural networks. At least one layer among one or more intermediate layers and output layers of the hostile external force model EM2 integrates the output of the layer preceding the corresponding layer of the modified external force model EM1 using a progressive neural network (PNN) technique.

[0088] In the example of Fig. 8, the output of the intermediate layer MID2A, which is the layer preceding the corresponding output layer OUT1 of the modified external force model EM1, is input to the output layer OUT2 of the hostile external force model EM2. Also, the output of the intermediate layer MID1A, which is the layer preceding the corresponding intermediate layer MID2A of the modified external force model EM1, is input to the intermediate layer MID2B of the hostile external force model EM2.

[0089] For such an integrated external force model IM, first, machine learning of the modified external force model EM1 is performed, and then machine learning of the hostile external force model EM2 is performed. While the modified external force is being added and the modified external force model EM1 is being learned, the weight parameters between each layer of the modified external force model EM1 are updated so that the error of the predicted value of the modified external force relative to the actual value of the modified external force is reduced, and the hostile external force model EM2 is not updated. The weight parameters of the path from one layer (e.g., MID1A) of the modified external force model EM1 to the next layer (MID2A) are always set to the same value as the weight parameters of the path from the same layer (MID1A) to the layer (MID2B) of the hostile external force model EM2. One layer (e.g., MID2B) of the hostile external force model EM2 outputs the sum of the weighted input from the layer (e.g., MID1A) of the modified external force model to that layer and the weighted input from the layer (MID1B) of the previous stage of the hostile external force model EM2 to the layer (OUT2) of the hostile external force model EM2. After the learning of the modified external force model EM1 is completed, while the adversarial external force model EM2 is being learned by adding an adversarial external force, the weight parameters between each layer of the adversarial external force model EM2 are updated so that the error of the predicted value of the adversarial external force relative to the actual value of the adversarial external force is reduced, and the modified external force model EM1 is not updated. In the operation phase after the learning of the adversarial external force model EM2 is completed, the output of the adversarial external force model EM2 is used as the predicted value of the external force, and the output of the modified external force model EM1 is not used. By performing machine learning of the external force in this way, even though it is a model that integrates the modified external force model EM1 and the adversarial external force model EM2, it is possible to learn about the adversarial external force without destroying the learning results of the modified external force that were previously performed.

[0090] The integrated external force model IM uses a discrimination unit (not shown) to discriminate whether the predicted value of the external force is a predicted value of a modified external force or a predicted value of a hostile external force, and outputs the discrimination result as discrimination information. In this case, the reward calculation unit 43 calculates the reward by a calculation in which the predicted value of the external force is a factor decreasing the reward when the discrimination information indicates that it is a predicted value of the modified external force, and calculates the reward by a calculation in which the predicted value of the external force is a factor increasing the reward when the discrimination information indicates that it is a predicted value of a hostile external force.

[0091] The progressive neural network technique refers to the technique described in the following reference document, for example.

[0092] (Reference) Rusu et al., “Progressive neural networks,” arXiv preprint arXiv:1606.04671, 2016.

[0093] Also, regarding progressive neural networks, please see the following reference article.

[0094] (Reference article) Continual learning in multiple games https: / / wba-initiative.org / wp-content / uploads / 2015 / 05 / 20161008-hack2-noguchi.pdf

[0095] (Robot model learning process)

[0096] 9 is a flowchart showing the flow of a machine learning process for learning a robot model LM using machine learning. The machine learning process in FIG. 9 is executed by the CPU 40A reading out a machine learning program stored in the ROM 40B or the storage 40D and expanding it in the RAM 40C.

[0097] The processes of steps S100 to S108 described below are executed at regular time intervals according to a control period, which is set to a period during which the processes of steps S100 to S108 can be executed.

[0098] In step S100, the CPU 40A waits until a predetermined time corresponding to the length of the control cycle has elapsed since the start of the previous control cycle. Note that the process of step S100 may be omitted, and the process of the next control cycle may be started immediately after the process of the previous control cycle is completed.

[0099] In step S101, the CPU 40A acquires actual values ​​(measured values) of the position and posture of the robot 10 from the state observation sensor 20, and also acquires actual values ​​(measured values) of external forces from the tactile sensors 30A and 30B.

[0100] In step S102, the CPU 40A, functioning as the acquisition unit 41, determines whether or not the actual value of the position and orientation acquired in step S101 satisfies a predetermined termination condition. Here, the termination condition is satisfied when, for example, an error between the actual value of the position and orientation and a target value of the position and orientation to be reached is within a specified value. In this embodiment, the position and orientation to be reached is the position and orientation of the robot 10 when the robot 10 can insert the peg 70 into the hole 74.

[0101] If the determination in step S102 is positive, this routine ends, whereas if the determination in step S102 is negative, the routine proceeds to step S103.

[0102] In step S103, the CPU 40A updates the external force model EM as the external force model update unit 45. Specifically, first, based on the actual value of the position and orientation and the actual value of the external force acquired in step S101, it is determined whether the external force is a correcting external force or a hostile external force. For example, when an error between the actual value of the position and orientation and a target value of the position and orientation to be reached is expanding, an external force detected as a force in a direction that suppresses the expansion of the error can be determined as a correcting external force, and when an error is reducing, an external force detected as a force in a direction that suppresses the reduction of the error can be determined as a hostile external force, but the determination method is not limited thereto.

[0103] Then, if the determined external force is a modified external force, the modified external force model parameters of the modified external force model EM1 are updated so that the difference between the predicted value of the modified external force calculated by the modified external force model EM1 based on the determined behavioral command and the actual value of the modified external force is reduced.

[0104] On the other hand, if the determined external force is a hostile external force, the hostile external force model parameters of the hostile external force model EM2 are updated so as to reduce the difference between the predicted value of the hostile external force calculated by the hostile external force model EM2 based on the determined action command and the actual value of the hostile external force.

[0105] In step S104, the CPU 40A, as the behavior decision unit 44, generates multiple candidates of a behavior command (or a behavior command sequence) for the robot 10. In this embodiment, for example, n (e.g., 300) speed command value candidates are randomly generated and output to the model execution unit 42 as candidate values ​​of the behavior command.

[0106] In step S105, the CPU 40A, as the model execution unit 42, calculates predicted values ​​of the position and posture and predicted values ​​of the external force for each of the multiple candidates of the behavior command generated in step S104. Specifically, the actual values ​​of the position and posture and the n candidate values ​​of the behavior command are input to the robot model LM, and the predicted values ​​of the position and posture and the predicted values ​​of the corrected external force or the predicted value of the hostile external force corresponding to the candidate values ​​of the behavior command are calculated.

[0107] In step S106, the CPU 40A, functioning as the reward calculation unit 43, calculates a reward for each pair of the predicted value of the position and orientation corresponding to the n candidate values ​​of the action command and the corrected external force, that is, calculates n rewards.

[0108] When the external force is a modified external force, the reward r1 can be calculated using the following formula (1).

[0109] JPEG0007563215000001.jpg973...(1)

[0110] where r R is the error between the predicted position and the target position. His a corrective external force. α1 is a weight, which is set in advance. α1 is set so that the range of change in the amount of reduction in reward r1 based on the predicted value of the corrective external force during task execution is smaller than the range of change in reward r1 based on the error between the predicted value of the position and orientation and the target value of the position and orientation to be reached.

[0111] On the other hand, when the external force is a hostile external force, the reward r2 can be calculated using the following equation (2).

[0112] JPEG0007563215000002.jpg868...(2)

[0113] Here, s2 H is the hostile external force. α2 is a weight, which is set in advance. α2 is set so that the range of change in the increase in reward r2 based on the predicted value of the hostile external force during task execution is smaller than the range of change in reward r2 based on the error between the predicted value of the position and posture and the target value of the position and posture to be reached.

[0114] As shown in the above formulas (1) and (2), when the external force is the same, the reward becomes smaller as the error between the predicted value of the position and posture and the target value of the position and posture to be reached becomes larger. Also, as shown in the above formula (1), when the error is the same, the reward becomes smaller as the corrected external force becomes larger. Also, as shown in the above formula (2), when the error is the same, the reward becomes larger as the hostile external force becomes larger.

[0115] In step S107, the CPU 40A, as the behavior decision unit 44, decides a behavior command that maximizes the reward, and outputs it to the robot 10. For example, a relational expression that expresses the correspondence between the candidate values ​​of n behavior commands and the reward is calculated, and the candidate value of the behavior command that corresponds to the maximum reward on the curve expressed by the calculated relational expression is set as the determined value. Also, a so-called cross-entropy method (CEM) may be used to identify a behavior command that can maximize the reward. In this way, a behavior command that maximizes the reward is obtained.

[0116] Steps S104 to S106 may be repeated a predetermined number of times. In this case, the CPU 40A, as the behavior decision unit 44, executes step S106 for the first time, and then extracts m candidate values ​​of the behavior command with the highest reward from the pairs of n candidate values ​​of the behavior command and the reward, calculates the average and variance of the m candidate values ​​of the behavior command, and generates a normal distribution according to the average and variance. In step S104 for the second time, the CPU 40A, as the behavior decision unit 44, generates new n candidate values ​​of the speed command, not randomly, but so that the probability density matches the calculated normal distribution. Similarly, steps S104 to S106 are executed a predetermined number of times. In this way, the accuracy of maximizing the reward can be improved.

[0117] The robot 10 operates according to the determined value of the behavior command. The user applies an external force to the robot 10 according to the operation of the robot 10. Specifically, the user applies an external force to the gripper 12. It is preferable that the user applies a corrective external force to the robot 10 when the error between the predicted value of the position and posture and the target value of the position and posture to be reached is increasing, and applies a hostile external force to the robot 10 when the error is decreasing. That is, for example, when the peg 70 is moving in a direction away from the hole 74 due to the operation of the robot 10, the user applies a corrective external force to the gripper 12 in a direction in which the peg 70 approaches the hole 74. Also, for example, when the peg 70 is moving in a direction away from the hole 74 due to the operation of the robot 10, the user applies a hostile external force to the gripper 12 in a direction in which the peg 70 approaches the hole 74.

[0118] In the process of machine learning the external force model, it is preferable to apply the modified external force first. This is because applying the hostile external force first may slow down learning. The ratio of applying the modified external force and the hostile external force may be 1:1, or the ratio of the modified external force may be higher. The order of applying the modified external force and the hostile external force may be to apply the modified external force multiple times and then apply the hostile external force multiple times, or to apply the modified external force and the hostile external force alternately.

[0119] Furthermore, instead of a human being applying the corrective external force or the hostile external force, the corrective external force or the hostile external force may be applied automatically by a robot or the like that applies an external force.

[0120] In step S108, CPU 40A, functioning as model executing unit 42, calculates a predicted value of an external force for the determined value of the action command determined in step S107, and the process returns to step S100.

[0121] In this manner, the processes of steps S100 to S108 are repeated for each control period until the actual position and orientation values ​​satisfy the termination condition.

[0122] As a result, the robot model LM is trained. In this manner, the robot model LM includes the modified external force model EM1 and the hostile external force model EM2, and since the user trains the robot model LM while applying the modified external force or the hostile external force to the robot 10, it is possible to obtain a robot model LM that is efficient in learning and has excellent robustness against environmental changes, such as changes in the shape and material of the parts that are the operation target of the robot 10 and changes in the physical characteristics of the robot 10 over time.

[0123] In the operation phase, the model execution unit 42 executes the learned robot model LM by the learning process of Fig. 9. The functional configuration of the robot control device 40 in the operation phase is a configuration in which the external force model update unit 45 and the learning control unit 46 are omitted from the functional configuration of Fig. 1. The robot control process in the operation phase is a process in which the "acquire actual value of external force" process in step S101 and the external force model update process in step S103 are omitted from the learning process of Fig. 9, and the program that executes this process is the robot control processing program.

[0124] The device that executes the learning process of the robot model in the learning phase and the device that executes the robot control process in the operation phase may be different devices or may be the same device. For example, the learning device used for learning may be used as the robot control device 40 as it is, and control may be performed using the learned robot model LM. Also, the robot control device 40 may perform control while continuing learning.

[0125] <Modification of the first embodiment> In the first embodiment, the state transition model DM is configured to input the actual value of the position and posture and the action command, but not the actual value of the external force. Instead, the state transition model DM may be configured to input the actual value of the external force. In that case, the state transition model DM calculates the predicted value of the position and posture based on the actual value of the position and posture, the action command, and the actual value of the external force. However, the correction external force or the hostile external force is applied to the tactile sensors 30A and 30B only during the period during which the machine learning of the external force models EM1, EM2, EM1a, EM2a, and IM is being performed. In the operation phase, the state transition model DM calculates the predicted value of the position and posture while the input of the actual value of the external force is substantially zero. On the other hand, the fact that the external force model calculates the predicted value of the external force from the actual value of the position and posture and the action command without inputting the actual value of the external force is also the same in this modified example. The predicted value of the external force affects the action decision through being used for the reward calculation. Modifications similar to this modified example can also be made in the following embodiments.

[0126] <Second embodiment>

[0127] Next, a second embodiment of the disclosed technique will be described. Note that the same parts as those in the first embodiment are given the same reference numerals, and detailed descriptions thereof will be omitted.

[0128] The robot system 1 according to the second embodiment is the same as that of the first embodiment, and therefore a description thereof will be omitted.

[0129] (Robot model learning process)

[0130] Fig. 10 is a flowchart showing the flow of machine learning processing according to the second embodiment. The machine learning processing in Fig. 10 is executed by the CPU 40A reading out a machine learning program stored in the ROM 40B or the storage 40D and expanding it in the RAM 40C.

[0131] The processes in steps S100 to S103 and S108 are the same as those in FIG. 9, and therefore will not be described.

[0132] In step S104A, the CPU 40A, functioning as the behavior determining unit 44, generates one candidate for a behavior command (or a behavior command sequence) for the robot 10.

[0133] In step S106A, the CPU 40A, as the model execution unit 42, calculates a predicted value of the position and posture and a predicted value of the external force for one candidate of the action command generated in step S104A. Specifically, the actual value of the position and posture and the candidate value of the action command are input to the robot model LM, and the predicted value of the position and posture and the predicted value of the corrected external force or the predicted value of the hostile external force corresponding to the candidate value of the action command are calculated.

[0134] In step S106A, the CPU 40A calculates a reward based on a pair of a predicted value of the position and posture corresponding to a candidate value of the action command and a predicted value of the external force as the reward calculation unit 43. That is, if the external force is a corrected external force, the reward r1 is calculated by the above formula (1), and if the external force is a hostile external force, the reward r2 is calculated by the above formula (2).

[0135] In step S106B, CPU 40A determines whether the reward calculated in step S106A satisfies a prescribed condition. Here, the prescribed condition is satisfied when, for example, the reward exceeds a prescribed value, or when the loop of the processing of steps S104A to S106B is executed a prescribed number of times. The prescribed number of times is set to, for example, 10 times, 100 times, 1000 times, etc.

[0136] In step S107A, the CPU 40A, as the behavior decision unit 44, decides a behavior command that maximizes the reward, and outputs it to the robot 10. For example, the behavior command may be the behavior command itself when the reward satisfies a specified condition, or may be a behavior command that can further maximize the reward, which is predicted from a history of changes in the reward corresponding to changes in the behavior command.

[0137] <Third embodiment>

[0138] Next, a third embodiment of the disclosed technique will be described. Note that the same parts as those in the first embodiment are given the same reference numerals, and detailed descriptions thereof will be omitted.

[0139] (Robot control device)

[0140] Fig. 11 shows the functional configuration of a robot control device 40X according to the third embodiment. The robot control device 40X differs from the robot control device 40 shown in Fig. 1 in that it includes a storage unit 48 and a state transition model update unit 49. The other configurations are the same as those of the robot control device 40, so the description will be omitted.

[0141] The storage unit 48 stores the result values ​​of the position and orientation of the robot 10 acquired by the acquisition unit 41.

[0142] The state transition model update unit 49 updates the state transition model DM so as to reduce the error between the predicted value of the position and posture calculated by the state transition model DM based on the action command determined by the action decision unit 44 and the actual value of the position and posture corresponding to the predicted value of the position and posture.

[0143] (Robot model learning process)

[0144] Fig. 12 is a flowchart showing the flow of the machine learning process according to the third embodiment. The machine learning process in Fig. 12 is executed by the CPU 40A reading out a machine learning program stored in the ROM 40B or the storage 40D and expanding it in the RAM 40C.

[0145] The learning process in Fig. 12 differs from the learning device in Fig. 9 in that steps S101A and S103A are added. The other steps are the same as those in Fig. 9, so a description thereof will be omitted.

[0146] In step S101A, the CPU 40A, functioning as the acquisition unit 41, stores in the storage unit 48 the result values ​​of the position and posture of the robot 10 acquired in step S101.

[0147] In step S103A, the CPU 40A functions as the state transition model update unit 49 to update the state transition model DM. Specifically, first, the actual position and orientation values ​​x t , the speed command value u as the action command t , the actual position and orientation value x t+1 Next, new state transition model parameters are determined by correcting the previous state transition model parameters. The state transition model parameters are corrected with the goal of minimizing the error between the predicted value of the position and orientation at time t+1 calculated from the actual value of the position and orientation at time t and the actual value of the position and orientation at time t+1.

[0148] Then, the new state transition model parameters are set in the state transition model DM. The new state transition model parameters are stored in the state transition model update unit 49 to be used as the "previous model parameters" in the next control cycle.

[0149] In this manner, in this embodiment, the state transition model DM can also be learned in addition to the modified external force model EM1 and the hostile external force model EM2.

[0150] <Experimental Example>

[0151] Next, experimental examples of the disclosed technology will be described.

[0152] Figure 13 shows the results of learning a robot model by performing a task of inserting a peg into a hole while applying a corrective external force and an antagonistic external force to the robot through simulation. In this simulation, the robot model was learned by applying the corrective external force seven times and then the antagonistic external force seven times.

[0153] The horizontal axis of Figure 13(A) and (B) represents the number of times the external force was applied. The vertical axis of Figure 13(A) represents the error in the position of the peg. The vertical axis of Figure 13(B) represents the magnitude of the applied external force.

[0154] FIG. 13(A) shows the result of learning only the state transition model without applying external force by the conventional method (Baseline), the result of learning a robot model including a modified external force model and an adversarial external force model by the modified external force and the adversarial external force applied by the subject 1 by the proposed method (Proposed (participant 1)), and the result of learning a robot model including a modified external force model and an adversarial external force model by the modified external force and the adversarial external force applied by the subject 2 different from the subject 1 by the proposed method (Proposed (participant 2)). As shown in FIG. 13(A), when comparing the position error at the end of learning between the conventional method and the proposed method (subject 1 and subject 2), it can be seen that the position error is smaller with the proposed method than with the conventional method. In addition, as shown in FIG. 13(B), although the way of applying the external force is different between subjects 1 and 2, it was found that the position error is smaller regardless of the subject.

[0155] In addition, Fig. 14(A) shows the results of a simulation of the number of times the peg was successfully inserted when the friction coefficient of the platform with holes was changed. Fig. 14(B) shows the results of a simulation of the number of times the peg was successfully inserted when the mass of the peg was changed. As shown in Figs. 14(A) and (B), even when the friction coefficient of the platform and the mass of the peg were different, the number of times the peg was successfully inserted was greater with the proposed method than with the conventional method.

[0156] Figure 15 shows the results of performing the same peg insertion task as in the simulation on an actual device using pegs made of different materials. The peg materials are metal (default), plastic, and sponge. As shown in Figure 15, it was found that the proposed method succeeded in inserting the peg more times than the conventional method for all peg materials.

[0157] As can be seen from the configuration and operation of the above embodiment and the above experimental example, the efficiency of machine learning of the robot model can be improved by adding a corrective external force to machine learning. Furthermore, robustness against changes in friction and mass of the object to be grasped can be improved by adding an adversarial external force to machine learning. Furthermore, machine learning by adding an adversarial external force also has the effect of improving learning efficiency.

[0158] The above-described embodiment merely illustrates an exemplary configuration of the present invention. The disclosed technology is not limited to the above-described specific embodiment, and various modifications are possible within the scope of the technical concept.

[0159] For example, in the above embodiment, the task of fitting a peg in place has been described as an example, but the task to be learned and controlled may be any task.

[0160] In addition, the learning process and robot control process of the robot model that are executed by the CPU by reading the software (program) in each of the above embodiments may be executed by various processors other than the CPU. Examples of the processor in this case include a PLD (Programmable Logic Device) such as an FPGA (Field-Programmable Gate Array) whose circuit configuration can be changed after manufacture, and a dedicated electric circuit such as an ASIC (Application Specific Integrated Circuit) which is a processor having a circuit configuration designed exclusively for executing a specific process. The learning process and control process may be executed by one of these various processors, or may be executed by a combination of two or more processors of the same or different types (for example, a plurality of FPGAs, a combination of a CPU and an FPGA, etc.). The hardware structure of these various processors is, more specifically, an electric circuit that combines circuit elements such as semiconductor elements.

[0161] In addition, in each of the above embodiments, the robot model learning program and the robot control program are described as being stored (installed) in advance in the storage 40D or the ROM 40B, but the present invention is not limited to this. The programs may be provided in a form recorded on a recording medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The programs may also be downloaded from an external device via a network. The following supplementary notes are further disclosed regarding the above embodiment. (Appendix 1) an acquisition unit (41) that acquires actual values ​​of a position and posture of a robot and actual values ​​of an external force applied to the robot; a robot model (LM) including a state transition model (DM) for calculating a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture at the certain time and a behavior command that can be given to the robot, and an external force model (EM) for calculating a predicted value of an external force applied to the robot; A model execution unit (42) that executes the robot model; a reward calculation unit (43) that calculates a reward based on an error between the predicted value of the position and orientation and a target value of the position and orientation to be achieved and the predicted value of the external force; a behavior decision unit (44) that generates a plurality of candidates for the behavior command for each control period, provides the candidates to the robot model, and decides a behavior command that maximizes a reward based on the reward calculated by the reward calculation unit corresponding to each of the plurality of candidates for the behavior command; an external force model updating unit (45) that updates the external force model so as to reduce a difference between a predicted value of the external force calculated by the external force model based on the determined action command and an actual value of the external force corresponding to the predicted value of the external force; A robot model learning device equipped with (Appendix 2) a state transition model update unit (49) that updates the state transition model so as to reduce an error between a predicted value of the position and orientation calculated by the state transition model based on the determined action command and an actual value of the position and orientation corresponding to the predicted value of the position and orientation; 2. A robot model learning device comprising: (Appendix 3) The reward calculation unit calculates the reward by a calculation in which a predicted value of the corrected external force is a factor of reducing the reward when the external force is a corrected external force that suppresses an increase in the error. 3. A learning device for a robot model according to claim 1 or 2. (Appendix 4) The reward calculation unit calculates the reward by a calculation such that a range of change in a reduction amount of the reward based on a predicted value of the corrected external force during task execution is smaller than a range of change in a reduction amount of the reward based on the error. 4. A learning device for a robot model according to claim 3. (Appendix 5) the external force model includes a modified external force model (EM1) that outputs a predicted value of the modified external force when the external force is the modified external force, The external force model updating unit includes a modified external force model updating unit (45A) that updates the modified external force model when the external force is the modified external force so that a difference between a predicted value of the modified external force calculated by the modified external force model based on the determined action command and an actual value of the modified external force becomes small. 5. A learning device for a robot model according to claim 3 or 4. (Appendix 6) The reward calculation unit calculates the reward by a calculation in which a predicted value of the hostile external force is an external force that suppresses the reduction of the error, and the reward calculation unit calculates the reward by a calculation in which a predicted value of the hostile external force is an increasing factor of the reward. 3. A learning device for a robot model according to claim 1 or 2. (Appendix 7) The reward calculation unit calculates the reward by a calculation such that a range of change in an increase in the reward based on a predicted value of the hostile external force during task execution is smaller than a range of change in an increase in the reward based on the error. 7. A learning device for a robot model according to claim 6. (Appendix 8) The external force model includes an hostile external force model (EM2) that outputs a predicted value of the hostile external force when the external force is the hostile external force, The external force model update unit includes an hostile external force model update unit (45B) that updates the hostile external force model so that a difference between a predicted value of the hostile external force calculated by the hostile external force model based on the determined action command and an actual value of the hostile external force becomes small when the external force is the hostile external force. 8. A learning device for a robot model according to claim 6 or 7. (Appendix 9) The reward calculation unit calculates the reward by a calculation in which a predicted value of the corrected external force is a factor that reduces the reward when the external force is a corrected external force that suppresses the increase of the error, and calculates the reward by a calculation in which a predicted value of the hostile external force is a factor that increases the reward when the external force is a hostile external force that suppresses the reduction of the error. 3. A learning device for a robot model according to claim 1 or 2. (Appendix 10) The reward calculation unit calculates the reward by a calculation such that a range of change in a decrease in the reward based on the predicted value of the corrected external force during task execution is smaller than a range of change in the reward based on the error, and a range of change in an increase in the reward based on the predicted value of the hostile external force during task execution is smaller than a range of change in the reward based on the error. 10. A learning apparatus for a robot model according to claim 9. (Appendix 11) The external force model includes a modified external force model (EM1) that outputs a predicted value of the modified external force when the external force is the modified external force, and an hostile external force model (EM2) that outputs a predicted value of the hostile external force when the external force is the hostile external force, The external force model updating unit includes a modified external force model updating unit that updates the modified external force model so that a difference between a predicted value of the modified external force calculated by the modified external force model based on the determined action command and an actual value of the external force becomes small when the external force is the modified external force, and an hostile external force model updating unit (45B) that updates the hostile external force model so that a difference between a predicted value of the hostile external force calculated by the hostile external force model based on the determined action command and an actual value of the external force becomes small when the external force is the hostile external force. 11. A learning device for a robot model according to claim 9 or 10. (Appendix 12) The robot model includes an integrated external force model (IM) having the modified external force model and the hostile external force model, The modified external force model and the hostile external force model are neural networks; At least one layer of the one or more intermediate layers and output layers of the hostile external force model integrates the output of a layer preceding the corresponding layer of the modified external force model by a progressive neural network method; The integrated external force model outputs the output of the hostile external force model as a predicted value of an external force, The integrated external force model outputs identification information indicating whether the predicted value of the external force to be output is a predicted value of a corrected external force or a predicted value of an hostile external force; The reward calculation unit calculates the reward by a calculation in which the predicted value of the external force is a factor for decreasing the reward when the identification information indicates that the predicted value of a corrected external force, and calculates the reward by a calculation in which the predicted value of the external force is a factor for increasing the reward when the identification information indicates that the predicted value of a hostile external force. 12. A learning apparatus for a robot model according to claim 11. (Appendix 13) A reception unit that receives a designation of whether the external force is the corrected external force or the hostile external force, The learning control unit further includes: a learning control unit that enables an operation of the modified external force model update unit when the specified external force is the modified external force; and enables an operation of the hostile external force model update unit when the specified external force is the hostile external force. 13. A learning device for a robot model according to claim 11 or 12. (Appendix 14) a learning control unit (46) that determines whether the external force is the modified external force or the hostile external force based on the actual value of the position and posture and the actual value of the external force, enables the operation of the modified external force model update unit when the result of the determination is the modified external force, and enables the operation of the hostile external force model update unit when the result of the determination is the hostile external force. 13. A learning device for a robot model according to claim 11 or 12. (Appendix 15) a robot model (LM) including a state transition model (DM) for calculating a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model (EM) for calculating a predicted value of an external force applied to the robot; acquiring an actual value of the position and orientation and an actual value of an external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and providing the candidates to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command, based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a plurality of target values ​​of the position and posture to be reached and a plurality of predicted values ​​of the external forces calculated by the external force model corresponding to the plurality of candidates for the behavior command; updating the external force model so that a difference between a predicted value of the external force calculated by the external force model based on the determined action command and an actual value of the external force corresponding to the predicted value of the external force becomes small; Machine learning methods for robot models. (Appendix 16) Furthermore, the state transition model is updated so as to reduce an error between a predicted value of the position and orientation calculated by the state transition model based on the determined action command and an actual value of the position and orientation corresponding to the predicted value of the position and orientation. 16. A machine learning method for a robot model according to claim 15. (Appendix 17) When the external force is a corrected external force that suppresses the increase of the error, the reward is calculated by a calculation in which a predicted value of the corrected external force is used as a factor for reducing the reward. 17. A machine learning method for a robot model according to claim 15 or 16. (Appendix 18) The reward is calculated by a calculation such that a range of change in the amount of reduction in the reward based on the predicted value of the corrected external force during task execution is smaller than a range of change in the reward based on the error. 18. A machine learning method for a robot model according to claim 17. (Appendix 19) the external force model includes a modified external force model (EM1) that outputs a predicted value of the modified external force when the external force is the modified external force, When the external force is the modified external force, the modified external force model is updated so that a difference between a predicted value of the modified external force calculated by the modified external force model based on the determined action command and an actual value of the external force becomes small. 19. A machine learning method for a robot model according to claim 17 or 18. (Appendix 20) When the error is increasing, the corrective external force is applied to the robot. 20. The machine learning method for a robot model according to claim 19. (Appendix 21) When the external force is a hostile external force that suppresses the reduction of the error, the reward is calculated by a calculation in which the predicted value of the hostile external force is an increasing factor of the reward. 17. A machine learning method for a robot model according to claim 15 or 16. (Appendix 22) The reward is calculated by a calculation such that the range of change in the amount of increase in the reward based on the predicted value of the hostile external force during task execution is smaller than the range of change in the reward based on the error. 22. The machine learning method of claim 21 . (Appendix 23) The external force model includes an hostile external force model (EM2) that outputs a predicted value of the hostile external force when the external force is the hostile external force, When the external force is the hostile external force, the hostile external force model is updated so that a difference between a predicted value of the hostile external force calculated by the hostile external force model based on the determined action command and an actual value of the external force becomes small. 23. A machine learning method for a robot model according to claim 21 or 22. (Appendix 24) When the error is decreasing, the hostile external force is applied to the robot. 24. A machine learning method for a robot model according to claim 23. (Appendix 25) When the external force is a corrective external force that suppresses the increase of the error, the reward is calculated by a calculation in which a predicted value of the corrective external force is a factor that decreases the reward, and when the external force is a hostile external force that suppresses the reduction of the error, the reward is calculated by a calculation in which a predicted value of the hostile external force is a factor that increases the reward. 17. A machine learning method for a robot model according to claim 15 or 16. (Appendix 26) The reward is calculated by a calculation in which the range of change in the amount of decrease in the reward based on the predicted value of the corrected external force during task execution is smaller than the range of change in the reward based on the error, and the range of change in the amount of increase in the reward based on the predicted value of the hostile external force during task execution is smaller than the range of change in the reward based on the error. 26. A machine learning method for a robot model according to claim 25. (Appendix 27) The external force model includes a modified external force model (EM1) that outputs a predicted value of the modified external force when the external force is the modified external force, and an hostile external force model (EM2) that outputs a predicted value of the hostile external force when the external force is the hostile external force, When the external force is the modified external force, the modified external force model is updated so that a difference between a predicted value of the modified external force calculated by the modified external force model based on the determined action command and an actual value of the external force becomes small, and when the external force is the hostile external force, the hostile external force model is updated so that a difference between a predicted value of the hostile external force calculated by the hostile external force model based on the determined action command and an actual value of the external force becomes small. 27. A machine learning method for a robot model according to claim 25 or 26. (Appendix 28) When the error is increasing, the corrective external force is applied to the robot, and when the error is decreasing, the hostile external force is applied to the robot. 28. A machine learning method for a robot model according to claim 27. (Appendix 29) A machine learning program for machine learning a robot model (LM) including a state transition model (DM) for calculating a predicted value of a position and posture of a robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model (EM) for calculating a predicted value of an external force applied to the robot, acquiring an actual value of the position and orientation and an actual value of an external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and providing the candidates to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command, based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a plurality of target values ​​of the position and posture to be reached and a plurality of predicted values ​​of the external forces calculated by the external force model corresponding to the plurality of candidates for the behavior command; updating the external force model so that a difference between a predicted value of the external force calculated by the external force model based on the determined action command and an actual value of the external force corresponding to the predicted value of the external force becomes small; A machine learning program for a robot model that has a computer perform each process. (Appendix 30) a model execution unit (42) that executes a robot model (LM) including a state transition model (DM) that calculates a predicted value of the position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model (EM) that calculates a predicted value of an external force applied to the robot; an acquisition unit (41) that acquires an actual value of a position and posture of the robot and an actual value of an external force applied to the robot; a reward calculation unit (43) that calculates a reward based on an error between a predicted value of a position and posture calculated by the robot model and a target value of a position and posture to be reached and a predicted value of an external force calculated by the robot model; a behavior decision unit (44) that generates a plurality of candidates for the behavior command for each control period, provides the candidates to the robot model, and decides a behavior command that maximizes a reward based on the reward calculated by the reward calculation unit corresponding to each of the plurality of candidates for the behavior command; A robot control device comprising: (Appendix 31) a robot model (LM) including a state transition model (DM) for calculating a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model (EM) for calculating a predicted value of an external force applied to the robot; acquiring an actual value of the position and orientation and an actual value of an external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and providing the candidates to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command, based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a plurality of target values ​​of the position and posture to be reached and a plurality of predicted values ​​of the external forces calculated by the external force model corresponding to the plurality of candidates for the behavior command; Controlling the robot based on the determined behavioral command. A method for controlling a robot. (Appendix 32) A program for controlling a robot using a robot model (LM) including a state transition model (DM) for calculating a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model (EM) for calculating a predicted value of an external force applied to the robot, acquiring an actual value of the position and orientation and an actual value of an external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and providing the candidates to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command, based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a plurality of target values ​​of the position and posture to be reached and a plurality of predicted values ​​of the external forces calculated by the external force model corresponding to the plurality of candidates for the behavior command; Controlling the robot based on the determined behavioral command. A robot control program that causes a computer to carry out each process. [Explanation of symbols]

[0162] 1. Robot System 10. Robot 20 Condition Observation Sensor 30A, 30B Tactile Sensor 40 Robot control device 41 Acquisition Department 42 Model Execution Department 43 Remuneration Calculation Department 44 Action Decision-Making Department 45 External Force Model Update Section 45A Hostile Forces Model Update Section 45B Modified external force model update section 49 State transition model update unit 70 Pegs LM Robot Model

Claims

1. an acquisition unit that acquires an actual value of a position and posture of a robot and an actual value of an external force applied to the robot; a robot model including a state transition model that calculates a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture at the next time and a behavior command that can be given to the robot, and an external force model that calculates a predicted value of an external force applied to the robot; A model execution unit that executes the robot model; a reward calculation unit that calculates a reward based on an error between the predicted value of the position and orientation and a target value of the position and orientation to be reached and the predicted value of the external force; a behavior decision unit that generates a plurality of candidates for the behavior command for each control period, provides the candidates to the robot model, and decides a behavior command that maximizes a reward based on the reward calculated by the reward calculation unit corresponding to each of the plurality of candidates for the behavior command; an external force model updating unit that updates the external force model so as to reduce a difference between a predicted value of the external force calculated by the external force model based on the determined action command and an actual value of the external force corresponding to the predicted value of the external force; A robot model learning device equipped with

2. a state transition model update unit that updates the state transition model so as to reduce an error between a predicted value of the position and orientation calculated by the state transition model based on the determined action command and an actual value of the position and orientation corresponding to the predicted value of the position and orientation; 2. The robot model learning device according to claim 1, comprising:

3. The reward calculation unit calculates the reward by a calculation in which a predicted value of the corrected external force is a factor of reducing the reward when the external force is a corrected external force that suppresses an increase in the error.

3. The learning device for a robot model according to claim 1 or 2.

4. The reward calculation unit calculates the reward by a calculation in which a predicted value of the hostile external force is an external force that suppresses the reduction of the error, and the reward calculation unit calculates the reward by a calculation in which a predicted value of the hostile external force is an increasing factor of the reward.

3. The learning device for a robot model according to claim 1 or 2.

5. The reward calculation unit calculates the reward by a calculation in which a predicted value of the corrected external force is a factor that reduces the reward when the external force is a corrected external force that suppresses the increase of the error, and calculates the reward by a calculation in which a predicted value of the hostile external force is a factor that increases the reward when the external force is a hostile external force that suppresses the reduction of the error.

3. The learning device for a robot model according to claim 1 or 2.

6. The reward calculation unit calculates the reward by a calculation such that a range of change in a decrease in the reward based on the predicted value of the corrected external force during task execution is smaller than a range of change in the reward based on the error, and a range of change in an increase in the reward based on the predicted value of the hostile external force during task execution is smaller than a range of change in the reward based on the error. The robot model learning device according to claim 5.

7. The external force model includes a modified external force model that outputs a predicted value of the modified external force when the external force is the modified external force, and an hostile external force model that outputs a predicted value of the hostile external force when the external force is the hostile external force, The external force model updating unit includes a modified external force model updating unit that updates the modified external force model so that a difference between a predicted value of the modified external force calculated by the modified external force model based on the determined action command and an actual value of the external force becomes small when the external force is the modified external force, and an hostile external force model updating unit that updates the hostile external force model so that a difference between a predicted value of the hostile external force calculated by the hostile external force model based on the determined action command and an actual value of the external force becomes small when the external force is the hostile external force.

7. The robot model learning device according to claim 5 or 6.

8. the robot model includes an integrated external force model including the modified external force model and the hostile external force model, The modified external force model and the hostile external force model are neural networks; At least one layer of the one or more intermediate layers and output layers of the hostile external force model integrates the output of a layer preceding the corresponding layer of the modified external force model by a progressive neural network method; The integrated external force model outputs the output of the hostile external force model as a predicted value of an external force, The integrated external force model outputs identification information indicating whether the predicted value of the external force to be output is a predicted value of a corrected external force or a predicted value of an hostile external force; The reward calculation unit calculates the reward by a calculation in which the predicted value of the external force is a factor for decreasing the reward when the identification information indicates that the predicted value of a corrected external force, and calculates the reward by a calculation in which the predicted value of the external force is a factor for increasing the reward when the identification information indicates that the predicted value of a hostile external force. The robot model learning device according to claim 7.

9. A reception unit that receives a designation of whether the external force is the corrected external force or the hostile external force, The learning control unit further includes: a learning control unit that enables an operation of the modified external force model update unit when the specified external force is the modified external force; and enables an operation of the hostile external force model update unit when the specified external force is the hostile external force. The robot model learning device according to claim 7 or 8.

10. A learning control unit that determines whether the external force is the modified external force or the hostile external force based on the actual value of the position and posture and the actual value of the external force, enables an operation of the modified external force model update unit when the result of the determination is the modified external force, and enables an operation of the hostile external force model update unit when the result of the determination is the hostile external force. The robot model learning device according to claim 7 or 8.

11. preparing a robot model including a state transition model for calculating a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model for calculating a predicted value of an external force applied to the robot; acquiring an actual value of the position and orientation and an actual value of an external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and providing the candidates to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command, based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a plurality of target values ​​of the position and posture to be reached and a plurality of predicted values ​​of the external forces calculated by the external force model corresponding to the plurality of candidates for the behavior command; updating the external force model so that a difference between a predicted value of the external force calculated by the external force model based on the determined action command and an actual value of the external force corresponding to the predicted value of the external force becomes small; Machine learning methods for robot models.

12. Furthermore, the state transition model is updated so as to reduce an error between a predicted value of the position and orientation calculated by the state transition model based on the determined action command and an actual value of the position and orientation corresponding to the predicted value of the position and orientation. The machine learning method for a robot model according to claim 11.

13. When the external force is a corrected external force that suppresses the increase of the error, the reward is calculated by a calculation in which a predicted value of the corrected external force is used as a factor for reducing the reward. The machine learning method for a robot model according to claim 11 or 12.

14. When the external force is a hostile external force that suppresses the reduction of the error, the reward is calculated by a calculation in which the predicted value of the hostile external force is an increasing factor of the reward. The machine learning method for a robot model according to claim 11 or 12.

15. When the external force is a corrective external force that suppresses the increase of the error, the reward is calculated by a calculation in which a predicted value of the corrective external force is a factor that decreases the reward, and when the external force is a hostile external force that suppresses the reduction of the error, the reward is calculated by a calculation in which a predicted value of the hostile external force is a factor that increases the reward. The machine learning method for a robot model according to claim 11 or 12.

16. The external force model includes a modified external force model that outputs a predicted value of the modified external force when the external force is the modified external force, and an hostile external force model that outputs a predicted value of the hostile external force when the external force is the hostile external force, When the external force is the modified external force, the modified external force model is updated so that a difference between a predicted value of the modified external force calculated by the modified external force model based on the determined action command and an actual value of the external force becomes small, and when the external force is the hostile external force, the hostile external force model is updated so that a difference between a predicted value of the hostile external force calculated by the hostile external force model based on the determined action command and an actual value of the external force becomes small. The machine learning method for a robot model according to claim 15.

17. When the error is increasing, the corrective external force is applied to the robot, and when the error is decreasing, the hostile external force is applied to the robot. The machine learning method for a robot model according to claim 16.

18. A machine learning program for machine learning a robot model including a state transition model for calculating a predicted value of a position and posture of a robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model for calculating a predicted value of an external force applied to the robot, acquiring an actual value of the position and orientation and an actual value of an external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and providing the candidates to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command, based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a plurality of target values ​​of the position and posture to be reached and a plurality of predicted values ​​of the external forces calculated by the external force model corresponding to the plurality of candidates for the behavior command; updating the external force model so that a difference between a predicted value of the external force calculated by the external force model based on the determined action command and an actual value of the external force corresponding to the predicted value of the external force becomes small; A machine learning program for a robot model that has a computer perform each process.

19. a model execution unit that executes a robot model including a state transition model that calculates a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model that calculates a predicted value of an external force applied to the robot; an acquisition unit that acquires an actual value of a position and posture of the robot and an actual value of an external force applied to the robot; a reward calculation unit that calculates a reward based on an error between a predicted value of a position and posture calculated by the robot model and a target value of a position and posture to be reached and a predicted value of an external force calculated by the robot model; a behavior decision unit that generates a plurality of candidates for the behavior command for each control period, provides the candidates to the robot model, and decides a behavior command that maximizes a reward based on the reward calculated by the reward calculation unit corresponding to each of the plurality of candidates for the behavior command; A robot control device comprising:

20. preparing a robot model including a state transition model for calculating a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model for calculating a predicted value of an external force applied to the robot; acquiring an actual value of the position and orientation and an actual value of an external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and providing the candidates to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command, based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a plurality of target values ​​of the position and posture to be reached and a plurality of predicted values ​​of the external forces calculated by the external force model corresponding to the plurality of candidates for the behavior command; Controlling the robot based on the determined behavioral command. A method for controlling a robot.

21. A program for controlling a robot using a robot model including a state transition model for calculating a predicted value of a position and posture of the robot at a certain time based on an actual value of the position and posture of the robot at the next time and an action command that can be given to the robot, and an external force model for calculating a predicted value of an external force applied to the robot, acquiring an actual value of the position and orientation and an actual value of an external force applied to the robot for each control period; generating a plurality of candidates for the behavior command for each control period and providing the candidates to the robot model; determining a behavior command that maximizes rewards based on a plurality of rewards calculated corresponding to the plurality of candidates for the behavior command, based on a plurality of errors between a plurality of predicted values ​​of the position and posture calculated by the state transition model corresponding to the plurality of candidates for the behavior command and a plurality of target values ​​of the position and posture to be reached and a plurality of predicted values ​​of the external forces calculated by the external force model corresponding to the plurality of candidates for the behavior command; Controlling the robot based on the determined behavioral command. A robot control program that causes a computer to carry out each process.

Citation Information

Patent Citations

  • Kitchen refuse disposer

    JP1989058912A

  • Machine learning apparatus, robot control device, robot system, and machine learning method for learning behavior pattern of person

    JP2017030137A

  • Workpiece take-out device and workpiece take-out method for improving take-out operation of workpiece

    JP2018126802A

  • Control device and control system

    JP2020055095A