Container scheduling method and device of robot, electronic equipment and readable storage medium

By fusing and processing robot state data and generating container operation instructions from a rule base, and dynamically managing functional containers, the problems of scene adaptability and task continuity of robots in complex process scenarios are solved, thereby improving operational stability and efficiency.

CN123157322APending Publication Date: 2026-11-24UBTECH ROBOTICS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611302147.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, robots have poor adaptability to complex process scenarios, and it is difficult to ensure the continuity of task execution when switching functional modules, resulting in a decrease in overall performance and stability.

Method used

By acquiring robot state data, including physical state data, environmental perception data, and task context data, and performing fusion processing, a state vector is generated. Based on a preset rule base, a set of container operation instructions is generated to achieve dynamic management of the functional container set, including container unloading and loading, and to ensure dependency checks.

Benefits of technology

This enables the robot to adapt to complex environments, ensuring operational stability and continuity, reducing resource consumption by irrelevant modules, and improving operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157322A_ABST
    Figure CN123157322A_ABST
Patent Text Reader

Abstract

This application provides a container scheduling method, apparatus, electronic device, and readable storage medium for robots. The method includes: fusing physical state data, environmental perception data, and task context data during the robot's execution of a target task to obtain a state vector; comparing the state vector based on a preset rule base, and generating a set of container operation instructions for a set of functional containers based on the comparison results; when the operation type is container unloading, performing dependency checks on the target container, and terminating the target container if no dependency exists; when the operation type is container loading, creating a new container instance based on the container image corresponding to the target container, and loading the new container instance into the set of functional containers. This application enables dynamic management of robot containers and improves operational efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to a container scheduling method, apparatus, electronic device and readable storage medium for a robot. Background Technology

[0002] With the continuous improvement of industrial automation, robots are playing an increasingly crucial role in complex processes such as logistics handling, assembly manufacturing, and environmental inspection. These industrial robots typically integrate multiple sensors and actuators, and software container management technology is mainly responsible for the overall deployment and scheduling of various independent functional modules built into the robot, such as path navigation, environmental perception, and motion control.

[0003] Related technologies typically adopt a static, fully pre-integrated deployment mode of functional modules. As the complexity of actual working environments increases and the demand for long-term operations increases under rapid switching of multiple processes, the adaptability to different scenarios is poor. Furthermore, it is difficult to ensure the continuity of task execution when switching functional modules, which reduces the overall performance and stability of the robot in complex dynamic environments. Summary of the Invention

[0004] This application provides a container scheduling method, apparatus, electronic device, and readable storage medium for robots, which can realize dynamic management of robot containers and improve operating efficiency.

[0005] The technical solution of this application embodiment is implemented as follows: This application provides a container scheduling method for a robot. During the execution of a target task, the robot internally operates a set of functional containers for performing the target task. The method includes: The robot's state data is acquired, including the robot's physical state data, environmental perception data, and task context data. The physical state data, the environmental perception data, and the task context data are fused together to obtain a state vector. The state vector is compared based on a preset rule base, and a set of container operation instructions for the set of functional containers is generated based on the comparison results. The set of container operation instructions contains at least one container operation instruction, which indicates the target container and the corresponding operation type. When the operation type is container unload, a dependency check is performed on the target container. If the target container has no dependencies, the target container is terminated. When the operation type is container loading, a new container instance is created based on the container image of the target container, and the new container instance is loaded into the functional container set.

[0006] This application provides a container scheduling device for a robot. During the robot's execution of a target task, the robot internally operates a set of functional containers for performing the target task, including: The data acquisition module is used to acquire the robot's state data, which includes the robot's physical state data, environmental perception data, and task context data. The data fusion module is used to fuse the physical state data, the environmental perception data, and the task context data to obtain a state vector. The instruction generation module is used to compare the state vector based on a preset rule base, and generate a container operation instruction set for the functional container set according to the comparison result. The container operation instruction set contains at least one container operation instruction, and the container operation instruction indicates the target container and the corresponding operation type. The container adjustment module is used to perform dependency checks on the target container when the operation type is container unloading, and terminate the target container if there are no dependencies; when the operation type is container loading, it creates a new container instance based on the container image of the target container and loads the new container instance into the functional container set.

[0007] This application provides an electronic device, the electronic device comprising: Memory is used to store executable instructions or computer programs. The processor, when executing computer-executable instructions or computer programs stored in the memory, implements the container scheduling method for the robot provided in the embodiments of this application.

[0008] This application provides a computer-readable storage medium storing a computer program or computer-executable instructions, which, when executed by a processor, implements the container scheduling method for a robot provided in this application.

[0009] This application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, they implement the container scheduling method for robots provided in this application.

[0010] The embodiments of this application have the following beneficial effects: By applying the embodiments of this application, robot state data, including physical state data, environmental perception data, and task context data, is acquired. This data is then fused to obtain a state vector, effectively integrating multi-dimensional and multi-source robot state information and providing a comprehensive and unified data decision-making basis for dynamic reconfiguration. The state vector is compared based on a preset rule base, and a set of container operation instructions for target containers and corresponding operation types within the functional container set is generated based on the comparison results. This achieves a precise mapping from the robot's overall operating state to specific container lifecycle management instructions, enabling the robot to autonomously adjust its internal software configuration according to actual working conditions. Furthermore, in the case of container unloading, by performing dependency checks on the target container and terminating its operation if no dependencies exist, module conflicts and anomalies caused by blind unloading are effectively avoided, ensuring the stability and security of the overall operation. In the case of container loading, a new container instance is created based on the container image corresponding to the target container and the new container instance is loaded into the functional container set, realizing the on-demand dynamic allocation of limited internal computing resources, reducing the ineffective consumption of onboard resources by irrelevant modules, thereby ensuring the continuity and efficiency of the robot in executing the target task. Attached Figure Description

[0011] Figure 1A This is a schematic diagram of the first application mode of the robot container scheduling method provided in the embodiments of this application; Figure 1B This is a schematic diagram of the second application mode of the robot container scheduling method provided in the embodiments of this application; Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application; Figure 3 This is a first flowchart illustrating the container scheduling method for robots provided in this application embodiment; Figure 4 This is a second flowchart illustrating the container scheduling method for robots provided in this application embodiment; Figure 5 This is a schematic diagram of the structure of the container scheduling system for robots provided in the embodiments of this application.

[0012] It should be noted that the terms "first" and "second" mentioned above are only used to distinguish between different options and do not represent the degree of superiority or inferiority of the options or their priority in the implementation process. Detailed Implementation

[0013] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0014] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0015] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0016] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0017] Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the embodiments of this application is for descriptive purposes only and is not intended to limit the scope of this application.

[0018] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0019] 1) Container: Refers to an independent running unit built based on operating system-level isolation mechanisms, used to encapsulate the program, dependent environment, and configuration required for operation corresponding to a specific function, so that the corresponding function can run in a relatively isolated manner. In the embodiments of this application, a functional container refers to a container used to carry a specific processing function of the robot, such as a specific container type used for processing tasks such as environmental interaction, low-level driving, or high-level path planning.

[0020] 2) Container image: refers to the basic data carrier used to create container instances, which includes program files, runtime environment, dependent components and preset configurations.

[0021] 3) Target task: refers to the specific task that the robot needs to perform, such as handling task, inspection task, assembly task, or navigation task.

[0022] 4) Robot: refers to a device that has the ability to perceive, make decisions and execute, and can perform target tasks, including autonomous mobile robots, robotic arms, mobile platforms or other intelligent equipment.

[0023] This application provides a container scheduling method, apparatus, electronic device, and readable storage medium for robots, which can realize dynamic management of robot containers and improve operating efficiency.

[0024] The following describes exemplary applications of the electronic devices provided in the embodiments of this application. These devices can be implemented as various types of terminals such as laptops, tablets, desktop computers, set-top boxes, smartphones, smart speakers, smartwatches, smart TVs, and in-vehicle terminals, or as servers. Exemplary applications when the device is implemented as a terminal or server will be described below.

[0025] See Figure 1A , Figure 1A This is a schematic diagram of a first application mode of the container scheduling method for robots provided in this application embodiment. To implement a container scheduling application supporting a robot, an example is provided. Figure 1A The system involves a server 200, a network 300, and a robot 100. The robot 100 internally runs a set of functional containers for executing target tasks. Each functional container can be used for path planning, motion control, environmental perception, visual recognition, and communication interaction. During the execution of the target task, the robot 100 collects its status data in real time through the aforementioned sensors and detection units. The robot 100 connects to the server 200 via the network 300, which can be a wide area network (WAN), a local area network (LAN), or a combination of both.

[0026] In some embodiments, when the robot 100 receives a target task request and needs to dynamically adjust the set of internally running functional containers during the execution of the target task, the robot's container scheduling method provided in this application embodiment can be used to fuse the acquired physical state data, environmental perception data, and task context data to obtain a state vector; then, the state vector is compared based on a preset rule base, and a set of container operation instructions for the set of functional containers is generated based on the comparison results, so that the robot 100 can adjust the set of functional containers according to the container operation instructions during the execution of the target task to adapt to the robot 100's resource state, environmental state, and task state.

[0027] See Figure 1B , Figure 1B This is a schematic diagram of a second application mode of the robot container scheduling method provided in this application embodiment. It is an example of how to support the execution of a robot's target task. Figure 1B The system involves a server 200, a network 300, a robot 100, and a terminal device 400. Users can control the robot 100 to perform target tasks through the terminal device 400. The robot 100 connects to the server 200 via the network 300, which can be a wide area network (WAN), a local area network (LAN), or a combination of both. The terminal device 400 can be various types of terminal devices such as laptops, tablets, desktop computers, set-top boxes, smartphones, smart speakers, smartwatches, smart TVs, and in-vehicle terminals. The robot 100 internally runs a set of functional containers for performing target tasks. Each functional container can be used for path planning, motion control, environmental perception, visual recognition, and communication interaction. During the robot 100's execution of the target task, the aforementioned sensors and detection units collect the robot's status data in real time.

[0028] In some embodiments, after a user controls the robot 100 to execute a target task and triggers a target task request by operating the terminal device 400, when the robot 100 needs to dynamically adjust the set of internally running functional containers during the execution of the target task, the robot's container scheduling method provided in this application embodiment can be used to fuse the acquired physical state data, environmental perception data, and task context data to obtain a state vector; then, the state vector is compared based on a preset rule base, and a set of container operation instructions for the set of functional containers is generated according to the comparison results, so that the robot 100 can adjust the set of functional containers according to the container operation instructions during the execution of the target task to adapt to the resource state, environmental state, and task state of the robot 100. The user can also understand the current execution status of the target task of the robot 100 through the terminal device 400.

[0029] See Figure 2 , Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Figure 2 The server 200 shown includes at least one processor 410, memory 450, and at least one network interface 420. The various components of server 200 are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 2 The general labeled all buses as Bus System 440.

[0030] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0031] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.

[0032] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.

[0033] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.

[0034] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks; The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including Bluetooth, WiFi, and Universal Serial Bus (USB).

[0035] In some embodiments, the apparatus provided in this application can be implemented in software. Figure 2 A container scheduling device 455 for a robot, stored in memory 450, is shown. This device can be software in the form of programs and plug-ins, and includes the following software modules: a data acquisition module 4551, a data fusion module 4552, an instruction generation module 4553, and a container adjustment module 4554. These modules are logically connected and can therefore be arbitrarily combined or further separated according to their implemented functions. The functions of each module will be described below.

