Unified runtime system for heterogeneous robots and method of operation thereof

The unified runtime system solves the problems of hardware interface differences and task orchestration in heterogeneous robot platforms, realizes cross-platform software reuse and independent data reading, and improves the maintainability and scalability of the system.

CN123169083APending Publication Date: 2026-11-27BEIJING OAK QINGXI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611389423.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies cannot effectively solve the problems of hardware interface differences between heterogeneous robot platforms, difficulties in cross-platform software reuse, insufficient ability to orchestrate complex tasks, mutual interference of data reading from multiple consumers, and coupling of business operation and system maintenance.

Method used

A unified runtime system for heterogeneous robots is provided, including a service interface module, a core runtime module, a task flow execution module, a capability management module, a data exchange module, and a robot adaptation module. The system isolates hardware interface differences through a unified robot capability interface, thereby decoupling task flow orchestration and data exchange.

Benefits of technology

It improves cross-platform software reusability, reduces the coupling between upper-layer applications and hardware, enables modular combination and dynamic orchestration of complex tasks, and ensures the independence of data reading and the reliability of system maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123169083A_ABST
    Figure CN123169083A_ABST
Patent Text Reader

Abstract

The application discloses a unified runtime system for heterogeneous robots, comprising a service interface module, a core runtime module, a task flow execution module, a capability management module, a robot adaptation module and a data exchange module. The service interface module receives and forwards control requests of an upper application. The core runtime module determines to-be-called capabilities according to the requests. The task flow execution module splits a task into task nodes with execution constraints and schedules. The capability management module maps task requirements into unified robot capabilities. The robot adaptation module converts the unified capabilities into corresponding robot bottom interfaces through an adapter. The data exchange module collects and distributes robot state and event data. The system abstracts robot functions into unified capabilities containing capability identifiers and input parameter models, an upper application calls unified capabilities to issue tasks, and differences of heterogeneous robot bottom interfaces are shielded, and unified task calling modes are provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of robot software systems, robot operating systems, middleware, robot task scheduling and hardware abstraction technologies, and in particular to a unified runtime system for heterogeneous robots deployed inside the robot body. Background Technology

[0002] With the rapid development of robotics technology, commercial robot platforms are exhibiting a high degree of heterogeneity. Robots from different manufacturers differ significantly in hardware interfaces, control protocols, software development kits (SDKs), and operating system communication mechanisms. This heterogeneity presents serious challenges to robot software development, primarily in the following five aspects.

[0003] First, cross-platform software reuse is difficult. The same function (such as waving, walking, voice broadcasting, or obtaining joint status) may be implemented on different robot platforms through vendor-specific SDKs, ROS / ROS 2 Topics (i.e., continuous data stream channels), Services (i.e., request-response remote calls), Actions (i.e., interfaces supporting progress feedback and cancellable long-running tasks), or direct hardware interfaces, respectively. The upper-layer application logic is strongly coupled with the specific robot hardware, resulting in a large amount of re-adaptation work required when changing robot models, leading to extremely low software reuse rates.

[0004] Secondly, there is a lack of unified abstraction for robot capabilities. Upper-layer application developers need to deeply understand the calling specifications of the underlying SDK or the implementation details of the ROS communication mechanism. A large amount of repetitive adaptation code is scattered in the business logic, which is difficult to maintain and also difficult to extend to new robot models.

[0005] Third, there is insufficient capability for orchestrating complex tasks. Complex robotic tasks are usually executed by directly linking various execution steps with business code, lacking a unified task flow description and execution framework. This makes task logic difficult to reuse, debugging difficult, and cannot be dynamically generated and scheduled by AI agents or graphical programming tools.

[0006] Fourth, data reading by multiple consumers interferes with each other. As the robot runs, it continuously generates state and event data. When multiple modules read the same data stream simultaneously and share the same cursor, the reading progress of each consumer will affect each other, leading to data loss or duplicate processing, resulting in insufficient reliability.

[0007] Fifth, there is coupling between business operations and system maintenance. When the robot's main business runtime and upgrade and maintenance components are deployed in the same process, if the upgrade process fails, it may cause the main business to be interrupted, and it is difficult to perform a rollback recovery independently, resulting in low system availability.

[0008] While existing technologies include robot middleware (such as ROS / ROS 2) and some vendor SDKs, none of these solutions can simultaneously address systemic issues such as unified capability abstraction, task flow orchestration, independent reading by multiple consumers, and decoupling of maintenance. Therefore, a unified runtime system for heterogeneous robots is urgently needed to comprehensively solve these technical problems. Summary of the Invention

