ROBOT MOTION GENERATION SUPPORT DEVICE, ROBOT MOTION GENERATION SUPPORT SYSTEM, AND ROBOT MOTION GENERATION SUPPORT PROGRAM

The robot motion generation support device uses a natural language processing unit with LLM to generate and refine source code for complex robot tasks, addressing the need for specialized knowledge in conventional methods and ensuring accurate operation through simulation and correction.

JP7588927B1Active Publication Date: 2024-11-25RIVERFIELD INC

Patent Information

Application Number
JP2024529701
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2024-11-25
Estimated Expiration
2044-01-05

Smart Images

  • Figure 0007588927000001
    Figure 0007588927000001
  • Figure 0007588927000002
    Figure 0007588927000002
  • Figure 0007588927000003
    Figure 0007588927000003
Patent Text Reader

Abstract

a source code acquisition means for acquiring the synthetic text data generated by the synthetic text data means into a natural language processing unit and acquiring, from the natural language processing unit, a source code output of the robot's operation to obtain the resultant object; a simulation means for performing a simulation of operating the robot in a virtual environment using the source code acquired by the source code acquisition means; a transmission means for transmitting the source code to the robot if the resultant object is obtained in the simulation; and a source code correction means for correcting the source code by re-inputting information required to correct the source code into the natural language processing unit based on abnormality information including an error message detected during the simulation if the resultant object is not obtained in the simulation.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a robot motion generation support device, a robot motion generation support system, and a robot motion generation support program. [Background technology]

[0002] It is well known that industrial robots are used for various manufacturing, assembly, and the like. In general, robots pick, move, and place objects of various shapes. Conventionally, a user (operator) has used a teaching operation panel (teach pendant) to teach a robot how to pick, move, and place an object. Teaching a robot using such a teach pendant is time-consuming and requires specialized programming skills from the user who teaches the robot.

[0003] Therefore, Non-Patent Document 1 discloses a technology for generating trajectory data for a robot by natural language processing without using a teach pendant. The natural language processing disclosed in Non-Patent Document 1 can generate an operation program for a robot to achieve a simple action sequence such as moving an object, opening and closing a door, etc. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Naoki Wake, Atsushi Kanehira, Kazuhiro Sasabuchi, Jun Takamatsu, and Katsushi Ikeuchi, “ChatGPT Empowered Long-Step Robot Control in Various Environments: A Case Application”, 2023, https: / / www.microsoft.com / en-us / research / uploads / prod / 2023 / 04 / chatgpt_robot_manipulation_prompts.pdf Summary of the Invention [Problem to be solved by the invention]

[0005] However, in the conventional technology, when generating a robot motion to achieve a complex action sequence, the user is required to have a high level of specialized knowledge. Also, in the natural language processing disclosed in Non-Patent Document 1, it is difficult to accurately generate a complex motion program including conditional branching, repetitive processing, etc.

[0006] Therefore, an object of the present disclosure is to provide a robot motion generation support device, a robot motion generation support system, and a robot motion generation support program that enable the generation of robot motions to perform complex tasks without requiring specialized knowledge. [Means for solving the problem]

[0007] A robot motion generation device according to one aspect of the present disclosure is a robot motion generation support device for a robot that performs an action on an object, the device comprising: a storage means for storing an API document for controlling the robot and information on an object database; a text data acquisition means for acquiring text data described in a natural language by a user regarding the content of a result obtained by the action of the robot on the object; a synthetic text data generation means for generating synthetic text data by adding the API document for controlling the robot and information on the object database to the text data acquired by the text data acquisition means; Generate a source code acquisition means for inputting the synthetic text data generated by the source code acquisition means into a natural language processing unit and acquiring from the natural language processing unit an output of a source code of the operation of the robot for obtaining the resultant product; a simulation means for performing a simulation of operating the robot in a virtual environment using the source code acquired by the source code acquisition means; a transmission means for transmitting the source code to the robot when the resultant product is obtained in the simulation; and a source code correction means for correcting the source code by re-inputting information required for correcting the source code into the natural language processing unit based on abnormality information including an error message detected during the simulation when the resultant product is not obtained in the simulation. the API document for controlling the robot has a command format indicating the actions and detections performed by the robot corresponding to natural language data expressing the actions and detection processing content, the commands include the actions and detection processing that constitute the work to be requested to be executed, the object database includes the name of the object that can be taken as an argument in the command indicating the detection, and includes nouns that may appear in the work to be requested to be executed, the synthetic text data generation means includes natural language data expressing explanatory sentences associated with each of the text data, the API document, and information in the object database, the natural language processing unit automatically generates source code from natural language using an LLM trained from data including source code, and the abnormality information includes natural language data indicating that an abnormality occurred during the simulation, natural language data expressing the action content that the robot was unable to perform during the simulation, and natural language data expressing the cause why the action content could not be performed. Effect of the Invention

