Robot testing method and device and storage medium

By determining the model and parameters in robot testing, setting the test environment and scripts, executing and saving the test results, and generating error reports, the problem of not being able to test the functional characteristics of the robot environment in the existing technology is solved, and testing efficiency and model optimization are improved.

CN119217431AActive Publication Date: 2024-12-31YOUDI ROBOT (WUXI) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411109754.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-12-31
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

Existing robot testing solutions cannot effectively test the functional characteristics of robots in the entire environment, and relying on manual operations leads to inefficient testing.

Method used

After triggering the test instructions, determine the robot model and parameters, set the test environment and test scripts according to the parameters, execute the test script and save the results, and generate an error report to optimize the robot model if the test case is not passed.

Benefits of technology

The functional characteristics of the robot are tested throughout the environment, which improves the testing efficiency, and optimizes the performance of the robot model through automated scripts and error reporting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119217431A_ABST
    Figure CN119217431A_ABST
Patent Text Reader

Abstract

The invention discloses a robot testing method and device and a storage medium, and relates to the technical field of robot testing.The method comprises the steps that after a testing instruction is triggered, a robot model and corresponding parameters are determined; determining a test environment and a test script corresponding to the robot model according to the parameters, and executing the test script in the test environment; obtaining a test result of executing the test script, and storing the test time, the test condition and the test result corresponding to the execution of the test script; and if the test result is that the robot model does not pass the test case, generating an error report according to the test time, the test condition and the test result, so as to test the functional characteristics of the robot in the whole environment, thereby improving the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robot testing technology, and in particular to a robot testing method, device and storage medium. Background Art

[0002] At present, the testing plan for robots mainly involves splitting each software in the robot's software system and performing functional tests one by one. The specific testing process usually relies on manual operation and monitoring, and requires the execution of a large number of repetitive tasks and result recording. However, this testing method for a single robot software cannot test the functional characteristics of the robot in the entire environment. Moreover, the manual implementation of the robot test operation and monitoring process has low testing efficiency, which results in the inability of related plans to test the functional characteristics of the robot in the entire environment.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The present application provides a robot testing method, device and storage medium, aiming to solve the problem that related solutions cannot test the functional characteristics of the robot in the entire environment.

[0005] To achieve the above object, the present application provides a robot testing method, which comprises the following steps:

[0006] After triggering the test command, determine the robot model and corresponding parameters;

[0007] Determine the test environment and test script corresponding to the robot model according to the parameters, and execute the test script under the test environment;

[0008] Obtain the test result of executing the test script, and save the test time, test situation and the test result corresponding to executing the test script;

[0009] If the test result is that the robot model fails the test case, an error report is generated according to the test time, test situation and the test result.

[0010] In one embodiment, the step of determining the test environment and test script corresponding to the robot model according to the parameters includes:

[0011] Acquire the parameters of the robot model, wherein the parameters include model, motion capability and corresponding sensor type;

[0012] The channel width, slope height, slope angle and step height in the test environment are determined according to the model, movement ability and corresponding sensor type of the robot model, and the objects and layout of the test environment are determined according to the sensor type.

[0013] In one embodiment, after the test instruction is triggered, before the step of determining the robot model and the corresponding parameters, the step further includes:

[0014] Obtaining a test tool and determining a control system of the robot model;

[0015] An automation script is written according to the test tool and the control system and based on a preset language, wherein the automation script is used to simulate the navigation, object recognition and task execution of the robot model.

[0016] In one embodiment, before the step of obtaining a test tool and determining the control system of the robot model, the step further includes:

[0017] Checking the status and connection of the test equipment and operating to determine whether the test equipment is functioning properly;

[0018] Determine and detect whether the operating system and corresponding software dependency packages of the robot model are correctly installed;

[0019] Run the communication test system to check whether all interfaces are working properly, and execute preset test cases and simulation scenario tests to check whether the test system is operating normally;

[0020] When the test device operates normally, the operating system of the robot model and the corresponding software dependency packages are correctly installed, all interfaces operate normally, and the test system operates normally, normal prompt information is fed back to the test server.