[0009] The purpose of this invention is to isolate the differences in hardware interfaces between different robot manufacturers and provide a unified interface for calling robot capabilities.

[0010] The aforementioned technical objective is achieved by providing a unified runtime system for heterogeneous robots. The unified runtime system includes: a service interface module configured to receive robot control requests from upper-layer robot applications and transmit them to a core runtime module; a core runtime module configured to determine the robot capabilities to be invoked based on the robot control requests; a task flow execution module configured to represent the robot task represented by the control request as at least one task node constrained by execution relationships, and to schedule the task nodes according to the execution relationships between them; a capability management module configured to map the robot functions required by the task nodes to unified robot capabilities; and a data exchange module configured to receive robot status data and / or robot event data, and provide the data to one or more data consumers or modules. The system also includes a robot adaptation module, comprising at least two robot adapters corresponding to different types of robots. The robot adapters are configured to convert the unified robot capability into a robot control interface corresponding to the target robot. The unified runtime system is configured to abstract various robot functions into corresponding unified robot capabilities, enabling upper-layer applications to make the robot perform target behaviors simply by calling the corresponding unified robot capability. This ensures that robot tasks from upper-layer applications maintain a consistent calling method across robots with different underlying control interfaces. The unified robot capability includes at least the following components: a capability identifier, configured to uniquely identify the corresponding unified robot capability; and an input parameter model, configured to define the input content required to call the corresponding unified robot capability.

[0011] According to a preferred embodiment of the present invention, the unified robot capability further includes at least one of the following: The output model is configured to define the results returned after the corresponding unified robot capability is executed. Execution state is used to characterize the state of a unified robot capability during execution. Dependencies are used to characterize other capabilities or resources that a unified robot capability depends on during execution; Adaptive execution logic is used to translate unified robot capabilities into underlying actual calls.

[0012] According to a preferred embodiment of the present invention, the robot adaptation module selects the corresponding robot adapter according to the current robot type and converts the unified robot capability call into low-level control commands, the low-level control commands including vendor SDK calls, ROS / ROS 2 communication calls and / or hardware control calls.

[0013] According to a preferred embodiment of the present invention, the task flow execution module includes a lifecycle state management submodule for managing the lifecycle state of tasks and / or task nodes during operation, and the task flow execution module is configured to determine the subsequent task node based on the execution result of the previous task node, robot state data and / or robot event data.

[0014] According to a preferred embodiment of the present invention, the data exchange module establishes independent readers for at least two data consumers, and each reader maintains the reading status of its corresponding data consumer.

[0015] According to a preferred embodiment of the present invention, the reader provides at least a first read operation to read the latest data of a specified data item, and a second read operation to wait for the next data generated after the current read state of the reader.

[0016] According to a preferred embodiment of the present invention, robot data is distinguished within the data exchange module by a sequence identifier, which is maintained internally by the robot during runtime and hidden from the business module that calls the reader.

[0017] According to a preferred embodiment of the present invention, a request processing module is further provided, which performs parameter verification, request format conversion and / or lifecycle state conversion on robot control requests from the service interface module; the request processing module is located between the service interface module and the core runtime module or is built into the core runtime module.

[0018] According to a preferred embodiment of the present invention, an upgrade agent module that runs independently of the core runtime module is further included, and the upgrade agent module communicates with the core runtime module through a local inter-process communication interface.

[0019] According to another aspect of the present invention, a unified runtime method for heterogeneous robots is provided, which is executed according to the unified runtime system described above, and includes the following steps: receiving robot tasks submitted by upper-layer applications; determining task nodes to be executed; determining the unified robot capabilities corresponding to the task nodes; determining the current robot type; selecting the corresponding robot adapter; converting the unified robot capabilities into low-level control commands; and determining subsequent task nodes based on post-execution status data and / or event data.

[0020] According to the present invention, the following beneficial technical effects are achieved:

[0021] By isolating the differences in hardware interfaces between different robot manufacturers, a unified interface for calling robot capabilities is provided, improving the software reusability across robot platforms and reducing the coupling between upper-layer applications and robot hardware.

[0022] By abstracting complex robot behaviors into task nodes and executing them through task flow orchestration, modular combination and dynamic orchestration of complex robot behaviors are achieved, greatly improving the flexibility of task execution.

