CN117667363A - Message processing method, message processing device and storage medium for virtual robot - Google Patents

Message processing method, message processing device and storage medium for virtual robot Download PDF

Info

Publication number
CN117667363A
CN117667363A CN202410140084.2A CN202410140084A CN117667363A CN 117667363 A CN117667363 A CN 117667363A CN 202410140084 A CN202410140084 A CN 202410140084A CN 117667363 A CN117667363 A CN 117667363A
Authority
CN
China
Prior art keywords
brain
processing
task scheduling
scheduling information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410140084.2A
Other languages
Chinese (zh)
Other versions
CN117667363B (en
Inventor
赖洪昌
钟浩灵
潘小康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lessnet Technology Co ltd
Original Assignee
Shenzhen Lessnet Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lessnet Technology Co ltd filed Critical Shenzhen Lessnet Technology Co ltd
Priority to CN202410140084.2A priority Critical patent/CN117667363B/en
Publication of CN117667363A publication Critical patent/CN117667363A/en
Application granted granted Critical
Publication of CN117667363B publication Critical patent/CN117667363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Manipulator (AREA)

Abstract

The invention discloses a message processing method, a message processing device and a storage medium of a virtual robot, wherein the method comprises the following steps: when task scheduling information is received, determining a plurality of subtasks corresponding to the task scheduling information and a first connection state of a plurality of processing brains corresponding to the subtasks; when the first connection state is in a disconnection state, determining a target processing brain in the disconnection state and a target subtask corresponding to the target processing brain; and when the registration connection information sent by the target processing brain is not received within a preset period, changing the processing state of the task scheduling information into a suspension state. According to the invention, the connection state of the processing brain corresponding to the virtual robot is obtained, so that the management of the scheduling task is performed based on the connection state of the processing brain, and the problem of resource waste caused by long-time waiting of the scheduling task is avoided.

Description

Message processing method, message processing device and storage medium for virtual robot
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a message processing method, a message processing device, and a storage medium for a virtual robot.
Background
In the task scheduling management process of the current virtual robot software, tasks are generally divided in a manual processing mode, and subtasks after division processing are manually issued to the robot software of different modules for execution.
In the related process of issuing the subtasks to the robot software of different modules for execution, the central control issues the subtasks split manually to each processing brain and waits for a scheduling execution result. However, when the processing brain is in an offline state, the current subtask is always in a waiting state until the processing brain is on line, and when the current processing brain is in an offline state for a long time, the current scheduling task occupies required resources for a long time and does not actually perform processing or production, so that scheduling resources are wasted.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a message processing method, a message processing device and a storage medium of a virtual robot, which solve the problem of resource scheduling waste in the prior art.
To achieve the above object, the present invention provides a message processing method of a virtual robot, the method comprising the steps of:
When task scheduling information is received, determining a plurality of subtasks corresponding to the task scheduling information and a first connection state of a plurality of processing brains corresponding to the subtasks;
when the first connection state is in a disconnection state, determining a target processing brain in the disconnection state and a target subtask corresponding to the target processing brain;
and when the registration connection information sent by the target processing brain is not received within a preset period, changing the processing state of the task scheduling information into a suspension state.
Optionally, when the task scheduling information is received, the step of determining a plurality of subtasks corresponding to the task scheduling information includes:
when the task scheduling information is received, determining a second connection state of a script brain of the virtual robot operating system;
when the second connection state is an access state, the task scheduling information is sent to the script brain, task decomposition processing is carried out on the task scheduling information based on the script brain, and the plurality of subtasks corresponding to the task scheduling information are obtained;
when the second connection state is in a disconnection state, if the registration connection information sent by the script brain is received within the preset period, executing the step of sending the task scheduling information to the script brain; otherwise, outputting the prompt information of the overtime task scheduling information.
Optionally, the step of performing task decomposition processing on the task scheduling information based on the script brain to obtain the plurality of subtasks corresponding to the task scheduling information includes:
determining a scheduling type corresponding to the task scheduling information;
when the scheduling type is a text type, the task scheduling information is disassembled according to the text recognition script of the script brain, so that a plurality of subtasks corresponding to the task scheduling information are obtained;
when the scheduling type is a voice type, processing the task scheduling information according to an audio recognition script of the script brain, acquiring text information corresponding to the task scheduling information based on a text extraction script when a result that the task scheduling information accords with voice authority is obtained, and disassembling the text information according to the text recognition script to obtain a plurality of subtasks corresponding to the task scheduling information;
and when the scheduling type is a code type, identifying the task scheduling information according to the code identification script of the script brain to obtain a plurality of subtasks corresponding to the task scheduling information.
Optionally, after the step of changing the processing state of the task scheduling information to the suspension state when the registration connection information sent by the target processing brain is not received within the preset period, the method further includes:
outputting suspension state information corresponding to the task scheduling information in a task scheduling interface;
and responding to the access instruction of the target processing brain fed back by the task scheduling interface, changing the processing state of the task scheduling information into a state to be executed, and sending the target subtask to the target processing brain corresponding to the access instruction.
Optionally, after the step of responding to the access instruction of the target processing brain fed back by the task scheduling interface, changing the processing state of the task scheduling information to a to-be-executed state, and sending the target subtask to the target processing brain corresponding to the access instruction, the method further includes:
when all target processing brains send task execution instructions, determining robot software, an information storage path, instance creation information, task processing nodes and data storage types corresponding to the task execution instructions;
And executing the task scheduling information based on the robot software, the information storage path, the instance creation information, the task processing node and the data storage type.
Optionally, the step of executing the task scheduling information based on the robot software, the information storage path, the instance creation information, the task processing node, and the data storage type includes:
after the robot software is selected, creating instance information corresponding to the robot software based on a robot instance brain;
based on the instance information, the data storage type and the task processing node are sent to the robot software, so that the robot software obtains scheduling data corresponding to the data storage type based on the task processing node;
and acquiring the scheduling data fed back by the robot software, and storing the scheduling data to a storage brain based on the data storage path, wherein the robot instance brain and the storage brain are the target processing brain.
Optionally, before the step of determining the plurality of subtasks corresponding to the task scheduling information and the plurality of first connection states of the processing brain corresponding to the subtasks when the task scheduling information is received, the method further includes:
When an access instruction of a newly added processing brain is received, determining a scheduling function of the newly added processing brain;
and when receiving an online instruction of the newly added processing brain, taking the newly added processing brain as a plurality of processing brains corresponding to the subtasks.
Optionally, after the step of determining that the target processing brain is in the disconnected state when the first connection state is the disconnected state and the target subtask corresponding to the target processing brain, the method further includes:
and when the registration connection information sent by the target processing brain is received within the preset period, forwarding the target subtask to the target processing brain.
In addition, in order to achieve the above object, the present invention also provides a message processing apparatus of a virtual robot, including a memory, a processor, and a message processing program of a virtual robot stored on the memory and executable on the processor, the message processing program of the virtual robot implementing the steps of the message processing method of the virtual robot as described above when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a message processing program of a virtual robot, which when executed by a processor, implements the steps of the message processing method of a virtual robot as described above.
The embodiment of the invention provides a message processing method, a message processing device and a storage medium of a virtual robot, which are characterized in that when task scheduling information is received, a plurality of subtasks corresponding to the task scheduling information and connection states of a plurality of processing brains corresponding to the subtasks are determined first, when the connection state of one processing brain is in a disconnection state, a target processing brain in the disconnection state and a corresponding target subtask are determined, if registration connection information of the target processing brain is not received within a preset period, the processing state of the task scheduling information is required to be changed into an interruption state at the moment, so that execution of the task is stopped, resource waiting is avoided for too long, and the utilization rate of current task scheduling resources is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of an operating system of an example processing method of a virtual robot according to the present invention;
FIG. 2 is a flow diagram of a first embodiment of a message processing method of the virtual robot of the present invention;
FIG. 3 is a flow chart of a second embodiment of a message processing method of the virtual robot of the present invention;
FIG. 4 is a flow chart of a third embodiment of a message processing method of a virtual robot according to the present invention;
fig. 5 is a schematic diagram of a terminal hardware structure of each embodiment of a message processing method of the virtual robot of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the related process of issuing the subtasks to the robot software of different modules for execution, the central control issues the subtasks split manually to each processing brain and waits for a scheduling execution result. However, when the processing brain is in an offline state, the current subtask is always in a waiting state until the processing brain is on line, and when the current processing brain is in an offline state for a long time, the current scheduling task occupies required resources for a long time and does not actually perform processing or production, so that scheduling resources are wasted.
In order to solve the above-mentioned drawbacks, an embodiment of the present invention provides a message processing method for a virtual robot, which mainly includes the following steps:
when task scheduling information is received, determining a plurality of subtasks corresponding to the task scheduling information and a first connection state of a plurality of processing brains corresponding to the subtasks;
when the first connection state is in a disconnection state, determining a target processing brain in the disconnection state and a target subtask corresponding to the target processing brain;
and when the registration connection information sent by the target processing brain is not received within a preset period, changing the processing state of the task scheduling information into a suspension state.
According to the invention, when the processing brain is in an offline state for a long time, execution of task scheduling information is stopped, so that resource waiting for too long is avoided, and the utilization rate of the current task scheduling resource is improved.
In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention is applied to a robot operating system, as an optional implementation, please refer to fig. 1, the operating system comprises an Emitter message queue for message forwarding and registration connection, a central control for establishing connection with a plurality of kernel brains, issuing corresponding instructions and scheduling tasks, processing service logic message forwarding of all ends and user authorization login authentication, and the kernel brains formed by a plurality of brains, wherein the central control can establish client-side and server-side socket (a protocol stack) connection with each brain in the kernel brains, and address signals, instruction distribution and scheduling tasks and the like.
First embodiment
Referring to fig. 2, the message processing method of the virtual robot of the present invention includes the steps of:
step S10, when task scheduling information is received, determining a plurality of subtasks corresponding to the task scheduling information and a first connection state of a plurality of processing brains corresponding to the subtasks;
in this embodiment, the task scheduling information is used to obtain data information of multiple different scenarios, for example, when asset information of an intranet needs to be obtained, the task scheduling information of the asset information of the intranet is decomposed, so as to obtain processing tasks corresponding to different brains. That is, the task scheduling information may be any form of internet information scheduling task that can be split into a plurality of subtasks. The subtasks of the task scheduling information need to be processed jointly by a plurality of brains in the kernel brains, so that execution conditions for executing the task scheduling information, such as robot software, information storage paths, task processing nodes, data storage types, instance creation information and the like used when executing the task scheduling information, are obtained. Therefore, when a certain processing brain is in a disconnected state, the current task scheduling information cannot be normally executed due to the lack of a certain execution condition, and at this time, if the processing brain is on line, resource waste is caused by too long waiting time. Therefore, to increase the utilization rate of resources, it is necessary to determine the first connection states of the plurality of processing brains corresponding to the subtasks, so as to determine whether the current task scheduling information needs to wait for too long according to the first connection states.
As an optional implementation manner, the received task scheduling information comprises all the subtasks, so that the virtual robot operating system can read the content of the scheduling information after receiving the task scheduling information, and then all the subtasks are obtained. In addition, when the task scheduling information is pre-stored scheduling information, the virtual robot operating system can determine the subtasks corresponding to the task scheduling information according to the pre-stored mapping file. In addition, task scheduling information can be decomposed through task decomposition scripts of a script brain of the virtual robot operating system, so that a plurality of subtasks are obtained. The task scheduling information can be input into the virtual robot operating system by a developer through manual input, selection or voice input and the like, wherein the task scheduling information can comprise characters, codes, voice, pre-stored scheduling instructions and the like.
After determining a plurality of subtasks corresponding to the task scheduling information, determining a first connection state of a plurality of processing brains corresponding to the subtasks, wherein the processing brains refer to each processing brain in the kernel brains shown in fig. 1, and task processing nodes corresponding to different task scheduling information in different life cycles are required to be determined. The connection state refers to an on-line state of the processing brain, when the processing brain is on-line, i.e. currently in an on-line state, the current task scheduling information can be distributed to the processing brain in the on-line state, and when a certain processing brain is in an off-line state, i.e. off-line, a certain subtask is in a waiting processing state.
Therefore, in order to avoid excessive memory resources occupied by the subtasks in too long waiting time, after determining a plurality of subtasks of the task scheduling information, the connection states of a plurality of processing brains corresponding to all the subtasks need to be acquired, so as to judge whether the current subtask needs to be in the waiting state according to the connection states, and meanwhile, the corresponding task suspending processing action can be executed according to specific waiting time, so that the excessive occupation of resources is reduced.
Step S20, when the first connection state is the disconnection state, determining a target processing brain in the disconnection state and a target subtask corresponding to the target processing brain;
in this embodiment, when a subtask is sent to a processing brain, it is necessary to determine the connection state of the processing brain, and when there is a disconnection state of a first connection state of one of the processing brains, a target subtask corresponding to the processing brain in the disconnection state may be determined first, so that the processing brain may issue a task or terminate execution of the task when it is on line again or is not on line for a long time.
As another optional implementation manner, when the first connection states of all the processing brains are access states, subtasks can be directly issued to the corresponding processing brains at this time, so that after receiving a task execution instruction fed back by the processing brains, the robot software, the information storage path, the data storage type and the like required by the task scheduling information are determined, and the processing efficiency of the task scheduling information is improved.
And step S30, when the registration connection information sent by the target processing brain is not received within a preset period, changing the processing state of the task scheduling information into a suspension state.
In this embodiment, the preset period is a period dynamically set according to an actual application scenario, and when the registration connection information for online is not yet transmitted by the target processing brain when the preset period is exceeded, the processing state of the task scheduling information needs to be changed into an aborted state, so that the task scheduling information is prevented from being in a waiting state all the time, occupation of resources is reduced, and the task scheduling information is prevented from being in an aborted state until the target processing brain is online. For example, when the task digestion brain is in an off state, the processing node of the task in the task scheduling information cannot be determined at this time, so that even if the content such as the execution software, the data storage address, the storage type and the like corresponding to the task scheduling information is obtained through other brains, the task scheduling information cannot be normally executed, and therefore, in order to avoid the task scheduling information occupying excessive resources, the processing state of the task scheduling information needs to be changed into an off state, and the excessive resources are prevented from being occupied due to the excessively long task waiting time.
In an alternative embodiment, the target subtask is forwarded to the target processing brain when the registration connection information sent by the target processing brain is received within the preset period.
In the technical scheme disclosed in this embodiment, when task scheduling information is received, the task scheduling information is divided into a plurality of subtasks for acquiring execution conditions of the task scheduling information in a kernel brain, then a first connection state of a processing brain corresponding to the plurality of subtasks is determined, when the first connection state is in a disconnection state, a target processing brain in the disconnection state and a target subtask corresponding to the target processing brain are determined, when registration connection information sent by the target processing brain is not received within a preset period, excessive resources are occupied to avoid that the task scheduling information is in a long-time waiting state, at this time, the processing state of the task scheduling information is changed into an abort state, and the target subtask is sent to the target processing brain, so that the processing of the task scheduling information is recovered, and in the processing process, the processing efficiency of the task scheduling information is further improved through cooperative processing of the plurality of target processing brains.
Second embodiment
Referring to fig. 3, after step S30, according to the first embodiment, the method further includes:
step S40, outputting the suspension state information corresponding to the task scheduling information in a task scheduling interface;
And step S50, responding to the access instruction of the target processing brain fed back by the task scheduling interface, changing the processing state of the task scheduling information into a state to be executed, and sending the target subtask to the target processing brain corresponding to the access instruction.
In this embodiment, when the target processing brain is re-brought online, the virtual robot operating system can send the target subtasks to the target processing brain, thereby acquiring conditions required when task scheduling information is executed based on the target processing brain. Based on this, the virtual robot operating system can output suspension state information corresponding to the task scheduling information in the task scheduling interface, so that the developer can manually adjust the connection state of the processing brain based on the suspension state information. And then the virtual robot operating system responds to an access instruction of the target processing brain fed back by the task scheduling interface, changes the processing state of the task scheduling information into a state to be executed, and sends the target subtask to the target processing brain corresponding to the access instruction. The access instruction is registration connection information sent by the processing brain under the control of a developer, and when the target processing brain is in an access state and the processing state of the task scheduling information is restored to a to-be-executed state, the virtual robot operating system can directly send the target subtask which is in a waiting state to the target processing brain corresponding to the access instruction. And executing the issuing action of the corresponding target subtask by outputting the corresponding prompt information on the task scheduling interface and responding to the instruction received by the interface, thereby improving the processing efficiency of the task scheduling information.
As an optional implementation manner, after the target subtasks are sent to the new online target processing brain, each target processing brain generates a corresponding task execution instruction based on the corresponding subtasks, when the task execution instructions sent by all the target processing brains are received, the robot software, the information storage path, the instance creation information, the task processing node and the data storage type corresponding to the task execution instructions are determined, and the task scheduling information is executed based on the robot software, the information storage path, the instance creation information, the task processing node and the data storage type.
Further, in the process of executing the task scheduling information, after the robot software is selected by the fact brain, creating instance information corresponding to the robot software based on the robot instance brain, and then sending a data storage type and a task processing node to the robot software based on the instance information so that the robot software obtains scheduling data corresponding to the data storage type based on the task processing node. And finally, the virtual robot operating system acquires scheduling data fed back by the robot software, stores the scheduling data into a storage brain based on the data storage path, and completes the current task scheduling information. Wherein, the robot instance brain and the storage brain are both target treatment brains. Based on the above, after the execution conditions corresponding to the execution task scheduling information are obtained by each processing brain, the current task scheduling information is completed by combining the target processing brain, so that the processing efficiency of the task scheduling information is improved.
Illustratively, the subtasks corresponding to the task scheduling information include selected execution software, selected data storage types and storage addresses, determining task processing nodes, generating task execution instances, and the like. The target processing brains corresponding to these subtasks include the event brains of the selected execution software shown in fig. 1, the storage brains for the selected storage types and storage addresses, the task digestion brains for the determination of the task processing nodes, and the robot instance brains for the generation of task execution instances. Based on this, the execution instruction of the task scheduling information is further output by the brain joint processing.
In another alternative embodiment, when an access instruction of a newly added processing brain is received, determining a scheduling function of the newly added processing brain, and then when an online instruction of the newly added processing brain is received, taking the newly added processing brain as a plurality of processing brains corresponding to the subtasks. It can be understood that the corresponding processing brain is added for the subtasks in a mode of adding the processing brain, so that the task scheduling information is prevented from being in a long-time waiting state due to the fact that a certain processing brain is in a long-time offline state, and the utilization rate of resources is improved.
In the technical scheme disclosed in this embodiment, after changing the processing state of the task scheduling information into the suspension state, the suspension state information of the task scheduling information is output in the task scheduling interface, so that after responding to the access instruction of the target processing brain, the change of the task scheduling information is changed into the state to be executed, and then the corresponding target subtasks are sent to the target processing brain corresponding to the access instruction, and meanwhile, the execution condition of the task scheduling information is determined according to the task execution instructions fed back by all the target processing brains, and then the task scheduling information is executed. The current suspension state information is actively fed back, after the processing state is changed back to the state to be executed, the processing brains cooperatively process the suspension state information, and the task scheduling information is executed, so that the processing efficiency of the task scheduling information is improved.
Third embodiment
Referring to fig. 3, based on the first embodiment, step S10 specifically includes:
step S11, when the task scheduling information is received, determining a second connection state of a script brain of a virtual robot operating system;
in this embodiment, as an optional implementation manner, when the task scheduling information is received, the task may be decomposed by the script brain of the virtual robot operating system, so as to obtain a plurality of subtasks. Before that, the connection state of the script brain needs to be determined, and then when the script brain is in the access state, task scheduling information is directly decomposed through the script brain.
Step S12, when the second connection state is an access state, the task scheduling information is sent to the script brain, task decomposition processing is carried out on the task scheduling information based on the script brain, and the plurality of subtasks corresponding to the task scheduling information are obtained;
as an optional implementation manner, when the script brain is in an on-line state, a process of performing task decomposition processing on task scheduling information through the script brain specifically includes: determining a scheduling type corresponding to the task scheduling information, and when the scheduling type is a text type, disassembling the task scheduling information according to a text recognition script of the script brain, namely disassembling the text of the task scheduling information, so as to obtain a plurality of subtasks corresponding to the task scheduling information.
In addition, when the scheduling type is a voice type, the task scheduling information can be processed according to the audio recognition script of the script brain, and when a result that the task scheduling information accords with voice authority is obtained, text information corresponding to the task scheduling information is obtained based on a text extraction script, and the text information is disassembled according to the text recognition script, so that a plurality of subtasks corresponding to the task scheduling information are obtained; and when the scheduling type is a code type, identifying the task scheduling information according to the code identification script of the script brain to obtain a plurality of subtasks corresponding to the task scheduling information. Based on the method, the script brain in the kernel brain is used for decomposing the task scheduling information, so that corresponding subtasks are obtained, the subtasks are cooperatively processed through the processing brains, the execution conditions corresponding to the task scheduling information are obtained, excessive resources occupied by the task scheduling information are avoided, and meanwhile, the processing efficiency of the task scheduling information is improved.
And step S13, when the second connection state is in a disconnection state, if the registration connection information sent by the script brain is received within the preset period, executing the step of sending the task scheduling information to the script brain.
As an alternative embodiment, when the online notification of the script brain is received within a preset period, the task scheduling information may still be sent to the script brain. And when the preset time period is exceeded, the script brain is not in an on-line state, and prompt information of overtime task scheduling information can be output at the moment, so that developers can perform corresponding processing based on the prompt information, and excessive resources occupied by the task scheduling information in a long-time waiting state are avoided.
In the technical scheme disclosed in the embodiment, when task scheduling information is received, the connection state of the script brain of the virtual robot operating system is judged first, and when the connection state is an access state, the task scheduling information is decomposed based on the script brain, so that corresponding subtasks are obtained. The subtasks are cooperatively processed through a plurality of processing brains, so that execution conditions corresponding to the task scheduling information are acquired, excessive resources occupied by the task scheduling information are avoided, and meanwhile, the processing efficiency of the task scheduling information is improved.
Referring to fig. 5, fig. 5 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 5, the terminal may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a network interface 1003, and a memory 1004. Wherein the communication bus 1002 is used to enable connected communication between these components. The network interface 1003 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1004 may be a high-speed RAM Memory (Random Access Memory, RAM) or a stable Non-Volatile Memory (NVM), such as a disk Memory. The memory 1004 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 5 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 5, an operating system, a data storage module, a network communication module, and a message processing program of the virtual robot may be included in the memory 1004, which is a kind of computer storage medium.
In the terminal shown in fig. 5, the network interface 1003 is mainly used for connecting to a background server, and performing data communication with the background server; the processor 1001 may call a message processing program of the virtual robot stored in the memory 1004 and perform the following operations:
when task scheduling information is received, determining a plurality of subtasks corresponding to the task scheduling information and a first connection state of a plurality of processing brains corresponding to the subtasks;
when the first connection state is in a disconnection state, determining a target processing brain in the disconnection state and a target subtask corresponding to the target processing brain;
and when the registration connection information sent by the target processing brain is not received within a preset period, changing the processing state of the task scheduling information into a suspension state.
Further, the processor 1001 may call a message processing program of the virtual robot stored in the memory 1004, and further perform the following operations:
when the task scheduling information is received, determining a second connection state of a script brain of the virtual robot operating system;
when the second connection state is an access state, the task scheduling information is sent to the script brain, task decomposition processing is carried out on the task scheduling information based on the script brain, and the plurality of subtasks corresponding to the task scheduling information are obtained;
When the second connection state is in a disconnection state, if the registration connection information sent by the script brain is received within the preset period, executing the step of sending the task scheduling information to the script brain; otherwise, outputting the prompt information of the overtime task scheduling information.
Further, the processor 1001 may call a message processing program of the virtual robot stored in the memory 1004, and further perform the following operations:
determining a scheduling type corresponding to the task scheduling information;
when the scheduling type is a text type, the task scheduling information is disassembled according to the text recognition script of the script brain, so that a plurality of subtasks corresponding to the task scheduling information are obtained;
when the scheduling type is a voice type, processing the task scheduling information according to an audio recognition script of the script brain, acquiring text information corresponding to the task scheduling information based on a text extraction script when a result that the task scheduling information accords with voice authority is obtained, and disassembling the text information according to the text recognition script to obtain a plurality of subtasks corresponding to the task scheduling information;
And when the scheduling type is a code type, identifying the task scheduling information according to the code identification script of the script brain to obtain a plurality of subtasks corresponding to the task scheduling information.
Further, the processor 1001 may call a message processing program of the virtual robot stored in the memory 1004, and further perform the following operations:
outputting suspension state information corresponding to the task scheduling information in a task scheduling interface;
and responding to the access instruction of the target processing brain fed back by the task scheduling interface, changing the processing state of the task scheduling information into a state to be executed, and sending the target subtask to the target processing brain corresponding to the access instruction.
Further, the processor 1001 may call a message processing program of the virtual robot stored in the memory 1004, and further perform the following operations:
when all target processing brains send task execution instructions, determining robot software, an information storage path, instance creation information, task processing nodes and data storage types corresponding to the task execution instructions;
and executing the task scheduling information based on the robot software, the information storage path, the instance creation information, the task processing node and the data storage type.
Further, the processor 1001 may call a message processing program of the virtual robot stored in the memory 1004, and further perform the following operations:
after the robot software is selected, creating instance information corresponding to the robot software based on a robot instance brain;
based on the instance information, the data storage type and the task processing node are sent to the robot software, so that the robot software obtains scheduling data corresponding to the data storage type based on the task processing node;
and acquiring the scheduling data fed back by the robot software, and storing the scheduling data to a storage brain based on the data storage path, wherein the robot instance brain and the storage brain are the target processing brain.
Further, the processor 1001 may call a message processing program of the virtual robot stored in the memory 1004, and further perform the following operations:
when an access instruction of a newly added processing brain is received, determining a scheduling function of the newly added processing brain;
and when receiving an online instruction of the newly added processing brain, taking the newly added processing brain as a plurality of processing brains corresponding to the subtasks.
Further, the processor 1001 may call a message processing program of the virtual robot stored in the memory 1004, and further perform the following operations:
and when the registration connection information sent by the target processing brain is received within the preset period, forwarding the target subtask to the target processing brain.
Furthermore, it will be appreciated by those of ordinary skill in the art that implementing all or part of the processes in the methods of the above embodiments may be accomplished by computer programs to instruct related hardware. The computer program comprises program instructions, and the computer program may be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the control terminal to carry out the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a computer-readable storage medium storing a message processing program of a virtual robot, which when executed by a processor, implements the respective steps of the message processing method of a virtual robot as described in the above embodiments.
It should be noted that, because the storage medium provided in the embodiments of the present application is a storage medium used to implement the method in the embodiments of the present application, based on the method described in the embodiments of the present application, a person skilled in the art can understand the specific structure and the modification of the storage medium, and therefore, the description thereof is omitted herein. All storage media used in the methods of the embodiments of the present application are within the scope of protection intended in the present application.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flowchart and/or block of the flowchart illustrations and/or block diagrams, and combinations of flowcharts and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A message processing method of a virtual robot, the message processing method of the virtual robot comprising:
when task scheduling information is received, determining a plurality of subtasks corresponding to the task scheduling information and a first connection state of a plurality of processing brains corresponding to the subtasks;
When the first connection state is in a disconnection state, determining a target processing brain in the disconnection state and a target subtask corresponding to the target processing brain;
and when the registration connection information sent by the target processing brain is not received within a preset period, changing the processing state of the task scheduling information into a suspension state.
2. The message processing method of a virtual robot according to claim 1, wherein the step of determining a plurality of subtasks corresponding to the task scheduling information when the task scheduling information is received comprises:
when the task scheduling information is received, determining a second connection state of a script brain of the virtual robot operating system;
when the second connection state is an access state, the task scheduling information is sent to the script brain, task decomposition processing is carried out on the task scheduling information based on the script brain, and the plurality of subtasks corresponding to the task scheduling information are obtained;
when the second connection state is in a disconnection state, if the registration connection information sent by the script brain is received within the preset period, executing the step of sending the task scheduling information to the script brain; otherwise, outputting the prompt information of the overtime task scheduling information.
3. The message processing method of a virtual robot according to claim 2, wherein the step of performing task decomposition processing on the task scheduling information based on the script brain to obtain the plurality of subtasks corresponding to the task scheduling information includes:
determining a scheduling type corresponding to the task scheduling information;
when the scheduling type is a text type, the task scheduling information is disassembled according to the text recognition script of the script brain, so that a plurality of subtasks corresponding to the task scheduling information are obtained;
when the scheduling type is a voice type, processing the task scheduling information according to an audio recognition script of the script brain, acquiring text information corresponding to the task scheduling information based on a text extraction script when a result that the task scheduling information accords with voice authority is obtained, and disassembling the text information according to the text recognition script to obtain a plurality of subtasks corresponding to the task scheduling information;
and when the scheduling type is a code type, identifying the task scheduling information according to the code identification script of the script brain to obtain a plurality of subtasks corresponding to the task scheduling information.
4. The message processing method of a virtual robot according to claim 1, wherein the step of changing the processing state of the task scheduling information to the suspension state when the registration connection information transmitted from the target processing brain is not received within a preset period of time, further comprises:
outputting suspension state information corresponding to the task scheduling information in a task scheduling interface;
and responding to the access instruction of the target processing brain fed back by the task scheduling interface, changing the processing state of the task scheduling information into a state to be executed, and sending the target subtask to the target processing brain corresponding to the access instruction.
5. The message processing method of a virtual robot according to claim 4, wherein after the step of changing the processing state of the task scheduling information to a state to be executed and transmitting the target subtask to the target processing brain corresponding to the access instruction in response to the access instruction of the target processing brain fed back by the task scheduling interface, the method further comprises:
when all target processing brains send task execution instructions, determining robot software, an information storage path, instance creation information, task processing nodes and data storage types corresponding to the task execution instructions;
And executing the task scheduling information based on the robot software, the information storage path, the instance creation information, the task processing node and the data storage type.
6. The message processing method of a virtual robot according to claim 5, wherein the step of executing the task scheduling information based on the robot software, the information storage path, the instance creation information, the task processing node, and the data storage type comprises:
after the robot software is selected, creating instance information corresponding to the robot software based on a robot instance brain;
based on the instance information, the data storage type and the task processing node are sent to the robot software, so that the robot software obtains scheduling data corresponding to the data storage type based on the task processing node;
and acquiring the scheduling data fed back by the robot software, and storing the scheduling data to a storage brain based on the data storage path, wherein the robot instance brain and the storage brain are the target processing brain.
7. The message processing method of a virtual robot according to claim 1, wherein the step of determining a plurality of subtasks corresponding to the task scheduling information and a plurality of first connection states of the processing brain corresponding to the subtasks when the task scheduling information is received further comprises:
When an access instruction of a newly added processing brain is received, determining a scheduling function of the newly added processing brain;
and when receiving an online instruction of the newly added processing brain, taking the newly added processing brain as a plurality of processing brains corresponding to the subtasks.
8. The message processing method of a virtual robot according to claim 1, wherein when the first connection state is the disconnection state, the step of determining a target processing brain in the disconnection state, and a target subtask corresponding to the target processing brain, further comprises:
and when the registration connection information sent by the target processing brain is received within the preset period, forwarding the target subtask to the target processing brain.
9. A message processing apparatus of a virtual robot, the message processing apparatus of the virtual robot comprising: memory, a processor and a message handling program of a virtual robot stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the message handling method of a virtual robot according to any one of claims 1 to 8.
10. A computer-readable storage medium, on which a message processing program of a virtual robot is stored, which when executed by a processor, implements the steps of the message processing method of a virtual robot according to any one of claims 1 to 8.
CN202410140084.2A 2024-02-01 2024-02-01 Message processing method, message processing device and storage medium for virtual robot Active CN117667363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410140084.2A CN117667363B (en) 2024-02-01 2024-02-01 Message processing method, message processing device and storage medium for virtual robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410140084.2A CN117667363B (en) 2024-02-01 2024-02-01 Message processing method, message processing device and storage medium for virtual robot

Publications (2)

Publication Number Publication Date
CN117667363A true CN117667363A (en) 2024-03-08
CN117667363B CN117667363B (en) 2024-05-14

Family

ID=90077278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410140084.2A Active CN117667363B (en) 2024-02-01 2024-02-01 Message processing method, message processing device and storage medium for virtual robot

Country Status (1)

Country Link
CN (1) CN117667363B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817396A (en) * 2021-01-29 2022-07-29 中移(苏州)软件技术有限公司 Data synchronization method, device, equipment and storage medium
CN114851210A (en) * 2022-07-05 2022-08-05 北京云迹科技股份有限公司 Robot scheduling method based on cloud platform and scheduling cloud platform
CN115630806A (en) * 2022-10-10 2023-01-20 神策网络科技(北京)有限公司 Task scheduling method and device, computer equipment and storage medium
CN115964142A (en) * 2022-12-07 2023-04-14 深圳市宇航智能信息技术有限公司 Application service management method, device and storage medium
CN116599828A (en) * 2023-06-13 2023-08-15 中国工商银行股份有限公司 Task execution method and device, storage medium and electronic equipment
CN117453357A (en) * 2023-10-11 2024-01-26 中国平安人寿保险股份有限公司 Node task scheduling method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817396A (en) * 2021-01-29 2022-07-29 中移(苏州)软件技术有限公司 Data synchronization method, device, equipment and storage medium
CN114851210A (en) * 2022-07-05 2022-08-05 北京云迹科技股份有限公司 Robot scheduling method based on cloud platform and scheduling cloud platform
CN115630806A (en) * 2022-10-10 2023-01-20 神策网络科技(北京)有限公司 Task scheduling method and device, computer equipment and storage medium
CN115964142A (en) * 2022-12-07 2023-04-14 深圳市宇航智能信息技术有限公司 Application service management method, device and storage medium
CN116599828A (en) * 2023-06-13 2023-08-15 中国工商银行股份有限公司 Task execution method and device, storage medium and electronic equipment
CN117453357A (en) * 2023-10-11 2024-01-26 中国平安人寿保险股份有限公司 Node task scheduling method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN117667363B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN111026541B (en) Rendering resource scheduling method, device, equipment and storage medium
CN110278256B (en) Block link point access uplink method, related equipment and system
CN113626211A (en) Switching method and switching system of message queue, electronic equipment and storage medium
CN110661853A (en) Data proxy method, device, computer equipment and readable storage medium
CN108900627B (en) Network request method, terminal device and storage medium
US20110131288A1 (en) Load-Balancing In Replication Engine of Directory Server
CN113342503B (en) Real-time progress feedback method, device, equipment and storage medium
CN117667363B (en) Message processing method, message processing device and storage medium for virtual robot
CN108429665B (en) Method for transmitting data through concurrent communication
CN107025126B (en) Resource scheduling method, NFVO and system
CN113791888A (en) Linux application process management method and device
CN111291053B (en) Workflow data processing method and device and workflow data processing platform
CN107819855A (en) A kind of message distributing method and device
CN108345508B (en) Interface call testing method and device
CN106911739B (en) Information distribution method and device
CN113268362A (en) Operation and maintenance method, device and equipment based on server-free platform and storage medium
CN111756844A (en) Multi-language message agent method and device
CN107025131A (en) A kind of method for scheduling task and device
CN110365535B (en) Model online method and device based on secure multi-party computation
CN117573329B (en) Multi-brain collaborative task scheduling method, task scheduling device and storage medium
CN111309467B (en) Task distribution method and device, electronic equipment and storage medium
CN114710495B (en) Cloud rendering-based houdini distributed online resolving method
CN113010280A (en) Distributed task processing method, system, device, equipment and medium
CN110958240A (en) Message subscription system and method
CN113759871B (en) Multi-controller refreshing method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant