Robot task statistical method, electronic equipment and storage medium
By analyzing robot task execution data and sensor data, an optimization strategy is generated, which solves the problems of low robot task execution efficiency and poor reliability, improves work efficiency and reliability, and identifies and optimizes performance bottlenecks.
Patent Information
- Application Number
- CN202410624510.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-09-10
AI Technical Summary
The robot has low efficiency and reduced reliability when performing tasks, and fails to detect and deal with problems that cause performance bottlenecks in time.
By receiving the task execution data sent by the robot, calculate the execution success rate, failure rate and duration of the segmented tasks, obtain sensor data to determine the reasons for failure and timeout, generate a task execution optimization strategy, and optimize the robot task execution strategy.
It improves the efficiency and reliability of the robot, identifies and optimizes performance bottlenecks, and provides reference data for robot performance optimization.
Smart Images

Figure CN118617404A
Abstract
Description
Technical Field
[0001] This invention relates to the field of robotics, and in particular to a robot task statistics method, electronic device, and storage medium. Background Technology
[0002] A robot is a machine device that can automatically perform tasks. It can run pre-programmed programs to complete various types of tasks. These different types of tasks include several sub-tasks or sub-tasks with different stages, time periods, and execution contents. The execution results and time consumption of each sub-task or sub-task are different, and the execution status of these sub-tasks or sub-tasks has a significant impact on the overall task execution of the robot.
[0003] Currently, robots can collect and record basic task execution data, such as overall task start and end times, task type, and execution status. However, for the individual sub-tasks or sub-tasks that affect the overall task execution, the factors influencing the robot's efficiency and reliability have not been thoroughly analyzed and addressed. This results in low robot efficiency and reduced reliability. Furthermore, the failure to promptly identify the causes of low efficiency and reduced reliability prevents the overcoming of the main bottlenecks limiting robot performance. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a robot task statistics method, electronic device and storage medium, aiming to solve the technical problems of low robot work efficiency and reduced reliability in the prior art.
[0005] To address the aforementioned technical problems, the embodiments of the present invention provide the following technical solutions:
[0006] In a first aspect, embodiments of the present invention provide a robot task statistics method, applied to an electronic device, the method comprising:
[0007] Receive task execution data sent by the robot, the task execution data including overall task and segmented task execution data, and an overall task includes at least two corresponding segmented tasks;
[0008] Based on the task execution data, target statistics are obtained, wherein the target statistics include the success rate and failure rate of the execution of the at least two segmented tasks and the execution time of each segmented task;
[0009] Based on the target statistical data, the task execution optimization strategy of the robot is obtained.
[0010] In some embodiments, the task execution data includes the start time and end time of execution;
[0011] The process of obtaining target statistical data based on the task execution data includes:
[0012] Based on the start and end times of each segmented task, the execution time of each segmented task is calculated to obtain the first statistical data.
[0013] Based on the execution results of each segmented task, the first number of the first segmented task and the second number of the second segmented task in the at least two segmented tasks are counted respectively, wherein the first segmented task is the segmented task that was executed successfully and the second segmented task is the segmented task that was executed unsuccessfully.
[0014] Based on the first quantity and the second quantity, the execution success rate and execution failure rate of the at least two segmented tasks are calculated to obtain the second statistical data;
[0015] The target statistical data is obtained by integrating the first statistical data and the second statistical data.
[0016] In some embodiments, optimizing the robot's task execution strategy based on the target statistical data includes:
[0017] Obtain the first sensor data corresponding to the segmented task that failed to execute in the at least two segmented tasks;
[0018] Based on the data from the first sensor, determine the reason for the failure of the segmented task that failed to execute;
[0019] Based on the reasons for the failure, generate a task execution optimization strategy for the robot; and / or,
[0020] Obtain the second sensor data corresponding to the timeout segment task in the at least two segmented tasks, wherein the timeout segment task is a segmented task whose execution time is greater than or equal to a first duration threshold;
[0021] Based on the data from the second sensor, determine the timeout reason for the timeout segmentation task;
[0022] Based on the timeout reason, generate a task execution optimization strategy for the robot.
[0023] In some embodiments, the method further includes:
[0024] The state of the overall task is determined based on the changes in the number of segmented tasks.
[0025] In some embodiments, determining the state of the overall task based on changes in the number of segmented tasks includes:
[0026] If the total number of the segmented tasks is zero, then the overall task status is determined to be waiting to be executed;
[0027] If the total number of segmented tasks is not zero and the total number gradually increases, then the overall task is determined to be in execution.
[0028] If the total number of segmented tasks is not zero and the total number no longer increases, then the overall task status is determined to be completed.
[0029] In some embodiments, after receiving the task execution data sent by the robot, the method further includes:
[0030] The task execution data is deduplicated to obtain the first task execution data;
[0031] Correct the format error of the first task execution data to obtain the second task execution data;
[0032] Fill in the missing values in the second task execution data to obtain the third task execution data;
[0033] The third task execution data is converted into data in a unified format to obtain the fourth task execution data.
[0034] In some embodiments, after obtaining the robot's task execution optimization strategy based on the target statistical data, the method further includes:
[0035] The task execution optimization strategy is sent to the robot so that the robot can execute subsequent overall tasks according to the task execution optimization strategy.
[0036] In some embodiments, the method further includes:
[0037] If receiving task execution data sent by the robot fails, and the cause of the failure is determined to be a network anomaly, then receiving task execution data sent by the robot will be stopped. In the event of a network anomaly, the robot stores the task execution data locally on its own device, and then sends the task execution data to the electronic device after the network is confirmed to be normal.
[0038] In a second aspect, embodiments of the present invention provide an electronic device, comprising:
[0039] A processor, and a memory communicatively connected to the processor;
[0040] The memory stores computer program instructions executable by the processor, which, when invoked by the processor, cause the processor to perform any of the robot task statistics methods proposed in the first aspect, or to perform steps in any possible implementation of any of the robot task statistics methods proposed in the first aspect.
[0041] Thirdly, embodiments of the present invention provide a computer-readable storage medium storing processor-executable computer program instructions, which, when invoked by a processor, cause the processor to execute any of the robot task statistics methods proposed in the first aspect, or to execute steps in any possible implementation of any of the robot task statistics methods proposed in the first aspect.
[0042] The beneficial effects of this invention's embodiments are as follows: Unlike existing technologies, the robot task statistics method provided in this invention is applied to electronic devices. The method includes: receiving task execution data sent by a robot, the task execution data including overall task and segmented task execution data, with one overall task including at least two corresponding segmented tasks; obtaining target statistical data based on the task execution data, wherein the target statistical data includes the execution success rate and execution failure rate of the at least two segmented tasks and the execution time of each segmented task; and obtaining a task execution optimization strategy for the robot based on the target statistical data.
[0043] In this invention, by statistically analyzing the received task execution data of the overall robot task and segmented tasks, target statistical data is obtained, and based on the target statistical data, a task execution optimization strategy for the robot is obtained. This allows the robot to execute tasks according to the task execution optimization strategy, thereby improving the robot's work efficiency and reliability, and providing reference data for robot performance optimization. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below only show some embodiments of the present invention and should not be considered as limiting the scope of protection. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 These are schematic diagrams illustrating application scenarios of the robot task statistics method provided in some embodiments of the present invention;
[0046] Figure 2 These are schematic diagrams of the structure of an electronic device provided in some embodiments of the present invention;
[0047] Figure 3 This is a flowchart illustrating a robot task statistics method provided in some embodiments of the present invention;
[0048] Figure 4 yes Figure 3 A schematic diagram of a sub-process of step S200 in the robot task statistics method shown in the embodiment;
[0049] Figure 5 yes Figure 3 A schematic diagram of a sub-process of step S300 in the robot task statistics method shown in the embodiment;
[0050] Figure 6 This is a flowchart illustrating a robot task statistics method provided in other embodiments of the present invention. Detailed Implementation
[0051] To make the objectives and advantages of the embodiments of the present invention more readily understood, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. The detailed description of the embodiments of the present invention in the accompanying drawings is not intended to limit the scope of protection claimed by the present invention, but merely to illustrate selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0052] It should be noted that, unless there is a conflict, the various technical features involved in the embodiments of the present invention described below can be combined with each other, and all are within the protection scope of the present invention. Furthermore, although functional modules are divided in the device or structural schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. In addition, the terms "first," "second," "third," and other similar expressions used herein do not limit the data or execution order, but are only for illustrative purposes and to distinguish identical or similar items with substantially the same function and effect, and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features.
[0053] Unless otherwise defined, the technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. It should be understood that the term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0054] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating application scenarios of the robot task statistics method provided in some embodiments of the present invention. For example... Figure 1 As shown, this application scenario includes electronic device 100, which can include any one or more of the following suitable types of devices with certain computing and control capabilities: mobile devices, terminal devices, communication devices, computing devices, in-vehicle devices, user equipment (UE), handheld devices, personal digital assistants (PDAs), cloud devices, etc. For example, electronic device 100 can be a desktop computer, laptop computer, tablet computer, microcontroller, and single-chip microcomputer.
[0055] It is readily understood that the electronic device 100 can be installed independently at any suitable location on the robot, or the electronic device 100 can be integrated with the robot as a whole; this embodiment of the invention does not impose any limitations on this.
[0056] In this embodiment of the invention, after receiving the overall task and segmented task execution data sent by the robot, the electronic device 100 processes the received task execution data in real time to obtain target statistical data on the execution status of the segmented tasks. After obtaining the target statistical data, the electronic device 100 analyzes and processes the target statistical data to obtain task execution optimization strategies for the robot's overall task and segmented tasks.
[0057] Then, the task execution optimization strategy is sent to the robot. Upon receiving the strategy, the robot optimizes its overall and segmented tasks accordingly, thereby improving its efficiency and reliability. Furthermore, the obtained target statistics can identify the main bottlenecks affecting robot performance, providing fundamental reference data for performance optimization.
[0058] It should be understood that, Figure 1 In the illustrated application scenario, electronic device 100 is a desktop computer, but this does not impose any limitations on the structure, type, or quantity of electronic devices 100 in other application scenarios. For example, in some other application scenarios, electronic device 100 may also be a microcontroller, tablet computer, or other suitable type of device. Furthermore, electronic devices 100 in other application scenarios may be more... Figure 1 The desktop computer shown includes more or fewer components, or has the same... Figure 1 The desktop computers shown have different configurations.
[0059] To facilitate understanding of the robot task statistics method provided in the embodiments of the present invention, the electronic device provided in the embodiments of the present invention will first be described in detail.
[0060] Please see Figure 2 , Figure 2 A schematic diagram of the structure of an electronic device 100 provided in some embodiments of the present invention is shown.
[0061] like Figure 2 As shown, the electronic device 100 includes at least one processor 110 and a memory 120 connected in communication. Figure 2 Taking a bus system connection and a processor as an example, the various components in electronic device 100 are coupled together through a bus system 130, which is used to realize the connection and communication between these components. It is easy to understand that the bus system 130 may include a power bus, control bus, and status signal bus, in addition to a data bus. However, for the sake of clarity and brevity, in... Figure 2 The various buses are all labeled as Bus System 130. Those skilled in the art will understand that... Figure 2 The structures shown in the embodiments are merely illustrative and do not limit the structure of the electronic device 100 described above. For example, the electronic device 100 may also include components that are more... Figure 2 The more or fewer components shown, or having the same Figure 2 The different configurations shown.
[0062] Specifically, the processor 110 provides computational and control capabilities to control the electronic device 100 to perform corresponding tasks. For example, it controls the electronic device 100 to execute any of the robot task statistics methods provided in the embodiments of the present invention, or the steps in any possible implementation of any of the robot task statistics methods provided in the embodiments of the present invention. Those skilled in the art will understand that the processor 110 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0063] The memory 120, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, instructions, and modules, such as the program, instructions, and modules corresponding to the robot task statistics method in this embodiment of the invention. In some embodiments, the memory 120 may include a program storage area and a data storage area. The program storage area may store an operating system and an application program required for at least one function; the data storage area may store data created according to the use of the processor 110, etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the non-transitory software programs, instructions, and modules stored in the memory 120, to implement any robot task statistics method provided in this embodiment of the invention, or the steps in any possible implementation of any robot task statistics method provided in this embodiment of the invention. The memory 120 may include high-speed random access memory and may also include non-transitory memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 120 may also include memories remotely located relative to the processor 110, and these remote memories may be connected to the processor 110 via a communication network. Understandably, examples of the aforementioned communication networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0064] It is readily understood that the implementing entity of any robot task statistics method provided in the embodiments of the present invention can be any suitable type of electronic device with certain computing and control capabilities. In some possible implementations, any robot task statistics method provided in the embodiments of the present invention can be implemented by a processor calling computer program instructions stored in memory.
[0065] As can be understood from the above, the robot task statistics method provided in the embodiments of the present invention can be implemented by various suitable types of electronic devices with certain computing and control capabilities, such as the aforementioned electronic devices. The robot task statistics method provided in the embodiments of the present invention will be described below with reference to exemplary applications and implementations of the electronic devices provided in the embodiments of the present invention.
[0066] Please see Figure 3 , Figure 3 A flowchart illustrating a robot task statistics method provided in some embodiments of the present invention is shown.
[0067] Those skilled in the art will understand that the robot task statistics method provided in this embodiment of the invention can be applied to the aforementioned electronic device (e.g., electronic device 100). Specifically, the execution entity of this robot task statistics method is one or at least two processors of the electronic device.
[0068] like Figure 3 As shown, the robot task statistics method includes, but is not limited to, the following steps S100-S300:
[0069] S100: Receives task execution data sent by the robot. The task execution data includes the overall task and the task execution data of each segment. An overall task includes at least two corresponding segment tasks.
[0070] Specifically, electronic devices establish communication connections with the robot via wired connections (CAN bus, USB, Type-C cable, etc.) or wireless connections (such as Bluetooth, Wi-Fi, etc.). After establishing a communication connection, the electronic devices receive and process task execution data sent by the robot through corresponding interfaces, software, applications, application services, network nodes, and receiving devices. This task execution data sent by the robot includes overall task and segmented task execution data. For example, this includes the task execution content, task execution status, start time, and end time of the overall task and segmented tasks.
[0071] In some embodiments, the robot can upload task execution data to a cloud server, and the electronic device can connect to the cloud server via the Internet to remotely obtain the task execution data. Alternatively, in other embodiments, the electronic device can be a cloud server, communicating with the robot via the Internet and remotely obtaining the robot's local task execution data via the Internet.
[0072] Understandably, after receiving an overall task, the robot needs to divide it into at least two corresponding phased or segmented tasks. For example, in some embodiments, the overall task received by the robot is to transport items from the basement warehouse to room 806 on the 8th floor of the hotel. Dividing the overall task into at least two corresponding phased or segmented tasks could be as follows: Phase 1: Obtain the starting and ending positions; Phase 2: Based on the starting and ending positions, plan a travel path, including an elevator route; Phase 3: Call the elevator on the initial floor (basement), wait for the elevator, and then take the elevator to the target floor (8th floor of the hotel); Phase 4: At the elevator exit, continue traveling to the ending position (outside the door of room 806 on the 8th floor of the hotel) according to the travel path. Thus, an overall task received by the robot includes at least two corresponding segmented or phased tasks.
[0073] It should be understood that the above-described specific execution process of dividing the overall task into at least two phased tasks or segmented tasks is merely an example of dividing the task into at least two phased tasks or segmented tasks, and does not impose any limitations on the division method of phased tasks or segmented tasks in other embodiments, the number of phased tasks or segmented tasks after division, the execution content, or any other situation.
[0074] In some embodiments, the task execution data received by the electronic device may have problems such as missing data, duplication, and incorrect format. Therefore, it is necessary to process the received task execution data in a corresponding manner before statistical analysis to obtain the target statistical data, so as to ensure the accuracy and consistency of the task execution data.
[0075] Specifically, after receiving the task execution data sent by the robot, the robot task statistics method also includes, but is not limited to, the following steps S101-S104:
[0076] S101: Perform deduplication on the task execution data to obtain the first task execution data.
[0077] Specifically, after receiving the task execution data, the data is parsed to determine the deduplication identifier for each task execution record. It's easy to understand that the deduplication identifier can be a unique identifier for the task (e.g., task ID, timestamp), used to distinguish different task execution records.
[0078] Then, by establishing data structures such as data indexes or hash tables, the deduplication markers of task execution records in the task execution data are compared to quickly and accurately identify duplicate task execution records. For duplicate task execution records, one record is retained, and the other duplicate records are deleted.
[0079] After deduplicating duplicate task execution records, the deduplicated task execution data is integrated to obtain the first task execution data. The first task execution data no longer contains duplicate task execution records.
[0080] S102: Correct the format error of the first task execution data to obtain the second task execution data.
[0081] Specifically, after obtaining the first task execution data, the system checks for format errors in the data fields, such as data type, format, and length, to determine the first task execution data that needs correction. Once the data requiring correction is identified, it is modified through data type conversion, outlier correction, and other operations to ensure it meets the expected format requirements, thus obtaining the second task execution data.
[0082] S103: Fill in the missing values in the second task execution data to obtain the third task execution data.
[0083] Specifically, after obtaining the second task execution data, the location and number of missing values in the data fields of the second task execution data are detected to identify the missing values that need to be filled. After determining the missing values that need to be filled, the missing values in the data fields are filled by using the mean, median, and mode to fill the numerical data, and by using methods such as forward filling, backward filling, and interpolation to fill the time series data, thus obtaining the third task execution data.
[0084] In some embodiments, after filling in the missing values, the filled data needs to be validated to ensure that the filled data still conforms to the expected data distribution and pattern, thereby enhancing the accuracy of the data.
[0085] S104: Convert the execution data of the third task into data in a unified format to obtain the execution data of the fourth task.
[0086] Specifically, after obtaining the third task execution data, the third task execution data is transformed through operations such as renaming data fields, converting data types, and converting data units to convert the third task execution data into standardized data in a unified format, ensuring that the task execution data meets the requirements of a unified format, and thus obtaining the fourth task execution data.
[0087] After obtaining the fourth task execution data, the electronic device analyzes and processes the fourth task execution data. Based on information such as the start time, end time, success or failure of task execution, execution duration, and task execution content of the overall task and segmented tasks, it calculates and statistically analyzes indicators such as the success rate, failure rate, and execution duration of the overall task and segmented tasks to obtain target statistical data.
[0088] In some embodiments, if the electronic device fails to receive task execution data sent by the robot, and the detection determines that the reason for the failure is a network anomaly, the electronic device stops receiving task execution data sent by the robot.
[0089] Specifically, in some embodiments, the robot task statistics method further includes, but is not limited to, the following step S105:
[0090] S105: If receiving task execution data sent by the robot fails, and it is determined that the reason for the failure is a network anomaly, then stop receiving task execution data sent by the robot. In the event of a network anomaly, the robot stores the task execution data locally on the robot. After confirming that the network is normal, the task execution data is then sent to the electronic device.
[0091] Specifically, if the electronic device fails to receive task execution data sent by the robot due to a network anomaly, that is, the electronic device fails to receive task execution data sent by the robot, and the reason for the failure to receive task execution data is a network anomaly, then the receiving of task execution data sent by the robot will be stopped.
[0092] Understandably, a network anomaly indicates a communication failure between the robot and the electronic device. Since the electronic device has stopped receiving task execution data, the robot can store the task execution data in its local cache or memory. Once the network is confirmed to be restored, the robot will automatically attempt to re-establish the communication connection with the electronic device and send the task execution data stored in its local cache or memory to the electronic device.
[0093] The above methods can effectively address data transmission interruptions caused by network fluctuations, network instability, and network anomalies, ensuring the integrity and reliability of task execution data.
[0094] S200: Based on task execution data, obtain target statistics, which include the success rate and failure rate of at least two segmented tasks, as well as the execution time of each segmented task.
[0095] Specifically, after receiving the task execution data sent by the robot, the received task execution data is analyzed and processed. Based on information such as the start and end times of the overall task and segmented tasks, task success or failure, execution duration, and task execution content, the success rate, failure rate, and execution duration of the overall task and segmented tasks are calculated and statistically analyzed to obtain target statistical data. The target statistical data includes the success rate and failure rate of at least two segmented tasks, as well as the execution duration of each segmented task. Understandably, in some embodiments, the target statistical data may also include other statistical data, and this embodiment of the invention does not impose any limitations on this.
[0096] In some embodiments, after obtaining the target statistical data, the obtained target statistical data can be visualized and a corresponding report can be generated. The report can be presented in the form of graphics, charts, text, etc., to help users more intuitively understand the task execution status and make corresponding decisions.
[0097] Please see Figure 4 , Figure 4 This diagram illustrates a sub-process of step S200 in the robot task statistics method provided in some embodiments of the present invention.
[0098] like Figure 4As shown, in some embodiments, target statistics are obtained based on task execution data, specifically including but not limited to the following steps S210-S240:
[0099] S210: Calculate the execution time of each segment task based on its start and end times to obtain the first statistical data.
[0100] In some embodiments, task execution data includes the start and end times of the overall task and segmented tasks.
[0101] After receiving the robot's task execution data, the start and end times of each segment of the task are extracted from the task execution data. The start and end times of each segment of the task are compared to calculate the execution time of each segment of the task, thus obtaining the first statistical data.
[0102] S220: Based on the execution results of each segment task, count the first number of the first segment task and the second number of the second segment task in at least two segment tasks, where the first segment task is the segment task that was successfully executed and the second segment task is the segment task that failed to be executed.
[0103] In some embodiments, task execution data may also include the execution results of the overall task and segmented tasks.
[0104] Specifically, after receiving the robot's task execution data, the system retrieves the execution results of at least two segmented tasks from the data. Then, based on the execution results of these two segmented tasks, each segmented task is divided into a first segmented task and a second segmented task, where the first segmented task is the successfully executed segmented task and the second segmented task is the unsuccessfully executed segmented task.
[0105] Then, the first segment task and the second segment task are counted separately to obtain the first quantity of the first segment task and the second quantity of the second segment task.
[0106] S230: Based on the first and second quantities, calculate the success rate and failure rate of at least two segmented tasks to obtain the second statistical data.
[0107] Specifically, after obtaining the first number of the first segmented tasks (successfully executed segmented tasks) and the second number of the second segmented tasks (failed segmented tasks), the first and second numbers are added together to obtain the total number of segmented tasks. Then, the first and second numbers are divided by the total number of segmented tasks to obtain the success rate and failure rate of at least two segmented tasks, that is, the proportion of successfully executed segmented tasks and the proportion of failed segmented tasks in the at least two segmented tasks after division, thus obtaining the second statistical data.
[0108] S240: Integrate the first and second statistical data to obtain the target statistical data.
[0109] Specifically, after obtaining the first and second statistical data, they are organized and merged to obtain the target statistical data. By integrating the first and second statistical data, a more comprehensive and accurate target statistical data can be obtained, helping users to better understand the task execution status, identify problems, and take corresponding optimization measures.
[0110] S300: Based on target statistical data, obtain the robot's task execution optimization strategy.
[0111] Specifically, after obtaining target statistical data, the electronic device analyzes this data, such as indicators or information like task success rate, failure rate, and execution time, as well as the correlations and trends between them, to identify problems and bottlenecks in task execution (including, for example, tasks that failed to execute successfully or failed, and tasks with long execution times). Based on the identified problems and bottlenecks, corresponding task execution optimization strategies can be formulated. These strategies may include adjusting the content of segmented tasks, adjusting the execution order of segmented tasks, replacing robot sensors or components, and updating the robot's control program.
[0112] Please see Figure 5 , Figure 5 This diagram illustrates a sub-process of step S300 in the robot task statistics method provided in some embodiments of the present invention.
[0113] like Figure 5 As shown, in some embodiments, a task execution optimization strategy for the robot is obtained based on target statistical data, specifically including but not limited to the following steps S310-S330:
[0114] S310: Acquire the first sensor data corresponding to the segmented task that failed to execute in at least two segmented tasks.
[0115] In this embodiment of the invention, during task execution, the electronic device records data from various sensors (such as infrared sensors, cameras, lidar, temperature sensors, etc.) equipped on the robot. When a segment of the task fails, the electronic device promptly detects the failure, records the timestamp or other identifier of the failed segment, and then matches it with the timestamp or other identifier in the sensor data. This associates the failed segment with the corresponding first sensor data for use in subsequent task execution optimization strategies.
[0116] Specifically, after obtaining the target statistical data, the segmented tasks that failed to execute are identified from at least two segmented tasks after division. Then, based on the associated segmented tasks that failed to execute and the first sensor data, the first sensor data corresponding to the segmented tasks that failed to execute is obtained.
[0117] S320: Based on the data from the first sensor, determine the reason for the failure of the segmented task that failed to execute.
[0118] Specifically, after obtaining the first sensor data corresponding to the segmented task that failed to execute, the first sensor data is analyzed and processed using techniques such as image processing, data mining, and feature extraction to extract useful information and features from the first sensor data, and the reason for the failure of the segmented task is determined based on the extracted information and features.
[0119] For example, a segment of the task being executed might be: navigating from the current location to the target location. However, this segment fails. The system retrieves the first sensor data corresponding to the failed segment (which could be LiDAR data), analyzes and processes it, and determines that the failure was due to the planner's inability to plan a path.
[0120] S330: Generate a task execution optimization strategy for the robot based on the cause of failure.
[0121] Specifically, after determining the reasons for the failure of the segmented tasks, an in-depth analysis of these reasons is conducted. By studying the data from the first sensor in detail, combined with the context and relevant information of the task execution, the specific problems causing the task failure are identified. These could include factors such as robot hardware failure, software errors, and environmental changes.
[0122] Then, based on the specific problems identified in the task execution failure, the electronic device formulates and generates corresponding task execution optimization strategies. For example, in some embodiments, if the failure of a segmented task is due to a failure in robot vision recognition, the generated task execution optimization strategy may include improving the vision recognition algorithm, changing the vision sensor configuration, etc.
[0123] In other embodiments, a task execution optimization strategy for the robot is obtained based on target statistical data, specifically including but not limited to the following steps S340-S360:
[0124] S340: Obtain the second sensor data corresponding to the timed-out segment task in at least two segment tasks, where the timed-out segment task is a segment task whose execution duration is greater than or equal to a first duration threshold.
[0125] In some embodiments, when a timeout segmented task occurs, the electronic device promptly detects the task execution timeout, records the timestamp or other identifier of the timeout, and then matches it with the timestamp or other identifier of the sensor data. This associates the timeout segmented task with the corresponding second sensor data for use in subsequent task execution optimization strategies. The timeout segmented task is a segmented task with an execution duration greater than or equal to a first duration threshold. The first duration threshold can be set and determined according to the actual application scenario and requirements (for example, the first duration threshold can be any suitable duration such as 2s, 3s, or 5s). This embodiment of the invention does not impose any limitations on this.
[0126] Specifically, after obtaining the target statistical data, the timed-out segment task is determined from at least two segmented tasks after division, and then the second sensor data corresponding to the timed-out segment task is obtained based on the associated timed-out segment task and the second sensor data.
[0127] S350: Based on the data from the second sensor, determine the timeout reason for the timeout segmentation task.
[0128] Specifically, after obtaining the second sensor data corresponding to the timeout segmentation task, the second sensor data is analyzed and processed using techniques such as image processing, data mining, and feature extraction to extract useful information and features from the second sensor data, and the timeout reason of the timeout segmentation task is determined based on the extracted information and features.
[0129] For example, a segment of the task being performed is to navigate from the current location to the target location. However, this segment of the task times out. The system retrieves the second sensor data corresponding to the timed-out segment, such as the robot's communication data when calling the elevator. After analysis and processing, it is determined that the timeout was caused by the robot being obstructed from taking the elevator and unable to do so in time.
[0130] S360: Generate a task execution optimization strategy for the robot based on the timeout reason.
[0131] Specifically, after determining the cause of the timeout in the segmented task, an in-depth analysis of the cause is conducted. By studying the second sensor data in detail and combining it with the context and relevant information of the task execution, the specific problems causing the task execution timeout are identified. These include factors such as robot hardware failure, software errors, and environmental changes.
[0132] Then, based on the specific problem identified in the task execution timeout, the electronic device formulates and generates corresponding task execution optimization strategies. For example, in some embodiments, the timeout of a segmented task is caused by the robot being blocked from taking the elevator and unable to do so in time. In this case, the generated task execution optimization strategy may include improving the path planning algorithm, changing the configuration of the vision sensor, or changing the communication device for calling the elevator, in order to enhance the robot's environmental perception and obstacle avoidance capabilities.
[0133] In some embodiments, after obtaining the robot's task execution optimization strategy, the task execution optimization strategy is sent to the robot via a network connection. After receiving the task execution optimization strategy, the robot optimizes the execution of subsequent overall tasks according to the task execution optimization strategy.
[0134] Please see Figure 6 , Figure 6 A flowchart illustrating a robot task statistics method provided in some other embodiments of the present invention is shown.
[0135] Specifically, such as Figure 6 As shown, after obtaining the robot's task execution optimization strategy based on target statistical data, the robot task statistics method also includes, but is not limited to, the following step S400:
[0136] S400: Sends the task execution optimization strategy to the robot so that the robot can execute the subsequent overall task according to the task execution optimization strategy.
[0137] Specifically, after obtaining the task execution optimization strategy for the robot, the electronic device sends the task execution optimization strategy to the robot in a timely and accurate manner through a suitable communication method (such as wired connection, Bluetooth, Wi-Fi, etc.), so that the robot can execute the subsequent overall task according to the task execution optimization strategy.
[0138] After receiving a task execution optimization strategy from an electronic device, the robot parses the strategy, understands its content, and loads it into its control system. The robot then optimizes the execution of subsequent overall tasks based on the optimization strategy. For example, the robot may adjust the content of segmented tasks, adjust the execution order of segmented tasks, optimize path planning, and improve action execution methods, thereby completing the overall task more effectively.
[0139] In some embodiments, the overall task execution status of the robot can be determined based on the changes in the number of segmented tasks, thereby ensuring the successful completion of the overall task.
[0140] Specifically, in some embodiments, the robot task statistics method further includes, but is not limited to, the following step S500:
[0141] S500: Determine the overall task status based on changes in the number of segmented tasks.
[0142] The number of segmented tasks can be zero or non-zero.
[0143] Specifically, if the execution time of the overall task has not yet arrived, the overall task will not be divided, the number of segmented tasks will be zero, the overall task will not start execution, and the status of the overall task will be "waiting to be executed".
[0144] After the overall task execution time is reached, the overall task is divided into segments. At this time, the number of segments is non-zero. Then, the status of the overall task is determined based on the change in the number of segments after the division.
[0145] For example, in some embodiments, the state of the overall task is determined based on the change in the number of segmented tasks, specifically including but not limited to the following steps S510-S530:
[0146] S510: If the total number of segmented tasks is zero, then the overall task status is determined to be waiting to be executed.
[0147] Specifically, if the overall task has not been divided into corresponding segmented tasks due to the execution time of the overall task not yet arriving or other factors, it indicates that the total number of segmented tasks is zero, the overall task has not yet started execution, and the status of the overall task can be determined as waiting to be executed.
[0148] S520: If the total number of segmented tasks is not zero and the total number gradually increases, then the overall task status is determined to be in execution.
[0149] S530: If the total number of segmented tasks is not zero and the total number no longer increases, then the overall task status is determined to be completed.
[0150] Specifically, if the overall task has already begun execution, it is divided into corresponding segmented tasks, at which point the total number of segmented tasks is not zero. Furthermore, as tasks are executed, the total number of segmented tasks gradually increases, indicating that the overall task is in progress. Electronic devices can continuously monitor the execution status of the segmented tasks to ensure the smooth progress of the overall task and can adjust task execution strategies as needed to improve efficiency or resolve potential problems.
[0151] In some embodiments, if the total number of segmented tasks is not zero and the total number of segmented tasks no longer increases, the overall task status can be determined as completed, indicating that all segmented tasks assigned to the robot have been completed and the robot has completed the execution of the entire overall task.
[0152] In summary, the robot task statistics method provided in this embodiment of the invention is applied to an electronic device. The method includes: receiving task execution data sent by a robot, the task execution data including overall task and segmented task execution data, wherein an overall task includes at least two corresponding segmented tasks; obtaining target statistical data based on the task execution data, wherein the target statistical data includes the execution success rate and execution failure rate of the at least two segmented tasks and the execution time of each segmented task; and obtaining a task execution optimization strategy for the robot based on the target statistical data.
[0153] In this invention, by statistically analyzing the received task execution data of the overall robot task and segmented tasks, target statistical data is obtained. Based on the target statistical data, a task execution optimization strategy for the robot is obtained, enabling the robot to execute tasks according to the task execution optimization strategy, thereby improving the robot's work efficiency and reliability. It can also identify the main bottlenecks affecting robot performance and provide reference data for robot performance optimization.
[0154] This invention provides a computer-readable storage medium storing processor-executable computer program instructions. When invoked by a processor, the computer program instructions cause the processor to execute any of the robot task statistics methods provided in this invention, or to execute the steps in any possible implementation of any of the robot task statistics methods provided in this invention.
[0155] In some embodiments, the storage medium may be a flash memory, a hard disk, an optical disk, a register, a magnetic surface memory, a removable disk, a CD-ROM, a random access memory (RAM), a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, or any other form of storage medium known in the art, or various devices including one or any combination of the above storage media.
[0156] In some embodiments, computer program 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.
[0157] As an example, computer program instructions may, but do not necessarily, correspond to files in a file system, and may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple collaborative files (e.g., a file that stores one or more modules, subroutines, or code sections).
[0158] As an example, computer program instructions can be deployed to execute on a single computing device (including devices such as smart terminals and servers), or on multiple computing devices located in one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network. It is readily understood that all or part of the steps of the methods described in the embodiments of the present invention above can be implemented directly using electronic hardware or processor-executable computer program instructions, or a combination of both.
[0159] Those skilled in the art will understand that the embodiments provided by this invention are merely illustrative. The order in which the steps in the methods of the embodiments are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The order can be adjusted, merged, and deleted according to actual needs. Modules or sub-modules, units, or sub-units in the apparatus or system of the embodiments can be merged, divided, and deleted according to actual needs. For example, the division of units is merely a logical functional division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0160] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software and a general-purpose hardware platform, or it can be implemented using hardware. Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0161] It should be noted that the above embodiments are for illustrating the technical concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and implement it accordingly. They should not be construed as limiting the scope of protection of the present invention. Those skilled in the art can understand that all or part of the processes of the above embodiments can be implemented by modifying the technical solutions described in the embodiments of the present invention, or by making equivalent substitutions for some of the technical features. It is understood that these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention, and should be considered as equivalent changes and modifications made based on the embodiments of the present invention, all of which should fall within the scope of the claims of the present invention.
Claims
1. A robot task statistics method, applied to electronic equipment, characterized in that: The method comprises: Receiving task execution data sent by the robot, wherein the task execution data includes task execution data of an overall task and a segmented task, and an overall task includes corresponding at least two segmented tasks; Based on the task execution data, target statistical data are obtained, wherein the target statistical data include the execution success rate and execution failure rate of the at least two segmented tasks and the execution time of each of the segmented tasks; Based on the target statistical data, a task execution optimization strategy of the robot is obtained.
2. The method according to claim 1, characterized in that The task execution data includes the start execution time and the end execution time; The obtaining target statistical data based on the task execution data includes: Calculate the execution time of each of the segmented tasks according to the start execution time and the end execution time of each of the segmented tasks to obtain first statistical data; According to the execution results of each of the segmented tasks, respectively counting a first number of the first segmented tasks and a second number of the second segmented tasks in the at least two segmented tasks, wherein the first segmented task is a segmented task that is successfully executed, and the second segmented task is a segmented task that fails to be executed; Based on the first number and the second number, calculating the execution success rate and the execution failure rate of the at least two segmented tasks to obtain second statistical data; The first statistical data and the second statistical data are integrated to obtain the target statistical data.
3. The method according to claim 1, characterized in that: The step of optimizing the robot's task execution strategy based on the target statistical data includes: Acquire first sensor data corresponding to a segment task that fails to execute among the at least two segment tasks; Determining the failure reason of the failed segment task based on the first sensor data; generating a task execution optimization strategy for the robot according to the failure cause; and / or, Acquire second sensor data corresponding to a timed segment task among the at least two segment tasks, wherein the timed segment task is a segment task whose execution duration is greater than or equal to a first duration threshold; Determining a timeout reason for the timeout segment task based on the second sensor data; A task execution optimization strategy for the robot is generated according to the timeout reason.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The status of the overall task is determined according to the change in the quantity of the segmented tasks.
5. The method according to claim 4, characterized in that Determining the status of the overall task according to the change in the number of the segmented tasks includes: If the sum of the number of the segmented tasks is zero, determining that the state of the overall task is waiting for execution; If the sum of the number of the segmented tasks is not zero and the sum of the number gradually increases, then the state of the overall task is determined to be being executed; If the sum of the quantities of the segmented tasks is not zero and the sum of the quantities does not increase any more, it is determined that the status of the overall task is completed.
6. The method according to claim 1, characterized in that After receiving the task execution data sent by the robot, the method further includes: Deduplication processing is performed on the task execution data to obtain first task execution data; Correcting the format error of the first task execution data to obtain the second task execution data; Filling in the missing values in the second task execution data to obtain third task execution data; The third task execution data is converted into data in a unified format to obtain fourth task execution data.
7. The method according to claim 1, characterized in that After obtaining the task execution optimization strategy of the robot based on the target statistical data, the method further includes: The task execution optimization strategy is sent to the robot, so that the robot executes subsequent overall tasks according to the task execution optimization strategy.
8. The method according to claim 7, characterized in that The method further comprises: If receiving the task execution data sent by the robot fails, and it is detected that the reason for the failure to receive the data is a network abnormality, then stop receiving the task execution data sent by the robot. When the network is abnormal, the robot stores the task execution data locally on the robot, and then sends the task execution data to the electronic device after determining that the network is normal.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer program instructions executable by the processor, and when the computer program instructions are called by the processor, the processor executes the robot task statistics method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions executable by a processor, and when the computer program instructions are called by the processor, the processor executes the robot task statistics method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Task processing method and device, computer equipment and storage medium
CN114237886A
Task allocation method and device for multiple unmanned vehicles, vehicle and storage medium
CN115526417A
Robot scheduling method and device, equipment and medium
CN115890684A
Usability evaluation supporting apparatus
JP2005216311A
