Robot operation task control method based on intelligent chat program

Through the robot job task control method based on intelligent chat programs, users can generate robot job control codes through natural language text, solving the problem of inefficient personalized job control settings in the prior art, and realizing fast and friendly robot job control.

CN120045095APending Publication Date: 2025-05-27XYZ ROBOTICS CHINA INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311597228.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

The existing robot job control methods are not suitable for personalized job control settings. Especially for users who cannot program, adding special job modes requires redevelopment of programs, which are lengthy and inefficient.

Method used

The robot job task control method based on the intelligent chat program is adopted. By receiving the AI ​​creation service startup command input by the user on the task setting page, the intelligent chat program Chatbox window pops up, the text information entered by the user is received, it translates it into code and tests, and a robot job task control flow diagram is generated, which is used to control the robot to perform corresponding tasks.

Benefits of technology

It realizes personalized robot operation control, and does not require professional and technical personnel to write code. Users can automatically generate code through natural language text. The interface is friendly, which greatly shortens the code development cycle and improves compilation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045095A_ABST
    Figure CN120045095A_ABST
Patent Text Reader

Abstract

The invention provides a robot operation task control method based on an intelligent chat program, and the method comprises the steps: receiving an AI creation service starting instruction inputted by a user in a task setting page; according to the AI creation service starting instruction, an intelligent chat program Chatbox window is popped up, and the Chatbox window comprises a text dialog box and a program compiling box; receiving text information input by a user, and displaying the text information in the text dialog box; the text information is translated into codes and tested, and a robot operation task control flow diagram is generated and used for controlling a robot to execute corresponding tasks. Therefore, the method can be suitable for personalized robot operation control scenes, code compiling does not need to be carried out by professional technicians, codes can be automatically generated by inputting natural language texts from a user side, an interface is friendly and easy to operate, the code development period is greatly shortened, and compiling efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the development of artificial intelligence technology, natural language processing technology has gradually matured. In natural language processing technology, it is possible to understand the user's intention based on the user's description information and give corresponding results.

[0003] For existing robot operation control, generally, a program pre-compiled by a programmer is loaded, and the motion trajectory, operation tasks, etc. of the robot are simulated and tested according to the function controls preset on the human-machine interface. After the test is completed, it is saved for future use by the user.

[0004] However, the above method is not applicable to personalized operation control settings. Especially for users who cannot compile programs, if they want to add some special operation modes, they need to re-develop the corresponding programs by programmers, and the whole cycle is long and the efficiency is low. Summary of the Invention

[0005] Aiming at the defects in the prior art, the purpose of the present invention is to provide a robot operation task control method based on an intelligent chat program.

[0006] In a first aspect, an embodiment of the present application provides a robot operation task control method based on an intelligent chat program, including:

[0007] On the task setting page, receive the AI creation service start instruction input by the user;

[0008] According to the AI creation service start instruction, pop up the intelligent chat program Chatbox window, where the Chatbox window includes: a text dialog box and a program compilation box;

[0009] Receive the text information input by the user and display it in the text dialog box;

[0010] Translate the text information into code and perform tests to generate a robot operation task control flow chart for controlling the robot to execute corresponding tasks.

[0011] Optionally, translating the text information into code and performing tests includes:

[0012] According to the built-in chatbot program ChatGPT, extract keywords matching task control from the text information input by the user;

[0013] Generate python-format code according to the keywords;

[0014] Call relevant application programming interfaces API through the generated code to simulate the effect after the code runs.

[0015] Optionally, generating the control flow diagram of the robot operation task includes:

[0016] Receiving first touch information input by the user;

[0017] Running the generated code according to the first touch information, and generating the control flow diagram of the robot operation task during the running process.

[0018] Optionally, it further includes:

[0019] Manually verifying the generated control flow diagram of the robot operation task, and if an error is found, editing the control flow diagram of the robot operation;

[0020] After eliminating all errors, re-running the control flow diagram of the robot operation, and generating the corresponding visual programming VP module.

[0021] Optionally, it further includes:

[0022] During the code testing process, automatically returning the position where an error exists and prompting the reason for the error.

[0023] Optionally, the Chatbox window is a semi-transparent floating window and is always displayed on the top layer of the application.