[0023] Each independent consumer provides a data reading mechanism that does not interfere with each other, improving the independence when multiple modules concurrently read robot data. This isolates the business operating environment from system maintenance / upgrade components, enhancing resilience.

[0024] Hides the details of the underlying data sequence, reducing the complexity of business modules.

[0025] When adding a new robot model, only a new robot adapter needs to be added, which improves scalability.

[0026] Improve system maintenance and fault recovery reliability through an independent upgrade agent module. Attached Figure Description

[0027] Figure 1 The diagram shows a schematic structural block diagram of the overall robot-side architecture of a unified runtime system 10 for heterogeneous robots according to an embodiment of the present invention. Figure 2 This diagram illustrates the mapping path from unified capabilities to heterogeneous hardware. Figure 3 A flowchart illustrating the independent reading mechanism for multiple consumers in data exchange module 8 is shown. Figure 4 The flowchart shows the unified runtime system 10 performing the task of "waving and greeting after detecting a person". Detailed Implementation

[0028] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The following embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.

[0029] Figure 1 The diagram shows a schematic structural block diagram of the overall architecture of a unified runtime system 10 for heterogeneous robots according to an embodiment of the present invention. See also Figure 1 According to an embodiment of the present invention, a unified runtime system 10 for heterogeneous robots is deployed on a computing device inside the robot body. The overall architecture includes, from top to bottom, the following: 2. Service interface layer (also known as service interface module), 3. Core runtime layer (also known as core runtime module), 4. Task flow execution layer (also known as task flow execution), 5. Capability management layer (also known as capability management module), and 6. Robot adaptation layer (also known as robot adaptation module).

[0030] According to one embodiment of the present invention, the robot upper-layer application 1 includes at least one of the following: a business application; an SDK; an AI Agent; and a graphical programming tool. With the aid of the unified runtime system 10 according to the present invention, the robot upper-layer application 1 is configured to express task intent with unified capability semantics, without needing to be aware of underlying hardware details.

[0031] According to one embodiment of the present invention, the service interface layer 2 is configured to receive robot control requests from the robot's upper-layer application 1. Robot control requests typically indicate a request for the robot to execute instructions from a human. The service interface layer 2 exposes a unified service call interface, which may support, for example, gRPC and / or HTTP protocols. The robot's upper-layer application 1 submits requests through the service interface layer 2. The service interface layer 2 does not handle the request business logic; it is only responsible for protocol parsing and request distribution.

[0032] According to one embodiment of the present invention, the core runtime layer 3 is configured to determine the robot capability to be invoked based on the robot control request. Preferably, the core runtime layer 3 is configured to perform the following functions: receiving a request from the service interface layer 2, parameter validation, and mapping the format of the request to an internal processing format. Alternatively, parameter validation and mapping the format of the request to an internal processing format may also be performed by a request processing module located between the service interface module 2 and the core runtime module 3.

[0033] According to one embodiment of the present invention, the task flow execution layer 4 is configured to represent the robot task represented by the control request as at least one task node constrained by execution relationships, and to schedule the task nodes according to the execution relationships between the task nodes. The execution relationships include, but are not limited to: sequential execution, i.e., executing at least one task node in a predetermined order; conditional branching, i.e., selecting an appropriate execution path based on a preset condition judgment result; waiting for events, i.e., the task node continues execution after receiving a specified event; and error handling, i.e., capturing and recovering from anomalies that occur during the execution of the task node.

[0034] According to one embodiment of the present invention, the core runtime layer 3 or the task flow execution layer 4 further includes a lifecycle state management submodule. This lifecycle state management submodule is configured to manage the lifecycle state of tasks and / or task nodes during operation, and to determine subsequent task nodes based on the execution result of the previous task node, robot state data, and / or robot event data. Preferably, the lifecycle state includes, but is not limited to, ready, running, paused, completed, and failed.

[0035] According to one embodiment of the present invention, the task flow execution layer 4 is configured to support multiple task flow generation methods, including static definition by business applications in code, visual orchestration by graphical programming tools, and dynamic generation by an AI Agent based on task intent. All of these generation methods output the same intermediate task flow representation, thereby ensuring that task flows from different sources can be uniformly parsed and executed. Thus, complex robotic tasks are no longer directly hard-coded and concatenated by business code, but are described, reused, debugged, and dynamically generated in a unified task flow format, improving the flexibility and maintainability of task logic.