[0008] According to the present disclosure, it is possible to provide a robot motion generation support device, a robot motion generation support system, and a robot motion generation support program that enable the generation of robot motions to perform complex tasks without requiring specialized knowledge. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of an overall configuration of a robot motion generation support system according to an embodiment. [Diagram 2]FIG. 2 is a diagram illustrating an example of the configuration of a robot motion generation support server according to the embodiment. [Diagram 3] FIG. 3 is a diagram showing a display example of an input screen of the terminal device according to the embodiment. [Figure 4] FIG. 4 is a diagram showing an example of synthetic text data according to the embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of a motion sequence of the robot motion generation support system according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, the embodiments of the present disclosure will be described in detail. Note that the present disclosure is not limited to these examples, but is defined by the claims, and is intended to include all modifications within the meaning and scope of the claims.

[0011] In addition, in the description of the specification and drawings of each embodiment, components having substantially the same or corresponding functional configurations may be denoted by the same reference numerals to avoid redundant explanation. In addition, in order to facilitate understanding, the scale of each part in the drawings may differ from the actual scale.

[0012] <Embodiment> <Overall configuration of robot motion generation support system 1> First, the overall configuration of the robot motion generation support system 1 will be described. 1 is a diagram showing an example of the overall configuration of a robot motion generation support system 1 according to this embodiment. As shown in FIG. 1, the robot motion generation support system 1 includes a robot motion generation support server 100, a terminal device 200, and a robot 300.

[0013] The robot motion generation support server 100, the terminal device 200, and the robot 300 are connected to a network 10 and can communicate with each other via the network 10. The network 10 includes the Internet. The network 10 may include a LAN (Local Area Network) and / or a WAN (Wide Area Network). The robot motion generation support server 100, the terminal device 200, and the robot 300 may be directly connected by wired communication or wireless communication. The robot motion generation support server 100 may be a general-purpose computer such as a workstation or a PC, or may be logically realized by cloud computing (distributed computing). In other words, it may be configured by one computer or multiple computers.

[0014] The robot motion generation support server 100 is an example of a robot motion generation support device that supports a user in generating a motion program (source code) for a robot 300 that performs complicated tasks. The source code is a character string written in a programming language such as Python. In this embodiment, the source code is in Python format, but is not limited to this format and may be in a programming language such as C, C++, C#, Java, Visual Basic, Perl, JavaScript, etc.

[0015] Here, an example of a situation in which the present disclosure is applied will be described. An example of a situation to which the present disclosure is applicable is a situation in which a user of a robot 300 installed at a manufacturing site of food such as hospital food and boxed lunches generates an operation program (source code) for the robot 300. The robot 300 installed at a manufacturing site of food such as hospital food and boxed lunches repeatedly performs an operation of identifying (selecting) ingredients from a plurality of prepared foods, transporting the identified ingredients to a predetermined location in a container, and releasing them. The work of such a robot 300 includes different operations and repeated operations depending on conditions, and therefore requires a complex operation program (source code). Note that the situation to which the present disclosure is applicable is not limited to manufacturing sites of food such as hospital food and boxed lunches, and may also be applied to support the generation of an operation program (source code) for a robot 300 that performs complex operations such as manufacturing and assembling parts and components.

[0016] In this embodiment, the robot motion generation support server 100 supports a user who generates source code for the robot 300 that performs an action on an object by generating the motion of the robot 300. For example, the robot motion generation support server 100 displays, on the user's terminal device 200, an input screen 131a that prompts the user to input the contents of a resultant object obtained by the action of the robot 300 on an object, generates source code for the motion of the robot 300 according to the input contents of the resultant object, and transmits the generated source code to the robot 300.

[0017] In addition, the robot motion generation support server 100 stores information on the API document 122 for controlling the robot 300 and the object database 121, acquires text data described in natural language by the user regarding the contents of a resultant object obtained by the robot 300's motion on an object, generates synthetic text data by adding the information on the API document 122 for controlling the robot 300 and the object database 121 to the acquired text data, inputs the generated synthetic text data to the natural language processing unit 135, obtains an output of a source code for the motion of the robot 300 for obtaining a resultant object from the natural language processing unit 135, operates the robot 300 in a virtual environment using the acquired source code, and if the resultant object is obtained in the simulation, transmits the source code to the robot 300, and if the resultant object is not obtained in the simulation, re-inputs information required for correcting the source code to the natural language processing unit 135 based on abnormality information including an error message detected during the simulation to correct the source code.