[0024] Optionally, it further includes:

[0025] Receiving second touch information of the user for the Chatbox window, and performing any of the following operations according to the second touch information:

[0026] Dragging the Chatbox window;

[0027] Hiding or closing the Chatbox window;

[0028] Zooming in or out the Chatbox window;

[0029] Displaying the help information of the Chatbox.

[0030] Optionally, it further includes:

[0031] Managing the text information input in the text dialog box, and the management includes: saving or clearing the chat record.

[0032] Optionally, it further includes:

[0033] Determine whether there is a high-level instruction in the text information input by the user. The high-level instructions include: an automatic execution instruction, a direct code editing instruction, a refresh instruction, and an interval instruction. Among them, the automatic execution instruction is used to indicate that the generated code is automatically executed. The direct code editing instruction is used to indicate that the code is edited and the error reported during operation is returned. The refresh instruction is used to indicate that the running process is refreshed. The interval instruction is used to indicate that the code is divided into two parts and executed separately.

[0034] If there is such a high-level instruction, directly execute the corresponding high-level instruction during the code execution process.

[0035] In a second aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory. The memory stores executable program instructions. When the processor calls the program instructions in the memory, the processor is used for:

[0036] Execute the steps of the robot operation task control method based on an intelligent chat program as described in any item of the first aspect.

[0037] In a third aspect, an embodiment of the present application provides a robot, including: a robot body, a drive system, and a robotic arm. A processor and a memory are provided in the robot body. The memory stores executable program instructions. When the processor calls the program instructions in the memory, the processor is used to control the drive system to drive the robotic arm to implement the steps of the robot operation task control method based on an intelligent chat program as described in any item of the first aspect.

[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a program. When the program is executed, the steps of the robot operation task control method based on an intelligent chat program as described in any item of the first aspect are implemented.

[0039] In a fifth aspect, an embodiment of the present application provides a program product. The program product includes a computer program. The computer program is stored in a readable storage medium. At least one processor of the robot can read the computer program from the readable storage medium. The at least one processor executes the computer program to enable the robot to implement the steps of the robot operation task control method based on an intelligent chat program as described in the first aspect.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] In this application, an AI creation service start instruction input by the user is received on the task setting page; according to the AI creation service start instruction, a smart chat program Chatbox window is popped up, where the Chatbox window includes: a text dialog box and a program compilation box; the text information input by the user is received and displayed in the text dialog box; the text information is translated into code and tested to generate a robot job task control flow diagram for controlling the robot to execute corresponding tasks. Thus, it can be applied to personalized robot job control scenarios. Without the need for professional technicians to compile code, by inputting natural language text on the user side, code can be automatically generated. The interface is user-friendly and easy to operate, greatly shortening the code development cycle and having high compilation efficiency. Brief Description of the Drawings

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on the provided drawings. By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes, and advantages of the present invention will become more obvious:

[0043] Figure 1 It is a schematic diagram of the interface of the Chatbox window provided by the embodiment of this application;

[0044] Figure 2 It is a flowchart of a robot job task control method based on a smart chat program provided by the embodiment of this application;

[0045] Figure 3 It is a schematic diagram of the human-computer interaction interface when the Chatbox window provided by the embodiment of this application pops up;

[0046] Figure 4 It is a schematic diagram of the code result generated by the Chatbox window provided by the embodiment of this application;

[0047] Figure 5 It is a schematic diagram of the effect when code is compiled in the Chatbox window provided by the embodiment of this application;

[0048] Figure 6 It is a flowchart of another robot job task control method based on a smart chat program provided by the embodiment of this application;

[0049] Figure 7 It is a flowchart of yet another robot job task control method based on a smart chat program provided by the embodiment of this application;

[0050] Figure 8 A schematic structural diagram of an electronic device provided by an embodiment of the present application;

[0051] Figure 9 It is a schematic structural diagram of a computer-readable storage medium in an embodiment of the present invention. Detailed implementation manners

[0052] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0053] It should be noted that when a component is referred to as being "fixed to" another component, it can be directly on the other component or there may also be an intermediate component. When a component is considered to be "connected" to another component, it can be directly connected to the other component or there may be an intermediate component at the same time.