[0036] The container scheduling method for robots provided in this application will be described in conjunction with exemplary applications and implementations of the electronic devices provided in the embodiments of this application.

[0037] The following describes the container scheduling method for robots provided in the embodiments of this application. As mentioned above, the electronic device implementing the container scheduling method for robots in the embodiments of this application can be a terminal, a server, or a combination of both. Therefore, the executing entity of each step will not be described again below.

[0038] See Figure 3 , Figure 3 This is a first flowchart illustrating the container scheduling method for robots provided in this application embodiment, which will be combined with... Figure 3 The steps shown are explained.

[0039] In step 101, the robot's state data is acquired.

[0040] Here, state data includes the robot's physical state data, environmental perception data, and task context data.

[0041] In practice, acquiring robot status data involves continuously collecting, organizing, and aggregating data that characterizes the robot's current operational state during the execution of its target task. The robot internally operates a set of functional containers for performing the target task. These containers collectively consume the robot's computing, storage, and energy resources during operation, and their operational requirements change with the robot's environment and the progress of the task.

[0042] Specifically, the robot's internal data acquisition unit can be connected to the body detection module, environment perception module, and task scheduling module respectively, receiving relevant data according to a preset sampling period or event triggering method. Furthermore, data from different sources is organized according to a unified time base to form a state data set. This approach ensures that subsequent processing deals with basic data that is clearly sourced, has consistent time correspondence, and is complete in content, thereby guaranteeing the accuracy of state determination.

[0043] As an example, during the execution of a transport-type task, the robot simultaneously operates its navigation, chassis control, and basic perception containers. At this time, the data acquisition unit can collect data from the body detection module every 0.1 seconds and data from the environmental perception module every 0.05 seconds, and immediately read the corresponding task information when the task scheduling module switches tasks. After one sampling cycle, a set of state data corresponding to the same moment is formed.

[0044] For example, at time 10.0 seconds, the battery level is 28, the temperature is 45, the current position is at coordinates (120, 80), the identified scene is the main channel, and the task stage is "going forward". By aggregating these data, a complete state data result corresponding to the robot's current operating state can be obtained, rather than isolated individual parameters.

[0045] State data includes the robot's physical state data, environmental perception data, and task context data. These three types of data describe the robot's operation when performing a target task from different perspectives. Physical state data characterizes the robot's internal operating state, environmental perception data characterizes the robot's observations of the external environment, and task context data characterizes the current execution stage of the target task and related control information. These three types of data are not simply parallel but technically constitute the complete descriptive basis of the robot's state. Relying on only one type of data usually only reflects local characteristics of the robot's state and is insufficient to support targeted management of the functional container set. By acquiring all three types of data simultaneously, the robot's state can cover multiple dimensions, such as whether it is suitable to continue its current operating mode, whether the external environment has changed, and whether the current task has entered a new processing stage, thus providing complete data input conditions for subsequent steps.

[0046] As an example, when the robot is still in the vicinity of the same location, if only physical state data is acquired, it can only be known that the battery level has decreased from 32 to 29 and the temperature has increased from 43 to 46, but it cannot determine whether the robot has entered a complex work area. If only environmental perception data is acquired, it can only be identified that the robot has entered the sorting area from the main channel, but it cannot determine whether the remaining resources are sufficient to support the continued operation of high-load functional containers. If only task context data is acquired, it can only be known that the task stage has changed from forward to precise docking, but it cannot accurately reflect the robot's current external environment and onboard resources. However, acquiring all three types of data simultaneously can form a complete state description at the same time, such as "battery level 29, temperature 46, identified scene as sorting station, task stage as precise docking".

[0047] Acquiring physical state data allows for the establishment of a real-time detection chain around the robot's operational parameters. Here, physical state data refers to data that directly reflects the robot's hardware operating status or basic operational load, including but not limited to battery level, temperature, processor load, storage usage, pose, and movement speed. Specifically, the battery management module can output remaining battery power and power supply status; the temperature detection module can output the temperature values ​​of the main control board, drive unit, or computing unit; the resource detection module can output processor and storage usage rates; and the motion detection module can output current speed, attitude angle, and position change.

[0048] For example, the robot continuously collects five sets of battery data within one second: 29, 29, 28, 28, and 28. Simultaneously, it continuously collects five sets of temperature data: 45, 46, 45, 46, and 45. When processing this data within one second, a sliding window of length 5 can be used to calculate the average, setting the battery level at 28.4 and the temperature at 45.4. If any temperature reading abnormally jumps to 70, while the four adjacent readings are all between 45 and 46, this outlier can be considered invalid and discarded. This results in more stable physical state data that better reflects the robot's true physical state.

[0049] In other embodiments, physical state data can also be acquired using a threshold-triggered acquisition method. For example, when the battery level is below 30% or the temperature is above 50%, an encrypted sampling is immediately triggered to improve the accuracy of data acquisition when critical state changes occur. The embodiments of this application do not limit the specific implementation of physical state data.

[0050] Environmental perception data can be acquired by using the robot's onboard sensing devices to observe the surrounding environment and transform the raw observation results into data that represents the environmental state. Here, environmental perception data refers to the data generated after the robot identifies external space, obstacles, positional relationships, and scene features. This data can include scene category, obstacle distribution, current position, relative distance, and passage status. Specifically, a vision acquisition device acquires scene images, a ranging device acquires peripheral distance sampling values, a positioning device acquires the robot's coordinate position in the work area, and a posture detection device acquires orientation angle and posture change information.

[0051] For example, at a certain moment, the visual acquisition device outputs a scene image with a resolution of 1280×720, the ranging device simultaneously outputs 240 distance sample values ​​within a 3-meter range in front, and the positioning device outputs the robot's current position as (120, 80). Based on this, we can first identify that the current area belongs to the main passage based on the scene image, then count the 3 obstacles within a 1-meter range in front based on the 240 distance sample values, and finally combine this with the current position to form location data. After processing, we can obtain a set of environmental perception data, including the scene being identified as a main passage, the number of obstacles being 3, and the current position being (120, 80).

[0052] In other embodiments, the environmental perception results at multiple consecutive moments can be jointly analyzed. For example, the trend of change can be judged by analyzing 10 consecutive frames of scene images and corresponding distance sequences to obtain dynamic information such as whether the environment is becoming crowded or whether there are moving obstacles. This allows the environmental perception data to not only reflect the state at a certain moment, but also reflect the environmental change process over a period of time. The embodiments of this application do not limit the specific implementation of the environmental perception data.

[0053] Task context data can be obtained by reading the task description, scheduling information, and stage information of the robot currently executing the target task. Here, task context data refers to data characterizing the current execution context of the target task, including the target task type, task stage, currently executing instructions, pending instructions, stage switching information, and task-related parameters. Unlike the robot's own state and the external environment's state, the focus is not on describing the robot's or environment's state, but on describing what task the robot is executing and to what extent. Specifically, the task scheduling module can output the target task identifier, task start and end points, stage name, stage priority, and real-time control instructions in the current task queue. When a task enters a new stage, receives a new scheduling command, or the task parameters change, the task scheduling module can immediately refresh the corresponding data and send the refresh result to the data acquisition unit. In this way, the task context data can remain consistent with the progress of the target task, providing a direct basis for subsequently determining whether the functional container set needs adjustment.

[0054] For example, if the target task is a material handling task, the task stages sequentially include heading to the pickup point, loading, heading to the placement point, and unloading. When the robot has finished heading to the pickup point and started loading, the task scheduling module can output a set of task context data, where the target task type is a material handling task, the task stage is loading, the current execution instruction is docking station, the pending instruction is keep stationary, and the task-related parameter is cargo weight class 2. If the robot subsequently completes loading and heads to the placement point, the task scheduling module will update the task stage to heading to the placement point and simultaneously update the current execution instruction and the pending instruction. Therefore, the task context data can continuously reflect the progress of the target task.

[0055] In other embodiments, the task context data may also include recent historical task information, such as the times of the last three stage switches or the results of the last two control command adjustments, in order to more completely characterize the task execution process. The embodiments of this application do not limit the specific implementation of the task context data.

[0056] During the robot's execution of a target task, a set of functional containers operates internally to perform this task. Acquiring the robot's state data can further include associating and recording the state data with the current operational status of the functional container set. Here, the functional container set refers to the collection of multiple functional containers within the robot that are in operation and collectively perform the target task. Since the formation context of the state data is related to the actual operational status of the functional container set, simultaneously recording the type, quantity, and basic operational status of the currently running functional containers during state data acquisition helps ensure the completeness of the acquired results. The resulting state data not only possesses numerical and perceptual meaning but also corresponds to the current software operational structure, enabling subsequent processing to clearly identify the functional container configuration under which the current state data was generated.

[0057] For example, at a certain moment, the robot is operating its navigation, obstacle avoidance, and communication containers, and simultaneously collects data showing a battery level of 28, a temperature of 45, a primary channel for scene identification, and a "go" task phase. This state data, along with the data from the three currently operating containers, can be recorded to form a complete state data result. If, at a later moment, the obstacle avoidance container is replaced by another container, the new state data result will also be recorded corresponding to the new container's operational status.

[0058] The state data obtained through the above methods can truly reflect the overall operating status of the robot when performing the target task, and provide a unified, accurate and traceable data foundation for subsequent steps.

[0059] In other embodiments, different sampling frequencies can be set to meet the different real-time requirements of different functional containers. For example, the sampling frequency of environmental perception data can be increased during the movement phase, and the sampling frequency of some physical state data can be reduced during the stable dwell phase, so as to reduce data acquisition overhead while ensuring the validity of state data. The embodiments of this application do not limit the specific implementation of acquiring robot state data.

[0060] In step 102, the physical state data, environmental perception data, and task context data are fused to obtain a state vector.

[0061] In some embodiments, see Figure 4 , Figure 4 This is a second flowchart illustrating the container scheduling method for robots provided in this application embodiment. Figure 3 Step 102 can be executed Figure 4 Steps 1021 to 1023 are implemented, and the details are explained below.

[0062] In step 1021, invalid data is removed from the physical state data, environmental perception data, and task context data to obtain cleaned state data with timestamps for each data type.

[0063] In practice, removing invalid data from physical state data, environmental perception data, and task context data is a process of quality screening and validity correction of the original state data. Invalid data can include data exceeding preset statistical thresholds or confidence intervals, and data that fails checksum verification. Because different data sources may be affected by sensing errors, communication jitter, or instantaneous module load during robot operation, the original state data may contain abnormal content unsuitable for direct participation in subsequent fusion processing.

[0064] Specifically, corresponding validity judgment rules are set for different categories of data. For example, for electricity and temperature in physical state data, upper and lower limits can be set; for the current location coordinates in environmental perception data, it can be checked whether they fall within a preset working area; for the execution stage identifier in task context data, it can be checked whether it belongs to a predefined task stage set. Data that does not meet the judgment rules is directly removed, or, if alternative evidence is available, stable data from nearby times is used to supplement it. After cleaning and supplementing invalid data, the original sampling timestamps corresponding to each data stream are retained or rebound to generate cleaned state data with their respective timestamps.

[0065] By adopting the above methods, we can improve the consistency and reliability of data entering subsequent processing flows, avoid abnormal data from causing deviations in the state vector, and ensure that subsequent time-series alignment and fusion processing based on timestamps has an accurate time reference.

