Robot instruction control method and device, terminal equipment and storage medium
By importing motion instructions and protocol files into the robot control system and generating an installation package for the large model, the robot instructions can be automatically converted and controlled, solving the problem of repeated research and development in heterogeneous multi-robot collaboration and improving control efficiency and system scalability.
Patent Information
- Application Number
- CN202510778697.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-11
- Publication Date
- 2025-09-19
AI Technical Summary
In the existing technology, due to the differences in design, structure and sensor configuration between robots, it takes a lot of time and effort to develop adaptation code when heterogeneous multi-robots collaborate, resulting in low efficiency of robot command control and prone to repeated research and development.
By receiving the action instructions of the target type robot and importing them into the pre-trained large model together with the configuration parameters and robot protocol files, the robot executable control instruction code and external communication interface are generated, encapsulated into an installation package, and a communication service interface is generated to achieve automatic conversion and control of the robot instructions.
There is no need to develop adaptation code based on new communication protocols for new types of robots, which reduces development work, avoids duplication of research and development, improves robot command control efficiency, and reduces system coupling to improve scalability.
Smart Images

Figure CN120675891A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a robot instruction control method, device, terminal equipment and storage medium. Background Art
[0002] With the advancement of technology, heterogeneous multi-robot collaborative systems play a vital role in numerous fields. Complex tasks and challenges are increasing, and a single machine often cannot meet these demands. Heterogeneous multi-robot collaborative systems, on the other hand, integrate machines of different types and functions, leveraging their respective strengths to jointly complete complex tasks. Robots exhibit significant differences in design, structure, sensor configuration, and intelligence, which present a series of challenges for heterogeneous multi-robot collaboration. A key issue is how to achieve effective communication between robots with different designs, structures, sensor configurations, and intelligence to implement command control. Different robots may use different communication protocols and interfaces, and due to their varying capabilities and characteristics, the way they perform tasks also varies significantly. This presents numerous challenges for efficient heterogeneous multi-robot collaboration.
[0003] Existing robot command control methods usually require developers to spend a lot of time and energy developing adaptation codes to adapt to robots based on different communication protocols. This is prone to repeated research and development, resulting in low robot command control efficiency. Summary of the Invention
[0004] The present invention provides a robot command control method, apparatus, terminal device and storage medium, which can solve the technical problem in the prior art that developers spend a lot of time and energy developing adaptation code to adapt to robots based on different communication protocols, which is prone to repeated research and development and leads to low efficiency of robot command control.
[0005] The present invention provides a robot instruction control method applicable to a robot control system, comprising:
[0006] Receive an action instruction of a target type robot and configure corresponding configuration parameters for the action instruction;
[0007] Importing the motion instructions, the configuration parameters, and the robot protocol file pre-configured for the target type robot into a pre-trained large model, and generating, through the large model, a control instruction code executable by the robot and an external communication interface for the robot to receive the motion instructions;
[0008] Encapsulating the control instruction code into an installation package, and generating a corresponding communication service interface according to the installation package;
[0009] When the robot system sends the action instructions to be executed to the communication service interface through the external communication interface, the communication service interface converts the instructions to be executed into control instructions in the instruction format defined in the robot protocol file, and controls the robot to perform corresponding actions according to the control instructions.
[0010] Furthermore, the generating of a control instruction code executable by the robot and an external communication interface for the robot to receive the action instruction according to the action instruction, the configuration parameters and the robot protocol file pre-configured for the target type robot includes:
[0011] Exporting the motion instructions and the configuration parameters into a motion instruction file, and importing the motion instruction file and the robot protocol file pre-configured for the target type robot into a pre-trained large model;
[0012] Parsing the action instruction file and the robot protocol file through the large model to extract the instruction format and communication parameters of the action instruction;
[0013] According to the instruction format and the preset instruction conversion conditions, the action instruction file is converted into a control instruction code executable by the robot, and an external communication interface is generated according to the communication parameters and the preset instruction conversion conditions.
[0014] Furthermore, generating a corresponding communication service interface according to the installation package includes:
[0015] Upload the installation package to the server;
[0016] The installation package is executed on the server, and the current running status of the server is verified. When the current running status of the server is normal, a communication service interface is generated.
[0017] Furthermore, before the robot system sends the to-be-executed action instruction to the communication service interface through the external communication interface, it also includes:
[0018] Communication information corresponding to the communication service interface is configured on the robot control system, and the robot control system communicates with the communication service interface through the communication information.
[0019] Furthermore, converting the to-be-executed instruction into a corresponding control instruction through the communication service interface, and controlling the robot to perform a corresponding action according to the control instruction, includes:
[0020] The to-be-executed instruction is converted into a control instruction in the instruction format defined in the robot protocol through the communication service interface, and the control instruction is sent to the robot, so that the robot performs a corresponding action according to the control instruction.
[0021] Furthermore, after controlling the robot to perform corresponding actions according to the control instructions, the method further includes:
[0022] Receive feedback data returned by the robot when it performs the corresponding action, parse the feedback data, and when the analysis obtains a successful execution signal, send the next control instruction to the robot.
[0023] The present invention also provides a robot instruction control device, comprising:
[0024] A parameter configuration module is used to add motion instructions of the target type robot in the robot control system and configure corresponding configuration parameters for the motion instructions;
[0025] a communication interface generation module, configured to generate a control instruction code executable by the robot and an external communication interface for the robot to receive the action instruction based on the action instruction, the configuration parameters, and a robot protocol file pre-configured for the target type robot;
[0026] A communication service interface generation module, configured to encapsulate the control instruction code into an installation package and generate a corresponding communication service interface according to the installation package;
[0027] The robot control module is used to convert the to-be-executed action instructions into control instructions in the instruction format defined in the robot protocol file according to the communication service interface when the to-be-executed action instructions are received through the external communication interface, and control the robot to perform corresponding actions according to the control instructions.
[0028] Furthermore, the communication service interface generation module is further configured to:
[0029] Exporting the motion instructions and the configuration parameters into a motion instruction file, and importing the motion instruction file and the robot protocol file pre-configured for the target type robot into a pre-trained large model;
[0030] Parsing the action instruction file and the robot protocol file through the large model to extract the instruction format and communication parameters of the action instruction;
[0031] According to the instruction format and the preset instruction conversion conditions, the action instruction file is converted into a control instruction code executable by the robot, and an external communication interface is generated according to the communication parameters and the preset instruction conversion conditions.
[0032] Furthermore, the communication service interface generation module is further configured to:
[0033] Upload the installation package to the server;
[0034] The installation package is executed on the server, and the current running status of the server is verified. When the current running status of the server is normal, a communication service interface is generated.
[0035] The present invention also provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the robot instruction control method as described above is implemented.
[0036] The present invention also provides a computer-readable storage medium, comprising: a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the robot instruction control method as described above.
[0037] The following beneficial effects are achieved by implementing the present invention:
[0038] The present invention adds the robot's motion instructions to the robot control system, and imports the motion instructions, configuration parameters and robot protocol files into the trained large model, which can automatically generate a corresponding installation package. According to the communication service interface generated by executing the installation package, the robot control system can communicate with the corresponding robot according to the communication interface to realize robot command control. There is no need to develop adaptation code according to the new communication protocol of the new type of robot, thereby effectively reducing development work and avoiding repeated research and development, and effectively improving the efficiency of robot command control.
[0039] Furthermore, the present invention can generate a corresponding installation package for each type of robot, and the installation packages generated for other types of robots are independent installation packages, which can effectively reduce the system coupling degree, thereby effectively improving the scalability of the system to quickly adapt to different scenarios and application requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are only some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 1 is a flow chart of a robot instruction control method provided by an embodiment of the present invention;
[0042] Figure 2 is a schematic diagram of configuration parameters provided by an embodiment of the present invention;
[0043] Figure 3 This is a schematic diagram of a process for generating a communication service interface provided by an embodiment of the present invention;
[0044] Figure 4 is another flow chart of the robot instruction control method provided by an embodiment of the present invention;
[0045] Figure 5 It is a structural diagram of a robot command control device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0048] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.
[0049] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0050] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0051] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0052] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.
[0053] See also Figure 1 To address the technical problem in the prior art where developers spend a lot of time and effort developing adaptation codes to adapt to robots based on different communication protocols, which easily leads to repeated research and development and results in low efficiency of robot command control, an embodiment of the present invention provides a robot command control method applicable to a robot control system, comprising:
[0054] S1. Receive the action instructions of the target type robot and configure the corresponding configuration parameters for the action instructions;
[0055] Refer to Figure 2, which shows a configuration parameter configuration diagram for an embodiment of the present invention. In this embodiment, different types of robots can be identified. Within the robot control system's motion instructions, motion instructions for the new type of robot can be added to those for the existing type of robot, and the associated configuration parameters can be configured. Motion instructions include movement, rotation, and lifting, and configuration parameters include lifting speed and lifting height.
[0056] S2. Importing the motion instructions, configuration parameters, and pre-configured robot protocol files for the target type robot into the pre-trained large model, and generating the robot-executable control instruction code and the robot's external communication interface for receiving motion instructions through the large model;
[0057] In an embodiment of the present invention, the robot protocol file may be provided by a robot manufacturer, and the robot protocol file includes detailed information for the robot to communicate.
[0058] In one embodiment, the robot protocol file may be a document-format protocol file.
[0059] S3. Encapsulate the control instruction code into an installation package and generate a corresponding communication service interface according to the installation package;
[0060] In an embodiment of the present invention, the communication service interface is an interface for communication between the robot control system and the robot. In an embodiment of the present invention, the control instruction code can be packaged into a corresponding installation package based on preset instruction conversion conditions. The instruction conversion conditions include code language conversion conditions. For example, the installation package code is set using the code conversion conditions. If the conversion conditions do not explicitly specify a language to use, Java is used by default. Using the set installation package code, the code is converted into a corresponding installation package, including packaging Java code into a jar package and C++ code into an .exe program and a .ded program.
[0061] S4. When an action instruction to be executed is received through the external communication interface, the instruction to be executed is converted into a control instruction in the instruction format defined in the robot protocol file according to the communication service interface, and the robot is controlled to perform the corresponding action according to the control instruction.
[0062] In an embodiment of the present invention, the instructions to be executed are converted into control instructions in the instruction format defined in the robot protocol through the communication service interface, so that the robot can understand the control instructions, thereby enabling the robot to perform corresponding actions according to the control, thereby improving the reliability of the robot's instruction control.
[0063] The embodiment of the present invention only needs to add the robot's motion instructions to the robot control system, and import the motion instructions, configuration parameters and robot protocol files into the trained large model. It can automatically generate the corresponding installation package, and execute the communication service interface generated by the installation package, so that the robot control system can communicate with the corresponding robot according to the communication interface to realize robot command control. There is no need to develop adaptation code according to the new communication protocol of the new type of robot, thereby effectively reducing development work and avoiding repeated research and development, and effectively improving the efficiency of robot command control.
[0064] Furthermore, the embodiment of the present invention can generate a corresponding installation package for each type of robot, and the installation packages generated for other types of robots are separate installation packages that are not affected. This can effectively reduce the system coupling degree, thereby effectively improving the scalability of the system to quickly adapt to different scenarios and application requirements.
[0065] In one embodiment, step S2, importing motion instructions, configuration parameters, and a pre-configured robot protocol file for the target type robot into a pre-trained large model, and generating, through the large model, control instruction codes executable by the robot and an external communication interface for the robot to receive motion instructions, includes:
[0066] S21. Exporting the motion instructions and configuration parameters into a motion instruction file, and importing the motion instruction file and the robot protocol file pre-configured for the target type robot into the pre-trained large model;
[0067] In an embodiment of the present invention, the large model is a software tool or platform that interprets action command files and robot protocol files and generates conversion code. These files are then imported into the pre-trained large model so that the large model can read and parse the contents of these files. The action command files contain robot actions and their corresponding configuration parameters and can be structured files such as JSON, XML, or CVS.
[0068] The embodiment of the present invention can realize automated processing by exporting action instructions and configuration parameters as files, thereby reducing errors and complexity of manual configuration.
[0069] S22. Parsing the action instruction file and the robot protocol file through the large model to extract the instruction format and communication parameters of the action instruction;
[0070] In the embodiment of the present invention, the instruction format includes the instruction name, parameter name, parameter type and parameter range, etc., and the communication parameters include the communication protocol (TCP / IP, serial communication, etc.), data format and instruction format, etc.
[0071] S23. Convert the action instruction file into a control instruction code executable by the robot according to the instruction format and the preset instruction conversion conditions, and generate an external communication interface according to the communication parameters and the preset instruction conversion conditions.
[0072] In an embodiment of the present invention, the instruction conversion conditions can be set according to actual needs. For example, the conversion instruction conditions are set to include code language conversion conditions. For example, the installation package code is set through the code conversion conditions. If the conversion conditions do not clearly determine which language to use, Java is used by default. Through the set installation package code, the code is converted into the corresponding installation package, including: Java code is packaged into a jar package, and C++ code is packaged into .exe program and .ded program.
[0073] In one embodiment, step S3, generating a corresponding communication service interface according to the installation package, includes:
[0074] S31, uploading the installation package to the server;
[0075] S32: Execute the installation package on the server and verify the current running status of the server. When the current running status of the server is normal, generate a communication service interface.
[0076] In an embodiment of the present invention, after executing the installation package, the installation program can automatically install the communication service interface and its dependencies and configure the necessary environment. After executing the installation package, it is necessary to verify whether the current operating status of the server is normal, wherein the verification process includes:
[0077] Check system resources to ensure that the server has sufficient CPU, memory, and disk control to run the communication service interface;
[0078] Check the network connection to ensure that the server's network connection is normal and can communicate with the robot control system and the robot;
[0079] Check dependent services to ensure that other dependent services (such as databases, middleware, etc.) running on the server are in normal status.
[0080] When the current operating status of the server is normal, the communication service interface is an available communication service interface.
[0081] The embodiment of the present invention can realize the automatic deployment and startup of the communication service interface by deploying and generating the communication service interface on the server, including uploading the installation package, executing the installation package and verifying the server operation status, thereby improving the reliability and stability of the robot command control.
[0082] In one embodiment, before step S4, the robot system sends the to-be-executed action instruction to the communication service interface through the external communication interface, the following steps are further included:
[0083] Communication information corresponding to the communication service interface is configured on the robot control system, and the robot control system communicates with the communication service interface through the communication information.
[0084] In this embodiment of the present invention, the communication information includes a configuration port and a server address. By configuring the communication information corresponding to the communication service interface on the robot control system, the embodiment of the present invention enables the robot control system to connect to the communication service interface through the communication information for communication and interaction, thereby enabling timely response to pending action commands and improving the response speed of the robot's command control.
[0085] In one embodiment, after step S4, in which the robot is controlled to perform corresponding actions according to the control instructions, the method further includes:
[0086] S5. Receive feedback data returned by the robot after executing the corresponding action, parse the feedback data, and when the execution success signal is obtained through parsing, send the next control instruction to the robot.
[0087] In an embodiment of the present invention, feedback data is data fed back by the robot based on its execution status. The feedback data includes the execution status and execution result. The execution status indicates whether the task was successfully completed, such as "success" or "failure." The execution result is specific information about the result, such as the time the task was completed and the execution parameter values. By parsing the feedback data, the embodiment of the present invention can determine whether a successful execution signal has been fed back. If so, the next control command is sent to the robot. If not, the communication service interface will perform corresponding processing based on the error information, such as recording an error log, sending an error report to the robot control system, and attempting to resend the command.
[0088] The embodiment of the present invention can dynamically adjust the task process according to the feedback data, and send the next control instruction only after the current task is successful, thereby effectively avoiding the waste of resources and effectively improving the efficiency of robot instruction control.
[0089] See also Figure 3 , is a flow chart of generating a communication service interface provided by an embodiment of the present invention. Figure 3 In the process, task instructions for a new robot are added to the RCS (robot control system), and task instruction files are exported based on the newly added task instructions. Combined with the robot protocol file, they are imported into the pre-trained large model to generate an installation package. The installation package is the corresponding communication plug-in, and then a communication service interface is generated based on the communication plug-in.
[0090] See also Figure 4 , is a flow chart of a robot instruction control provided by an embodiment of the present invention. Figure 4 In the process, RCS communicates with the task instructions through the communication service interface, including receiving the task instructions and converting them into robot instructions that the robot can recognize and control according to the received task instructions, and sending the robot instructions to the robot to perform the corresponding actions.
[0091] The implementation of the present invention has the following beneficial effects:
[0092] The embodiment of the present invention adds the robot's motion instructions to the robot control system, and imports the motion instructions, configuration parameters and robot protocol files into the trained large model, which can automatically generate the corresponding installation package. According to the communication service interface generated by executing the installation package, the robot control system can communicate with the corresponding robot according to the communication interface to realize robot command control. There is no need to develop adaptation code according to the new communication protocol of the new type of robot, thereby effectively reducing development work and avoiding repeated research and development, and effectively improving the efficiency of robot command control.
[0093] Furthermore, the embodiment of the present invention can generate a corresponding installation package for each type of robot, and the installation packages generated for other types of robots are separate installation packages that are not affected. This can effectively reduce the system coupling degree, thereby effectively improving the scalability of the system to quickly adapt to different scenarios and application requirements.
[0094] See also Figure 5 Based on the same inventive concept as the above embodiments, an embodiment of the present invention provides a robot command control device, comprising:
[0095] The parameter configuration module 10 is used to receive the action instructions of the target type robot and configure the corresponding configuration parameters for the action instructions;
[0096] The communication interface generation module 20 is used to import the motion instructions, configuration parameters and the robot protocol file pre-configured for the target type robot into the pre-trained large model, and generate the control instruction code executable by the robot and the external communication interface for the robot to receive the motion instructions through the large model;
[0097] The communication service interface generation module 30 is used to encapsulate the control instruction code into an installation package and generate a corresponding communication service interface according to the installation package;
[0098] The robot control module 40 is used to convert the to-be-executed action instructions into control instructions in the instruction format defined in the robot protocol file according to the communication service interface when receiving the to-be-executed action instructions through the external communication interface, and control the robot to perform the corresponding action according to the control instructions.
[0099] In one embodiment, the communication interface generation module 20 is further configured to:
[0100] Export the motion instructions and configuration parameters as a motion instruction file, and import the motion instruction file and the robot protocol file pre-configured for the target type robot into the pre-trained large model;
[0101] Parse the action instruction file and robot protocol file through the large model to extract the instruction format and communication parameters of the action instruction;
[0102] According to the instruction format and preset instruction conversion conditions, the action instruction file is converted into control instruction code executable by the robot, and an external communication interface is generated according to the communication parameters and preset instruction conversion conditions.
[0103] In one embodiment, the communication service interface generation module 30 is further configured to:
[0104] Upload the installation package to the server;
[0105] Execute the installation package on the server and verify the current running status of the server. When the current running status of the server is normal, generate a communication service interface.
[0106] In one embodiment, the communication service interface generation module 30 is further configured to:
[0107] Communication information corresponding to the communication service interface is configured on the robot control system, and the robot control system communicates with the communication service interface through the communication information.
[0108] In one embodiment, the robot command control device further includes a feedback data parsing module for:
[0109] Receive feedback data returned by the robot when it performs the corresponding action, parse the feedback data, and send the next control instruction to the robot when the execution success signal is obtained.
[0110] It can be understood that the above-mentioned device embodiment corresponds to the method embodiment of the present invention, which can implement the robot instruction control method provided by the above-mentioned embodiment of the present invention.
[0111] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. Furthermore, in the drawings of the device embodiments provided by the present invention, the connection relationship between modules indicates that they have a communication connection, which may be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement the present invention without inventive effort.
[0112] Based on the above-mentioned embodiment of the robot instruction control method, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the robot instruction control method of any embodiment of the present invention is implemented.
[0113] For example, in this embodiment, the computer program may be divided into one or more modules, one or more of which are stored in a memory and executed by a processor to implement the present invention. One or more module elements may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in a terminal device.
[0114] The terminal device can be a computing device such as a desktop computer, notebook computer, PDA, or cloud server. The terminal device may include, but is not limited to, a processor and memory.
[0115] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting various parts of the entire terminal device using various interfaces and lines.
[0116] Based on the above-mentioned method embodiments, another embodiment of the present invention provides a computer-readable storage medium, including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the robot instruction control method of any one of the above-mentioned method embodiments of the present invention.
[0117] Among them, the module / unit integrated in the device / terminal equipment, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0118] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A robot command control method, characterized in that: Suitable for robot control systems, including: Receive an action instruction of a target type robot and configure corresponding configuration parameters for the action instruction; Importing the motion instructions, the configuration parameters, and the robot protocol file pre-configured for the target type robot into a pre-trained large model, and generating, through the large model, a control instruction code executable by the robot and an external communication interface for the robot to receive the motion instructions; Encapsulating the control instruction code into an installation package, and generating a corresponding communication service interface according to the installation package; When an action instruction to be executed is received through the external communication interface, the instruction to be executed is converted into a control instruction in the instruction format defined in the robot protocol file according to the communication service interface, and the robot is controlled to perform the corresponding action according to the control instruction.
2. The robot command control method according to claim 1, wherein: The step of importing the motion instructions, the configuration parameters, and the robot protocol file pre-configured for the target type robot into a pre-trained large model, and generating a control instruction code executable by the robot and an external communication interface for the robot to receive the motion instructions through the large model, includes: Exporting the motion instructions and the configuration parameters into a motion instruction file, and importing the motion instruction file and the robot protocol file pre-configured for the target type robot into a pre-trained large model; Parsing the action instruction file and the robot protocol file through the large model to extract the instruction format and communication parameters of the action instruction; According to the instruction format and the preset instruction conversion conditions, the action instruction file is converted into a control instruction code executable by the robot, and an external communication interface is generated according to the communication parameters and the preset instruction conversion conditions.
3. The robot command control method according to claim 1, wherein: Generating a corresponding communication service interface according to the installation package includes: Upload the installation package to the server; The installation package is executed on the server, and the current running status of the server is verified. When the current running status of the server is normal, a communication service interface is generated.
4. The robot command control method according to claim 1, wherein: Before the robot system sends the to-be-executed action instruction to the communication service interface through the external communication interface, the method further includes: Communication information corresponding to the communication service interface is configured on the robot control system, and the robot control system communicates with the communication service interface through the communication information.
5. The robot command control method according to claim 1, wherein: After controlling the robot to perform corresponding actions according to the control instructions, the method further includes: Receive feedback data returned by the robot when it performs the corresponding action, parse the feedback data, and when the analysis obtains a successful execution signal, send the next control instruction to the robot.
6. A robot command control device, characterized in that: include: A parameter configuration module is used to receive the action instructions of the target type robot and configure the corresponding configuration parameters for the action instructions; a communication interface generation module, configured to import the motion instructions, the configuration parameters, and the robot protocol file pre-configured for the target type robot into a pre-trained large model, and to generate, through the large model, control instruction codes executable by the robot and an external communication interface for the robot to receive the motion instructions; A communication service interface generation module, configured to encapsulate the control instruction code into an installation package and generate a corresponding communication service interface according to the installation package; The robot control module is used to convert the to-be-executed action instructions into control instructions in the instruction format defined in the robot protocol file according to the communication service interface when the to-be-executed action instructions are received through the external communication interface, and control the robot to perform corresponding actions according to the control instructions.
7. The robot command control device according to claim 6, characterized in that: The communication service interface generation module is further used for: Exporting the motion instructions and the configuration parameters into a motion instruction file, and importing the motion instruction file and the robot protocol file pre-configured for the target type robot into a pre-trained large model; Parsing the action instruction file and the robot protocol file through the large model to extract the instruction format and communication parameters of the action instruction; According to the instruction format and the preset instruction conversion conditions, the action instruction file is converted into a control instruction code executable by the robot, and an external communication interface is generated according to the communication parameters and the preset instruction conversion conditions.
8. The robot command control device according to claim 6, characterized in that: The communication service interface generation module is further used to: Upload the installation package to the server; The installation package is executed on the server, and the current running status of the server is verified. When the current running status of the server is normal, a communication service interface is generated.
9. A terminal device, characterized in that: The robot instruction control method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the robot instruction control method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium, characterized in that include: A stored computer program, wherein when the computer program is run, the device where the computer-readable storage medium is located is controlled to execute the robot instruction control method according to any one of claims 1 to 5.
Citation Information
Cited By
Robot system, communication method thereof, communication system, storage medium and product
CN121306117A