[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" as used herein includes any and all combinations of one or more of the related listed items.

[0055] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein, for example, can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these process, method, product or device.

[0056] The technical solutions of the present invention and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific embodiments. These several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0057] The following will describe in detail some embodiments of the present application with reference to the accompanying drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0058] Embodiments of the present application provide a method for controlling robot operation tasks based on an intelligent chat program, which can be applied to various types of robots. For example, movable logistics robots, robots on large-scale operation assembly lines, simple handling robots, etc. The embodiments of the present application are not limited thereto.

[0059] Figure 1 It is a schematic diagram of the interface of the Chatbox window provided by an embodiment of the present application. As Figure 1 shown, it includes a program compilation box located on the upper side of the interface area, a text dialog box located on the lower side of the interface area, and three function controls are sequentially distributed on the right side of the program compilation box, respectively representing the functions of return, delete, and help. There is also a progress bar between the program compilation box and the text dialog box to indicate the progress of code generation. The button "APPLY!" represents running, and the button "QUIT" represents exiting (closing Chatbox).

[0060] Exemplarily, natural language information is input in the text dialog box, and then the Enter key is clicked to input the text information and wait for the code to be generated in the program compilation box.

[0061] Figure 2 It is a flowchart of a method for controlling robot operation tasks based on an intelligent chat program provided by an embodiment of the present application. As Figure 2 shown, the method in this embodiment may include the following steps:

[0062] Step S201: On the task setting page, receive an AI creation service start instruction input by the user.

[0063] In this embodiment, on the human-machine interaction interface for robot control, the robot operation control software is started, "Task" is clicked on the home page, and the AI creation service is found in the drop-down menu of the tool, and the AI creation service is clicked with the mouse to generate a start instruction.

[0064] Step S202: Pop up the intelligent chat program Chatbox window according to the AI creation service start instruction.

[0065] In this embodiment, when receiving the AI creation service start instruction input by the user, the intelligent chat program Chatbox window is popped up. Among them, the Chatbox window includes: a text dialog box and a program compilation box. The ChatBox in this embodiment is a cross-platform desktop client of the OpenAI API and also an OpenAI API prompt debugging and management tool.

[0066] Exemplarily, Figure 3 FIG. is a schematic diagram of a human - machine interaction interface when the Chatbox window provided by the embodiment of the present application pops up. As Figure 3 shown, the Chatbox window floats on top of other applications, and the Chatbox window is in a semi - transparent state.

[0067] Step S203: Receive the text information input by the user and display it in the text dialog box.

[0068] In this embodiment, referring to Figure 1 , or Figure 3 shown, input text information in the text dialog box. For example, you can input: "I now have a bunch of cartons of the same size. These cartons are sent one by one from the conveyor belt. I need to control the robotic arm to pick up the cartons and stack them in a large box". Click the enter key to complete the input of the text information.

[0069] Step S204: Translate the text information into code and perform tests to generate a control flow diagram for the robot operation task to control the robot to execute corresponding tasks.

[0070] In this embodiment, according to the built - in chatbot program ChatGPT, extract keywords matching the task control from the text information input by the user; generate python - formatted code according to the keywords; call the relevant application programming interface API through the generated code to simulate the effect after the code runs.

[0071] Exemplarily, Figure 4 FIG. is a schematic diagram of the code result generated by the Chatbox window provided by the embodiment of the present application,

[0072] Figure 5 FIG. is a schematic diagram of the effect during code compilation in the Chatbox window provided by the embodiment of the present application.

[0073] Exemplarily, receive the first touch information input by the user; run the generated code according to the first touch information and generate a control flow diagram for the robot operation task during the running process. Specifically, referring to Figure 1 , generate the first touch information by clicking "APPLY!" to indicate running the code generated by Chatbox.

[0074] In this embodiment, on the task setting page, an AI creation service start instruction input by the user is received; according to the AI creation service start instruction, a smart chat program Chatbox window is popped up, where the Chatbox window includes: a text dialog box and a program compilation box; the text information input by the user is received and displayed in the text dialog box; the text information is translated into code and tested to generate a robot operation task control flow diagram for controlling the robot to execute corresponding tasks. Thus, it can be applied to personalized robot operation control scenarios. Without the need for professional technicians to compile code, by inputting natural language text on the user side, code can be automatically generated. The interface is user-friendly and easy to operate, greatly shortening the code development cycle and having high compilation efficiency.