[0066] As an example, the robot obtained temperature data of 45, 46, 92, 45, and 46 in five consecutive samplings. The value of 92 clearly exceeds the robot's normal operating temperature range. Simultaneously, the current position coordinates in one environmental perception data set were recorded as (9999, 9999), significantly exceeding the working area. Furthermore, the execution phase identifier in another task context data set was null, failing to represent the current task state. In the method shown in step 1021, the temperature value of 92 and the coordinates (9999, 9999) can be determined as invalid data according to preset rules, and the null execution phase identifier can be identified as missing data.

[0067] For the first two cases, removal processing can be performed. For cases where the execution stage identifier is null but the stages before and after are consecutively consistent, the stage values ​​of adjacent valid times can be used for supplementation. After cleaning and supplementation, the timestamp information recorded during sampling of each valid data point is retained, thereby outputting the cleaned state data of each data point carrying its own timestamp. Through the above methods, the data entering the next step are all valid data or data that has been reasonably supplemented, thus avoiding abnormal values ​​from directly participating in subsequent time series correlation.

[0068] In other embodiments, invalid data removal can also be determined by considering data change trends, rather than being limited to whether a single sampled value falls within a threshold range. Specifically, the change amplitude of the same data item within multiple consecutive sampling periods is calculated. When a sampled value exhibits a discontinuous abrupt change compared to its adjacent sampled values, and this abrupt change does not conform to the actual operating state change pattern of the robot, it can be treated as invalid data.

[0069] For example, battery power typically decreases gradually. If it jumps from 28 to 75 and then back to 27 within 0.1 seconds, the intermediate value can be considered physically unreasonable. Similarly, the current position coordinates typically change continuously. If a displacement far exceeding the robot's maximum moving speed occurs between two adjacent samples, the coordinate can be considered invalid data. By introducing trend consistency determination, the stability of the cleaned state data can be further improved. This application does not limit the specific implementation of step 1021.

[0070] In step 1022, based on the timestamp, the cleaned state data belonging to the same time sequence node are associated and matched to obtain the time-aligned state data.

[0071] In practice, the process of unifying the time of multi-source state data involves associating and matching data belonging to the same time sequence node based on the timestamps carried by the cleaned state data. Here, a timestamp refers to the time marker used to identify the moment each data point was generated; the same time sequence node refers to a set of timestamps or a unified time reference point within a preset time tolerance range. Since the generation frequency and update time of physical state data, environmental perception data, and task context data are usually different, even if these data can all reflect the robot's state, they may correspond to slightly different moments. Without time alignment, the subsequently formed state vector may mix information from different time nodes, leading to inaccurate state representation.

[0072] Specifically, firstly, a unified method for generating time-series nodes is selected. For example, time-series nodes can be established based on fixed time intervals, or the sampling time of environmental perception data can be used as the baseline node. Then, the timestamps of each data point in the cleaned state data are read, and data with time differences within a preset tolerance range are matched to the same time-series node. If a certain type of data is missing in a node, it can be filled with data from the most recent valid time, or marked as missing and passed to subsequent template processing. Through the above method, the consistency of various feature values ​​entering step 1023 in time can be guaranteed.

[0073] As an example, a unified time-series node interval is set to 0.1 seconds, with 10.0 seconds as a target time-series node. The timestamps for the cleaned power data are 9.98 seconds, temperature data, current location coordinates, scene semantic identifier, and execution phase identifier, respectively. If the preset time tolerance is ±0.03 seconds, all five data points can be associated with the 10.0-second time-series node, forming complete time-aligned state data for that node. If a node fails to acquire a new execution phase identifier, but a valid execution phase identifier exists at 9.95 seconds and the task state has not changed, the 9.95-second execution phase identifier can be carried over to the 10.0-second node. Through this process, data from different sources are made to have a consistent correspondence in the time dimension.

[0074] In other embodiments, temporal alignment can also be processed using a priority matching method, using data that updates more frequently and is sensitive to state changes as the primary time reference. For example, the current position coordinate sampling time in the environmental perception data can be used as the reference node, and then the data closest to this reference node can be selected from the physical state data and task context data as the corresponding data. This makes the temporally aligned state data more closely reflect the changes in the external environment during the robot's actual movement. For task context data, which has strong phase changes but a relatively low update frequency, a phase preservation rule can also be set, that is, the identifier of the most recent valid execution phase is maintained until new phase switching information is detected. Through the above methods, the adaptability of state data fusion can be improved while ensuring time consistency. The embodiments of this application do not limit the specific implementation of temporal alignment.

[0075] In step 1023, according to the preset data structure template, the feature values ​​of each dimension contained in the time-aligned state data are serialized and spliced ​​to obtain the state vector.

[0076] In some embodiments, step 1023 can be implemented by the following method: extracting the energy state value and hardware load value belonging to the robot from the time-aligned state data as the first feature value; extracting the current position coordinates and the semantic identifier of the scene from the time-aligned state data as the second feature value; extracting the execution stage identifier from the time-aligned state data as the third feature value; and writing the first feature value, the second feature value, and the third feature value into the corresponding dimensions of the data structure template to obtain the state vector.

[0077] Here, the data structure template refers to the pre-defined structural rules that specify the arrangement, data type, and dimensional order of various state features in the state vector; serialization concatenation refers to writing the feature values ​​of different categories into a unified one-dimensional or multi-dimensional expression structure in a pre-defined order.

[0078] In practice, since subsequent processing usually requires the input data to have a fixed format, it is necessary to transform the time-aligned state data into a state vector with a consistent structure. First, the energy state values ​​and hardware load values ​​belonging to the robot are extracted from the time-aligned state data as the first feature values. Here, the energy state values ​​can include battery level, and the hardware load values ​​can include processor load values, storage usage values, or other values ​​representing the degree of computing resource consumption.

[0079] Then, the current position coordinates and the semantic identifier of the scene are extracted from the time-aligned state data and used as the second feature value. Here, the current position coordinates are used to represent the robot's spatial position in the work area, and the semantic identifier of the scene is used to represent the category attribute of the robot's current environment, such as the main passage, the work area, or the waiting area.

[0080] Next, the execution stage identifier is extracted from the time-aligned state data and used as the third feature value. Here, the execution stage identifier is used to characterize the stage to which the target task has progressed. Finally, the first, second, and third feature values ​​are written into the corresponding dimensions of the data structure template to obtain the state vector. Through this classification extraction and targeted writing method, it can be ensured that the different dimensions within the state vector correspond to the robot's physical state, environmental state, and task state, respectively, thus giving the state vector a clear semantic structure.

[0081] As an example, at a certain time point, the time-aligned state data shows a battery level of 25, a processor load of 68, a current position coordinate of (210, 95), a scene semantic identifier of a sorting station, and an execution stage identifier of precise docking. Assuming the preset data structure template specifies: the first dimension contains the battery level, the second dimension contains the processor load, the third dimension contains the horizontal coordinate, the fourth dimension contains the vertical coordinate, the fifth dimension contains the value corresponding to the scene semantic identifier, and the sixth dimension contains the value corresponding to the execution stage identifier. It is agreed that the value corresponding to the sorting station is 5, and the value corresponding to precise docking is 4. Then, the final state vector can be represented as [25, 68, 210, 95, 5, 4]. When the robot moves to a new position or the task enters a new execution stage at subsequent times, the corresponding dimension values ​​will change, ensuring that the state vector continuously reflects the robot's current state.

[0082] In other embodiments, the data structure template can be further expanded to accommodate more data dimensions from step 101, without changing the basic processing logic of first extracting, then writing, and finally forming a state vector. For example, a temperature value or storage occupancy value can be added to the first feature value, an obstacle quantity or passage status value can be added to the second feature value, and a pending instruction value can be added to the third feature value. At this time, by expanding the number of dimensions of the data structure template and adjusting the arrangement order of each dimension accordingly, a state vector containing more state information can be obtained. Regardless of how the number of template dimensions changes, as long as the position of each dimension maintains the preset rules, the state vector can maintain structural stability, which facilitates the unified processing of robot states at different time points. The embodiments of this application do not limit the specific implementation of serialization splicing.

[0083] The above method progressively transforms raw state data into state vectors. First, invalid data is removed to improve state data quality. Then, temporal alignment eliminates time discrepancies between data from different sources. Finally, a unified representation is achieved using a data structure template, enabling the state vectors to accurately, completely, and systematically represent the robot's comprehensive state during the execution of the target task. Based on physical state data, environmental perception data, and task context data, and without relying on additional external state descriptions, the resulting state vectors have a direct correspondence with the robot's actual operating state, which improves the accuracy and consistency of subsequent analysis based on state vectors.

[0084] See also Figure 3 In step 103, the state vector is compared based on a preset rule base, and a set of container operation instructions for the functional container set is generated based on the comparison results.

[0085] Here, the container operation instruction set contains at least one container operation instruction, which indicates the target container and the corresponding operation type. The preset rule base can be a set of rules pre-configured before the robot is put into operation, based on the target task scenario, the composition of the functional container set, and the container management requirements. It is a data set containing multiple state triggering conditions and their corresponding target container scheduling strategies.

[0086] In some embodiments, step 103 can be implemented by the following method: comparing the feature values ​​of each dimension contained in the state vector with the state triggering conditions in the preset rule base to obtain the comparison result; if the comparison result indicates that the feature values ​​of each dimension meet the target state triggering condition, determining the target container scheduling strategy corresponding to the target state triggering condition in the preset rule base; generating the container operation instruction according to the target container scheduling strategy, and adding the container operation instruction to the container operation instruction set.

[0087] In practical implementation, the robot's requirements for functional containers vary under different operating states. Therefore, the pre-defined rule base needs to be constructed around the correspondence between state changes and container scheduling. The pre-defined rule base sets rule items for different operating scenarios. Each rule item includes a state trigger condition and a target container scheduling strategy. The state trigger condition determines whether the current state vector meets the trigger requirements, while the target container scheduling strategy determines which operation should be performed on which target container after the requirements are met. The state trigger condition refers to the judgment condition made on the value range, value relationship, or combination state of one or more dimensional feature values ​​in the state vector; the target container scheduling strategy refers to the predefined processing scheme of what scheduling action should be performed on the target container in the functional container set when a certain state trigger condition is met.

[0088] As an example, the preset rule base may include the following rule items: Rule item 1's state trigger condition is a battery level less than 30%, its scene semantic identifier corresponds to the main channel, its execution stage identifier corresponds to the forward stage, its target container scheduling strategy is to unload the high-load navigation function container and load the lightweight navigation function container, and its operation priority is high; Rule item 2's state trigger condition is its scene semantic identifier corresponds to the sorting area, its execution stage identifier corresponds to the precise docking stage, its target container scheduling strategy is to unload the lightweight navigation function container and load the visual servo function container and the robotic arm operation function container, and its operation priority is the highest. When step 103 is executed, the state vector can be compared sequentially with rule item 1, rule item 2, and other rule items in the preset rule base to determine whether there is a matching target state trigger condition under the current time node.

[0089] Specifically, the numerical values ​​of each dimension of the feature vector contained in the state vector are compared with the various state triggering conditions in the preset rule base to establish a one-to-one correspondence between the state vector and the rule conditions. Since the numerical values ​​of each dimension of the feature vector correspond to different types of state information, when performing the comparison, the corresponding dimension in the state vector can be read according to the condition requirements of each rule item in the preset rule base, and numerical comparison, interval judgment, equality judgment, or combination condition judgment can be performed.