[0018] The robot 300 has a robot hand 301. The target object is, for example, an ingredient of a prepared dish. The API document 122 includes, for example, information on the gripping of the robot hand 301, the movement of the robot hand 301, the release of the robot hand 301, and the layout information of the destination location. The result is, for example, a fried chicken lunch box, the contents of which are six pieces of fried chicken, white rice, and potato salad.

[0019] In this way, if the user describes in natural language the contents of the result obtained by the action of the robot 300 on an object, a source code for the action of the robot 300 corresponding to the described contents of the result is automatically generated, and the source code is transmitted to the robot 300. Therefore, even a user with poor programming skills can generate source code for the robot 300 that performs complicated tasks including different actions and repetitive actions depending on conditions.

[0020] Furthermore, in manufacturing sites for hospital meals, boxed lunches, and other foods, the presentation of boxed lunches and the like (type and quantity of ingredients, etc.) varies widely depending on the patient's health condition and customer orders, so it was previously necessary to generate source codes for multiple robot 300 operations. However, according to this embodiment, the source codes for the robot 300 operations can be automatically generated, making it easy to generate multiple source codes.

[0021] Note that a natural language refers to a language that has naturally arisen in the history of mankind, such as Japanese, English, etc. In this embodiment, the natural language is Japanese, but is not limited to Japanese and may be another type of natural language (for example, English).

[0022] The robot motion generation assistance server 100 is a server that executes natural language processing tasks using a large language model (LLM) constructed by machine learning technology including artificial intelligence (AI). The LLM is a language model that learns a large amount of large-scale text data in advance and can execute various language processing tasks by only giving a few example tasks. Examples of such LLMs include GPT-3 and GPT-4 developed by OpenAI.

[0023] In this embodiment, the robot motion generation support server 100 automatically generates source code from natural language using an LLM that has previously learned a large amount of source code. For example, the LLM has learned a large amount of source code published on the Internet. For example, since source code generally includes natural language sentences such as comments, the LLM has already learned the correspondence between natural language sentences and programs. Therefore, when the robot motion generation support server 100 acquires natural language sentences (text data) written by a user, it can automatically generate source code and transmit the source code to the robot 300.

[0024] Furthermore, the robot motion generation support server 100 can generate source code that combines the grasping, transporting, and releasing of an object by the robot hand 301 by inputting information from the control API document 122 of the robot 300 and the object database 121 into the LLM, in addition to the contents of the result obtained by the robot 300's motion on an object obtained from the user.

[0025] The terminal device 200 is, for example, a personal computer (PC), a smartphone, a tablet terminal, or a wearable terminal. The terminal device 200 has an interface with a user and an interface with the network 10. The interface with the user includes, for example, at least one of a display, a keyboard, a mouse, a touchpad, a touch panel display, a microphone, and a speaker. The interface with the network 10 includes at least one of a wired communication interface and a wireless communication interface. The terminal device 200 accesses the robot motion generation support server 100 via the network 10 and exchanges information with the robot motion generation support server 100 to generate source code for the motion of the robot 300.

[0026] The robot 300 includes, for example, a robot hand 301 that grasps an object, an imaging unit 302 that photographs the object, and a control unit 303 that controls the robot hand 301 and the imaging unit 302. The robot 300 can produce a result (fried chicken lunch) by repeating a series of actions, such as identifying (selecting) an object (ingredient) to be grasped by performing image recognition on image data captured by the imaging unit 302, grasping the identified object (ingredient), transferring the grasped object (ingredient) to a predetermined place (inside a container such as a dish or lunch box), and releasing the object (ingredient) at the predetermined place (inside the container).

[0027] In addition, the robot 300 stores, for example, a trained model that identifies the names of ingredients included in image data, and performs image recognition processing using the trained model. That is, the robot 300 inputs image data in which multiple ingredients are photographed into the trained model, thereby identifying the names of the ingredients included in the image data and acquiring the positions of the identified ingredients.

[0028] <Robot Motion Generation Support Server 100> Next, the configuration of the robot motion generation support server 100 will be described. Fig. 2 is a diagram showing an example of the configuration of the robot motion generation assistance server 100 according to this embodiment. As shown in Fig. 2, the robot motion generation assistance server 100 includes a communication unit 110, a storage unit 120, and a processing unit 130. The communication unit 110, the storage unit 120, and the processing unit 130 are connected to each other by a bus or the like (not shown).