[0021] In one embodiment, after the test instruction is triggered, before the step of determining the robot model and the corresponding parameters, the step further includes:

[0022] Acquire sensor data collected by the sensor, verify system performance and test system stability based on the sensor data;

[0023] and debugging and optimizing the test environment according to the sensor data.

[0024] In one embodiment, after the test instruction is triggered, before the step of determining the robot model and the corresponding parameters, the step further includes:

[0025] Acquire monitoring data captured in real time by a monitoring tool, wherein the monitoring data is various performance data of the robot when it is running;

[0026] The robot model is constructed according to the monitoring data, and the construction parameters of the robot model are optimized based on the training model.

[0027] In one embodiment, after the step of obtaining the test result of executing the test script and saving the test time, test situation and the test result corresponding to executing the test script, the method further includes:

[0028] If the test result is that the robot model passes the test case, the test script is deployed to the production environment, and a target test script is executed, wherein the target test script is the next pre-execution script associated with the test script in the script library.

[0029] In one embodiment, if the test result is that the robot model fails the test case, after the step of generating an error report according to the test time, the test situation and the test result, the step further includes:

[0030] Determine the corresponding parameter to be adjusted in the robot model according to the error report;

[0031] Optimize the corresponding module to be optimized in the robot model according to the parameter to be adjusted.