[0036] According to one embodiment of the present invention, each task node in the task flow triggers the corresponding specific robot capability through the capability management layer 5 during execution.

[0037] According to one embodiment of the present invention, the capability management layer 5 is configured to map the robot functions required by the task nodes to uniform robot capabilities.

[0038] According to an embodiment of the present invention, the unified runtime system 10 includes a capability abstraction mechanism. This mechanism abstracts robot functions into unified robot capabilities, thereby standardizing the functions provided by heterogeneous robots into unified robot capabilities. This provides the possibility of shielding the differences between the underlying hardware interfaces of different robots. Specifically, the unified runtime system 10 abstracts various robot functions into corresponding unified robot capabilities. Each unified robot capability includes at least the following components: a capability identifier (name), used to uniquely identify the capability, such as "gesture.wave" representing a waving gesture, "speak" representing voice broadcasting, "navigate" representing navigation, and "dance" representing dance; an input parameter model, used to define the input content required to call the corresponding unified robot capability; an output result model, used to define the result returned after the unified robot capability is executed; an execution state, used to characterize the state of the unified robot capability during execution, including but not limited to preparing, running, successful, failed, and completed; dependencies, used to characterize other capabilities or resources that the unified robot capability depends on during execution; and adaptation execution logic, used to translate the unified robot capability into the actual underlying invocation.

[0039] According to one embodiment of the present invention, the unified runtime system 10 is configured to enable the upper-layer application 1 of the robot to perform target behaviors simply by invoking the unified robot capabilities, without needing to be aware of the specific robot's underlying interface details. For example, the upper-layer application 1 can trigger the robot's waving action by invoking the "WaveHand" unified robot capability, trigger voice broadcasting by invoking the "Speak" unified robot capability, trigger navigation by invoking the "Navigate" unified robot capability, and trigger dance movements by invoking the "Dance" unified robot capability.

[0040] According to one embodiment of the present invention, the robot adaptation layer 6 includes at least two robot adapters corresponding to different types of robots. Each robot adapter is used to convert the unified robot capability into a robot control interface corresponding to the target robot. The control interface includes, but is not limited to: vendor SDK Action; Robot Operating System II Action; and Custom Protocol. Thus, the same upper-layer call can be mapped to the specific control of different robots through different robot adapters, thereby realizing the mapping of unified capabilities to heterogeneous hardware.

[0041] like Figure 2As shown, taking the unified robot function "WaveHand" as an example, at least two robot adapters corresponding to different robot types include a Booster adapter, a Uniree adapter, and a Robot C adapter. The same upper-level call is converted into a vendor SDK Action via the Booster adapter, into a ROS2Action via the Uniree adapter, and into a Custom Protocol via the Robot C adapter, ultimately mapping to the corresponding robot hardware. Therefore, the same task flow or SDK program can be reused across different robot models without needing to understand the specific robot's underlying interface, significantly improving the cross-platform reusability of the software.

[0042] According to one embodiment of the present invention, the unified runtime system 10 is configured to prevent the upper-layer application 1 of the robot from directly calling the vendor's SDK, and instead uses a robot adapter to uniformly adapt to different robots. Specifically, the unified runtime system 10 sets the robot adapter as an isolation layer between the task flow execution layer 4, the capability management layer 5 and the underlying vendor's SDK, so that the upper-layer application 1 of the robot only programs to the unified capability interface and does not directly depend on any specific vendor's SDK.

[0043] According to one embodiment of the present invention, when a new robot model is added, only a new robot adapter needs to be configured, without modifying the upper-level task flow execution layer 4, capability management layer 5, and SDK program. That is, the upper-level task orchestration logic, capability abstraction definition, and business code remain completely unchanged for the new model, thereby significantly improving the system's scalability and portability, and reducing the development and maintenance costs of cross-platform software.

[0044] According to one embodiment of the present invention, the task flow execution layer 4 and the capability management layer 5 work together to complete the entire link from task intent to underlying execution. Specifically, the task flow execution layer 4 is configured to describe "what task to execute and the relationship between each task node," the capability management layer 5 is configured to map the robot functions required by the task node to a unified robot capability, and the robot adaptation layer 6 is configured to convert the unified robot capability into the control interface corresponding to the target robot. Through the layered collaboration of the task flow execution layer 4, the capability management layer 5, and the robot adaptation layer 6, the upper-layer application 1 only needs to express the task intent with unified capability semantics, without needing to care about the underlying implementation details of the task or the specific interface form of the target robot.