[0029] The communication unit 110 communicates with other devices (for example, the terminal device 200 and the robot 300) via the network 10 under the control of the processing unit 130. The communication by the communication unit 110 may be wired communication or may include wireless communication.

[0030] The storage unit 120 stores an API document 122 for controlling the robot 300 and information on an object database 121. The API document 122 is also an API specification, and includes information for executing functions such as gripping, moving, and releasing by the robot hand 301. The source code generated by the robot motion generation support server 100 uses the API document 122, and therefore can execute functions such as gripping, moving, and releasing by the robot hand 301 via the API. The object (ingredient) database 121 records information on the name of the learned object (ingredient) of the learned model stored in the robot 300. The name of the object (ingredient) recorded in the object (ingredient) database 121 is the same as the name of the learned ingredient stored in the robot 300.

[0031] The storage unit 120 includes various memories such as a ROM (Read Only Memory), a RAM (Random Access Memory), and an auxiliary storage device. The program (robot motion generation support program) executed by the processing unit 130 is stored in, for example, the ROM and / or the auxiliary storage device of the storage unit 120. The processing unit 130 includes one or more processors.

[0032] By executing the robot motion generation support program, the processing unit 130 realizes the functions of an information presentation unit 131, a text data acquisition unit 132, a synthetic text data generation unit 133, a source code acquisition unit 134, a natural language processing unit 135, a simulation unit 136, and a transmission unit 137.

[0033] The information presenter 131 causes the terminal device 200 to display an input screen 131a that prompts the user to input the contents of a result (fried chicken lunchbox) obtained by the action of the robot 300 on an object (ingredients), and presents information for supporting the generation of robot actions to the user on the input screen 131a. An example of the screen display on the terminal device 200 will be described later.

[0034] The text data acquisition unit 132 acquires text data in which the user describes the contents of the result (fried chicken lunch box) in natural language. For example, the text data acquisition unit 132 acquires a character string (sentence) that the user has written in natural language in a text input field on the input screen 131a as text data. In any case, the user can input text in a free format in natural language.

[0035] However, the text data input by the user may not satisfy the conditions for outputting the source code of the operation of the robot 300. For example, there may be a case where the description of the object is insufficient (the description of the names and quantities of ingredients is insufficient), and the natural language processing unit 135 cannot output the source code. In such a case, the information presenting unit 131 may present the user with information that prompts the input of the contents of a new result that satisfies the conditions for outputting the source code. This can ensure that the source code of the operation of the robot 300 is created more reliably.

[0036] The information presenting unit 131 and the text data acquiring unit 132 may accept stepwise text input from the user in a question and answer format. For example, the information presenting unit 131 presents question information to the user, and the text data acquiring unit 132 accumulates sentences input as answers to the question information. By repeating this process, a sufficient amount of text data can be obtained. That is, the information presenting unit 131 may present question information to the user multiple times, the text data acquiring unit 132 may accumulate text data input as answers to the question information, and the natural language processing unit 135 may output source code from the accumulated text data. This can assist in creating source code for the operation of the robot 300 with high quality.

[0037] The synthetic text data generating unit 133 generates synthetic text data by adding at least the API document 122 for controlling the robot 300 and information of the object (ingredient) database 121 to the text data acquired by the text data acquiring unit 132. An example of the contents of the synthetic text data will be described later. The information of the API document 122 and the object (ingredient) database 121 is text data. The synthetic text data generating unit 133 may transmit the generated synthetic text data to the information presenting unit 131 to display it on the user's terminal device 200. As described above, since the names of the objects (ingredients) recorded in the object (ingredient) database 121 and the names of the learned ingredients stored in the robot 300 are similar, the natural language processing unit 135 can be taught the objects (ingredients) that can be image-recognized by the learned model stored in the robot 300 by adding the information of the API document 122 and the object (ingredient) database 121 to the text data. That is, as shown in Fig. 4, the natural language processing unit 135 can be taught objects (ingredients) that can be searched for by the find function that is the API document 122. In this way, among the results described in natural language, the natural language processing unit 135 can be taught objects (ingredients) that the robot 300 can image-recognize. If the result includes objects (ingredients) that the robot 300 cannot image-recognize, the information presentation unit 131 may display, for example, a screen that lists the objects (ingredients) that can be image-recognized and prompts the user to re-input the contents of the result, or a screen that displays a message indicating that additional learning of the learned model stored in the robot 300 is required.