[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a robot testing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the robot testing method as described above.

[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the robot testing method as described above are implemented.

[0034] The present application provides a robot testing method, a robot testing device and a storage medium. After a test instruction is triggered, a robot model and corresponding parameters are determined, and then a test environment and a test script corresponding to the robot model are determined according to the parameters, and the test script is executed under the test environment, and a test result of executing the test script is obtained, and the test time, test situation and test result corresponding to the execution of the test script are saved. If the test result is that the robot model fails the test case, an error report is generated according to the test time, test situation and test result, so as to test the functional characteristics of the robot in the entire environment to improve the robot testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 This is a flowchart of a first embodiment of the robot testing method of the present application;

[0038] Figure 2 A schematic diagram of a flow chart of a second embodiment of the robot testing method of the present application;

[0039] Figure 3 This is a flowchart of a third embodiment of the robot testing method of the present application;

[0040] Figure 4 This is a schematic diagram of the architecture of the hardware operating environment of the robot testing equipment involved in the embodiment of the present application.

[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0044] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0045] The main solution of this application is: after triggering the test instruction, determine the robot model and the corresponding parameters; determine the test environment and test script corresponding to the robot model according to the parameters, and execute the test script under the test environment; obtain the test result of executing the test script, and save the test time, test situation and test result corresponding to the execution of the test script; if the test result is that the robot model fails the test case, generate an error report based on the test time, test situation and test result.

[0046] At present, the testing plan for robots mainly involves splitting each software in the robot's software system and performing functional tests one by one. The specific testing process usually relies on manual operation and monitoring, and requires the execution of a large number of repetitive tasks and result recording. However, this testing method for a single robot software cannot test the functional characteristics of the robot in the entire environment. Moreover, the manual implementation of the robot test operation and monitoring process has low testing efficiency, which results in the inability of related plans to test the functional characteristics of the robot in the entire environment.

[0047] After triggering the test instruction, the present application determines the robot model and the corresponding parameters, then determines the test environment and test script corresponding to the robot model according to the parameters, executes the test script under the test environment, obtains the test result of executing the test script, and saves the test time, test situation and test result corresponding to the execution of the test script. If the test result is that the robot model fails the test case, an error report is generated according to the test time, test situation and test result, so that the functional effects of the robot in the entire environment can be tested and the test efficiency can be improved.

[0048] It should be noted that the execution subject of this embodiment can be a robot test system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a robot test device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the robot test system as the execution subject as an example to illustrate this embodiment and the following embodiments.

[0049] Embodiment 1

[0050] Please refer to Figure 1 In the first embodiment, the robot testing method is applied to the testing server, and the robot testing method includes the following steps S10-S40:

[0051] Step S10: After the test instruction is triggered, the robot model and corresponding parameters are determined.

[0052] In this embodiment, the test instruction is a trigger signal for starting the test in the test system, which may be triggered by a test control bound to the test instruction, or a timer service may be set in the trigger in the test server, that is, when the preset duration is reached, the test instruction is automatically triggered. After the test instruction is triggered, the test server automatically obtains the robot model associated with the test instruction, wherein the robot model is a model used for simulation testing in the test server. Then, the corresponding parameters are determined in the robot model, and the parameters may be the identification of the robot model to distinguish different types of robot models. It is understandable that there may be multiple robot models corresponding to the parameters, but the types of the multiple robot models are the same.

[0053] Optionally, in this embodiment, before step S10, the following steps are further included:

[0054] Acquire sensor data collected by sensors, verify system performance and test system stability based on the sensor data; and debug and optimize the test environment based on the sensor data.

[0055] Specifically, the sensor can be used to collect environmental parameters in the real-time operating environment of the robot and the performance data of the robot, or it can be data collected by simulated sensors. Then, based on the environmental parameters in the acquired sensor data, the stability of the system in long-term operation is evaluated, and potential hardware and software problems are detected. The robot's performance data can be used to verify whether the control algorithm and decision logic of the robot in the system perform well under various environmental conditions. By using real sensor data to improve the accuracy of the simulation environment, the test results can be closer to the performance in actual applications, thereby improving the response speed and accuracy of the system.

[0056] For example, the timestamps of all sensors are synchronized by using a unified clock source (such as an NTP server or ROS clock). Then, during data processing and analysis, the data of different sensors are aligned according to the timestamps. It is also necessary to unify the standardized message format. By using a standard data format (such as ROS message type) to unify the data format of different sensors, standard message types such as sensor_msgs / Imu, sensor_msgs / LaserScan, and sensor_msgs / Image can be used to unify the data format of sensors. When there are incompatible formats used by some sensors, write ROS nodes or data conversion tools to convert the data into a standard format.

[0057] Step S20: determining the test environment and test script corresponding to the robot model according to the parameters, and executing the test script under the test environment.

[0058] In this embodiment, according to the robot model and parameters determined in step S10, the test environment and test script corresponding to the robot model are searched in the database with the parameters as keywords, so that the test environment is deployed in the test system and the test script is executed.

[0059] Optionally, in this embodiment, the step of determining the test environment and the test script corresponding to the robot model according to the parameters includes:

[0060] Obtain the parameters of the robot model, wherein the parameters include model, motion capability, and corresponding sensor type; determine the channel width, slope height, slope angle, and step height in the test environment according to the model, motion capability, and corresponding sensor type of the robot model, and determine the objects and layout of the test environment according to the sensor type.

[0061] Specifically, the model includes a robot model. Different robot models have different sizes and weights, so different models require different widths of channels and heights of slopes. Through the robot's movement ability, it is determined that the model of the robot can handle different slope angles and step heights. Different sensors require different test objects and layouts. The test objects and layouts here specifically gradually increase the slope angle during the test. Or dynamically change the position and height of the obstacle. Pedestrians and moving objects are simulated according to sensor data to test the robot's reaction. Among them, the parameters here are specifically exemplified, and the slope includes the angle, length and surface material of the slope. The steps include the height, depth and number of steps. The channel includes the width and length of the channel. The obstacles include the height, width and material of the obstacles. The parameters may also include elevator parameters and simulated pedestrian parameters, wherein the elevator parameters include the size, speed and load of the elevator. The simulated pedestrians include the number of pedestrians, speed and path. It is understandable that after determining the parameters of the robot model, the predefined configuration can be adjusted and controlled, that is, the parameters are predefined according to the robot model, and the parameters are dynamically adjusted using scripts during the test process.

[0062] In addition, you can create specific test scenarios in simulation software such as Gazebo. First, open Gazebo software and open the building editor. Use the building editor to select the created wall and its features, color, material, etc. After selecting the wall in the sidebar, you can see the newly created wall part in the preview area. Then edit the wall properties. Select one of the walls and double-click the middle part of the wall to open the wall property editor. In the editor, you can set the location coordinates, three-dimensional size, color and material of the wall. After saving the settings, the wall in the preview area will be updated accordingly. You can also create passages, ramps and elevators and set the corresponding parameters. If you already have a template or FloorPlan picture of a building or other simulation scene, you can import it directly and save the edited building and scene. If you need to further configure the scene, such as adding sensors, you can make the corresponding settings in Gazebo. You can also create or modify SDF (Simulation Description Format) files to configure the scene in more detail. After saving and configuring the scene, test it by starting Gazebo and loading the scene. Observe and verify in Gazebo whether the various parts of the scene meet expectations.

[0063] Step S30: Obtain the test result of executing the test script, and save the test time, test situation and the test result corresponding to the execution of the test script.

[0064] In this embodiment, after the test script is executed, the monitoring device in the test system will continue to monitor, and after the test script is executed, the test result is obtained in real time. In the process of executing the test script, the test execution data, that is, the test time and the test situation, are also monitored in real time through the monitoring module, and the test time, the test situation and the test result are saved, wherein the test result can be a test success or a test failure. In addition, the test time, the test situation and the test result are saved as a file (such as an XML file in JUnit format) for subsequent processing and analysis.

[0065] Specifically, record the start and end time of each test script to calculate the test duration. Also record the execution of each test step and its results (pass / fail), and record the usage of system resources during the test, such as CPU, memory, network bandwidth, etc. And when the test result is a test failure, record each failed test case, including the case name, steps, failure reason, etc., as well as the error and exception logs generated during the test, for easy analysis and debugging.

[0066] Step S40: If the test result is that the robot model fails the test case, an error report is generated according to the test time, test situation and the test result.

[0067] In this embodiment, the test case includes a preset test result. When the test result is inconsistent with the preset test result, it indicates that the robot model fails the test case. An error report is generated according to the test time, test condition and test result in the above steps.

[0068] Specifically, the error report can record the response time of the test system when processing different operations, and identify operations with longer response times. By monitoring the utilization of resources such as CPU, memory, disk IO, network, etc., the situation of high resource occupancy can be identified, and the above situation can be recorded in the error report. The number of requests processed by the system in a specific time period can also be recorded to identify the bottleneck of processing capacity. In addition, if an uncaught exception or error log appears during the test, it is determined to be a test failure. If the test case is not completed within the specified time, it is determined to be a test failure.

[0069] It is understandable that when the response time of the system in the error report exceeds the set threshold, it indicates that there is a performance bottleneck. If the utilization of a system resource (such as CPU, memory, disk IO) is at a high level for a long time (such as more than 80%), it indicates that there is a performance bottleneck. If the system throughput drops significantly when processing requests and cannot meet the expected processing capacity, it indicates that there is a performance bottleneck. The above data can be obtained by deploying data monitoring tools such as Prometheus (Alibaba Cloud fully managed service) or custom logging tools in the test server to capture key performance indicators such as battery usage, sensor output, and robot motion data in real time.

[0070] In addition, the test process can be integrated into the CI / CD (Continuous Integration / Continuous Deployment) pipeline. Successful tests can trigger the deployment process, while test failures will trigger warnings and error reports. When a version control system (such as GitHub, GitLab, or Bitbucket) receives new code, the trigger will trigger the CI / CD system (such as Jenkins, GitLab CI / CD) to automatically execute related test scripts. This is one of the core functions of the automated testing pipeline, ensuring that each code change can be automatically built and tested to ensure the quality and stability of the code.

[0071] Optionally, in this embodiment, after step S30, the following further steps are included:

[0072] If the test result is that the robot model passes the test case, the test script is deployed to the production environment, and a target test script is executed, wherein the target test script is the next pre-execution script associated with the test script in the script library.

[0073] Specifically, when the test result is consistent with the preset test result, the test result is determined to be that the robot model passes the test case. At this time, the test script is automatically deployed to the production environment through the CI / CD pipeline, and the next target test script is tested, wherein the target test script is the next pre-execution script associated with the test script in the script library.

[0074] It is understandable that after the error report is generated, ECharts or other data visualization tools can be used to develop a dashboard to display real-time data and historical trends in the error report to help testers quickly identify problems and perform analysis.

[0075] Furthermore, in this embodiment, after step S40, the following steps are further included:

[0076] Determine the corresponding parameters to be adjusted in the robot model according to the error report; and optimize the corresponding modules to be optimized in the robot model according to the parameters to be adjusted.

[0077] Specifically, the error report is input into a preset training model, so as to analyze the reason why the robot model was not tested successfully according to the error report, and the reason may be a faulty module in the robot model, i.e., a module to be optimized, and the parameter to be adjusted corresponding to the faulty module. By outputting the parameter to be adjusted and the module to be optimized, the corresponding module to be optimized in the robot model is optimized according to the parameter to be adjusted.

[0078] In addition, a feedback system can also be established to ensure that changes in the simulation environment can be reflected in the control algorithm in real time to test the adaptability and responsiveness of the robot under different environmental conditions. The data types fed back by the feedback system include, but are not limited to, sensor data, robot state data, and environmental change data. Sensor data includes data obtained by sensors such as IMU (inertial measurement unit), lidar, camera, ultrasonic sensor, etc. The robot state includes state information such as the robot's position, speed, and posture. Environmental change data includes change data in the simulation environment, such as changes in the position of obstacles, movement of dynamic objects, etc. And the data fed back by the feedback system can also include control instructions, wherein the control instructions can be instructions generated by the robot controller, such as speed instructions, navigation target points, etc.

[0079] Exemplarily, the step of implementing the real-time feedback data of the feedback system is to first obtain real-time data from various sensors and system components through data collection. Then, ROS (Robot Operating System) is used to simplify the data collection process, and ROS topics are used to publish and subscribe to the collected data.

[0080] In the technical solution provided in this embodiment, after the test instruction is triggered, the robot model and the corresponding parameters are determined, and then the test environment and the test script corresponding to the robot model are determined according to the parameters, and the test script is executed under the test environment, and then the test result of executing the test script is obtained, and the test time, test situation and the test result corresponding to the execution of the test script are saved. If the test result is that the robot model fails the test case, an error report is generated according to the test time, test situation and the test result, so that the functional characteristics of the robot in the entire environment can be tested to improve the test efficiency.

[0081] Embodiment 2

[0082] Please refer to Figure 2 In the second embodiment, before step S10, steps S50-S60 are also included:

[0083] Step S50: Acquire a test tool and determine the control system of the robot model.

[0084] Step S60: Writing an automation script according to the test tool and the control system and based on a preset language, wherein the automation script is used to simulate navigation, object recognition and task execution of the robot model.

[0085] In this embodiment, a test tool is first selected and installed, and the test tool may be Appium (automated open source tool) and Airtest (UI automated testing tool). By applying the robot's control system in the test tool and connecting the corresponding application program interface, and then writing automated scripts based on predefined test cases, these scripts can simulate manual operations, such as robot navigation, object recognition, task execution, etc. Run the script in the development environment to ensure that it can correctly perform all predetermined operations. Debug and optimize the script to improve its stability and efficiency.

[0086] Optionally, in this embodiment, before step S50, the following steps are further included:

[0087] Check the status and connection of the test equipment, and run to determine whether the test equipment is working properly; determine and detect whether the operating system and corresponding software dependency packages of the robot model are correctly installed; run the communication test system to detect whether all interfaces are working properly, and execute preset test cases and simulation scenario tests to detect whether the test system is operating normally; when the test equipment is working properly, the operating system and corresponding software dependency packages of the robot model are correctly installed, all interfaces are working properly, and the test system is operating normally, normal prompt information is fed back to the test server.

[0088] Specifically, first check the hardware where the test server is located, check the device status and connection status, and ensure that there is no damage or looseness. Then run the basic functions of the test server and the device self-test program to ensure that the equipment is working properly. Then use the self-test program in the test server to confirm whether the robot operating system and necessary software dependency packages are correctly installed. Running the communication test means running each communication interface to ensure that all interfaces are working properly. In addition, it is necessary to start the test system and check the log file to determine that there are no errors or warning messages in the current test system. And execute predefined test cases and simulation scenario tests in the test system, and listen to various aspects of the test system Performance data to ensure that the system is operating normally. Finally, it is necessary to verify the accuracy of the sensor output data and check the correctness of the control unit output signal.

[0089] In the technical solution provided in this embodiment, a test tool is obtained and the control system of the robot model is determined. Then, an automation script is written based on the test tool and the control system and based on a preset language. The automation script is used to simulate the navigation, object recognition and task execution of the robot model, thereby completing the writing of the robot model test script and improving the control accuracy of the robot model.

[0090] Embodiment 3

[0091] Please refer to Figure 3 In the third embodiment, before step S10, steps S70-S80 are also included:

[0092] Step S70: Acquire monitoring data captured in real time by the monitoring tool, wherein the monitoring data is various performance data of the robot during operation.

[0093] Step S80: construct the robot model according to the monitoring data, and optimize the construction parameters of the robot model based on the training model.

[0094] In this embodiment, the monitoring tool can be monitoring software integrated in the robot control system or an externally deployed industrial Internet of Things platform, and the monitoring data is various performance data of the robot during operation. The robot model is constructed by the monitoring data, and the robot model is iteratively optimized by the training model, so as to continuously optimize the construction parameters of the robot model.

[0095] Specifically, the monitoring data includes: whether the robot is currently in operation, pause, fault or standby state. The robot's workload, that is, monitoring the ratio of the actual load carried by the robot to the rated load, and the load fluctuation over time. The robot's joint / degree of freedom position and speed, recording the actual position, speed and acceleration of each joint or degree of freedom of the robot, to analyze the smoothness and accuracy of the robot's movement. The robot's motor current and temperature, by monitoring the current consumption and temperature of the robot's drive motor, may indicate overload or potential fault points if too high. The robot's energy consumption, that is, recording the energy consumption of the robot under different operating tasks. The robot's fault alarm and error code, real-time capture of any fault alarm or error code generated by the system, to simulate rapid response and troubleshooting in the robot model. Sensor data, including but not limited to robot-related data captured by force sensors, visual sensors, proximity sensors, etc. The robot's network and communication status, monitoring the communication delay and packet loss rate between the robot and the control system, to ensure the stability and timeliness of command transmission.

[0096] In the technical solution provided in this embodiment, by acquiring monitoring data captured in real time by a monitoring tool, wherein the monitoring data is various performance data of the robot during operation, and then building the robot model according to the monitoring data, and optimizing the construction parameters of the robot model based on the training model, the construction efficiency of the robot model and the restoration degree of the robot model can be improved, thereby making the robot test more realistic.

[0097] Since the system introduced in the embodiment of the present application is a system used to implement the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the embodiment of the present application belong to the scope of protection of this application.

[0098] The present application provides a robot testing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the robot testing method in the above-mentioned embodiment one.

[0099] Reference below Figure 4 , which shows a schematic diagram of the structure of a robot test device suitable for implementing the embodiment of the present application. The robot test device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The robot testing device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0100] like Figure 4 As shown, the robot test device may include a processing device 1001 (e.g., a core processor, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the robot test device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the robot test device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a robot test device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0101] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0102] The robot testing device provided by the present application adopts the robot testing method in the above embodiment, which can solve the technical problem that the relevant solution cannot test the functional characteristics of the robot in the entire environment. Compared with the prior art, the beneficial effects of the robot testing device provided by the present application are the same as the beneficial effects of the robot testing method provided by the above embodiment, and the other technical features in the robot testing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0103] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0104] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0105] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the robot testing method in the above-mentioned embodiment.