[0045] According to a preferred embodiment of the present invention, the unified runtime system 10 further includes a data exchange module 8, which is configured to receive robot state data and / or robot event data and provide the data to one or more data consumers.

[0046] Preferably, the robot status data and / or robot event data are continuously generated by the underlying data source. The data exchange module 8 is configured to receive and cache the continuously generated data, and distribute it to each consumer through an independent read channel.

[0047] According to one embodiment of the present invention, the data exchange module 8 is configured to provide an independent reading mechanism for a multi-consumer reading scenario. Specifically, the data exchange module 8 establishes an independent reader for each data consumer, and each reader maintains its own reading state, i.e., each reader is equipped with a corresponding reading cursor. Therefore, the reading operation of any consumer will not change the reading progress of other consumers. When one reader moves forward and moves its cursor, the cursors of the remaining readers remain unaffected. Thus, multiple consumers or modules can read the same data stream simultaneously without interference, avoiding data loss or duplicate processing, and ensuring the reliability of concurrent reading by multiple consumers.

[0048] According to an embodiment of the present invention, the data exchange module 8 exposes at least the following two types of read interfaces: (a) Read the latest value interface (read_latest): It is configured to read the latest value of the specified data item.

[0049] (ii) Wait Next interface: It is configured to wait for new data relative to the current read cursor.

[0050] According to one embodiment of the present invention, the core runtime layer 3 is configured to uniformly maintain the sequence number of the underlying data, which is used to identify the order in which the data is generated. The sequence number is not exposed to the business caller. This ensures consistency in independent reading by multiple readers while isolating underlying implementation details and simplifying upper-layer usage.

[0051] Figure 3 A flowchart illustrating the independent read mechanism for multiple consumers in data exchange module 8 is shown. Figure 3 As shown, in step S31, underlying data sources such as ROS 2, sensors, and the robot core continuously generate robot states and events. In step S32, the data exchange module 8 caches data sequences 100, 101, 102..., with the latest sequence number being 102. In step S33, the data exchange module 8 distributes the aforementioned data sequences to three independent readers A, B, and C: Reader A corresponds to the task flow execution layer, with sequence number 101; Reader B corresponds to the state interface, with sequence number 98; and Reader C corresponds to the algorithm module, with sequence number 102. Each of these three readers maintains a different reading progress and does not affect the others. Thus, the data exchange module 8 implements a reliable distribution mechanism of "one set of data, multiple independent consumptions".

[0052] According to a preferred embodiment of the present invention, the unified runtime system 10 adopts a layered call chain consisting of a service interface layer 2, a core runtime layer 3, and a robot adapter. Through the above-mentioned layered call chain, external requests undergo parameter validity verification, standardized conversion of request formats, and mapping of task lifecycle states sequentially before entering the vendor SDK, thereby avoiding direct coupling between upper-layer logic and lower-layer vendor interfaces and improving the maintainability and scalability of the system.

[0053] Specifically, the hierarchical call chain, from top to bottom, is as follows: gRPC / HTTP → RobotControlService → RobotControlHandler → RobotControlCore → RobotAdapter → ROS2 / Vendor SDK → Robot.

[0054] RobotControlService, belonging to the service interface layer 2, is responsible for exposing a unified service call interface (e.g., supporting gRPC and / or HTTP protocols) and receiving robot control requests from the upper-layer application 1. RobotControlHandler, belonging to the core runtime layer 3, is configured to perform parameter checks and request format conversion on the received requests and submit the converted requests to RobotControlCore. RobotControlCore, also belonging to the core runtime layer 3, is configured to determine the robot capability to be invoked based on the request and manage the task lifecycle corresponding to the request. RobotAdapter, belonging to the robot adaptation layer 6, is configured to convert the unified robot capability into the robot control interface corresponding to the target robot (e.g., ROS 2, vendor-specific SDK, or hardware control protocol).

[0055] Figure 4 The flowchart below shows the unified runtime system 10 performing the task of "waving and greeting after detecting a person". Figure 4 Taking the task of "waving and greeting after detecting a person" as an example, we will explain in detail the workflow of the Unified Runtime System 10.

[0056] Step S41, the process begins.

[0057] Step S42: Enter node A, i.e., check the robot status. Node A obtains the latest robot status data from data exchange module 8 by calling the read_latest interface.