[0038] The source code acquisition unit 134 inputs the synthetic text data generated by the synthetic text data generation unit 133 to the natural language processing unit 135, and obtains an output of a source code of the motion of the robot 300 from the natural language processing unit 135. In this embodiment, the source code acquisition unit 134 provides the synthetic text data generated by the synthetic text data generation unit 133 to the natural language processing unit 135 by API, and obtains the source code of the motion of the robot 300 from the natural language processing unit 135 by API, thereby obtaining the source code of the motion of the robot 300. Note that in this embodiment, the natural language processing unit 135 is incorporated in the processing unit 130, but for example, in the case where the natural language processing unit 135 and the robot motion generation support server 100 are different servers, the synthetic text data generated by the synthetic text data generation unit 133 may be provided to the natural language processing server by API, and the source code of the motion of the robot 300 may be obtained from the natural language processing server by API.

[0039] The natural language processor 135 executes natural language processing tasks using the LLM. The LLM is a language model that learns a large amount of text data in advance and can execute various language processing tasks by giving only a few example tasks. In this embodiment, the natural language processor 135 outputs source code for the operation of the robot 300 corresponding to the synthetic text data.

[0040] The simulation unit 136 uses the source code acquired by the source code acquisition unit 134 in a virtual environment to test whether the robot 300 operates based on the contents of the result described by the user (a fried chicken lunch box consisting of six pieces of fried chicken, white rice, and potato salad). In this embodiment, the robot 300 operates in the virtual environment using the source code acquired by the source code acquisition unit 134 by using the open source ROS (Robot Operating System) middleware of the robot 300 and the open source Gazebo physical simulator. Furthermore, the simulation unit 136 determines that the simulation has ended normally if the result described by the user can be obtained in the simulation, and determines that the simulation has ended abnormally if the result described by the user cannot be obtained.

[0041] When the simulation ends normally, the simulation unit 136 transmits a source code of the operation of the robot 300 to the robot 300 via the transmission unit 137. In addition, the simulation unit 136 may transmit the source code when the simulation ends normally to the information presentation unit 131 to display it on the terminal device 200 of the user.

[0042] A case where the simulation ends abnormally is, for example, a case where an error message, warning, or the like occurs during the simulation. The simulation unit 136 can monitor log information related to the state of the robot 300 during the simulation, the progress of tasks, and the like in real time via ROS. The simulation unit 136 can also detect and acquire abnormality information including error messages, warnings, and the like from the log information. The robot motion generation support server 100 uses this abnormality information to correct the source code.

[0043] The simulation unit 136 generates feedback data for correcting the source code based on the anomaly information. Also, the source code acquisition unit 134 re-inputs the feedback data generated by the simulation unit 136 to the natural language processing unit 135, and obtains an output of the corrected source code from the natural language processing unit 135. In this manner, the robot motion generation assistance server 100 modifies the source code.

[0044] The content of the feedback data is, for example, "ERROR: Cannot release "fried chicken". An obstacle exists at the target position." In the present embodiment, the simulation unit 136 acquires abnormality information including error messages and warnings from log information via ROS, but is not limited thereto, and may acquire various data such as the state of the robot 300 during simulation and abnormality information via the Gazebo API.

[0045] In addition, the simulation unit 136 may transmit abnormality information when the simulation ends abnormally to the information presentation unit 131 to display it on the user's terminal device 200. In addition, the simulation unit 136 may transmit the acquired abnormality information to the information presentation unit 131 to display it on the terminal device 200 and accept text input from the user. For example, the abnormality information may be presented to the user, and a text input regarding the correction contents of the function or code that needs to be corrected may be accepted from the user, and feedback data may be generated based on the contents accepted from the user. In this case, the user may include in the source code an exception process (for example, a code in which an event may occur is written in a Try block) that displays an error message in response to the occurrence of some event, for example, an error. In this way, a specific correction instruction can be provided to the natural language processing unit 135, and the time required for correcting the source code can be shortened.

[0046] The simulation unit 136 uses the corrected source code acquired by the source code acquisition unit 134 in the virtual environment to re-simulate the movement of the robot 300. If the re-simulation ends abnormally, the above-mentioned source code correction means is performed. In other words, the robot movement generation support server 100 repeatedly corrects the source code and performs simulation with the corrected source code until the simulation ends normally. In this way, even if there is a problem with the source code, the source code can be automatically corrected based on the anomaly information from the simulation, thereby ensuring that accurate source code is created.

[0047] Before using the source code to execute a simulation in the simulation unit 136, the robot motion generation support server 100 may check whether the source code includes code related to access to the file system or the network 10. If the source code includes code related to access to the file system or the network 10, the robot motion generation support server 100 deletes the unnecessary code to prevent access to the file system or the network 10. In other words, the robot motion generation support server 100 may perform a security check before executing a simulation.