[0106] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0107] The computer-readable storage medium may be included in the robot testing device; or may exist independently without being assembled into the robot testing device.

[0108] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the robot testing device, the robot testing device: determines the robot model and the corresponding parameters after triggering the test instruction; determines the test environment and test script corresponding to the robot model according to the parameters, and executes the test script under the test environment; obtains the test result of executing the test script, and saves the test time, test situation and the test result corresponding to the execution of the test script; if the test result is that the robot model fails the test case, generates an error report according to the test time, test situation and the test result.

[0109] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0110] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0111] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0112] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned robot testing method, and can solve the technical problem that the related solutions cannot test the functional characteristics of the robot in the entire environment. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the robot testing method provided by the above-mentioned embodiment, and will not be repeated here.

[0113] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the robot testing method as described above when executed by a processor.

[0114] The computer program product provided by the present application can solve the technical problem that the related solutions cannot test the functional characteristics of the robot in the entire environment. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the robot testing method provided by the above embodiment, which will not be repeated here.

[0115] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A robot testing method, characterized in that: Applied to the test server, the robot testing method comprises the following steps: After triggering the test command, determine the robot model and corresponding parameters; Determine the test environment and test script corresponding to the robot model according to the parameters, and execute the test script under the test environment; Obtain the test result of executing the test script, and save the test time, test situation and the test result corresponding to executing the test script; If the test result is that the robot model fails the test case, an error report is generated according to the test time, test situation and the test result.

