Robot control method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202510370171.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2026-09-29
AI Technical Summary
[0004]鉴于上述问题,本申请实施例提出了一种机器人控制方法、装置、电子设备及存储介质,用以解决机器人控制方法局限性较大,无法在车辆测试场景中使用的问题
[0027]根据本申请的实施例的另一方面,提供了一种电子设备,所述电子设备包括处理器和计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序;当所述计算机程序被所述处理器执行时,使得所述处理器执行如上任一项所述的机器人控制方法。
Smart Images

Figure CN122829804A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of robotics, and in particular to a robot control method, device, electronic device, and storage medium. Background Technology
[0002] With the continuous development of robotics technology, robots are gradually being applied to various industries. A robot is a computer-controlled mechanical device capable of executing complex sequences of actions to complete specific tasks; it is a highly flexible automated machine.
[0003] Currently, robots are typically used in factory operations, where they are fixed to workstations. Each robot at each workstation performs the corresponding process according to a pre-programmed sequence. However, this method requires pre-writing fixed programs for the robots, which then perform fixed operations according to the same program. This has significant limitations and cannot be used in vehicle testing scenarios. Summary of the Invention
[0004] In view of the above problems, this application proposes a robot control method, device, electronic device and storage medium to solve the problem that the robot control method has great limitations and cannot be used in vehicle testing scenarios.
[0005] According to one aspect of an embodiment of this application, a robot control method is provided, applied to a cloud system, the method comprising:
[0006] Receive a communication channel establishment instruction for the robot sent by the control terminal, and establish a communication channel between the control terminal and the robot;
[0007] The system receives vehicle test task control instructions sent by the control terminal and sends the vehicle test task control instructions to the robot via the communication channel, so that the robot executes the operations indicated by the vehicle test task control instructions.
[0008] Optionally, the vehicle test task control instructions include at least one of the following: a vehicle test task creation instruction, a vehicle test task status acquisition instruction, a vehicle test task cancellation instruction, and a vehicle test task result confirmation instruction.
[0009] Optionally, the method further includes: acquiring and displaying information about the communication channel and network connections, wherein the network connections include the network connection between the cloud system and the control terminal, and the network connection between the cloud system and the robot.
[0010] Optionally, the method further includes: in response to a communication channel operation instruction, performing the operation indicated by the communication channel operation instruction on the communication channel; and in response to a network connection operation instruction, performing the operation indicated by the network connection operation instruction on the network connection.
[0011] Optionally, the method further includes: obtaining the robot's power information, and charging the robot according to the power information and a charging strategy; the charging strategy includes: if the power information is lower than a first threshold, charging the robot when the robot is not performing a vehicle testing task; if the power information is lower than a second threshold, forcibly charging the robot; the first threshold is greater than the second threshold.
[0012] Optionally, the method further includes: in response to a charging strategy operation instruction, performing the operation indicated by the charging strategy operation instruction on the charging strategy.
[0013] Optionally, the method further includes: acquiring and displaying the robot's status information and / or the status information of the robot's vehicle testing task; and sending the robot's status information and / or the status information of the vehicle testing task to a monitoring terminal that has subscribed to the robot.
[0014] Optionally, the method further includes: acquiring and displaying fault information of the robot; and issuing a fault alarm to the robot according to the fault information and an alarm strategy.
[0015] Optionally, the method further includes: acquiring and displaying statistical information, the statistical information including at least one of the following: robot statistical information, vehicle test task statistical information, and fault statistical information.
[0016] According to another aspect of the embodiments of this application, a robot control device is provided, applied to a cloud system, the device comprising:
[0017] The module is used to receive a communication channel establishment instruction for the robot sent by the control terminal, and to establish a communication channel between the control terminal and the robot.
[0018] The processing module is used to receive the vehicle test task control command sent by the control terminal, and send the vehicle test task control command to the robot based on the communication channel, so that the robot executes the operation indicated by the vehicle test task control command.
[0019] Optionally, the vehicle test task control instructions include at least one of the following: a vehicle test task creation instruction, a vehicle test task status acquisition instruction, a vehicle test task cancellation instruction, and a vehicle test task result confirmation instruction.
[0020] Optionally, the device further includes: a first acquisition module, configured to acquire and display information about the communication channel and network connections, wherein the network connections include the network connection between the cloud system and the control terminal, and the network connection between the cloud system and the robot.
[0021] Optionally, the device further includes: a first operation module, configured to perform the operation indicated by the communication channel operation instruction on the communication channel in response to the communication channel operation instruction; and to perform the operation indicated by the network connection operation instruction on the network connection in response to the network connection operation instruction.
[0022] Optionally, the device further includes: a second acquisition module, configured to acquire the robot's power information and charge the robot according to a charging strategy based on the power information; the charging strategy includes: if the power information is lower than a first threshold, charging the robot when the robot is not performing a vehicle testing task; if the power information is lower than a second threshold, forcibly charging the robot; the first threshold is greater than the second threshold.
[0023] Optionally, the device further includes: a second operation module, configured to perform the operation indicated by the charging strategy operation instruction in response to the charging strategy operation instruction.
[0024] Optionally, the device further includes: an information monitoring module, used to acquire and display the status information of the robot and / or the status information of the robot's vehicle testing task; and used to send the status information of the robot and / or the status information of the vehicle testing task to a monitoring terminal that has subscribed to the robot.
[0025] Optionally, the device further includes: a fault monitoring module, used to acquire and display fault information of the robot; and to issue fault alarms to the robot according to the fault information and an alarm strategy.
[0026] Optionally, the device further includes: a data statistics module for acquiring and displaying statistical information, the statistical information including at least one of the following: robot statistical information, vehicle test task statistical information, and fault statistical information.
[0027] According to another aspect of the embodiments of this application, an electronic device is provided, the electronic device including a processor and a computer-readable storage medium storing a computer program; when the computer program is executed by the processor, the processor causes the processor to perform the robot control method as described in any of the preceding claims.
[0028] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, causes the processor to perform the robot control method as described in any of the preceding claims.
[0029] In this embodiment, the cloud system receives a communication channel establishment instruction for the robot from the control terminal, establishing a communication channel between the control terminal and the robot. The cloud system also receives a vehicle test task control instruction from the control terminal and sends it to the robot via the communication channel, enabling the robot to execute the operations indicated by the instruction. Therefore, in this embodiment, by connecting the cloud system to both the control terminal and the robot, and having the control terminal issue a vehicle test task control instruction which is then sent to the robot by the cloud system, remote control of the robot in a vehicle testing scenario is achieved. This improves the efficiency of vehicle testing. Furthermore, this method eliminates the need for pre-programming a fixed program for the robot and allows for control of the robot to execute any type of vehicle test task control instruction in the testing scenario, thus offering greater flexibility and efficiency in robot control.
[0030] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0031] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some drawings of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 This is a flowchart of a robot control method according to an embodiment of this application;
[0033] Figure 2 This is a system architecture diagram of an embodiment of this application;
[0034] Figure 3 This is an interactive flowchart of an embodiment of this application;
[0035] Figure 4 This is a structural block diagram of a robot control device according to an embodiment of this application;
[0036] Figure 5This is a structural block diagram of an electronic device according to an embodiment of this application;
[0037] Figure 6 This is a structural block diagram of a computer-readable storage medium according to an embodiment of this application. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0039] The robot control method of this application embodiment is applied in a vehicle testing scenario. This method is executed on a cloud system, which can communicate with both the control terminal and the robot, thereby enabling remote control of the robot in the vehicle testing scenario. Specifically, the robot can be a robotic arm.
[0040] Reference Figure 1 The diagram shows a flowchart of a robot control method according to an embodiment of this application.
[0041] like Figure 1 As shown, the robot control method may include the following steps:
[0042] Step 101: Receive the communication channel establishment instruction for the robot sent by the control terminal, and establish a communication channel between the control terminal and the robot.
[0043] In this embodiment of the application, in the vehicle testing scenario, one or more robots can be configured, each robot can be responsible for testing different vehicle components, thereby jointly completing the vehicle testing process; one or more control terminals can be configured, each control terminal can be logged in and used by different users, thereby improving the flexibility of control.
[0044] In this embodiment, each robot can establish a network connection with the cloud system, and the robots and the cloud system communicate bidirectionally through their network connections; each control terminal can also establish a network connection with the cloud system, and the control terminals and the cloud system communicate bidirectionally through their network connections. The specific process of establishing the network connection can be handled based on practical experience, and will not be discussed in detail here.
[0045] For example, the network connection described above can be any applicable form such as a WebSocket connection (a protocol that enables full-duplex communication over a single TCP (Transmission Control Protocol) connection, abbreviated as CS).
[0046] In this embodiment of the application, when vehicle testing is required, the user can log in to the client in the control terminal. The control terminal can provide a user interface and display information such as the identification of each robot in the user interface. The user can select the robot to be controlled on the control terminal and click the relevant button in the user interface (such as the confirmation button, the communication channel establishment button, etc.) to trigger the communication channel establishment command for the robot. The control terminal sends the communication channel establishment command to the cloud system through the network connection between the control terminal and the cloud system.
[0047] In this embodiment of the application, after receiving the communication channel establishment instruction sent by the control terminal, the cloud system parses the communication channel establishment instruction and then establishes a communication channel between the control terminal and the robot (i.e., the robot selected by the user), thereby associating the control terminal with the robot.
[0048] For example, the communication channel establishment instruction may include, but is not limited to, the identifier of the control terminal, the identifier of the robot, communication channel establishment indication information, etc. The cloud system parses the communication channel establishment instruction and, under the instruction of the communication channel establishment indication information, establishes a communication channel between the control terminal and the robot based on the identifier of the control terminal and the identifier of the robot.
[0049] Step 102: Receive the vehicle test task control command sent by the control terminal, and send the vehicle test task control command to the robot based on the communication channel, so that the robot executes the operation indicated by the vehicle test task control command.
[0050] In this embodiment of the application, during the vehicle testing process, the user can trigger the vehicle test task control command by performing corresponding operations on the control terminal. The control terminal sends the vehicle test task control command to the cloud system through the network connection with the cloud system.
[0051] For example, the vehicle test task control instructions may include, but are not limited to, at least one of the following: creating a vehicle test task instruction, obtaining a vehicle test task status instruction, canceling a vehicle test task instruction, confirming a vehicle test task result instruction, etc.
[0052] For the command to create a vehicle test task, the user interface of the control terminal can display relevant information (such as identifiers) for each vehicle test task. The user can select the vehicle test task to be performed by the robot on the control terminal and click the relevant button in the user interface (such as the confirmation button, the create vehicle test task button, etc.) to trigger the command to create a vehicle test task for the robot.
[0053] For commands to obtain vehicle test task status, the user interface of the control terminal can provide a button such as "Obtain Vehicle Test Task Status". Users can click the "Obtain Vehicle Test Task Status" button to trigger commands to obtain vehicle test task status for the robot.
[0054] For the command to cancel the vehicle test task, the user interface of the control terminal can provide a "Cancel Vehicle Test Task" button, etc. The user can click the "Cancel Vehicle Test Task" button to trigger the command to cancel the vehicle test task for the robot.
[0055] When the control terminal receives the execution result of the robot's command to create a vehicle test task (the execution result can be successful or unsuccessful), if the execution result is successful, it can confirm whether the execution result of the command to create a vehicle test task is correct, and then trigger the command to confirm the vehicle test task result for the robot.
[0056] In this embodiment of the application, after the cloud system receives the vehicle test task control instruction sent by the control terminal, it determines the robot that needs to be controlled based on the communication channel. Based on the communication channel, the cloud system sends the vehicle test task control instruction to the robot through the network connection between the cloud system and the robot.
[0057] In this embodiment, after receiving the vehicle test task control command forwarded by the cloud system, the robot can execute the operation indicated by the vehicle test task control command. The specific content of the operation indicated by the vehicle test task control command can be set according to the actual vehicle test requirements; this embodiment does not impose any restrictions on this.
[0058] The instruction to create a vehicle test task may include the identifier of the vehicle test task and the test content of the vehicle test task, such as pressing a certain vehicle component according to a set pressing duration. The operation indicated by the instruction to create a vehicle test task can be to execute the test content of the vehicle test task.
[0059] The command to obtain the status of a vehicle test task may include an identifier for the vehicle test task and status acquisition indication information. The operation indicated by this command may be to retrieve the status information of the vehicle test task corresponding to the identifier, as instructed by the status acquisition indication information. This command can be used to obtain status information during the execution of a vehicle test task.
[0060] A command to cancel a vehicle test task may include an identifier for the vehicle test task and task cancellation instruction information. The operation indicated by this command is to cancel the vehicle test task corresponding to the identifier, as instructed by the task cancellation instruction information. This command can be used to cancel an ongoing vehicle test task.
[0061] The instruction to confirm the result of a vehicle test task may include an identifier for the vehicle test task and indication of whether the execution result of the vehicle test task is correct. The operation indicated by this instruction may be as follows: if the execution result of the vehicle test task corresponding to the identifier is successful and correct, no further processing is performed, and the system waits for other vehicle test tasks; if the execution result of the vehicle test task corresponding to the identifier is successful but incorrect, the vehicle test task is re-executed.
[0062] In this embodiment, after executing the operation instructed by the vehicle testing task control command, the robot can return the execution result of the vehicle testing task control command to the cloud system via a network connection. Upon receiving the execution result of the vehicle testing task control command sent by the robot, the cloud system determines the control terminal to which it needs to return based on the communication channel. The cloud system then returns the execution result of the vehicle testing task control command to the control terminal via the network connection with the control terminal, based on the communication channel.
[0063] For the instruction to create a vehicle test task, the execution result of the instruction may include the status information of the vehicle test task (specifically, it may include the execution result of the vehicle test task being executed successfully or unsuccessfully, etc.).
[0064] For the command to obtain the status of a vehicle test task, the execution result of the command may include the status information of the obtained vehicle test task (specifically, it may include the status information during the execution of the vehicle test task, etc.).
[0065] For a command to cancel a vehicle test task, the execution result of the command may include the cancellation result of the vehicle test task.
[0066] For a command to confirm the result of a vehicle test task, the execution result of the command may include the result of re-executing the vehicle test task.
[0067] In this embodiment, a cloud system is connected to both the control terminal and the robot. The control terminal issues vehicle test task control commands, which are then sent to the robot by the cloud system. This enables remote control of the robot in a vehicle testing scenario, improving the efficiency of vehicle testing. This method eliminates the need for pre-programming a fixed program for the robot and allows it to execute any type of vehicle test task control command in the vehicle testing scenario according to actual needs. Therefore, the robot control is more flexible and efficient.
[0068] In this embodiment, a cloud system enables users to remotely control the robot via a control terminal, and the WS protocol is used for real-time robot control. Furthermore, the cloud system can collect relevant data (such as robot status information, vehicle test task status information, etc.) to provide data support for robot optimization and evolution. It can also monitor and alert on faults occurring during robot operation, allowing operators to promptly identify problems, improve robot availability, and provide decision support for robot optimization and evolution. This ultimately improves robot control efficiency and reduces costs. The details are described below.
[0069] Reference Figure 2 The diagram illustrates a system architecture according to an embodiment of this application. Figure 2 As shown, the system may include a terminal layer, a cloud system, robots, and infrastructure.
[0070] I. Terminal Layer
[0071] The terminal layer can include Web (web page) operation terminals, monitoring terminals, and control terminals.
[0072] The web-based operation terminal provides users with a visual interface for robot control and data display. The web-based operation terminal can communicate with the cloud system using the HTTP (Hypertext Transfer Protocol) protocol.
[0073] The monitoring terminal communicates with the cloud system via the WS protocol to display the status information of the robot and the vehicle test task.
[0074] The control terminal is the terminal for controlling the robot. Users send control commands for vehicle testing tasks to the robot to the cloud system via the WS protocol through this control terminal.
[0075] II. Cloud System
[0076] The cloud system may include a control module, a console module, a charging strategy module, a task monitoring module, a device monitoring module, a fault monitoring module, and a data statistics module.
[0077] (1) Control module: The functions implemented include, but are not limited to, establishing channels, command management, establishing communication channels between the control terminal and the robot, and realizing remote control of the robot and data collection.
[0078] Reference Figure 3 The diagram illustrates an interactive flowchart of an embodiment of this application. Figure 3 The cloud system in the context can specifically refer to the control module within the cloud system.
[0079] like Figure 3 As shown, the interaction flow is as follows:
[0080] Establishing a communication channel: The control terminal establishes a WS connection with the cloud system. The control terminal periodically sends heartbeat signals to the cloud system, and the cloud system returns a heartbeat response to the control terminal. The control terminal and the cloud system maintain a persistent connection through heartbeats. Similarly, the robot establishes a WS connection with the cloud system. The robot periodically sends heartbeat signals to the cloud system, and the cloud system returns a heartbeat response to the robot. The robot and the cloud system maintain a persistent connection through heartbeats. The heartbeat signals sent by the robot may include, but are not limited to, robot status information, such as the robot's operating status, battery level, location, and error messages. The control terminal sends a communication channel establishment command to the cloud system for the robot. The cloud system completes the establishment of the communication channel between the control terminal and the robot and returns the establishment result to the control terminal.
[0081] Task Execution: The control terminal sends a vehicle test task creation command to the cloud system, which then forwards the command to the robot. The robot sends a status feedback message to the cloud system (which may include whether the vehicle test task creation command was successfully received), and the cloud system sends a status feedback message to the control terminal. The robot executes the operations indicated by the vehicle test task creation command and sends test status feedback to the cloud system (which may be the execution result of the aforementioned vehicle test task creation command), which in turn sends a test status feedback message to the control terminal. The control terminal confirms the test status feedback information based on the bench signal and sends a vehicle test task result confirmation command to the cloud system. The cloud system forwards the vehicle test task result confirmation command to the robot, which executes the operations indicated by the command. If the confirmation is successful, the robot proceeds to the next vehicle test task; if the confirmation fails, the robot retryes.
[0082] Obtaining Task Status: The control terminal sends a command to the cloud system to obtain the vehicle test task status. The cloud system forwards the command to the robot. The robot obtains the status information of the vehicle test task and sends test status feedback to the cloud system (which may include the execution result of the vehicle test task status command, such as the obtained vehicle test task status information). The cloud system then sends test status feedback to the control terminal.
[0083] Cancel the task: The control terminal sends a command to the cloud system to cancel the vehicle test task. The cloud system forwards the command to the robot. The robot cancels the vehicle test task indicated by the command and sends a cancellation result to the cloud system (which may include the execution result of the command). The cloud system then sends the cancellation result to the control terminal.
[0084] (2) Console module: The functions implemented include, but are not limited to, connection management and channel management, and the management of network connections between the robot and the cloud system, network connections between the control terminal and the cloud system, and communication channels between the robot and the control terminal.
[0085] The console module can acquire and display information about communication channels and network connections, including the network connection between the cloud system and the control terminal, and the network connection between the cloud system and the robot. This allows users to promptly obtain information about the status of communication channels and network connections.
[0086] For example, the information of the communication channel may include, but is not limited to: channel identifier, client identifier (i.e., the client logged in on the control terminal), robot identifier, channel creation time, channel update time, channel status (normal, abnormal, etc.), etc.
[0087] For example, the network connection information between the cloud system and the control terminal may include, but is not limited to: connection identifier, client identifier (i.e., the client logged in on the control terminal), connection establishment time, connection status (normal, abnormal, etc.), etc. The network connection information between the cloud system and the robot may include, but is not limited to: connection identifier, robot identifier, connection establishment time, connection status (normal, abnormal, etc.), etc.
[0088] The console module also provides operation items for communication channels and network connections. These operation items can be buttons, etc. Users can trigger communication channel operation commands by clicking on the communication channel operation items. The console module responds to these commands by executing the operations indicated by the communication channel operation commands. For example, when a communication channel is abnormal, the user can click the delete button in the communication channel operation items to trigger a communication channel deletion command. The console module then deletes the communication channel in response to this command. This method provides operation functions for communication channels and network connections, enabling the timely deletion of abnormal communication channels or network connections.
[0089] Users can trigger network connection operation commands by clicking on network connection operation items. The console module responds to these commands by performing the operations indicated by the command. For example, when a network connection is abnormal, a user can click the delete button in the network connection operation items to trigger a network connection deletion command. The console module then deletes the network connection in response to this command.
[0090] (3) Charging strategy module: The functions implemented include, but are not limited to, configuring strategy, modifying strategy, executing strategy, and querying strategy.
[0091] The charging strategy module can configure a charging strategy, obtain the robot's battery level information, and charge the robot according to the charging strategy based on the battery level information. This method can ensure the robot's battery level and improve its availability.
[0092] For example, the charging strategy module can obtain the robot's battery level information from the heartbeat signal sent by the robot.
[0093] For example, the charging strategy may include: charging the robot when it is not performing a vehicle testing task if the battery level is below a first threshold; and forcing the robot to charge if the battery level is below a second threshold (stopping the task if it is currently performing a vehicle testing task); wherein the first threshold is greater than the second threshold. The specific values of the first and second thresholds can be set according to actual needs, and this embodiment does not impose any limitations on them. For example, the first threshold could be 20% of the total battery level, the second threshold could be 5% of the total battery level, and so on. Of course, the charging strategy can also take other forms, and can be configured according to actual needs.
[0094] The charging strategy module provides operation items for charging strategies. Users can click on these operation items to trigger charging strategy operation commands. The charging strategy module responds to these commands by executing the operations indicated by the commands. In this way, users can flexibly operate the robot's charging strategy according to their actual needs.
[0095] For example, charging policy operation instructions may include, but are not limited to: modify charging policy instructions, delete charging policy instructions, etc.
[0096] (4) Task monitoring module: The functions implemented include, but are not limited to, monitoring the execution status and progress of vehicle test tasks.
[0097] The task monitoring module can acquire and display the status information of the robot's vehicle testing tasks, so that users can know the status of the vehicle testing tasks in a timely manner.
[0098] For example, the status information of a vehicle testing task may include, but is not limited to: the identifier of the vehicle testing task, the identifier of the robot, the details of the vehicle testing task, the execution status of the vehicle testing task, the execution progress of the vehicle testing task, the execution result of the vehicle testing task, and so on.
[0099] The task monitoring module can send the status information of the vehicle test task to the monitoring terminal that has subscribed to the robot, so that the monitoring terminal can know the status of the vehicle test task in a timely manner.
[0100] (5) Equipment monitoring module: The functions implemented include, but are not limited to, monitoring the robot's equipment status and power information.
[0101] The equipment monitoring module can acquire and display the robot's status information so that users can know the robot's status in a timely manner.
[0102] For example, the robot's status information may include, but is not limited to: the robot's identifier, the robot's operating status, the robot's battery level, and so on.
[0103] The equipment monitoring module can send the robot's status information to the monitoring terminals that have subscribed to the robot, so that the monitoring terminals can know the robot's status in a timely manner.
[0104] (6) Fault monitoring module: The functions implemented include, but are not limited to, monitoring operational faults, task failures, interface errors, equipment emergency stops, and other fault alarms.
[0105] The fault monitoring module can acquire and display the robot's fault information, and issue fault alarms to the robot according to the alarm strategy based on the fault information. Alarm methods can include email, instant messaging, etc. This method enables real-time monitoring and timely alarms for faults, ensuring the robot's effectiveness.
[0106] The fault monitoring module can perform fault statistics, including total number of faults, total fault duration, fault type percentage (top 5 faults), equipment fault percentage, alarm count, etc. The module can also display detailed fault information, such as fault type, fault description, fault occurrence time, fault recovery time, fault duration, and whether automatic recovery is possible.
[0107] The fault monitoring module can be configured with alarm policies, such as alarm duration, alarm type, alarm for three consecutive task failures, alarm for emergency equipment stop, alarm for operational failure, and so on.
[0108] (7) Data statistics module: The functions implemented include, but are not limited to, fault statistics, equipment statistics, and task statistics.
[0109] The data statistics module can acquire and display statistical information, including at least one of the following: robot statistics, vehicle test task statistics, and fault statistics. This method allows for the visualization of statistical information, aiding in robot evolution and optimization.
[0110] Robot statistics may include, but are not limited to: the name of each robot, the robot's operating status, the robot's battery level, the robot's location information, and so on.
[0111] Vehicle test mission statistics may include, but are not limited to: total number of vehicle test missions, number of failures, success rate, top 5 failures, etc.
[0112] Fault statistics may include, but are not limited to: total number of faults, total fault duration, fault ranking, number of faults, etc.
[0113] III. Infrastructure
[0114] The infrastructure provides databases such as MySQL and Redis to store various data exchanged between the control terminal and the cloud system, and between the robot and the cloud system, including robot status information, vehicle test task status information, etc., for statistical analysis.
[0115] This application provides a solution for controlling a robot based on a cloud system, which improves the robot's control efficiency, enables the robot to be used in vehicle function testing scenarios, and allows the cloud system to monitor and alarm the vehicle testing tasks and the robot in real time, ensuring the robot's availability and facilitating its later maintenance.
[0116] Reference Figure 4 The diagram shows a structural block diagram of a robot control device according to an embodiment of this application.
[0117] like Figure 4 As shown, the robot control device may include the following modules:
[0118] The module 401 is used to receive a communication channel establishment instruction for the robot sent by the control terminal and establish a communication channel between the control terminal and the robot.
[0119] The processing module 402 is used to receive the vehicle test task control command sent by the control terminal, and send the vehicle test task control command to the robot based on the communication channel, so that the robot executes the operation indicated by the vehicle test task control command.
[0120] The establishment module 401 and the processing module 402 can correspond to the functions of the control module mentioned above.
[0121] Optionally, the vehicle test task control instructions include at least one of the following: a vehicle test task creation instruction, a vehicle test task status acquisition instruction, a vehicle test task cancellation instruction, and a vehicle test task result confirmation instruction.
[0122] Optionally, the device further includes: a first acquisition module, configured to acquire and display information about the communication channel and network connections, wherein the network connections include the network connection between the cloud system and the control terminal, and the network connection between the cloud system and the robot.
[0123] Optionally, the device further includes: a first operation module, configured to perform the operation indicated by the communication channel operation instruction on the communication channel in response to the communication channel operation instruction; and to perform the operation indicated by the network connection operation instruction on the network connection in response to the network connection operation instruction.
[0124] The first acquisition module and the first operation module can correspond to the functions of the aforementioned console module.
[0125] Optionally, the device further includes: a second acquisition module, configured to acquire the robot's power information and charge the robot according to a charging strategy based on the power information; the charging strategy includes: if the power information is lower than a first threshold, charging the robot when the robot is not performing a vehicle testing task; if the power information is lower than a second threshold, forcibly charging the robot; the first threshold is greater than the second threshold.
[0126] Optionally, the device further includes: a second operation module, configured to perform the operation indicated by the charging strategy operation instruction in response to the charging strategy operation instruction.
[0127] The second acquisition module and the second operation module can correspond to the functions of the charging strategy module mentioned above.
[0128] Optionally, the device further includes: an information monitoring module, used to acquire and display the status information of the robot and / or the status information of the robot's vehicle testing task; and used to send the status information of the robot and / or the status information of the vehicle testing task to a monitoring terminal that has subscribed to the robot.
[0129] The information monitoring module can correspond to the functions of the task monitoring module and the equipment monitoring module mentioned above.
[0130] Optionally, the device further includes: a fault monitoring module, used to acquire and display fault information of the robot; and to issue fault alarms to the robot according to the fault information and an alarm strategy.
[0131] Optionally, the device further includes: a data statistics module for acquiring and displaying statistical information, the statistical information including at least one of the following: robot statistical information, vehicle test task statistical information, and fault statistical information.
[0132] In this embodiment, a cloud system is connected to both the control terminal and the robot. The control terminal issues vehicle test task control commands, which are then sent to the robot by the cloud system. This enables remote control of the robot in a vehicle testing scenario, improving the efficiency of vehicle testing. This method eliminates the need for pre-programming a fixed program for the robot and allows it to execute any type of vehicle test task control command in the vehicle testing scenario according to actual needs. Therefore, the robot control is more flexible and efficient.
[0133] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0134] In embodiments of this application, an electronic device is also provided. This electronic device may include a processor and a computer-readable storage medium storing a computer program; when the computer program is executed by the processor, the processor causes the processor to perform the robot control method of any of the above embodiments.
[0135] Reference Figure 5 This diagram illustrates a structural block diagram of an electronic device according to an embodiment of this application. Figure 5 As shown, the electronic device 11 includes a processor 111 and a computer-readable storage medium 112, on which a computer program 1121 is stored.
[0136] The processor 111 is used to execute the computer program 1121 stored on the computer-readable storage medium 112. When the processor 111 executes the computer program 1121, it implements the robot control method of any of the above embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0137] The processor 111 mentioned above may include, but is not limited to: a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0138] The aforementioned computer-readable storage medium 112 may include, but is not limited to: read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), electronically erasable programmable read-only memory (EEPROM), hard disk, floppy disk, flash memory, etc.
[0139] In embodiments of this application, a computer-readable storage medium is also provided, on which a computer program is stored, which can be executed by a processor of an electronic device, and when the computer program is executed by the processor, the processor performs the robot control method as described in any of the above embodiments.
[0140] Reference Figure 6 This diagram illustrates a structural block diagram of a computer-readable storage medium according to an embodiment of this application. Figure 6 As shown, a computer program 211 is stored on a computer-readable storage medium 21. When the computer program 211 is executed by a processor, it causes the processor to perform the robot control method as described in any of the above embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0141] The various embodiments in this specification are related to each other and are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
[0142] It should be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and regulations of the locality and with authorization from the owner of the relevant device.
[0143] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0144] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0145] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0146] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application 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 each specific application, but such implementation should not be considered beyond the scope of this application.
[0147] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0148] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of 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 coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0149] 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.
[0150] In addition, 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.
[0151] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. In summary, the content of this specification should not be construed as a limitation of this application.
Claims
1. A robot control method, characterized in that, Applied to cloud systems, the method includes: Receive a communication channel establishment instruction for the robot sent by the control terminal, and establish a communication channel between the control terminal and the robot; The system receives vehicle test task control instructions sent by the control terminal and sends the vehicle test task control instructions to the robot via the communication channel, so that the robot executes the operations indicated by the vehicle test task control instructions.
2. The method according to claim 1, characterized in that, The vehicle test task control instructions include at least one of the following: creating a vehicle test task instruction, obtaining the vehicle test task status instruction, canceling a vehicle test task instruction, and confirming the vehicle test task result instruction.
3. The method according to claim 1 or 2, characterized in that, The method further includes: Acquire and display information about the communication channel and network connections, including the network connection between the cloud system and the control terminal, and the network connection between the cloud system and the robot.
4. The method according to claim 3, characterized in that, The method further includes: In response to a communication channel operation command, perform the operation indicated by the communication channel operation command on the communication channel; In response to a network connection operation command, perform the operation indicated by the network connection operation command on the network connection.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Obtain the robot's battery level information and charge the robot according to the charging strategy based on the battery level information; The charging strategy includes: if the power information is lower than a first threshold, then charging the robot when the robot is not performing a vehicle testing task; if the power information is lower than a second threshold, then forcibly charging the robot; wherein the first threshold is greater than the second threshold.
6. The method according to claim 5, characterized in that, The method further includes: In response to a charging strategy operation command, the operation indicated by the charging strategy operation command is performed on the charging strategy.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: Acquire and display the status information of the robot and / or the status information of the robot's vehicle testing task; The status information of the robot and / or the status information of the vehicle test task are sent to the monitoring terminal that has subscribed to the robot.
8. The method according to any one of claims 1 to 7, characterized in that, The method further includes: Acquire and display the robot's fault information; Based on the fault information and in accordance with the alarm strategy, a fault alarm is issued to the robot.
9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: Acquire and display statistical information, which includes at least one of the following: robot statistical information, vehicle test task statistical information, and fault statistical information.
10. A robot control device, characterized in that, The device, used in a cloud system, includes: The module is used to receive a communication channel establishment instruction for the robot sent by the control terminal, and to establish a communication channel between the control terminal and the robot. The processing module is used to receive the vehicle test task control command sent by the control terminal, and send the vehicle test task control command to the robot based on the communication channel, so that the robot executes the operation indicated by the vehicle test task control command.
11. An electronic device, characterized in that, The electronic device includes a processor and a computer-readable storage medium on which a computer program is stored; When the computer program is executed by the processor, the processor performs the robot control method as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the robot control method as described in any one of claims 1 to 9.