Robot function test method and device, terminal equipment and readable storage medium
By adjusting the robot's power reading method, receiving simulated test commands, and detecting the response results, the problem of low efficiency in robot functional testing was solved, achieving efficient power switching testing and avoiding charging and discharging operations.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- YOUDI ROBOT (WUXI) CO LTD
- Filing Date
- 2022-12-09
- Publication Date
- 2026-05-29
AI Technical Summary
Existing technologies for robot functional testing are inefficient, especially when testing between different battery levels, which requires frequent charging and discharging operations, resulting in long testing times.
By receiving simulated test commands, the robot's power reading method is adjusted so that the power to be tested is used as the current power. The robot's response under the current power is detected, and the functional test result is determined based on the response result, thus avoiding the actual charging and discharging process.
It improved the efficiency of functional testing, reduced testing time, simplified the operation process, and lowered testing costs.
Smart Images

Figure CN115890743B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of testing technology, and in particular relates to a functional testing method, apparatus, terminal device and readable storage medium for a robot. Background Technology
[0002] Robots are intelligent devices capable of replacing or assisting humans in performing tasks. Testing robots typically involves assessing their ability to respond correctly under varying battery levels. Current technologies often require consuming or recharging the robot to the desired test level, which is inefficient due to the time required for the robot to charge and discharge. Some technologies remove the battery from the robot and perform fast charging or discharging to the test level, but this necessitates disassembling the robot to remove and reinstall the battery, increasing operational complexity and also impacting testing efficiency. Especially when testing across different battery levels, the above methods require a charge-discharge cycle each time the battery level is adjusted, resulting in extremely low efficiency and lengthy testing times. Summary of the Invention
[0003] This application provides a method, apparatus, terminal device, and storage medium for testing the functionality of a robot, which can solve the problem of low efficiency in robot functional testing in the prior art.
[0004] The first aspect of this application provides a method for functional testing of a robot, comprising: receiving a simulated test instruction, the simulated test instruction carrying a power level to be tested; adjusting the power level reading method of the robot so that the robot uses the power level to be tested as the current power level of the robot; detecting the current response result of the robot under the current power level; and determining the functional test result of the robot based on the current response result and a baseline response result of the power level to be tested.
[0005] In some embodiments of this application, the functional testing method further includes: receiving a task execution instruction, the task execution instruction being used to instruct the robot to perform a target task; detecting the robot's current response result under the current battery level includes: detecting the robot's execution result of the target task based on the current battery level and the battery requirement of the target task; and using the execution result as the current response result.
[0006] In some embodiments of this application, the simulated test instruction further carries an update strategy for the battery level to be tested; adjusting the robot's battery reading method so that the robot uses the battery level to be tested as its current battery level includes: adjusting the robot's battery reading method so that the robot uses the battery level to be tested as its current battery level, and updating the current battery level according to the update strategy; detecting the robot's execution result of the target task based on the current battery level and the battery requirement of the target task includes: detecting the robot's execution result of the target task based on the current battery level and the battery requirement during the update process of the current battery level.
[0007] In some embodiments of this application, the update strategy includes: updating the current battery level according to a preset battery level growth function within a first preset time period; or updating the current battery level according to a preset battery level decrease function within a second preset time period.
[0008] In some embodiments of this application, the power to be tested includes a first power to be tested that is greater than the required power, and a second power to be tested that is less than or equal to the required power; adjusting the robot's power reading method so that the robot uses the power to be tested as the robot's current power includes: sequentially adjusting the robot's power reading method so that the robot uses the first power to be tested and the second power to be tested as the current power, respectively.
[0009] In some embodiments of this application, the robot is equipped with a display screen; the functional testing method further includes: detecting the displayed battery level on the display screen; comparing the displayed battery level with the battery level to be tested, and determining the display function test result of the robot.
[0010] In some embodiments of this application, the robot is equipped with a power management module. The power management module reads the actual battery level of the robot through a first reading path and reads the battery level to be tested through a second reading path. Adjusting the robot's battery level reading method includes: controlling the robot to switch the power management module from the first reading path to the second reading path; or, controlling the robot to replace the actual battery level read by the power management module from the first reading path with the battery level to be tested read from the second reading path.
[0011] A second aspect of this application provides a functional testing device for a robot, comprising: a receiving unit for receiving a simulated test command, the simulated test command carrying a power level to be tested; an adjustment unit for adjusting the robot's power level reading method so that the robot uses the power level to be tested as its current power level; a detection unit for detecting the robot's current response result under the current power level; and a testing unit for determining the robot's functional test result based on the current response result and a baseline response result of the power level to be tested.
[0012] A third aspect of this application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described robot functional testing method.
[0013] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described robot functional testing method.
[0014] The fifth aspect of this application provides a computer program product that, when run on a terminal device, causes the terminal device to execute the functional testing method for the robot described in any of the first aspects.
[0015] In the embodiments of this application, by receiving a simulated test command and adjusting the robot's power reading method, the robot uses the power level to be tested carried by the simulated test command as its current power level. Then, based on the robot's current response result under the current power level and the baseline response result under the power level to be tested, the robot's functional test result is determined. This eliminates the need to charge and discharge the battery during the functional test process. By adjusting the robot's internal power reading method, functional tests can be performed under different power levels to be tested, which improves testing efficiency compared to waiting for the battery to charge and discharge. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram illustrating the implementation process of a robot functional testing method provided in an embodiment of this application;
[0018] Figure 2 This is a schematic diagram of the structure of the robot provided in the embodiments of this application;
[0019] Figure 3 This is a schematic diagram of the human-computer interaction interface provided in an embodiment of this application;
[0020] Figure 4 This is a schematic diagram of the structure of a robot functional testing device provided in an embodiment of this application;
[0021] Figure 5 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are protected by this application.
[0023] To illustrate the technical solution of this application, specific embodiments are described below.
[0024] Figure 1 This illustration shows a schematic diagram of the implementation flow of a robot functional testing method according to an embodiment of this application. This method can be applied to terminal devices and is suitable for situations requiring improved functional testing efficiency. The aforementioned terminal device can refer to testing equipment used to test the robot, such as a computer, smartphone, or other smart device, or it can refer to the robot itself that needs to be functionally tested. It should be understood that the aforementioned robot can be a delivery robot, a welcoming robot, an inspection robot, or other types of robots, and this application does not impose any limitations on this.
[0025] Specifically, the above-mentioned functional testing method for the robot may include the following steps S101 to S104.
[0026] Step S101: Receive simulation test command.
[0027] In the embodiments of this application, when a functional test of the robot is required, the user can send a simulated test command to the terminal device. This simulated test command instructs the terminal device to perform a functional test on the robot, and it carries the amount of power to be tested. The amount of power to be tested is the amount of power required for the robot's functional test, and its specific value can be selected according to the actual situation, such as 1%, 11%, 22%, 55%, 88%, 96%, 99%, 100%, etc. In other words, after receiving the simulated test command, the terminal device can control the robot to perform a functional test at the required power level.
[0028] The method for receiving simulated test commands can be selected according to the actual situation. In some implementations, the user can input the simulated test commands through the human-computer interaction interface of the terminal device. In other implementations, the terminal device can obtain a pre-configured test script, parse the test script, and obtain the simulated test commands recorded in the test script.
[0029] Step S102: Adjust the robot's power reading method so that the robot uses the power to be tested as the robot's current power.
[0030] In the embodiments of this application, by default, the robot can read its own battery power according to a preset power reading method, using the actual battery power as the current power level. This current power level is the power used by the robot to make decisions and responses during operation. After receiving a simulation test command, the terminal device can adjust the robot's power reading method so that the robot uses the power level to be tested as its current power level. At this time, the robot will make a decision based on the power level to be tested. It should be understood that the aforementioned decision response includes, but is not limited to, going to a charging station to charge, performing corresponding tasks (such as delivery tasks, guidance tasks, voice broadcasting tasks, etc.), and controlling the robotic arm to perform corresponding actions (such as picking up items to be delivered, performing preset welcoming gestures, etc.).
[0031] Specifically, in some embodiments, the robot is equipped with a power management module. This module is used by the robot to select the current battery level. It reads the actual battery level of the robot via a first reading path and the battery level to be tested via a second reading path. The terminal device can control the robot to switch the power management module from the first reading path to the second reading path, and then use the battery level to be tested read from the second reading path as the current battery level.
[0032] For example, consider a robot as the terminal device mentioned above. Figure 2As shown, the robot may include a test configuration module, a power management module, a human-machine interaction module, and a battery. The power management module is connected to all three modules. By default, the power management module reads the actual battery charge from the battery through a first reading path, uses this actual charge as the current charge, and outputs it to the human-machine interaction module for decision-making. After receiving a simulated test command, the robot can parse the charge to be tested carried in the simulated test command through the test configuration module and adjust the robot's charge reading method. This allows the power management module to switch from the first reading path to a second reading path, reading the charge to be tested from the test configuration module through the second reading path, using this charge as the current charge, and outputting it to the human-machine interaction module for decision-making.
[0033] In other embodiments, the terminal device may also control the robot's power management module to read the power level simultaneously through the first reading path and the second reading path, and control the robot to replace the actual power level read by the power management module from the first reading path with the power level to be tested read from the second reading path, so that the power management module outputs the power level to be tested as the current power level.
[0034] Step S103: Detect the robot's current response result under the current battery level.
[0035] Specifically, the robot can choose to make a decision or not based on its current battery level. For example, if the current battery level is insufficient to make a decision, it can choose not to make a decision or go to a charging station to recharge. If the current battery level is sufficient to make a decision, it can choose to make the corresponding decision, such as performing a task or controlling the robotic arm to perform a specific action.
[0036] Terminal devices can detect whether the robot has made a decision and what kind of decision it has made through external detection methods such as vision and lidar, or through the robot's internal detection circuits or detection structures, and obtain the robot's current response result.
[0037] As an example, the robot's current and voltage detection circuit can be used to detect whether the robot is charging and obtain the robot's current response result under the current power level.
[0038] As another example, the robot's arm can be used to detect whether it has made a corresponding movement by using a posture sensor mounted on the robot arm, or by taking pictures of the robot with a camera and recognizing the obtained images, thus obtaining the robot's current response result under the current battery level.
[0039] As another example, the robot's positioning module can be used to detect whether the robot has moved to the target location indicated by the corresponding task, thereby detecting whether the robot's robotic arm has performed the corresponding task and obtaining the robot's current response result under the current battery level.
[0040] As another example, the audio output by the robot can be detected through the microphone and recognized to determine whether the robot is broadcasting the preset text, thus obtaining the robot's current response result under the current battery level.
[0041] It should be understood that this application is not limited to this, and different detection methods can be set for different robots according to the actual situation.
[0042] Step S104: Determine the functional test results of the robot based on the current response results and the baseline response results of the power to be tested.
[0043] The baseline response result characterizes the decision response the robot should make under the tested power level and can be set by the tester based on the power level. In the embodiments of this application, the current response result is compared with the baseline response result. If the current response result and the baseline response result are different, it indicates that the robot has not made the corresponding decision response as required, and the functional test result of the robot can be determined to be that the robot's function is abnormal. If the current response result and the baseline response result are the same, it indicates that the robot has made the correct decision response as required, and the functional test result of the robot can be determined to be that the robot's function is not abnormal.
[0044] For example, if the baseline response for a robot with 10% battery level is "Go to the charging station to charge," and the terminal device detects that the robot is not charging at the current battery level (i.e., the current response is "Not going to the charging station to charge"), then the functional test result indicates that the robot's charging decision-making function is abnormal. Conversely, if the terminal device detects that the robot is charging at the current battery level (i.e., the current response is "Go to the charging station to charge"), then the functional test result indicates that the robot's charging decision-making function is not abnormal.
[0045] In the embodiments of this application, by receiving a simulated test command and adjusting the robot's power reading method, the robot uses the power level to be tested carried by the simulated test command as its current power level. Then, based on the robot's current response result under the current power level and the baseline response result under the power level to be tested, the robot's functional test result is determined. This eliminates the need to charge and discharge the battery during the functional test process. By adjusting the robot's internal power reading method, functional tests can be performed under different power levels to be tested, which improves testing efficiency compared to waiting for the battery to charge and discharge.
[0046] In some implementations, the terminal device can test the robot's display function. Specifically, the robot can be equipped with a display screen, and the terminal device can detect the displayed battery level on the screen, compare the displayed battery level with the battery level to be tested, and determine the test result of the robot's display function.
[0047] by Figure 2 For example, the aforementioned human-computer interaction module can be used to display the current power level output by the power management module (i.e., the power level to be tested read from the second reading channel) on the display screen. If the displayed power level is different from the power level to be tested, it can be confirmed that the robot's display function test result indicates an abnormality in the robot's display function. If the displayed power level is the same as the power level to be tested, it can be confirmed that the robot's display function test result indicates that there is no abnormality in the robot's display function.
[0048] As an example, Figure 3 The human-computer interaction interface provided in this application is shown. Users can select "Simulate Single Power Quantity Distribution," input the power quantity to be tested, and click the "Send" button to send a simulated test command to the terminal device. For example... Figure 3 In the test, the user inputs a battery level of 31%. After clicking the "Send" button, the robot's power management module sends the 31% test battery level to the human-machine interface module instead of the actual battery level. This allows the human-machine interface module to control the display screen to show a 31% battery level. If the display shows a battery level of 31%, it indicates that the robot's display function is working correctly. If the display shows a battery level other than 31%, it indicates that the robot's display function is malfunctioning.
[0049] In other implementations, the terminal device can test the robot's decision-making capabilities.
[0050] Specifically, the terminal device can receive task execution instructions, which can be used to instruct the robot to perform a target task. When the terminal device is a robot, the robot can make decisions and respond based on the received task execution instructions. When the terminal device is a test device for the robot, it can receive task execution instructions issued by the user and forward them to the robot, enabling the robot to make decisions and respond based on the task execution instructions.
[0051] Before executing a target task, the robot needs to determine whether it is capable of performing the task based on its current battery level and the power requirements of the target task. The terminal device detects the robot's execution result based on the current battery level and the power requirements of the target task, and uses this result as the current response result. The current response result is then compared with the baseline response result to determine the functional test result of the robot's decision-making function.
[0052] For example, a terminal device can receive a delivery task execution instruction from a user. If the delivery task requires 20% battery power, the robot can determine whether it can execute the task based on its current battery level (i.e., the battery level to be tested) and the required 20%. If the current battery level is greater than the required 20%, it executes the delivery task; otherwise, it does not respond or returns to the charging station to recharge. Assuming the battery level to be tested is 21%, the baseline response is "execute delivery task." The terminal device can detect whether the robot has executed the delivery task, obtain the current response result, and compare the current response result with the baseline response result. If the current response result is "execute delivery task," it can be determined that the robot's decision-making function is normal; otherwise, it can be determined that the robot's decision-making function is abnormal.
[0053] To test the robot's decision-making response under different battery levels, the terminal device can sequentially adjust the robot's battery reading method so that the robot uses a first test battery level and a second test battery level as its current battery level. The first test battery level is greater than the required battery level, and the second test battery level is less than or equal to the required battery level.
[0054] For example, when the power requirement for a delivery task is 20%, the user can send two simulated test commands to the terminal device. One simulated test command carries a first test power level of 21%. The terminal device adjusts the robot's power reading method so that the robot uses the test power level of 21% as its current power level. Based on the robot's current response at the current power level of 21% and the baseline response, the robot's functional test result is determined. The other simulated test command carries a second test power level of 19%. The terminal device adjusts the robot's power reading method so that the robot uses the test power level of 19% as its current power level. Based on the robot's current response at the current power level of 19% and the baseline response, the robot's functional test result is determined. This allows testing whether the robot's decision-making response meets expectations when the current power level meets the target task's power requirement, and also whether the robot's decision-making response meets expectations when the current power level does not meet the target task's power requirement.
[0055] Furthermore, the aforementioned simulation test command can also carry an update strategy for the battery level to be tested. The terminal device can adjust the robot's battery level reading method so that the robot uses the battery level to be tested as its current battery level and controls the robot to update the current battery level according to the update strategy.
[0056] The update strategy can include updating the current battery level according to a preset battery growth function within a first preset time period, or updating the current battery level according to a preset battery decline function within a second preset time period. The first and second preset time periods can be adjusted according to actual needs. To save testing time, the first and second preset time periods can be set to 50 seconds, 30 seconds, etc. To simulate the actual charging and discharging process of the robot, the first and second preset time periods can also be set to 30 minutes, 1 hour, etc. Similarly, the battery growth function and battery decline function can be set according to actual conditions. For ease of testing, the battery growth function and battery decline function can be linear functions; to simulate the actual charging and discharging process of the robot, the battery growth function and battery decline function can also be curvilinear functions.
[0057] Correspondingly, the terminal device can detect the robot's execution result of the target task based on the current power level and the required power level during the current power level update process, and compare the execution result as the current response result with the baseline response result.
[0058] As an example, such as Figure 3 As shown, users can check "Simulate Battery Decrease," input a second preset duration of 50 seconds, and a battery decrease function y = -2x + 100 (where x is time and y is the battery level to be tested). Clicking "Send" generates a simulation test command, simulating the process of the battery level dropping from 100% to 0 within 50 seconds. Correspondingly, the terminal device can detect the robot's execution result of the target task based on the current battery level and the required battery level during this 50-second drop from 100% to 0, and compare the execution result as the current response result with the baseline response result. In this way, the robot's power consumption process can be simulated, testing whether the robot stops executing the target task when the initial battery level meets the target task's requirements and the target task is executed, and the battery level drops below the target task's required battery level.
[0059] As another example, such as Figure 3As shown, users can check "Simulate Battery Rise," input a preset duration of 50 seconds, and a battery growth function y = 2x (where x is time and y is the battery level to be tested). Clicking "Send" generates a simulation test command, simulating the process of the battery level rising from 0 to 100% within 50 seconds. Correspondingly, the terminal device can detect the robot's execution result for the target task based on the current battery level and the required battery level during this process, comparing the execution result as the current response result with the baseline response result. This simulates the robot's charging process, testing whether the robot can execute the target task after the battery level rises above the required level, provided the initial battery level is insufficient.
[0060] The aforementioned functional testing method can simulate various battery levels of the robot, enabling functional testing under different battery conditions without disassembling the robot, thus improving testing efficiency. Furthermore, it can simulate the robot rising or falling according to a specific function, allowing testing to cover functional levels from 100% to 0% battery in a short time. When the terminal device is a robot, functional testing can be performed using the robot's built-in human-machine interface module, eliminating the need to connect external devices (such as testing equipment) and reducing testing costs.
[0061] It should be noted that, for the sake of simplicity, the aforementioned method embodiments are described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders.
[0062] like Figure 4 The diagram shown is a structural schematic of a robot functional testing device 400 provided in an embodiment of this application. The robot functional testing device 400 is configured on a terminal device.
[0063] Specifically, the robot's functional testing device 400 may include:
[0064] The receiving unit 401 is used to receive a simulated test command, wherein the simulated test command carries the power to be tested;
[0065] The adjustment unit 402 is used to adjust the robot's power reading method so that the robot uses the power to be tested as the robot's current power.
[0066] Detection unit 403 is used to detect the current response result of the robot under the current power level;
[0067] The test unit 404 is used to determine the functional test result of the robot based on the current response result and the baseline response result of the power to be tested.
[0068] In some embodiments of this application, the receiving unit 401 may also be used to: receive a task execution instruction, the task execution instruction being used to instruct the robot to perform a target task; the detection unit 403 may specifically be used to: detect the execution result of the robot on the target task based on the current battery level and the battery requirement of the target task; and use the execution result as the current response result.
[0069] In some embodiments of this application, the above-mentioned simulation test instruction also carries an update strategy for the battery level to be tested; the above-mentioned adjustment unit 402 can be specifically used to: adjust the battery level reading method of the robot so that the robot takes the battery level to be tested as the current battery level of the robot, and update the current battery level according to the update strategy; the above-mentioned detection unit 403 can be specifically used to: detect the robot's execution result of the target task based on the current battery level and the required battery level during the update process of the current battery level.
[0070] In some embodiments of this application, the above-mentioned update strategy may include: updating the current power level according to a preset power increase function within a first preset time period; or updating the current power level according to a preset power decrease function within a second preset time period.
[0071] In some embodiments of this application, the power to be tested may include a first power to be tested that is greater than the required power and a second power to be tested that is less than or equal to the required power; the adjustment unit 402 may be specifically used to: sequentially adjust the power reading method of the robot so that the robot takes the first power to be tested and the second power to be tested as the current power.
[0072] In some embodiments of this application, the test unit 404 can also be used to: detect the displayed battery level on the display screen; compare the displayed battery level with the battery level to be tested, and determine the display function test result of the robot.
[0073] In some embodiments of this application, the robot is equipped with a power management module. The power management module can read the actual battery level of the robot through a first reading path, and the power management module can read the battery level to be tested through a second reading path. The adjustment unit 402 can be specifically used to: control the robot to switch the power management module from the first reading path to the second reading path; or, control the robot to replace the actual battery level read by the power management module from the first reading path with the battery level to be tested read from the second reading path.
[0074] It should be noted that, for the sake of convenience and brevity, the specific working process of the above-mentioned robot functional testing device 400 can be found in the following reference: Figures 1 to 3 The corresponding process of the method will not be described in detail here.
[0075] like Figure 5 The diagram shown is a schematic of a terminal device provided in an embodiment of this application. The terminal device 5 may include: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50, such as a robot functional testing program. When the processor 50 executes the computer program 52, it implements the steps in the aforementioned robot functional testing method embodiments, for example... Figure 1 Steps S101 to S104 are shown. Alternatively, when the processor 50 executes the computer program 52, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 4 The receiving unit 401, adjustment unit 402, detection unit 403, and testing unit 404 are shown.
[0076] The computer program can be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to complete this application. The one or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.
[0077] For example, the computer program can be divided into: a receiving unit, an adjustment unit, a detection unit, and a testing unit. The specific functions of each unit are as follows: the receiving unit receives a simulated test command carrying the power level to be tested; the adjustment unit adjusts the robot's power level reading method so that the robot uses the power level to be tested as its current power level; the detection unit detects the robot's current response result under the current power level; and the testing unit determines the robot's functional test result based on the current response result and the baseline response result of the power level to be tested.
[0078] The terminal device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that... Figure 5 This is merely an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown, or combine certain components, or different components. For example, the terminal device may also include input / output devices, network access devices, buses, etc.
[0079] The processor 50 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0080] The memory 51 can be an internal storage unit of the terminal device, such as a hard drive or RAM. The memory 51 can also be an external storage device of the terminal device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 51 can include both internal and external storage units. The memory 51 is used to store the computer program and other programs and data required by the terminal device. The memory 51 can also be used to temporarily store data that has been output or will be output.
[0081] It should be noted that, for the sake of convenience and brevity, the structure of the terminal device described above can also be referred to the specific description of the structure in the method embodiment, which will not be repeated here.
[0082] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0083] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0084] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for various specific applications, but such implementations should not be considered beyond the scope of this application.
[0085] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0086] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0087] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0088] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.
[0089] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for functional testing of a robot, characterized in that, include: Receive a simulation test command, the simulation test command carrying the power to be tested; Adjust the robot's power reading method so that the robot uses the power level to be tested as its current power level; Detect the robot's current response result under the current power level; Based on the current response result and the baseline response result of the power to be tested, the functional test result of the robot is determined; The functional testing method further includes: receiving a task execution instruction, the task execution instruction being used to instruct the robot to perform a target task; detecting the robot's current response result under the current battery level includes: detecting the robot's execution result of the target task based on the current battery level and the power requirement of the target task; and using the execution result as the current response result; The simulated test instruction also carries an update strategy for the battery level to be tested; adjusting the robot's battery reading method so that the robot uses the battery level to be tested as its current battery level includes: adjusting the robot's battery reading method so that the robot uses the battery level to be tested as its current battery level, and updating the current battery level according to the update strategy; detecting the robot's execution result of the target task based on the current battery level and the battery requirement of the target task includes: detecting the robot's execution result of the target task based on the current battery level and the battery requirement during the update process of the current battery level; The update strategy includes: updating the current battery level according to a preset battery level increase function within a first preset time period; or updating the current battery level according to a preset battery level decrease function within a second preset time period.
2. The functional testing method for a robot as described in claim 1, characterized in that, The power to be tested includes a first power to be tested that is greater than the required power, and a second power to be tested that is less than or equal to the required power. Adjusting the robot's power reading method so that the robot uses the power level to be tested as its current power level includes: The robot's power reading method is adjusted sequentially so that the robot uses the first power level to be tested and the second power level to be tested as the current power level, respectively.
3. The functional testing method for a robot as described in any one of claims 1 to 2, characterized in that, The robot is equipped with a display screen; the functional testing method further includes: Detect the battery level displayed on the screen; The displayed battery level and the battery level to be tested are compared to determine the test result of the robot's display function.
4. The functional testing method for a robot as described in any one of claims 1 to 2, characterized in that, The robot is equipped with a power management module. The power management module reads the actual battery level of the robot through a first reading path and reads the battery level to be tested through a second reading path. The adjustment of the robot's power reading method includes: The robot is controlled to switch the power management module from the first reading path to the second reading path; Alternatively, the robot can be controlled to replace the actual power level read by the power management module from the first reading channel with the power level to be tested read from the second reading channel.
5. A functional testing device for a robot, characterized in that, include: A receiving unit is used to receive a simulated test command, the simulated test command carrying the power to be tested; An adjustment unit is used to adjust the robot's power reading method so that the robot uses the power level to be tested as its current power level. The detection unit is used to detect the robot's current response result under the current power level; The testing unit is used to determine the functional test results of the robot based on the current response result and the baseline response result of the power to be tested. The receiving unit is also configured to receive a task execution instruction, which instructs the robot to perform a target task. The step of detecting the robot's current response result under the current power level includes: detecting the robot's execution result of the target task based on the current power level and the power requirement of the target task; and using the execution result as the current response result. The simulated test instruction also carries an update strategy for the battery level to be tested; adjusting the robot's battery reading method so that the robot uses the battery level to be tested as its current battery level includes: adjusting the robot's battery reading method so that the robot uses the battery level to be tested as its current battery level, and updating the current battery level according to the update strategy; detecting the robot's execution result of the target task based on the current battery level and the battery requirement of the target task includes: detecting the robot's execution result of the target task based on the current battery level and the battery requirement during the update process of the current battery level; The update strategy includes: updating the current battery level according to a preset battery level increase function within a first preset time period; or updating the current battery level according to a preset battery level decrease function within a second preset time period.
6. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the functional testing method for the robot as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the functional testing method for the robot as described in any one of claims 1 to 4.