[0048] The transmitting unit 137 transmits to the robot 300 the source code when the simulation ends normally. The robot 300 acquires the source code transmitted from the transmitting unit 137. Using the source code, the robot 300 performs the actions of grasping, transferring, and releasing the target object (ingredients) according to the contents of the resultant product (a lunch box consisting of six pieces of fried chicken, white rice, and potato salad).

[0049] <Screen display of terminal device 200> Next, an example of a screen display of the terminal device 200 will be described. FIG. 3 is a diagram showing a display example of the input screen 131a of the terminal device 200 according to this embodiment. 3, the information presentation unit 131 displays an input screen 131a on the terminal device 200. For example, the information presentation unit 131 displays a text input field A for text input as the input screen 131a, and also displays information encouraging the input of text into the text input field A. The information presentation unit 131 may display sample information showing an example of text input into the text input field A.

[0050] When the content of the resultant product (fried chicken lunch box) described in natural language is input by the user into the text input field A, the information presenting unit 131 displays a button B for performing an operation to acquire source code. When button B is operated, the text data acquiring unit 132 acquires the text data. In the illustrated example, the content of the resultant product is "fried chicken lunch box consisting of six pieces of fried chicken, white rice, and potato salad," and the user has input the content of the resultant product in Japanese.

[0051] <Contents of synthetic text data> Next, an example of the content of the synthetic text data will be described. FIG. 4 is a diagram showing an example of synthetic text data according to this embodiment. The synthetic text data generation unit 133 generates synthetic text data as shown in FIG. 4 by adding information of the API document 122 for controlling the robot 300 and the object (ingredient) database 121 to the content of the result acquired by the text data acquisition unit 132.

[0052] <An example of an operation sequence> Next, the flow of operations of the robot motion generation support system 1 will be described. FIG. 5 is a diagram showing an example of a motion sequence of the robot motion generation support system 1 according to the present embodiment.

[0053] In step S 1 , a user accesses the robot motion generation support server 100 from a terminal device 200 .

[0054] In step S2, the robot motion generation support server 100 transmits the input screen 131a to the terminal device 200 to display it.

[0055] In step S3, the terminal device 200 accepts text input into a text input field on the input screen 131a. The user inputs "Fried chicken lunch consisting of six pieces of fried chicken, white rice, and potato salad" into the text input field, as shown in Fig. 3. The terminal device 200 transmits the input text data to the robot motion generation support server 100.

[0056] In step S4, the robot motion generation support server 100 generates synthetic text data by adding information of the API document 122 and the object (ingredient) database 121 to the text data received from the terminal device 200. The synthetic text data has contents as shown in FIG.

[0057] In step S5, the robot motion generation support server 100 inputs the synthetic text data to the natural language processing unit 135, and acquires the source code output from the natural language processing unit 135.

[0058] In step S6, the robot motion generation support server 100 uses the acquired source code in the simulation unit 136 to test the motion of the robot 300.

[0059] In step S7, the robot motion generation support server 100 proceeds to step S8 if the simulation has ended normally, and proceeds to step S10 if the simulation has ended abnormally.

[0060] In step S8, the robot motion generation support server 100 transmits to the robot 300 the source code used in the simulation.

[0061] In step S9, the robot 300 acquires the source code transmitted from the robot motion generation support server 100, and performs motions of grasping, transferring, and releasing an object (ingredient) using the acquired source code.

[0062] In step S10, the robot motion generation support server 100 detects and acquires abnormality information from the log information of the simulation.

[0063] In step S11, the robot motion generation support server 100 generates feedback data based on the abnormality information. The content of the feedback data is, for example, "ERROR: 'Fried chicken' cannot be released. An obstacle exists at the target position." Next, the process proceeds to step S5, where the robot motion generation support server 100 inputs the generated feedback data to the natural language processing unit 135 and obtains an output of the corrected source code from the natural language processing unit 135.

[0064] <Modification> In the above-described embodiment, the source code is corrected based on the abnormality information, but in the modified example, the source code is also corrected according to the execution result in the interpreter unit 140. Note that the same components as those in the above-described embodiment are given the same reference numerals and the description thereof will be omitted.

[0065] In a modified example, the robot motion generation assistance server 100 further includes an interpreter unit 140 for executing the source code. The interpreter unit 140 executes the source code by, for example, a Python interpreter. The interpreter unit 140 executes the source code acquired by the source code acquisition unit 134 before the simulation by the simulation unit 136. When the execution by the interpreter unit 140 ends normally, the simulation by the simulation unit 136 is subsequently performed.