[0090] For energy status values, a comparison can be performed to determine if they are below a preset threshold; for hardware load values, a comparison can be performed to determine if they are above a preset threshold; for current location coordinates, a determination can be performed to determine if they are within a specific area; for the scene semantic identifier and execution stage identifier, a determination can be performed to determine if they are consistent with a specified category. Only when all state triggering conditions corresponding to a certain rule item are met can it be determined that the current state vector meets the triggering requirements of that rule item.

[0091] The above ensures that the comparison results are directly derived from the standardized feature values ​​of each dimension in the state vector, providing a clear input basis for the rule determination process.

[0092] For example, suppose the current state vector is [25, 68, 210, 95, 5, 4], where the battery level is 25, the hardware load is 68, the current location coordinates are (210, 95), the semantic identifier of the current scene is 5, and the execution stage identifier is 4. If a rule requires the battery level to be less than 30, the semantic identifier of the current scene corresponds to the sorting area, and the execution stage identifier corresponds to the precise docking stage, then the 1st, 5th, and 6th dimensions can be extracted sequentially according to the state vector dimensions and judged respectively. If the preset mapping relationship shows that the value 5 corresponds to the sorting area and the value 4 corresponds to the precise docking stage, then all three conditions can be judged to be true, and the matching result of the rule item is successful.

[0093] If another rule requires a hardware load value greater than 80 and the current position coordinates to be within the waiting area, then since the current hardware load value is 68 and the current position coordinates are not within the waiting area, this rule can be determined to be invalid. After comparing multiple rules in the preset rule base, the matching results between the current state vector and each state triggering condition can be obtained.

[0094] In other embodiments, when comparing state vectors, a rule-priority matching mechanism or a multi-condition combination judgment mechanism can be set, which is not limited to sequential traversal of all rules. First, the range of candidate rules is narrowed down based on the value of a key dimension feature in the state vector. For example, rule items related to the current task stage are filtered out based on the execution stage identifier. Then, within the range, the energy status value, hardware load value, and semantic identifier of the scene are compared. Alternatively, multiple dimension feature values ​​can be combined to form composite judgment conditions to improve the targeting of rule triggering.

[0095] For example, when the battery level is below 30% but the execution phase is in a high-precision operation phase, energy-saving rules can be avoided, and the high-precision functional container configuration can be maintained first. This approach makes the rule comparison in step 103 more aligned with the robot's actual management needs during the target task execution process. This application does not limit the specific implementation of the state vector comparison.

[0096] Furthermore, if the comparison results indicate that the feature values ​​of each dimension meet the target state triggering condition, the target container scheduling strategy corresponding to the target state triggering condition in the preset rule base is determined. Here, the target state triggering condition refers to the specific judgment benchmark hit when the feature values ​​in the state vector match the logical threshold in the preset rule base; the target container scheduling strategy refers to the container management strategy pre-bound to the target state triggering condition.

[0097] Since each rule in the pre-defined rule base has a pre-established correspondence between state conditions and container scheduling behavior, once the target state trigger condition is determined, the associated target container scheduling policy can be directly read from the pre-defined rule base without re-deriving the container management scheme at runtime. This allows for rapid formation of a clear container scheduling decision when a rule is matched, reducing the uncertainty in the conversion of state judgment results into container operation results. Specifically, the target container scheduling policy is designed as a policy structure that includes the target container identifier, operation type, and operation priority. When multiple rule items match simultaneously, the final effective target container scheduling policy can be determined based on operation priority or rule priority.

[0098] For example, if the comparison result shows that the current state vector meets the target state triggering condition of "battery value less than 30, the scene semantic identifier corresponds to the main channel, and the execution stage identifier corresponds to the forward stage", then the target container scheduling strategy corresponding to this condition can be read from the preset rule base. For example, the target containers are a high-load navigation function container and a lightweight navigation function container, the operation types are container unloading and container loading, and the operation priority is high. If there is another matching rule at the same time, whose target container scheduling strategy is that the target container is a communication function container, the operation type is container unloading, and the operation priority is medium, then the high-priority strategy can be determined first according to the operation priority, and then the medium-priority strategy can be retained synchronously based on the settings. By mapping the target state triggering condition directly to the target container scheduling strategy in this way, it can be ensured that the container scheduling result has a clear rule basis.

[0099] In other embodiments, the target container scheduling strategy may also include sequential or parallel relationships between multiple target containers to adapt to the execution needs of the functional container set during the adjustment process. For example, one target container scheduling strategy may specify that one target container is unloaded first, and then another target container is loaded; another target container scheduling strategy may specify that two target containers are loaded simultaneously. In this way, when generating container operation instructions subsequently, not only can the operation objects and operation types be clearly defined, but the implicit sequential execution requirements within the strategy can also be preserved.

[0100] Next, based on the target container scheduling strategy, container operation instructions are generated, which include the target container, operation type, and operation priority. This process transforms the rule determination results into standardized execution information. Here, container operation instructions refer to structured instruction information used to instruct how the set of functional containers should be adjusted; the target container refers to the functional container that needs to have management actions performed; the operation type refers to the category of container operation to be performed on the target container; and the operation priority refers to the priority level used to determine the order of processing when there are multiple container operation tasks.

[0101] Since subsequent steps require specific container management actions based on clearly defined instructions, the target container scheduling policy is transformed into container operation instructions with a clear format and complete fields. These generated container operation instructions are then added to a container operation instruction set for unified instruction scheduling and set management in subsequent steps. Target container information, operation type information, and operation priority information are written sequentially according to a preset instruction format. When the target container scheduling policy involves multiple target containers, multiple container operation instructions can be generated, or a single set of container operation instructions containing multiple operation units can be generated.

[0102] The above methods enable the rule base output to be executable, providing direct input for subsequent specific management operations around the target container.

[0103] For example, if the target container scheduling strategy specifies unloading a high-precision obstacle avoidance container and loading a lightweight navigation container with high priority, then two container operation instructions can be generated. The first instruction can include: the target container is a high-precision obstacle avoidance container, the operation type is container unloading, and the operation priority is high. The second instruction can include: the target container is a lightweight navigation container, the operation type is container loading, and the operation priority is high. These two instructions are then added to the container operation instruction set. If the target container scheduling strategy specifies "unloading a lightweight navigation container and loading a visual servoing container and a robotic arm operation container with the highest priority," then three more container operation instructions can be generated. The first instruction corresponds to container unloading, and the second and third to container loading, all marked with the highest priority. These three instructions are then added to the container operation instruction set. This resulting container operation instruction set contains instructions that clearly indicate which target containers should be processed and what operations should be performed in subsequent processing stages, making the output directly applicable.

[0104] In other embodiments, when generating container operation instructions, control parameters related to the operation type can be attached, but this does not change the fundamental content of the container operation instructions indicating the target container and the corresponding operation type. For example, for container unloading instructions, a confirmation wait flag, an execution order flag, or a dependency check flag can be attached; for container loading instructions, the container image identifier corresponding to the target container, resource allocation parameters, or a startup order flag can be attached. While maintaining the stability of the core structure of the container operation instructions, subsequent execution processes can obtain more complete operational basis. Regardless of whether other parameters are attached, container operation instructions should at least clearly specify the target container and the corresponding operation type, and be summarized according to rules to form the container operation instruction set, thereby meeting the basic functional requirements.

[0105] By comparing state vectors according to rules, determining target container scheduling strategies, generating container operation instructions, and constructing a container operation instruction set, a direct conversion from the robot's overall state to functional container set management actions is achieved. Using the state vectors obtained in previous steps as unified input, a preset rule base as the judgment basis, and the target container scheduling strategy as the intermediate decision result, the final output is a container operation instruction set oriented towards the functional container set. This enables the robot to generate container management results with clearly defined target containers, operation types, and operation priorities based on its current operating state during the execution of target tasks. This helps ensure that container management behavior is consistent with the robot's physical state data, environmental perception data, and task context data, improving the pertinence, standardization, and executability of the functional container set adjustment process.

[0106] In some embodiments, after step 103, a scheduling queue for triggering container operation instructions is established by means of the following method: when multiple container operation instructions contained in the container operation instruction set conflict, the operation priority corresponding to each container operation instruction is determined according to the target container scheduling strategy; based on the order of operation priority from high to low, a scheduling queue is established for each container operation instruction, so as to trigger the dependency check or container instance loading of each target container in sequence according to the scheduling queue.

[0107] In practice, since the generated container operation instructions may include multiple target containers, different operation types, and corresponding operation priorities, the functional container set may simultaneously receive multiple container operation instructions to be executed at the same time point. When there is no resource contention, execution order dependency, or operation result conflict among these container operation instructions, they can directly enter subsequent processing according to a predetermined method. However, when multiple container operation instructions simultaneously point to interrelated target containers, or when multiple container operation instructions compete for limited computing or storage resources, failure to constrain the execution order may lead to mismatches in subsequent dependency checks on target containers or container instance loading processes. Therefore, it is necessary to further perform conflict identification and sequencing on the generated container operation instructions to form a scheduling queue suitable for sequential triggering, ensuring that multiple container operation instructions enter the subsequent processing flow in an orderly manner under unified rules.

[0108] As an example, at a certain moment, three container operation instructions are generated: the target container is a lightweight navigation function container, the operation type is container unloading, and the operation priority is medium; the target container is a vision processing function container, the operation type is container loading, and the operation priority is high; the target container is a robotic arm control function container, the operation type is container loading, and the operation priority is highest. If the robot's currently available computing resources can only support the immediate execution of a portion of the operations, and the loading order of the vision processing function container and the robotic arm control function container will affect the subsequent operation structure, then after step 103, the resource competition relationship and execution association relationship among the three container operation instructions can be identified first, and then a scheduling queue can be formed based on the operation priority and association results.

[0109] For example, the container operation instructions for the robotic arm control function container can be placed first, the container operation instructions for the vision processing function container second, and the container operation instructions for the lightweight navigation function container third. In this way, multiple container operation instructions are no longer in a parallel pending execution state, but instead enter a clearly ordered scheduling queue to wait for sequential triggering.

[0110] When multiple container operation instructions conflict, their operation priorities can be determined first based on the target container scheduling policy. Here, conflict refers to a situation where multiple container operation instructions cannot unconditionally enter subsequent processing simultaneously within the same execution window. Conflicts can manifest as dependencies between target containers, multiple operation types competing for the same resources, or the execution result of one container operation instruction affecting the execution prerequisites of another. Operation priority characterizes the order of processing of each container operation instruction in the current scheduling scenario.

[0111] Specifically, the target container field, operation type field, and operation priority field of each container operation instruction in the generated container operation instruction set can be read first. Then, based on the association between target containers and the availability of resources, conflicting instruction sets can be identified. For the identified conflicting instruction sets, the operation priority corresponding to each container operation instruction can be extracted according to the target container scheduling policy, serving as the basic parameter for subsequent sorting processing. By first identifying conflicts and then extracting operation priorities, the scheduling queue can be established based on clearly defined processing objects, avoiding unnecessary order restrictions on container operation instructions that do not inherently conflict.

[0112] After extracting the operation priorities from each container operation instruction, a scheduling queue can be established for each container operation instruction based on the order of operation priorities from high to low. This allows for the sequential triggering of dependency checks or container instance loading for each target container according to the scheduling queue. Here, the scheduling queue refers to a sequence of container operation instructions arranged according to a preset sorting rule, used to limit the order in which multiple container operation instructions enter subsequent execution stages.