[0075] Figure 6 It is a flowchart of another robot operation task control method based on a smart chat program provided by an embodiment of the present application. As Figure 6 shown, the method in this embodiment may include the following steps:

[0076] Step S601: On the task setting page, receive the AI creation service start instruction input by the user.

[0077] Step S602: According to the AI creation service start instruction, pop up the smart chat program Chatbox window.

[0078] Step S603: Receive the text information input by the user and display it in the text dialog box.

[0079] Step S604: Translate the text information into code and test it to generate a robot operation task control flow diagram for controlling the robot to execute corresponding tasks.

[0080] In this embodiment, steps S601 to S604 are the same as Figure 2 steps S201 to S204 in the Figure 2 shown embodiment. For the specific implementation principles and technical effects, refer to the relevant descriptions in the

[0081] shown method, which will not be elaborated here.

[0082] In this embodiment, since the code generated by Chatbot may have some errors, to make the code run successfully, manual verification of the code is required.

[0083] Exemplarily, taking Figure 4Taking the generated code as an example, its goal is to complete a task of repeatedly grasping workpieces from container A and placing them in container B. The specific process is mainly divided into five parts: initialization, calling vision, registering grasping, motion planning, and motion execution. However, it can be found that the code generated by Chatbot has problems, that is, asynchronous execution should only include #4, and initialization should be in a separate function, vision, registration of grasping, and planning should be in a function, and the id of the function should be the same as the id of the module it contains. Therefore, these errors can be modified by manual verification.

[0084] In a possible implementation, Chatbot can also be repeatedly trained to continuously improve the accuracy rate of the code generated by Chatbot, so that the code can run without the need for manual verification.

[0085] In another possible implementation, during code testing, Chatbot can automatically return the location of the error and prompt the reason for the error. This facilitates users to correct the code.

[0086] Step S606, after eliminating all errors, re-run the robot job control flow diagram and generate the corresponding visual programming VP module.

[0087] In this embodiment, some APIs specifically for Chatbot are built into the task setting interface. Chatbot can directly generate VP (Visual Programming) modules by calling these APIs. It is also possible to ask Chatbot to obtain the latest API (Application Program Interface) and usage methods.

[0088] In this embodiment, by manually verifying the code generated by Chatbot, correcting or adjusting the code generated by Chatbot, the accuracy of Chatbot code is improved to ensure its normal operation.

[0089] Figure 7 This is a flowchart of another robot job task control method based on an intelligent chat program provided by an embodiment of the present application. As Figure 7 shown, the method in this embodiment may include the following steps:

[0090] Step S701, on the task setting page, receive the AI creation service start instruction input by the user.

[0091] Step S702, according to the AI creation service start instruction, pop up the intelligent chat program Chatbox window.

[0092] Step S703: Receive the text information input by the user and display it in the text dialog box.

[0093] Step S704: Translate the text information into code and perform tests to generate a control flow diagram for the robot job task to control the robot to perform corresponding tasks.

[0094] In this embodiment, steps S701 to S704 are the same as Figure 2 steps S201 to S204 in the illustrated embodiment. For the specific implementation principles and technical effects, refer to Figure 2 the relevant descriptions in the illustrated method and will not be elaborated here.

[0095] Step S705: Receive the second touch information of the user for the Chatbox window and perform corresponding operations according to the second touch information.

[0096] In this embodiment, the corresponding operations may include any one of the following:

[0097] Drag the Chatbox window;

[0098] Hide or close the Chatbox window;

[0099] Enlarge or reduce the Chatbox window;

[0100] Display the help information of the Chatbox.

[0101] Exemplarily, this embodiment also provides a management function for chat information. The user can manage the text information input in the text box, such as saving or clearing the text. In addition, keyword search and other processing can also be performed on the text information.