[0066] If the execution by the interpreter unit 140 ends abnormally, feedback data is generated based on an error message obtained by the execution of the interpreter unit 140. The source code acquisition unit 134 re-inputs the feedback data generated by the interpreter unit 400 into the natural language processing unit 135, and obtains an output of corrected source code from the natural language processing unit 135. This is repeated until the execution by the interpreter unit 140 ends normally. That is, in the modified example, in addition to correcting the source code based on the abnormality information, the source code is also corrected based on the error message from the interpreter unit 140.

[0067] This ensures that a more accurate source code for the operation of the robot 300 is generated. The source code may be corrected based on an error message from the interpreter unit 140 either before or after the simulation. The transmission unit 137 may transmit the source code to the robot 300 when the simulation by the simulation unit 136 ends normally and the execution result of the interpreter unit 140 ends normally.

[0068] In the above-described embodiment, a part of the processing performed by the robot motion generation support server 100 may be changed to be performed by the terminal device 200 or another device. In this case, the robot motion generation support server 100 and the terminal device 200 may constitute a robot motion generation support device or a robot motion generation support system 1.

[0069] In addition, the operation flows and operation examples in the above-mentioned embodiment do not necessarily have to be executed in chronological order according to the order described in the flow diagram or sequence diagram. For example, the steps in the operation may be executed in an order different from the order described in the flow diagram or sequence diagram, or may be executed in parallel. Also, some of the steps in the operation may be deleted, and further steps may be added to the process. Also, the operation flows and operation examples in the above-mentioned embodiment may be executed separately and independently, or two or more operation flows and operation examples may be executed in combination. For example, some steps of one operation flow may be added to another operation flow, or some steps of one operation flow may be replaced with some steps of another operation flow.

[0070] Also, a robot motion generation support program may be provided that causes a computer to execute the motion according to the present embodiment described above. The robot motion generation support program may be recorded in a computer-readable medium. By using the computer-readable medium, it is possible to install the robot motion generation support program in a computer. Here, the computer-readable medium on which the robot motion generation support program is recorded may be a non-transient recording medium. The non-transient recording medium is not particularly limited, and may be, for example, a recording medium such as a CD-ROM or a DVD-ROM. [Explanation of symbols]

[0071] 1 Robot motion generation support system 10 Network 100 Robot motion generation support server 110 Communications Department 120 Storage section 121 Object Database 122 API Documentation 130 Processing section 131 Information Presentation Department 131a Input screen 132 Text data acquisition unit 133 Synthetic Text Data Generation Unit 134 Source Code Acquisition Department 135 Natural Language Processing Unit 136 Simulation Department 137 Transmitter 140 Interpreter 200 Terminal Equipment 300 Robots 301 Robot Hand

Claims

1. A robot motion generation support device for a robot that performs an action on an object, comprising: A storage means for storing the API document for controlling the robot and information of the object database; a text data acquisition means for acquiring text data described in a natural language by a user regarding the content of a result obtained by an action of the robot on the object; a synthetic text data generating means for generating synthetic text data by adding the API document for controlling the robot and information of the object database to the text data acquired by the text data acquiring means; a source code acquisition means for inputting the synthetic text data generated by the synthetic text data generation means into a natural language processing section and obtaining from the natural language processing section an output of a source code of an operation of the robot for obtaining the result; a simulation means for performing a simulation of operating the robot in a virtual environment using the source code acquired by the source code acquisition means; a transmitting means for transmitting the source code to the robot when the result is obtained in the simulation; a source code correcting means for correcting the source code by re-inputting information required for correcting the source code into the natural language processing unit based on abnormality information including an error message detected during the simulation when the result is not obtained in the simulation; Equipped with the API document for controlling the robot has a command format indicating an action and detection to be performed by the robot and natural language data expressing the action and detection process content in association with each other, the command includes an action and a detection process constituting a task to be executed, the object database includes names of the objects that can be used as arguments in a command indicating the detection, and includes nouns that can appear in an operation to be requested to be executed; the synthetic text data includes natural language data representing explanatory sentences associated with each of the text data, the API documentation, and the information in the object database; The natural language processing unit automatically generates source code from natural language using an LLM trained on data including source code; The abnormality information includes natural language data indicating that an abnormality occurred during the simulation, natural language data indicating an operation that the robot was unable to execute during the simulation, and natural language data indicating a cause of the operation that was unable to be executed. Robot motion generation support device.

2. The source code modifying means includes: generating feedback data based on the anomaly information by the simulation means, inputting the feedback data to the natural language processing unit by the source code acquisition means, and obtaining an output of a corrected source code from the natural language processing unit; The robot motion generation support device according to claim 1 .