[0058] Step S43: Enter node B, i.e., wait for the event "human detected". Node B waits for the next event provided by data exchange module 8 by calling the waitNext interface; when the "human detected" event is obtained from data exchange module 8, node B is triggered and continues to execute to step S44.

[0059] In step S44, the process enters node C, which executes the "wave gesture capability". Node C calls the unified robot capability "wave gesture" through the capability management layer 5, and the corresponding robot adapter converts it into a specific control interface for the target robot, enabling the target robot to perform the wave gesture.

[0060] In step S45, in an optional branch, the process enters node D, which executes the "say 'hello'" action. Then, the process ends and returns the execution result.

[0061] According to one embodiment of the present invention, the unified runtime system 10 further includes an Over-the-Air (OTA) Agent module. This OTA Agent module is located within the robot and runs independently of the core runtime module 3. The OTA Agent module is configured to decouple system upgrade capabilities from main business operations. Specifically, the OTA Agent module and the core runtime layer 3 are deployed as independent processes, communicating via local IPC (Inter-Process Communication). The OTA Agent module is configured to handle the upgrade package processing flow, including but not limited to: downloading, verifying, temporarily storing, activating, and rolling back.

[0062] According to one embodiment of the present invention, when the core runtime layer upgrade process fails, the over-the-air upgrade agent module can still independently perform a rollback operation to restore the system to the usable version before the upgrade, without being affected by the core runtime layer main process anomaly. This avoids the risk that an upgrade failure would render the entire robot system unrecoverable.

[0063] According to one embodiment of the present invention, the local IPC uses Unix domain sockets as the local communication mechanism. Since Unix domain sockets are limited to inter-process communication within the same robot device and do not expose network ports externally, efficient communication between the core runtime layer and the over-the-air upgrade agent module can be achieved while avoiding exposing the system maintenance interface to the external network, thus improving system security.

[0064] According to one embodiment of the present invention, by separating the core runtime layer and the over-the-air upgrade agent module at the process level, the upgrade capability is decoupled from the lifecycle of the main business process. Even if an anomaly occurs during the upgrade process, the main business process and the maintenance process do not interfere with each other, thereby significantly improving the system's availability and fault recovery capability.

[0065] According to one embodiment of the present invention, different robots may use their own different task state representations at the underlying level, that is, different manufacturers have their own proprietary state machines. The unified runtime system 10 is configured to convert the different underlying task states into preset internal lifecycle states, so that the task flow execution layer 4 and upper-layer services do not depend on the state machine of a specific manufacturer.

[0066] According to one embodiment of the present invention, the internal lifecycle states include, but are not limited to, the following six: CREATED, STARTING, RUNNING, STOPPING, FINISHED, and FAILED. Wherein: "CREATED" indicates that the task has been created but has not yet been started; "STARTING" indicates that the task is in the process of starting up; Running indicates that the task is currently being executed; "STOPPING" indicates that the task is in the process of stopping. The "FINISHED" option indicates that the task has been successfully completed. Failed (FAILED) indicates that an exception occurred during the execution of the task and the task was terminated.

[0067] To further understand the technical solution of the present invention, a specific embodiment will be used to further illustrate the invention below. It should be noted that this embodiment is for illustrative purposes only and does not constitute a limitation on the scope of protection of the present invention.

[0068] In this embodiment, the unified runtime system 10 simultaneously supports Robot A and Robot B. Robot A controls its actions using a vendor's proprietary software development kit, while Robot B controls its actions using Robot Operating System 2 (ROS 2Action). The command issued by the upper-level application 1 is: "Dance after detecting a person." The execution process of the task includes the following steps: Step S91: Task flow execution layer 4 creates a task flow, which includes two task nodes: "WaitPersonDetected" node and "Dance" node.

[0069] Step S92: Obtain the corresponding data from the data exchange module 8 through the "waitNext" interface to know that the "user detected" event has occurred.

[0070] Step S93: When the underlying data source generates the "user detected" event, the data exchange module 8 transmits the signal of the next new event to the task flow execution layer 4, and the task flow execution layer 4 then enters and executes the "dancing" node.

[0071] Step S94: After the "Dancing" node is triggered, the capability management layer 5 parses the unified robot capability "Dance" to determine its required input parameters, output results and adaptation execution logic, and transmits the corresponding instructions to the robot adaptation layer 6.

[0072] Step S95: Robot adaptation layer 6 selects the corresponding target adapter from the two robot adapters based on the current robot model. If the unified runtime system 10 is on robot A, then robot A adapter is selected; if it is on robot B, then robot B adapter is selected.