[0102] In a possible implementation manner, when identifying the text information in the dialog box, it is also possible to first determine whether there are high-level instructions in the text information input by the user. The high-level instructions include: automatic execution instruction (apply), direct code editing instruction (exec), refresh instruction (reboot), interval instruction (split); where the automatic execution instruction is used to indicate automatic execution of the generated code, the direct code editing instruction is used to indicate editing of the code and returning the error during operation, the refresh instruction is used to indicate refreshing of the running process, and the interval instruction is used to indicate running the code in two parts separately; if there are high-level instructions, directly execute the corresponding high-level instructions during the code running process.

[0103] In this embodiment, the "apply" instruction has the exact same effect as clicking the APPLY button. For example, one can first ask for a piece of text and then add ": apply" after it, which is equivalent to auto applying this piece of code. The "exec" instruction is used to provide the function of directly editing and running code. Below this line of instruction, the user can write custom code. Chatbox will run the code written below ": exec" and return any error messages during the execution. If one doesn't want to spend time tuning the Chatbot, one can also directly generate the code after making minor modifications to the preliminary code it generates. The "reboot" instruction is equivalent to clicking the refresh button. When the user feels that there are too many questions being asked at this time, one can insert a ": reboot" and then write other questions after it. The "split" instruction will treat the parts before and after this instruction as two separate parts. For example, if a piece of custom code is written after ": exec" and then the user wants to ask Chatbot some questions, one needs to write ": split" after the code and then write the questions to be asked.

[0104] In this embodiment, operations such as dragging, pulling, hiding, closing, enlarging, and shrinking can be performed on Chatbox. The Chatbox window is a semi-transparent floating window and is always displayed on top of the application, thus ensuring that the development of other functions is not affected during use. In addition, all functions in the middle of Chatbox are asynchronous, so they do not block other processes and ensure that the development of other functions is not affected during use.

[0105] Figure 8 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 800 in this embodiment may include: a processor 801 and a memory 802.

[0106] A memory 802 for storing programs; the memory 802 may include volatile memory (e.g., random-access memory, such as static random-access memory (SRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), etc.); the memory may also include non-volatile memory, such as flash memory. The memory 802 is used to store computer programs (such as application programs and functional modules for implementing the above methods), computer instructions, etc. The above computer programs, computer instructions, etc. can be stored in partitions in one or more memories 802. And the above computer programs, computer instructions, data, etc. can be called by the processor 801.

[0107] The above computer programs, computer instructions, etc. can be stored in partitions in one or more memories 802. And the above computer programs, computer instructions, data, etc. can be called by the processor 801.

[0108] A processor 801 for executing the computer programs stored in the memory 802 to implement each step in the method involved in the above embodiments.

[0109] Specifically, reference can be made to the relevant descriptions in the foregoing method embodiments.

[0110] The processor 801 and the memory 802 can be independent structures or integrated structures. When the processor 801 and the memory 802 are independent structures, the memory 802 and the processor 801 can be coupled and connected through a bus 803.

[0111] The electronic device 800 in this embodiment can execute Figure 2 、 Figure 6 、 Figure 7 the technical solutions in the methods shown, and for the specific implementation process and technical principle, reference can be made to the relevant descriptions in Figure 2 、 Figure 6 、 Figure 7 the methods shown, which will not be elaborated here.

[0112] Those skilled in the art can understand that various aspects of the present invention can be implemented as a system, a method, or a program product. Therefore, various aspects of the present invention can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuitry", "module", or "platform" here.

[0113] In addition, an embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When at least one processor of the user equipment executes the computer-executable instructions, the user equipment executes the above various possible methods.

[0114] Among them, the computer-readable medium includes a computer storage medium and a communication medium. The communication medium includes any medium facilitating the transmission of a computer program from one place to another. The storage medium can be any available medium accessible by a general-purpose or special-purpose computer. An exemplary storage medium is coupled to the processor, enabling the processor to read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in the user equipment. Of course, the processor and the storage medium can also exist as discrete components in the communication device.

[0115] The present application also provides a program product. The program product includes a computer program. The computer program is stored in a readable storage medium. At least one processor of the server can read the computer program from the readable storage medium, and the at least one processor executes the computer program to enable the server to implement the method according to any one of the above embodiments of the present invention.

[0116] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk, or optical disk, etc., which can store program codes.