[0113] Specifically, all pending container operation instructions are divided into multiple levels according to their operation priority, and then written into a queue in descending order of priority. For container operation instructions with the same operation priority, the internal order within the same level can be further determined by considering factors such as generation time, target container association, or resource release requirements.

[0114] Once the scheduling queue is established, the container operation instruction at the head of the queue is prioritized for subsequent processing: when the operation type of the instruction corresponds to container unloading, a dependency check on the corresponding target container is triggered; when the operation type corresponds to container loading, preparation for loading the container instance based on the container image corresponding to the target container is triggered. After the current container operation instruction completes its processing, the next container operation instruction in the queue is then triggered. Through this method, multiple container operation instructions can enter the subsequent execution process one by one under a unified sorting constraint, ensuring a clear overall processing order and consistent workflow.

[0115] As an example, if there are 5 container operation instructions in the container operation instruction set at a certain time, with operation priorities in the order of highest, high, medium, high, and low, a scheduling queue can be established first according to the operation priority from high to low, forming an order of highest, high, high, medium, and low. If the first container operation instruction corresponds to a target container of robotic arm operation function and the operation type is container loading, then the container instance loading process for that target container is triggered first. If the second container operation instruction corresponds to a target container of lightweight navigation function and the operation type is container unloading, then after the first container operation instruction is completed, the dependency check for that target container is triggered. If the dependency check result shows that the target container has no dependency, then the subsequent termination process is entered. And so on, each container operation instruction in the scheduling queue is triggered one by one in a predetermined order, so that the subsequent processing is consistent with the operation priority output in step 103.

[0116] In other embodiments, when establishing a scheduling queue based on the order of operation priority from high to low, auxiliary sorting rules can be added to container operation instructions with the same operation priority to improve the matching degree between the scheduling queue and subsequent processing logic. For example, among multiple container operation instructions with the same operation priority, container unloading instructions that can release resources can be prioritized, followed by container loading instructions that require resources; alternatively, container operation instructions corresponding to target containers directly related to critical task phases can be prioritized. Without changing the primary sorting rule for operation priority, this application embodiment aims to make the scheduling queue more conducive to the continuous execution of subsequent dependency checks and container instance loading. The specific method of establishing the scheduling queue is not limited in this application embodiment.

[0117] By employing the above method, and based on the clearly defined target container and operation type of the container operation instructions, the execution relationships between multiple container operation instructions are further standardized and organized. By identifying conflicts, extracting operation priorities, and establishing a scheduling queue, the subsequent execution of dependency checks or container instance loading for each target container has a clear order, reducing execution conflicts that may occur when multiple container operation instructions are triggered concurrently, and improving the sequential consistency and execution stability when processing a set of functional containers continuously.

[0118] In step 104, if the operation type is container unload, a dependency check is performed on the target container. If the target container has no dependencies, the target container is terminated.

[0119] Here, the robot has a pre-set storage unit deployed inside to save its operating status.

[0120] In some embodiments, step 104 can be implemented by: obtaining the associated dependency record of the target container in the functional container set; if the associated dependency record indicates that there is no dependency relationship for the target container, obtaining the current internal running parameters of the target container; writing the internal running parameters to a preset storage unit; and terminating the running process of the target container and releasing the target container from occupying the corresponding computing resources after the internal running parameters have been written.

[0121] In practice, since the target containers in the functional container set do not run completely in isolation, some target containers may have calling relationships, data subscription relationships, or functional support relationships. Therefore, when performing container unloading, the running process of the target container cannot be directly terminated. It is necessary to first confirm whether the target container is still used by other target containers. After confirming that there are no dependencies, the current running state of the target container needs to be preserved before performing termination and resource release processing. This ensures that the container unloading process has clear preconditions and continuous execution logic. This transforms container operation instructions of type container unloading into an ordered unloading execution process, avoiding the impact on the overall operational stability of the functional container set due to directly terminating the target container.

[0122] Obtaining the dependency records corresponding to the target container within the functional container set is to determine whether any dependencies exist for the target container. Here, dependency records refer to data records that characterize the relationships between various target containers within the functional container set. These relationships can be manifested as interface call relationships, message subscription relationships, data sharing relationships, or execution support relationships. Because target containers play different roles within the functional container set, some target containers may act as basic processing units providing input results to other target containers, while others may depend on data provided by other target containers to maintain normal operation.

[0123] Upon receiving a container operation instruction of type container uninstallation, the system first reads the associated dependency records corresponding to the target container and checks whether the target container is currently marked as a dependency object by other target containers. Specifically, the runtime management module of the functional container set maintains a dependency table, which records the upstream and downstream associated objects of each target container. During execution, the system directly retrieves the record content of the target container in the dependency table to determine whether a dependency relationship exists for the target container, thus establishing a clear basis for dependency judgment before container uninstallation.

[0124] Assume the current set of functional containers includes a basic navigation container, a chassis control container, a basic perception container, and a high-precision obstacle avoidance container. The high-precision obstacle avoidance container provides obstacle update information to the basic navigation container, while the chassis control container only receives control results from the basic navigation container. In this case, if the dependency table records "the basic navigation container depends on the high-precision obstacle avoidance container," then when the high-precision obstacle avoidance container is identified as the target container, its dependency relationship can be directly identified from the dependency records, preventing immediate entry into the subsequent termination process. If the current basic navigation container has been switched to a lightweight navigation functional container, and the dependency table is updated to "the lightweight navigation functional container does not depend on the high-precision obstacle avoidance container," then the dependency records indicate no dependency on the high-precision obstacle avoidance container, and the target container can proceed to the next processing stage.

[0125] In other embodiments, the acquisition and determination of dependency records can also be combined with the real-time connection status of the target containers. Although some target containers may have potential dependencies based on preset relationships, an actual call chain may not be established at a specific moment. Therefore, after reading the dependency records, it can be further checked whether there are still active data subscriptions, interface calls, or shared resource occupancy relationships. If the static dependency records show a dependency relationship, but the real-time connection status indicates that the relationship is not currently activated, the target container can be considered as having no actual dependency relationship. Conversely, if both the static records and the real-time connection status indicate a dependency relationship, the target container should be prevented from entering the termination process. By combining record determination with real-time status determination, the consistency between the dependency check results and the current running status of the functional container set can be further improved.

[0126] When the dependency record indicates that there is no dependency on the target container, obtaining the target container's current internal runtime parameters is to preserve its current runtime state before the target container exits. Here, internal runtime parameters refer to data content that can characterize the internal state of the target container's runtime process, which may include the target container's current configuration parameters, intermediate processing results, task progress parameters, path data, cache data, or other runtime parameter data involving stack state, register context, or configuration files.

[0127] Since the target container may have generated internal data closely related to its current running state during the execution of the target task, if this data is not retained before unloading, it may not be possible to restore the running state before unloading when creating a new container instance. Therefore, after confirming that the target container has no dependencies, the runtime management module can send a runtime parameter export request to the target container. This allows the target container to output its currently valid internal runtime parameters before terminating its operation and organize these parameters into a writable data structure, thus preserving the necessary state foundation for any subsequent container reloading.

[0128] As an example, when the target container is a high-precision obstacle avoidance container, its internal operating parameters may include the current obstacle list, local environment cache data, obstacle avoidance calculation parameters, and short-term path correction results corresponding to this round of tasks; when the target container is a navigation-related target container, its internal operating parameters may include the path segment associated with the current location, positioning correction parameters, and the current target point index.

[0129] Assuming that the high-precision obstacle avoidance container contains the positions of 7 dynamic obstacles, a set of local path correction parameters, and the current processing cycle number 128 when it is ready to unload, then in step 104, the aforementioned internal operating parameters can be exported from the target container to form a set of parameters to be written, and then proceed to the subsequent writing process. In this way, even if the target container is subsequently terminated, the key operating status can still be preserved in data form.

[0130] The internal operating parameters are then written to a preset storage unit to ensure the persistent storage of the operating state exported before the target container is unloaded. The preset storage unit refers to the data storage location used to save the internal operating parameters of the target container. This can be a local storage area accessible within the robot or a persistent storage area shared by a collection of functional containers. Specifically, based on the type of the target container and the current task scenario, corresponding storage identifiers and storage locations are assigned to the internal operating parameters. The acquired internal operating parameters are then encapsulated according to a preset format and written to the preset storage unit. To ensure recognizability during subsequent readings, the target container identifier, writing time, parameter category, and parameter version information can be recorded simultaneously during writing. The internal operating parameters of the target container no longer exist solely in the memory space of the running process but are transformed into persistent data that can be accessed and restored during subsequent processing, enhancing the continuity of the state during the container unloading process.

[0131] Continuing with the example above, if the target container currently exports a total of 12 data items, including obstacle location data occupying 4 fields, path correction parameters occupying 3 fields, task progress parameters occupying 2 fields, and the remaining 3 fields used to record configuration parameters, then these 12 data items can be organized into a set of structured records according to the preset format and written to the corresponding storage area of ​​the target container in the preset storage unit.

[0132] For example, the target container name, write time (11.2 seconds), total number of parameters (12), and the values ​​of each parameter can be stored in a specified storage location. When the container instance corresponding to the target container needs to be loaded again later, the state can be restored based on the stored content.

[0133] In other embodiments, the process of writing internal operating parameters to a preset storage unit may further include write completion verification to confirm the integrity of the write result. After the write is completed, the number of fields, data length, or verification flags of the written data are verified. Only when the verification result meets preset requirements is the target container allowed to enter the termination phase; if the verification result does not meet the preset requirements, the write can be re-executed, or the current container unloading can be postponed. By adding verification processing after the write, the loss of the target container's operating state due to incomplete writes can be reduced, ensuring the availability of internal operating parameters upon which subsequent processing depends.

[0134] Once the internal runtime parameters have been written, the actual unloading execution phase involves terminating the target container's running process and releasing the target container from its occupation of the corresponding computing resources. Here, terminating the target container's running process means ending the running task corresponding to the target container and stopping its further execution; releasing the target container from its occupation of the corresponding computing resources means releasing the processor resources, storage resources, or other runtime resources currently occupied by the target container, so that these resources can be reused by other target containers in the functional container set.

[0135] Since the target container's internal runtime parameters have been written and dependency checks indicate that the target container has no dependencies, a stop execution command can be sent to the target container to wait for its process to exit. After the process exits, the resource usage status is updated. First, the target container's orderly stop process is triggered. Once it is confirmed that the target container is no longer responding to the runtime scheduler, the resource management module reclaims its occupied processor time slices, storage space, or other reserved resources. This ensures that container unloading not only manifests as the stopping of the running process but also as the actual release of computing resources, providing resource conditions for the subsequent operation of other target containers.

[0136] As an example, if a target container occupies 2 processor execution quotas, 512 megabytes of storage space, and 1 graphics processing unit scheduling quota before termination, a termination command can be sent to the target container after the internal running parameters are written. Once the termination of its process is confirmed, the aforementioned 2 processor execution quotas, 512 megabytes of storage space, and 1 graphics processing unit scheduling quota can be adjusted from an occupied state to an allocable state. If the functional container set subsequently needs to load new target containers, these released computing resources can then be reallocated and used.