2. The method according to claim 1, characterized in that The step of determining the test environment and test script corresponding to the robot model according to the parameters comprises: Acquire the parameters of the robot model, wherein the parameters include model, motion capability and corresponding sensor type; The channel width, slope height, slope angle and step height in the test environment are determined according to the model, movement ability and corresponding sensor type of the robot model, and the objects and layout of the test environment are determined according to the sensor type.

3. The method according to claim 1, characterized in that After the test instruction is triggered, before the step of determining the robot model and the corresponding parameters, the step further includes: Obtaining a test tool and determining a control system of the robot model; An automation script is written according to the test tool and the control system and based on a preset language, wherein the automation script is used to simulate the navigation, object recognition and task execution of the robot model.

4. The method according to claim 3, characterized in that Before the step of obtaining the test tool and determining the control system of the robot model, the method further includes: Checking the status and connection of the test equipment and operating to determine whether the test equipment is functioning properly; Determine and detect whether the operating system and corresponding software dependency packages of the robot model are correctly installed; Run the communication test system to check whether all interfaces are working properly, and execute preset test cases and simulation scenario tests to check whether the test system is operating normally; When the test device operates normally, the operating system of the robot model and the corresponding software dependency packages are correctly installed, all interfaces operate normally, and the test system operates normally, normal prompt information is fed back to the test server.