3. the simulation means performs a new simulation using the source code obtained by the source code correction means; The robot motion generation support device according to claim 2 .

4. further comprising an interpreter means for executing the source code acquired by the source code acquisition means; the interpreter means executes the source code acquired by the source code acquisition means before the simulation by the simulation means; If the execution is normally completed, a simulation is performed by the simulation means using the executed source code. The robot motion generation support device according to claim 1 .

5. The robot has a robot hand, The object is an ingredient, The API document includes information regarding the gripping of the robot hand, the movement of the robot hand, the release of the robot hand, and layout information of a location of a movement destination, The resultant product is a food product consisting of a plurality of types of the ingredients. The robot motion generation support device according to any one of claims 1 to 4.

6. A robot motion generation support system for a robot that performs an action on an object, comprising: A storage means for storing the API document for controlling the robot and information of the object database; a text data acquisition means for acquiring text data described in a natural language by a user regarding the content of a result obtained by an action of the robot on the object; a synthetic text data generating means for generating synthetic text data by adding the API document for controlling the robot and information of the object database to the text data acquired by the text data acquiring means; a source code acquisition means for inputting the synthetic text data generated by the synthetic text data generation means into a natural language processing section and obtaining from the natural language processing section an output of a source code of an operation of the robot for obtaining the result; a simulation means for performing a simulation of operating the robot in a virtual environment using the source code acquired by the source code acquisition means; a transmitting means for transmitting the source code to the robot when the result is obtained in the simulation; a source code correcting means for correcting the source code by re-inputting information required for correcting the source code into the natural language processing unit based on abnormality information including an error message detected during the simulation when the result is not obtained in the simulation; Equipped with the API document for controlling the robot has a command format indicating an action and detection to be performed by the robot and natural language data expressing the action and detection process content in association with each other, the command includes an action and a detection process constituting a task to be executed, the object database includes names of the objects that can be used as arguments in a command indicating the detection, and includes nouns that can appear in an operation to be requested to be executed; the synthetic text data generating means includes natural language data representing explanatory sentences associated with the text data, the API documentation, and the information in the object database, The natural language processing unit automatically generates source code from natural language using an LLM trained on data including source code; The abnormality information includes natural language data indicating that an abnormality occurred during the simulation, natural language data indicating an operation that the robot was unable to execute during the simulation, and natural language data indicating a cause of the operation that was unable to be executed. Robot motion generation support system.

7. A robot motion generation support program for a robot that performs an action on an object, comprising: A storage means for storing the API document for controlling the robot and information of the object database; a text data acquisition means for acquiring text data described in a natural language by a user regarding the content of a result obtained by an action of the robot on the object; a synthetic text data generating means for generating synthetic text data by adding the API document for controlling the robot and information of the object database to the text data acquired by the text data acquiring means; a source code acquisition means for inputting the synthetic text data generated by the synthetic text data generation means into a natural language processing section and obtaining from the natural language processing section an output of a source code of an operation of the robot for obtaining the result; a simulation means for performing a simulation of operating the robot in a virtual environment using the source code acquired by the source code acquisition means; a transmitting means for transmitting the source code to the robot when the result is obtained in the simulation; a source code correcting means for correcting the source code by re-inputting information required for correcting the source code into the natural language processing unit based on abnormality information including an error message detected during the simulation when the result is not obtained in the simulation; Equipped with the API document for controlling the robot has a command format indicating an action and detection to be performed by the robot and natural language data expressing the action and detection process content in association with each other, the command includes an action and a detection process constituting a task to be executed, the object database includes names of the objects that can be used as arguments in the command indicating the detection, and includes nouns that can appear in the task to be executed; the synthetic text data generating means includes natural language data representing explanatory sentences associated with the text data, the API documentation, and the information in the object database, The natural language processing unit automatically generates source code from natural language using an LLM trained on data including source code; The abnormality information includes natural language data indicating that an abnormality occurred during the simulation, natural language data indicating an operation that the robot was unable to execute during the simulation, and natural language data indicating a cause of the operation that was unable to be executed. A program to assist in generating robot movements.

Citation Information

Patent Citations

  • Robot task planning method, system and device, storage medium and program product

    CN116911552A

  • Multi-layer large language model for hierarchical task execution under cloud edge-end architecture

    CN117033025A

  • Natural language control of a robot

    US20230311335A1

  • Teaching support device, work system, teaching support method, and teaching support program

    WO2023162164A1

Cited By

  • Interactive robot teaching system and method using large language model

    KR102962692B1

  • Method, apparatus, device, medium and product for providing an interaction

    WO2026188396A1

  • Interactive robot teaching system and method using large language model

    WO2026212397A1