[0137] In other embodiments, the termination of the target container's running process can also employ a phased exit approach to reduce the impact on the current running structure of the functional container set. First, the target container stops receiving new input data, then waits for it to complete the data calculations currently in the processing stage, and finally executes the final exit. This avoids the target container being forcibly interrupted mid-process, resulting in incomplete results. After exiting, the target container's occupation of the corresponding computing resources is uniformly released. Regardless of whether a direct stop or phased exit approach is used, as long as the termination and resource occupation are released when the target container has no dependencies and its internal running parameters have been written, the purpose of step 104 can be achieved.

[0138] Through the aforementioned methods, including dependency checks, acquisition of internal operating parameters, writing to a preset storage unit, and termination of operation and release of resource occupation, the target container with the operation type of container unloading can exit the functional container set when the preconditions are met. First, it is confirmed whether the target container meets the unloading conditions; then, the running state of the target container before exiting is preserved; finally, the operation is terminated and resources are released. This ensures that the container unloading process is logically complete and that the exit result of the target container is consistent with the current operating requirements of the functional container set.

[0139] In step 105, if the operation type is container loading, a new container instance is created based on the container image of the target container, and the new container instance is loaded into the functional container set.

[0140] In some embodiments, step 105 can be implemented by: allocating corresponding computing resources to the new container instance, and creating a new container instance in the allocated computing resources based on the container image; reading the internal operating parameters associated with the target container from the preset storage unit; writing the internal operating parameters into the new container instance, and loading the new container instance after writing the internal operating parameters into the functional container set.

[0141] In practice, after generating container operation instructions of type container loading, or after establishing a scheduling queue to trigger container operation instructions, instance reconstruction and access processing are performed on the target containers that need to be loaded. Since the target containers in the functional container set are not always fixed in operation but are dynamically adjusted according to the robot's current state, when a target container is determined to need to re-enter the functional container set, it cannot simply be recorded using its identifier as an abstract record. Instead, the target container needs to be re-established as a runnable instance and effectively connected to the robot's current operating environment.

[0142] Therefore, it is necessary to first provide the basic conditions required for the new container instance to run, then create the new container instance based on the container image corresponding to the target container, and then restore its running state by combining the pre-saved internal running parameters. Finally, the new container instance is incorporated into the functional container set. This transforms container operation instructions of the operation type of container loading into a specific instance creation and running access process, ensuring that the target container can participate in the execution of the target task again.

[0143] Allocating corresponding computing resources to a new container instance and creating a new container instance based on the container image within those allocated computing resources is the fundamental process for transforming a target container from a static image description into an actual running unit. Here, computing resources refer to processor resources, storage resources, cache resources, or other computing resources used to support the operation of the new container instance; a container image refers to the data carrier used to describe the target container's runtime environment, program files, and basic configuration; and a new container instance refers to the target container entity created based on the container image and capable of entering a running state.

[0144] Since different target containers have different runtime requirements, before creating a new container instance, appropriate computing resources can be allocated to it based on its functional type, resource requirement level, and current available resources. Specifically, the target container information corresponding to the container operation instructions is read to determine the required computing resource quota. Then, the resource management module completes resource allocation within the currently available resource range. Afterward, the container image corresponding to the target container is invoked, and the new container instance creation process is executed within the allocated computing resources. This ensures that the new container instance has a basic runtime environment at the time of creation, avoiding resource shortages during the functional container collection integration phase.

[0145] As an example, if the target container is a visual servo control container, and its operating requirements include 2 processor execution quotas, 1024 megabytes of storage space, and 1 graphics processing unit scheduling quota, the resource management module can first check the current released and allocable resources.

[0146] Assuming the robot currently has 4 processor execution quotas, 2048 megabytes of storage space, and 1 graphics processing unit (GPU) scheduling quota available, we can first allocate 2 processor execution quotas, 1024 megabytes of storage space, and 1 GPU scheduling quota to the new container instance. After resource allocation, we then call the container image corresponding to the visual servo control container and build the new container instance within the allocated computing resources. At this point, the new container instance has the basic environment required for operation, but it has not yet been integrated with the current target task's running state. Therefore, we still need to continue with subsequent internal running parameter restoration processing.

[0147] The process of allocating computing resources to new container instances can be adjusted based on the resource occupancy of the current functional container set and the operation priority in container operation instructions, rather than being limited to a fixed quota allocation method. When multiple container operation instructions of the operation type "container loading" are executed simultaneously, computing resources can be allocated to target containers with higher operation priority first. For target containers with high resource requirements but insufficient remaining resources, basic runtime resources can be allocated first, allowing the new container instance to complete basic creation, and then supplementing the allocation of extended resources during subsequent operation. This maintains consistency with the sequential control of the preceding scheduling queue, improving the connection between the new container instance creation process and the overall container management process.

[0148] Then, the internal runtime parameters corresponding to the target container are read from the preset storage unit. This is to ensure that the new container instance can be restored to a runtime state that matches the current target task after creation. Here, the preset storage unit can be a local storage area or a shared storage area used to save the internal runtime parameters from the previous steps. The internal runtime parameters refer to the data content formed and retained by the target container during previous execution, which may include configuration parameters, environment parameters, task progress parameters, intermediate processing results, or other data related to subsequent continued execution.

[0149] Since new container instances, when created from a container image, typically only possess the initial runtime environment and do not directly contain the actual task state before the target container was unloaded, to enhance the continuity between the new container instance and the current task process, the internal runtime parameters corresponding to the target container can be searched and read from a pre-defined storage unit after the new container instance is created. Based on the target container identifier, parameter write time, or parameter version information, matching records are retrieved from the pre-defined storage unit, and the retrieved internal runtime parameters are read out to form a set of parameters to be restored. This ensures that the new container instance has the input basis to receive historical runtime states before subsequent loading.

[0150] As an example, if the target container is a lightweight navigation function container, and the preset storage unit has already saved the internal operating parameters corresponding to the target container, including 3 sets of path segments associated with the current location, 1 set of map local update data, 2 items of task progress parameters, and 4 items of configuration parameters, then after the new container instance is created, the corresponding storage record is retrieved according to the target container identifier, and the above 10 items of internal operating parameters are read.

[0151] For example, if the target container is a robotic arm operation container, the corresponding internal operating parameters may include grasping position parameters, current action stage parameters, and end effector execution status parameters. When a new container instance is created, the parameters can also be read by retrieving the corresponding storage record of the target container. In this way, the read results can directly serve the subsequent state restoration of new container instances.

[0152] In other embodiments, the process of reading the internal operating parameters corresponding to the target container from the preset storage unit may also include parameter validity verification to ensure that the data written to the new container instance is consistent with the current operating requirements. After reading, the generation time, completeness, and version of the internal operating parameters are checked; if the internal operating parameters are consistent with the container image version of the current target container and the fields are complete, the process of writing to the new container instance is then initiated; if the corresponding internal operating parameters are found to be missing, outdated, or incompatible with the current container image version, only the compatible parameter content can be read, or the default initial parameters of the new container instance can be used to supplement them.

[0153] Writing internal runtime parameters into a new container instance and then loading the new container instance with the written internal runtime parameters into the functional container set constitutes the state recovery and runtime access phase. Here, writing internal runtime parameters into a new container instance means importing the target container's historical runtime state data, read from a preset storage unit, into the new container instance, allowing the new container instance to logically inherit some of the target container's previous runtime state. Loading the new container instance into the functional container set means integrating the new container instance into the runtime structure of the functional container set and establishing corresponding data interaction and scheduling relationships with other running target containers.

[0154] Specifically, according to preset parameter mapping rules, each field in the internal runtime parameters is written into the configuration area, cache area, or state area corresponding to the new container instance. After writing is complete, the interface connection, message subscription, or data sharing relationship between the new container instance and other target containers in the functional container set is initiated, making the new container instance officially a running unit in the functional container set. The new container instance is not only created, but can also enter actual operation in a state that is connected with the current target task.

[0155] As an example, if the read internal operating parameters include two sets of path fragments associated with the current location, one set of local map data, two current task stage parameter values, and three configuration parameters, then the path fragments can be written to the path cache area of ​​the new container instance, the local map data can be written to the environment state area, and the task stage parameter values ​​and configuration parameters can be written to the operating configuration area. After writing is completed, the new container instance is then connected to the data interaction links corresponding to the chassis control-related target containers and basic perception-related target containers in the functional container set, enabling it to receive current location change information and environment update information. At this point, the new container instance is no longer an isolated initialization instance, but a functional unit that already has historical operating states and can participate in the execution of the current target task. If the target container is a visual servo control container, its internal operating parameters can also include camera calibration parameters and docking position parameters. After writing and loading, the new container instance can directly enter the processing state corresponding to the current scene.

[0156] In other embodiments, after writing the internal runtime parameters into the new container instance, a runtime status verification can be performed before the new container instance is loaded into the functional container set to verify whether the internal runtime parameters have been correctly received. For example, it can be checked whether the number of key parameter fields in the new container instance matches the read internal runtime parameters, or whether the new container instance has the necessary initial response capabilities. After confirming that the requirements are met, the new container instance is then loaded into the functional container set. By adding a status verification before loading, the possibility of abnormal operation after the new container instance is connected due to incomplete parameter writing can be reduced.

[0157] Through the aforementioned methods, by continuously processing resource allocation, creating new container instances based on container images, reading the internal runtime parameters corresponding to the target container, writing the internal runtime parameters to the new container instance, and loading the new container instance into the functional container set, the target container (operation type: container loading) can re-enter the functional container set in a runnable, recoverable, and accessible manner. First, the new container instance is ensured to have the necessary resources for operation. Then, the instance is built using the container image. Next, its running state is restored using the internal runtime parameters stored in the preset storage unit. Finally, it is integrated with the functional container set, ensuring that the reloading process of the target container is structurally complete, state-continuous, and operationally seamless.

[0158] In some embodiments, a new running cycle is also started by: triggering a reset instruction after a new container instance has finished loading or the target container has finished terminating its operation; and in response to the execution of the reset instruction to start a new running cycle, triggering and continuing the steps of acquiring robot status data.

[0159] In practice, the composition of the functional container set changes after a new container instance is loaded, or the resource usage and operational relationships of the functional container set change after the target container terminates operation. Therefore, the robot's overall state at that moment is no longer equivalent to its state in the previous running cycle. If the state data from the previous running cycle is still used as the basis for subsequent judgments, it may lead to inconsistencies between subsequent container management results and the current actual operating state. Therefore, after container unloading or loading is completed, triggering a reset command re-enters a new round of robot state data acquisition, ensuring that subsequent state determinations are based on the updated functional container set and the updated robot operating state.

[0160] After a new container instance completes loading or the target container terminates, a reset command is triggered, essentially generating a new process start signal at the end of the container lifecycle operation. Here, the reset command marks the end of the current round of container management based on state vectors and prompts the entry into the next round of state acquisition and processing. The execution module responsible for container management process control continuously monitors the processing results of the target container. When it detects that a new container instance has been successfully loaded into the functional container set, or that the target container has terminated and released its occupancy of corresponding computing resources, a reset command is generated and sent to the initial trigger node in the process control chain.

[0161] As an example, if the operation type corresponding to the target container is container loading, and the new container instance has completed the writing of internal running parameters and the access of the functional container set, then "loading completed" can be used as the trigger condition to generate a reset instruction; if the operation type corresponding to the target container is container unloading, and the target container has completed the termination of the running process and the release of resources, then "termination of running completed" can be used as the trigger condition to generate a reset instruction.