5. The method according to claim 1, characterized in that After the test instruction is triggered, before the step of determining the robot model and the corresponding parameters, the step further includes: Acquire sensor data collected by the sensor, verify system performance and test system stability based on the sensor data; and debugging and optimizing the test environment according to the sensor data.

6. The method according to claim 1, characterized in that After the test instruction is triggered, before the step of determining the robot model and the corresponding parameters, the step further includes: Acquire monitoring data captured in real time by a monitoring tool, wherein the monitoring data is various performance data of the robot when it is running; The robot model is constructed according to the monitoring data, and the construction parameters of the robot model are optimized based on the training model.

7. The method according to claim 1, characterized in that After the step of obtaining the test result of executing the test script and saving the test time, test situation and the test result corresponding to executing the test script, the method further includes: If the test result is that the robot model passes the test case, the test script is deployed to the production environment, and a target test script is executed, wherein the target test script is the next pre-execution script associated with the test script in the script library.

8. The method according to claim 1, characterized in that If the test result is that the robot model fails the test case, after the step of generating an error report according to the test time, the test situation and the test result, the method further includes: Determine the corresponding parameter to be adjusted in the robot model according to the error report; Optimize the corresponding module to be optimized in the robot model according to the parameter to be adjusted.

9. A robot testing device, characterized in that: The robot testing device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the robot testing method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the robot testing method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Robot scene test method, medium, terminal and device

    CN111002347A

  • Robot climbing performance test method and system and test controller

    CN114559467A

  • T-Box automatic testing method and device, equipment and storage medium

    CN116668336A

  • Robot software function test method and device, electronic equipment and storage medium

    CN118163144A

  • Moving test apparatus for wearable robot

    KR101860000B1