[0073] Step S96: The selected target adapter converts the unified capability "dancing" into corresponding underlying control calls: if the unified runtime system 10 is located on robot A, it is converted into action calls of the vendor's proprietary software development kit; for robot B, it is converted into action calls of robot operating system 2 (ROS 2 Action).

[0074] Step S97: The corresponding robot executes the converted underlying call and performs the "dancing" action. Thus, the same task flow can run on two different robot platforms, Robot A and Robot B, without any modification.

Claims

1. A unified runtime system (10) for heterogeneous robots, characterized in that, include: The service interface module (2) is configured to receive robot control requests from the upper-layer robot application (1) and transmit them to the core runtime module (3); the core runtime module (3) is configured to determine the robot capability to be invoked based on the robot control request; the task flow execution module (4) is configured to represent the robot task represented by the control request as at least one task node constrained by the execution relationship, and schedule the task node according to the execution relationship between the task nodes; the capability management module (5) is configured to map the robot function required by the task node to a unified robot capability; the data exchange module (8) is configured to receive robot status data and / or robot event data, and provide the data to one or more data consumers or modules; and the robot adaptation module (6) includes at least two robot adapters corresponding to different types of robots, the robot adapters being configured to convert the unified robot capability into a robot control interface corresponding to the target robot; The unified runtime system (10) is configured to abstract the various functions of the robot into corresponding unified robot capabilities, so that the upper-level application (1) of the robot can make the robot perform the target behavior by calling the corresponding unified robot capabilities, thereby making the robot tasks from the upper-level application (1) maintain a consistent calling method between robots with different underlying control interfaces. The unified robot capability includes at least the following components: a capability identifier, configured to uniquely identify the corresponding unified robot capability; and an input parameter model, configured to define the input content required to invoke the corresponding unified robot capability.

2. The unified runtime system according to claim 1, characterized in that, The unified robotic capability also includes at least one of the following: The output model is configured to define the results returned after the corresponding unified robot capability is executed. Execution state is used to characterize the state of a unified robot capability during execution. Dependencies are used to characterize other capabilities or resources that a unified robot capability depends on during execution; The adaptation execution logic is used to translate the unified robot capabilities into the underlying actual calls.

3. The unified runtime system according to claim 1, characterized in that, The robot adaptation module (6) selects the corresponding robot adapter according to the current robot type and converts the unified robot capability call into the underlying control command. The underlying control command includes manufacturer SDK call, ROS / ROS 2 communication call and / or hardware control call.

4. The unified runtime system according to claim 1, characterized in that, The task flow execution module (4) includes a life cycle state management sub-module for managing the life cycle state of tasks and / or task nodes during operation. The task flow execution module (4) is configured to determine the successor task node based on the execution result of the previous task node, robot state data and / or robot event data.

5. The unified runtime system according to claim 1, characterized in that, The data exchange module (8) establishes independent readers for at least two data consumers, and each reader maintains the reading status of its corresponding data consumer.

6. The unified runtime system according to claim 5, characterized in that, The reader provides at least a first read operation to read the latest data of a specified data item, and a second read operation to wait for the next data to be generated after the current read state of the reader.

7. The unified runtime system according to claim 6, characterized in that, Robot data is distinguished by a sequence identifier within the data exchange module (8). The sequence identifier is maintained internally by the robot during runtime and is hidden from the business module that calls the reader.

8. The unified runtime system according to claim 1, characterized in that, It also includes a request processing module, which performs parameter verification, request format conversion and / or life cycle state conversion on robot control requests from the service interface module (2); the request processing module is located between the service interface module (2) and the core runtime module (3) or is built into the core runtime module (3).

9. The unified runtime system according to any one of claims 1-8, characterized in that, It also includes an upgrade agent module that runs independently of the core runtime module (3), and the upgrade agent module communicates with the core runtime module (3) through the local inter-process communication interface.

10. A unified runtime method for heterogeneous robots, implemented through the unified runtime execution according to claims 1-9, comprising the following steps: Receive robot tasks submitted by upper-layer applications; Identify the task nodes to be executed; Determine the unified robot capabilities corresponding to the task nodes; Determine the current type of robot; Select the appropriate robot adapter; The unified robot capabilities are converted into low-level control commands; and subsequent task nodes are determined based on the status data and / or event data after execution.