[0162] For example, if a new container instance completes loading in 12.3 seconds, a reset instruction can be generated at 12.3 seconds; similarly, if a target container terminates in 15.8 seconds, a reset instruction can be generated at 15.8 seconds. By binding reset instructions to explicit completion events, premature entry into the next runtime cycle is avoided before container operations are complete.

[0163] In other embodiments, the conditions for triggering a reset instruction can be further determined by combining the overall execution status of multiple container operation instructions, rather than being limited to the processing completion result of a single target container. When multiple container operation instructions are contained in the same scheduling queue, a reset instruction is triggered uniformly after all target containers in the queue have completed their corresponding termination or a new container instance has been loaded; alternatively, a partial reset instruction can be triggered after each high-priority container operation instruction is completed, so as to obtain the latest status data after the container structure changes more quickly.

[0164] Responding to the reset command to initiate a new operating cycle triggers and continues the acquisition of robot state data, thus putting the entire container management method into a cyclical update process. Here, a new operating cycle refers to a new round of processing that starts from the results of the previous round of container management and re-executes state data acquisition, state fusion, rule comparison, and container operation processing. Since the robot's physical state data, environmental perception data, and task context data may continuously change during the execution of the target task, container management cannot rely solely on a single state acquisition and rule determination; instead, it needs to re-perceive the current state after each adjustment to the container structure.

[0165] Specifically, after the reset command is executed, the temporary judgment flag, queue trigger flag and process status flag in the current running cycle are cleared, and the process control position is redirected to the entry point corresponding to the acquisition of robot status data. The collection of physical status data, environmental perception data and task context data is restarted to ensure that each round of rule judgment and container operation decision is based on the latest robot status at that time.

[0166] As an example, suppose the robot completes the loading of a lightweight navigation container in a certain operating cycle. After the new container instance is connected, a reset command is triggered. After executing the reset command, the next round of state data acquisition can begin again. For example, at 16.0 seconds, the physical state data, environmental perception data, and task context data of this round are re-acquired, and a new state vector [26, 55, 180, 110, 3, 2] is obtained in subsequent steps. The state vector may differ from the state vector in the previous operating cycle because the robot's processor load, current position, and execution stage may have changed after the new container instance is loaded. Based on the new state vector, after performing a comparison with the preset rule base again, it can be determined whether new container operation instructions need to be generated for the set of functional containers. The new operating cycle is not a re-execution of the previous round's results, but a reprocessing of the updated state.

[0167] In other embodiments, after a new operating cycle is started in response to a reset command, the timing of the new round of robot state data acquisition can be controlled to match the state acquisition process with the container's state stabilization. For example, after a new container instance has just finished loading, a short stabilization waiting period can be set before triggering the acquisition of robot state data; or after the target container has finished terminating its operation, the acquisition of robot state data can be triggered only after the resource occupancy status has been synchronously updated. This allows the state data in the new operating cycle to more accurately reflect the actual operating state of the container after adjustment, improving the effectiveness and consistency of subsequent state vectors.

[0168] By triggering a reset command after a new container instance completes loading or the target container terminates operation, and responding to the reset command to start a new operating cycle, triggering and continuing to acquire robot state data, the entire method can re-enter the state-aware starting point after container unloading and loading. This process ensures that after each structural adjustment of the functional container set, the robot's state data can be re-acquired based on the adjusted actual operating state, and subsequent processing can continue on this basis, forming a continuous closed loop in the container management process and guaranteeing consistency between subsequent processing results and the robot's current operating state.

[0169] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario.

[0170] With the continuous improvement of industrial automation, robots are playing an increasingly important role in the factory environment. For example, autonomous mobile robots are used for logistics and handling, robotic arms perform assembly operations, and mobile platforms are used for environmental inspection. These industrial robots usually integrate a variety of sensors and actuators and rely on complex software systems to achieve real-time perception, decision-making and control.

[0171] Current robot software system deployment and management mainly face limitations of two modes: First, pre-integrating and fixing all functional software modules such as path planning, motion control, visual recognition, and communication interaction. This mode leads to low system resource utilization, with irrelevant modules continuously consuming computing and storage resources; second, a simple functional configuration structure, unable to adaptively adjust to dynamic working conditions such as production line changes and order switching. Simultaneously, high software complexity and numerous potential failure points affect the overall system reliability. Third, general cloud-native elastic scaling technology dynamically schedules application instances based on virtual resource indicators such as CPU and memory utilization; however, it fails to fully consider the core constraints of industrial robots in the real world, and cannot guarantee the stringent deterministic and low-latency requirements of tasks such as motion control and real-time obstacle avoidance. Its scheduling decisions are disconnected from the robot's physical state (such as power and temperature), specific operating scenarios, and process flow context, lacking support for the continuity of task execution. For example, dynamic unloading may lead to the loss of the status of ongoing assembly processes.

[0172] The relevant technologies cannot solve the fundamental contradiction between limited onboard resources, continuous operation requirements and variable task scenarios faced by industrial robots in dynamic and demanding factory environments. This makes it difficult for robots to adapt to flexible production efficiently and flexibly, and also affects system stability and energy efficiency, thus limiting their widespread application in the industrial field.

[0173] To address the problems of inefficient resource utilization, poor functional adaptability, and insufficient system reliability caused by the static integration mode in robot software architecture in related technologies, this application provides a container scheduling method for robots. This method aims to enable robots to autonomously and in real-time adjust their set of running software containers based on their own state, environment, and task context, achieving optimal dynamic allocation of resources. By loading and unloading functional containers on demand, it ensures that real-time critical tasks such as navigation, obstacle avoidance, and motion control always receive sufficient and exclusive computing resources, eliminating resource conflicts and performance degradation caused by irrelevant modules. Furthermore, it maximizes system energy efficiency and endurance by dynamically shutting down unnecessary functional containers in specific scenarios (such as unloading the voice interaction module in a warehouse where interaction is not required), significantly reducing static power consumption and extending the robot's effective operating time with a single energy replenishment. Simultaneously, it enhances the robot's scene adaptability, enabling the robot to intelligently switch between matching software functional modules according to different identified operating scenarios (such as warehouses, workshops, and corridors) and specific task stages, achieving flexible reuse of a single hardware platform in different scenarios. Furthermore, it enhances the overall reliability of the system by constructing a minimal set of runtime containers, reducing software complexity, potential failure points, and the risk of interference between modules; at the same time, it ensures the continuity of task execution and the recoverability after anomalies through the container state saving and restoration mechanism.

[0174] In some embodiments, see Figure 5 , Figure 5 This is a schematic diagram of the structure of the robot container scheduling system provided in the embodiments of this application. Figure 5 The system shown can be used to execute the aforementioned container scheduling method for robots, including a data and instruction input layer 501, a core intelligent processing layer 502, and a resource and execution layer 503. The data and instruction input layer 501 is used to provide the robot's state data and the relevant inputs required for container loading. The core intelligent processing layer 502 is used to fuse the state data and generate container operation instructions for the set of functional containers. The resource and execution layer 503 is used to perform processes such as container unloading, container loading, and state saving and restoration.

[0175] Specifically, the data and command input layer 501 may include a sensor sequence 5011, a task scheduler 5012, and an image repository 5013. The sensor sequence 5011 is used to collect the robot's physical state data and environmental perception data, and may include LiDAR, vision sensors, inertial measurement units / odometers, battery management units, and temperature sensors. The physical state data may include the robot's operating status data such as battery level and temperature, while the environmental perception data may include location, scene recognition results, and obstacle-related information. The task scheduler 5012 is used to provide task context data, which may include task type, task stage, and control commands. The image repository 5013 is used to store container images corresponding to the target container and may also store internal operating parameters related to the target container, providing image sources and data support for creating new container instances. The image repository may be a local repository or an edge server repository.

[0176] The core intelligent processing layer 502 may include a state-aware fusion unit 5021, a policy engine 5022, and a container lifecycle management layer 5023. The state-aware fusion unit 5021 is connected to the sensor sequence 5011 and the task scheduler 5012, and is used to acquire the robot's state data and fuse physical state data, environmental perception data, and task context data to obtain a state vector. The state-aware fusion unit 5021 can remove invalid data, perform temporal alignment, and serialize and concatenate the state data based on a preset data structure template to form the state vector. The policy engine 5022 is connected to the state-aware fusion unit 5021 and is used to compare the state vector based on a preset rule base 50221, and generate container operation instructions for a set of functional containers based on the comparison results. The container operation instructions can indicate the target container, operation type, and operation priority. The container lifecycle management layer 5023 is connected to the policy engine 5022. It is used to perform dependency checks on the target container when the operation type is container unloading, and to terminate the target container if there are no dependencies. It is also used to create a new container instance based on the container image corresponding to the target container when the operation type is container loading, and to load the new container instance into the functional container set.

[0177] The container lifecycle management layer 5023 may include a dependency checking module 50231, a state management module 50232, and a health check module 50233. The dependency checking module 50231 is used to obtain the associated dependency records of the target container in the functional container set. The state management module 50232 is used to write the current internal running parameters of the target container into a preset storage unit and write the internal running parameters into the new container instance after creating a new container instance. The health check module 50233 is used to confirm the running status of the new container instance after it is loaded.

[0178] The resource and execution layer 503 may include a runtime container group 5031 and a shared persistent storage area 5032. The runtime container group 5031 is used to host various container instances in the functional container set. Each container instance corresponds to a different robot processing function and is controlled by the container lifecycle management layer 5023 to perform termination, loading, or switching processes. The shared persistent storage area 5032 serves as a preset storage unit to save the internal operating parameters of the target container, supporting the saving of the container's state before unloading and the restoration of the container's state after loading.

[0179] In some embodiments, when the robot performs a target task, the runtime container group 5031 can run a basic navigation container, a chassis control container, and a basic perception container. The sensor sequence 5011 continuously collects the robot's physical state data and environmental perception data, the task scheduler 5012 provides the task context data corresponding to the current task stage, and the state perception fusion unit 5021 fuses the above state data to obtain a state vector.

[0180] For example, when the state vector represents low battery, the identification scene is the main channel, and the task stage is forward, the policy engine 5022 can generate container operation instructions for the set of functional containers based on the preset rule base 50221, instructing the container to unload the high-precision obstacle avoidance container and the container to load the lightweight navigation functional container.

[0181] Subsequently, the container lifecycle management layer 5023 first performs dependency checks on the high-precision obstacle avoidance container. If no dependencies exist, it writes the target container's internal runtime parameters to the shared persistent storage area 5032, terminates its running process, and releases it from the corresponding computing resources. Next, it retrieves the container image corresponding to the lightweight navigation function container from the image repository 5013, creates a new container instance, reads the internal runtime parameters corresponding to the target container from the shared persistent storage area 5032, writes the internal runtime parameters into the new container instance, and then loads the new container instance into the function container set in the runtime container group 5031.

[0182] In other embodiments, when the robot enters the sorting area from the main channel and the task scheduler 5012 updates the task stage to precise docking, the state perception fusion unit 5021 can generate a new state vector. The policy engine 5022, after comparing this vector with a preset rule base 50221, generates new container operation instructions, instructing the unloading of the lightweight navigation function container and the loading of the visual servo control container and the robotic arm operation container. Based on this, the container lifecycle management layer 5023 performs dependency checks and saves internal operating parameters for the lightweight navigation function container before termination. Then, it creates a new container instance based on the corresponding container image in the image repository 5013 and completes state restoration by combining the internal operating parameters saved in the shared persistent storage area 5032. This allows the new container instance to be loaded into the functional container set to adapt to the robot's current environmental perception data and task context data.