[0117] Figure 9 is a schematic structural diagram of the computer-readable storage medium in the embodiment of the present invention. Refer to Figure 9As shown, a program product 900 for implementing the above method according to an embodiment of the present invention is described. It can be a portable compact disc read-only memory (CD-ROM), include program code, and can run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited to this. In this document, a readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0118] The program product can adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0119] The computer-readable storage medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the readable program code is carried. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium can also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium can be transmitted with any appropriate medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination of the above.

[0120] The program code for performing the operations of the present invention can be written in any combination of one or more programming languages, including object-oriented programming languages - such as Java, C++, etc., and also including conventional procedural programming languages - such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as an independent software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, by using an Internet service provider to connect through the Internet).

[0121] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other. The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.

[0122] The specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the above specific embodiments. Those skilled in the art can make various deformations or modifications within the scope of the claims, which do not affect the essence of the present invention.

Claims

1. A method for controlling robot operation tasks based on an intelligent chat program, characterized in that, it includes: On the task setting page, receiving an AI creation service start instruction input by the user; According to the AI creation service start instruction, popping up an intelligent chat program Chatbox window, wherein the Chatbox window includes: a text dialog box and a program compilation box; Receiving the text information input by the user and displaying it in the text dialog box; Translating the text information into code and testing it to generate a control flow diagram for robot operation tasks to control the robot to execute corresponding tasks.

2. The method for controlling robot operation tasks based on an intelligent chat program according to claim 1, characterized in that, Translating the text information into code and testing it includes: According to the built-in chatbot program ChatGPT, extracting keywords matching task control from the text information input by the user; Generating python format code according to the keywords; Calling relevant application programming interfaces API through the generated code to simulate the effect after the code runs.

3. The method for controlling robot operation tasks based on an intelligent chat program according to claim 1, characterized in that, Generating the control flow diagram for robot operation tasks includes: Receiving the first touch information input by the user; Running the generated code according to the first touch information and generating a control flow diagram for robot operation tasks during the running process.

4. The method for controlling robot operation tasks based on an intelligent chat program according to any one of claims 1-3, characterized in that, it further includes: Manually verifying the generated control flow diagram for robot operation tasks, and if an error is found, editing the control flow diagram for robot operation; After eliminating all errors, re-running the control flow diagram for robot operation and generating a corresponding visual programming VP module.

5. The method for controlling robot operation tasks based on an intelligent chat program according to any one of claims 1-3, characterized in that, it further includes: During the code testing process, automatically returning the position where an error exists and prompting the reason for the error.

6. The method for controlling robot operation tasks based on an intelligent chat program according to any one of claims 1-3, characterized in that, The Chatbox window is a semi-transparent floating window and is always displayed on top of the application.

7. The method for controlling robot operation tasks based on an intelligent chat program according to claim 6, characterized in that, it further includes: Receiving the second touch information of the user for the Chatbox window and performing any one of the following operations according to the second touch information: Dragging the Chatbox window; Hiding or closing the Chatbox window; Zooming in or out the Chatbox window; Displaying the help information of Chatbox.

8. The method for controlling robot operation tasks based on an intelligent chat program according to any one of claims 1-3, characterized in that, it further includes: Manage the text information input in the text dialog box, and the management includes: saving or clearing the chat history.

9. The robot operation task control method based on an intelligent chat program according to any one of claims 1-3, characterized in that, further comprising: judging whether there is a high-level instruction in the text information input by the user, and the high-level instruction includes: an automatic operation instruction, a direct code editing instruction, a refresh instruction, and an interval instruction; wherein, the automatic operation instruction is used to indicate that the generated code is automatically run, and the direct code editing instruction is used to indicate editing the code and returning the error during operation, the refresh instruction is used to indicate refreshing the running process, and the interval instruction is used to indicate running the code in two parts respectively; if there is the high-level instruction, directly execute the corresponding high-level instruction during the code running process.

10. An electronic device, characterized in that, comprising: a processor and a memory, wherein executable program instructions are stored in the memory, and when the processor calls the program instructions in the memory, the processor is used for: executing the steps of the robot operation task control method based on an intelligent chat program according to any one of claims 1 to 9.