[0183] pass Figure 5 The system structure shown enables the robot's state data, state vectors, container operation instructions, and the execution of functional container sets to form a coherent processing chain, realizing the unloading or loading of target containers based on the robot's physical state data, environmental perception data, and task context data.

[0184] The container scheduling method for robots provided in this application has the following beneficial effects: Based on the robot's state, environment, and task context, functional containers are dynamically loaded or unloaded as needed to achieve optimal allocation of computing resources. Unnecessary modules can be shut down to reduce static power consumption, ensuring critical tasks have dedicated resources and extending runtime and effective operating time. Depending on different operational scenarios and task stages, matching software modules are intelligently switched, enabling flexible reuse of a single hardware platform across multiple scenarios. A minimal runtime container set is constructed to reduce system complexity and failure risk. Combined with internal parameter saving and recovery mechanisms, the continuity of task execution and anomaly recovery capabilities are ensured.

[0185] The following description continues to illustrate the exemplary structure of the robot container scheduling device 455 provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2 As shown, the software modules in the robot's container scheduling device 455 stored in the memory 450 may include: a data acquisition module 4551, used to acquire the robot's state data, including the robot's physical state data, environmental perception data, and task context data; a data fusion module 4552, used to fuse the physical state data, environmental perception data, and task context data to obtain a state vector; an instruction generation module 4553, used to compare the state vector based on a preset rule base, and generate a container operation instruction set for the functional container set based on the comparison result, the container operation instruction set containing at least one container operation instruction, the container operation instruction indicating the target container and the corresponding operation type; and a container adjustment module 4554, used to perform dependency checks on the target container when the operation type is container unloading, and terminate the target container if there are no dependencies; and to create a new container instance based on the container image of the target container when the operation type is container loading, and load the new container instance into the functional container set.

[0186] In some embodiments, the data fusion module 4552 is further configured to remove invalid data from physical state data, environmental perception data, and task context data to obtain cleaned state data with timestamps for each data; to perform association matching on the cleaned state data belonging to the same time sequence node according to the timestamps to obtain time-aligned state data; and to serialize and concatenate the feature values ​​of each dimension contained in the time-aligned state data according to a preset data structure template to obtain a state vector.

[0187] In some embodiments, the data fusion module 4552 is further configured to extract the energy state value and hardware load value belonging to the robot from the time-aligned state data as the first feature value; extract the current position coordinates and the semantic identifier of the scene from the time-aligned state data as the second feature value; extract the execution stage identifier from the time-aligned state data as the third feature value; and write the first feature value, the second feature value and the third feature value into the corresponding dimensions of the data structure template to obtain the state vector.

[0188] In some embodiments, the instruction generation module 4553 is further configured to compare the feature values ​​of each dimension contained in the state vector with the state triggering conditions in the preset rule base to obtain the comparison result; if the comparison result indicates that the feature values ​​of each dimension meet the target state triggering condition, determine the target container scheduling policy in the preset rule base corresponding to the target state triggering condition; generate container operation instructions according to the target container scheduling policy, and add the container operation instructions to the container operation instruction set.

[0189] In some embodiments, after adding container operation instructions to the container operation instruction set, the instruction generation module 4553 is further configured to determine the operation priority corresponding to each container operation instruction according to the target container scheduling strategy when there is a conflict among multiple container operation instructions contained in the container operation instruction set; and establish a scheduling queue for each container operation instruction based on the order of operation priority from high to low, so as to trigger the dependency check or container instance loading of each target container in sequence according to the scheduling queue.

[0190] In some embodiments, the robot is internally equipped with a preset storage unit for saving the running state. The container adjustment module 4554 is also used to obtain the association dependency record corresponding to the target container in the functional container set; when the association dependency record indicates that there is no dependency relationship for the target container, obtain the current internal running parameters of the target container; write the internal running parameters into the preset storage unit; and when the internal running parameters are written, terminate the running process of the target container and release the target container from the occupation of the corresponding computing resources.

[0191] In some embodiments, the container adjustment module 4554 is further configured to allocate corresponding computing resources to the new container instance, and create a new container instance in the allocated computing resources based on the container image; read the internal operating parameters associated with the target container from the preset storage unit; write the internal operating parameters into the new container instance, and load the new container instance after writing the internal operating parameters into the functional container set.

[0192] In some embodiments, the container adjustment module 4554 is further configured to trigger a reset instruction after a new container instance has finished loading or a target container has finished terminating operation; and in response to the execution of the reset instruction to start a new operating cycle, to trigger and continue the step of acquiring robot status data.

[0193] This application provides a computer program product including a computer program or computer-executable instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the robot container scheduling method described above in this application.

[0194] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the container scheduling method for a robot provided in this application. For example, ... Figure 3 The robot's container scheduling method is shown.

[0195] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.

[0196] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.

[0197] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be part of a file of other programs or data, such as in one or more scripts stored in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files storing one or more modules, subroutines, or code sections).

[0198] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located in one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.

[0199] In summary, by acquiring the robot's physical state data, environmental perception data, and task context data through the embodiments of this application, and fusing them to obtain a state vector, the management basis for the functional container set is expanded from single resource information to a unified representation of the robot's current comprehensive operating state, improving the accuracy of container operation command generation. Furthermore, by removing invalid data, aligning the time sequence, and serializing and concatenating the state data based on data structure templates, and extracting energy state values, hardware load values, current position coordinates, semantic identifiers of the current scene, and execution stage identifiers and writing them into the state vector, the standardization, consistency, and comparability of the state vector are ensured. Comparing the state vector based on a preset rule base and generating container operation commands containing the target container, operation type, and operation priority in conjunction with the target container scheduling strategy improves the targeting of functional container set adjustments; and by establishing a scheduling queue, execution chaos when multiple container operation commands conflict can be reduced. For container unloading, dependency checks, writing internal runtime parameters, and releasing computing resources can balance operational safety and resource reclamation. For container loading, creating new container instances from container images and restoring internal runtime parameters can improve operational continuity after function switching. Combining reset commands to start a new runtime cycle enables the container management process to form a closed-loop update mechanism.

[0200] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A container scheduling method for a robot, characterized in that, During the process of the robot performing a target task, the robot internally operates a set of functional containers for performing the target task, and the method includes: The robot's state data is acquired, including the robot's physical state data, environmental perception data, and task context data. The physical state data, the environmental perception data, and the task context data are fused together to obtain a state vector. The state vector is compared based on a preset rule base, and a set of container operation instructions for the set of functional containers is generated based on the comparison results. The set of container operation instructions contains at least one container operation instruction, which indicates the target container and the corresponding operation type. When the operation type is container unload, a dependency check is performed on the target container. If the target container has no dependencies, the target container is terminated. When the operation type is container loading, a new container instance is created based on the container image of the target container, and the new container instance is loaded into the functional container set.

2. The method according to claim 1, characterized in that, The process of fusing the physical state data, the environmental perception data, and the task context data to obtain a state vector includes: The invalid data is removed from the physical state data, the environmental perception data, and the task context data to obtain the cleaned state data with timestamps for each data type. Based on the timestamp, the cleaned state data belonging to the same time sequence node are associated and matched to obtain the time-aligned state data; Based on a preset data structure template, the feature values ​​of each dimension contained in the time-aligned state data are serialized and concatenated to obtain the state vector.

3. The method according to claim 2, characterized in that, The step involves serializing and concatenating the feature values ​​of each dimension contained in the time-aligned state data according to a preset data structure template to obtain the state vector, including: Extract the energy state value and hardware load value belonging to the robot from the time-aligned state data, and use them as the first feature value; Extract the current position coordinates and the semantic identifier of the scene from the time-aligned state data, and use them as the second feature value; Extract the execution stage identifier from the time-aligned state data and use it as the third feature value; The first feature value, the second feature value, and the third feature value are written into the corresponding dimensions of the data structure template to obtain the state vector.

4. The method according to claim 3, characterized in that, The step of comparing the state vector based on a preset rule base and generating a set of container operation instructions for the set of functional containers based on the comparison results includes: The feature values ​​of each dimension contained in the state vector are compared with the state trigger conditions in the preset rule base to obtain the comparison results. If the comparison result indicates that the feature values ​​of each dimension meet the target state triggering condition, determine the target container scheduling strategy in the preset rule base that corresponds to the target state triggering condition; Based on the target container scheduling policy, the container operation instructions are generated and added to the container operation instruction set.

5. The method according to claim 4, characterized in that, After adding the container operation instruction to the container operation instruction set, the method further includes: When multiple container operation instructions contained in the container operation instruction set conflict, the operation priority corresponding to each container operation instruction is determined according to the target container scheduling strategy. Based on the order of operation priority from high to low, a scheduling queue is established for each of the container operation instructions, so as to trigger the dependency check or container instance loading of each of the target containers in sequence according to the scheduling queue.

6. The method according to claim 1, characterized in that, The robot has a pre-set storage unit deployed inside for saving its operating state. When the operation type is container unloading, a dependency check is performed on the target container. If no dependency exists on the target container, the operation of the target container is terminated, including: Obtain the associated dependency record of the target container in the set of functional containers; If the dependency record indicates that there is no dependency on the target container, obtain the current internal operating parameters of the target container; The internal operating parameters are written to the preset storage unit; Once the internal operating parameters have been written, the running process of the target container is terminated, and the target container's occupation of the corresponding computing resources is released.

7. The method according to claim 6, characterized in that, When the operation type is container loading, creating a new container instance based on the container image of the target container and loading the new container instance into the functional container set includes: Allocate corresponding computing resources to the new container instance, and create the new container instance in the allocated computing resources based on the container image; Read the internal operating parameters associated with the target container from the preset storage unit; The internal operating parameters are written into the new container instance, and the new container instance after the internal operating parameters are written is loaded into the functional container set.

8. The method according to any one of claims 1 to 7, characterized in that, The method further includes: A reset command is triggered after the new container instance finishes loading or the target container finishes terminating its operation. In response to the execution of the reset command to start a new operating cycle, the step of acquiring the robot's state data is triggered and continues.

9. A container scheduling device for a robot, characterized in that, During the process of the robot performing the target task, the robot internally operates a set of functional containers for performing the target task, and the device includes: The data acquisition module is used to acquire the robot's state data, which includes the robot's physical state data, environmental perception data, and task context data. The data fusion module is used to fuse the physical state data, the environmental perception data, and the task context data to obtain a state vector. The instruction generation module is used to compare the state vector based on a preset rule base, and generate a container operation instruction set for the functional container set according to the comparison result. The container operation instruction set contains at least one container operation instruction, and the container operation instruction indicates the target container and the corresponding operation type. The container adjustment module is used to perform dependency checks on the target container when the operation type is container unloading, and terminate the target container if there are no dependencies; when the operation type is container loading, it creates a new container instance based on the container image of the target container and loads the new container instance into the functional container set.

10. An electronic device, characterized in that, The electronic device includes: Memory is used to store executable instructions or computer programs. A processor, when executing computer-executable instructions or computer programs stored in the memory, implements the container scheduling method for the robot according to any one of claims 1 to 7.

11. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, the container scheduling method for the robot according to any one of claims 1 to 7 is implemented.