Visual perception distributed simulation method, system and device for cluster robots

By deploying an independent simulation platform and visual sensor module on the cluster robot, the twin client and virtual operation scene are constructed, which solves the problems of low visual simulation speed and large amount of calculation of the cluster robot, and achieves real-time and high-efficiency distributed visual simulation. efficiency.

CN118378450BActive Publication Date: 2024-09-03WESTLAKE UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410805866.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-03
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Among the existing cluster robot visual simulation methods, the distributed simulation speed is low and the calculation amount is large, which cannot effectively handle the increase in cluster size. As a result, the visual algorithm consumes more time, the processor processing volume increases explosively, and real-time joint simulation cannot be achieved. .

Method used

By deploying an independent simulation platform and visual sensor module on the cluster robot, the twin client and virtual operation scene are constructed, and the target twin client is determined using the frequency of information reception, and the position and posture are synchronously integrated and rendered, and the visual simulation computing power is distributed Reduce computing pressure and achieve overall visual simulation of the cluster.

Benefits of technology

It improves the speed and efficiency of cluster robot visual simulation, reduces computing pressure, realizes distributed joint real-time visual simulation, and improves the reliability of simulation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378450B
    Figure CN118378450B
Patent Text Reader

Abstract

The present application relates to a method, system and device for distributed simulation of visual perception of cluster robots. The method comprises: according to the set information receiving frequency, determining the target twin client of the current information extraction frame from each of the twin clients, and obtaining the posture information of each of the target twin clients; synchronously integrating the posture information of each of the target twin clients to obtain a posture synchronization integration result, and sending the posture synchronization integration result to each of the target twin clients; each of the target twin clients renders other twin clients in their respective virtual work scenes based on the posture synchronization integration result. This method can distribute the visual simulation computing power of the entire cluster to each independent robot, reduce the computing pressure of the entire cluster, and realize distributed joint real-time visual simulation of cluster robots.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robot vision simulation technology, and in particular to a distributed simulation method, system and device for visual perception of cluster robots. Background Art

[0002] With the development of swarm robot technology, the application of swarm robots has become more and more extensive. Before the actual swarm deployment, it is necessary to verify the swarm robot system through simulation experiments.

[0003] At present, simulations for cluster robot systems are divided into two categories. The first category does not consider the visual system and assumes that the visual system can already obtain the required measurements, so that the cluster system simulation can focus on dynamics and control. The advantage of this type of simulation is that it is fast and can handle large-scale cluster systems. However, its disadvantage is that it cannot rely on simulated visual algorithms, which is unacceptable for cluster systems with visual perception as the core. In addition, most of the distributed simulation methods in the prior art are pseudo-simulations, and it is impossible to perform joint real-time simulation on multiple machines. The second category is to add both visual perception and visual algorithms to cluster simulation. For example, in the simulation environment AirSim, we can equip each robot in the simulation cluster with a camera, and then call the visual algorithm to process the collected virtual reality pictures. The advantage of this type of simulation is that it can simulate the visual system with high fidelity, but because all robots are running on the same computer, the processing speed is low and the amount of calculation is large. Moreover, the visual algorithm consumes more time than the control and dynamic simulation of the robot, and the processing capacity of the processor will explode with the increase of the cluster size. Summary of the invention

[0004] Based on this, it is necessary to provide a distributed simulation method, system and equipment for the visual perception of cluster robots that can perform distributed visual simulation on cluster robots and improve the overall visual simulation speed of cluster robots in response to the above technical problems.

[0005] In a first aspect, the present application provides a distributed simulation method for visual perception of a cluster robot, wherein each of the robots uses an independent simulation platform to construct a corresponding twin client and a virtual operation scene, each of the twin clients includes a simulation visual sensor module, and the twin client uses the simulation visual sensor module to collect a virtual operation scene. The distributed simulation method for visual perception of the cluster robot includes:

[0006] According to the set information receiving frequency, determine the target twin client of the current information extraction frame from each of the twin clients, and obtain the position and posture information of each of the target twin clients;

[0007] The posture information of each target twin client is synchronously integrated to obtain a posture synchronization integration result, and the posture synchronization integration result is sent to each target twin client; based on the posture synchronization integration result, each target twin client renders other twin clients in its own virtual work scene.

[0008] In one embodiment, determining the target twin client of the current information extraction frame from each of the twin clients according to the set information receiving frequency, and obtaining the position and posture information of each of the target twin clients includes:

[0009] According to the set information receiving frequency, an information extraction time group is obtained; the information extraction time group includes at least one information extraction time point, and each of the information extraction time points corresponds to a frame of the information extraction frame;

[0010] Acquire the information extraction time point of the current information extraction frame from the information extraction time group;

[0011] Obtaining the real-time time point of the posture information to be sent on each twin client;

[0012] The twin client whose time difference between the real-time point and the information extraction time point of the current information extraction frame is less than or equal to the set threshold is used as the target twin client;

[0013] Obtain the position and posture information of each target twin client.

[0014] In one embodiment, the pose information includes the model pose and the global position of the model of the target twin client, and the pose information of each twin client is synchronously integrated to obtain a pose synchronization integration result including:

[0015] According to the information extraction time point of the current information extraction frame, the model posture of each target twin client and the global position of the model are timestamped to obtain the posture synchronization integration result.

[0016] In one embodiment, after sending the pose synchronization integration result to each of the target twin clients, the method further includes:

[0017] If the next information extraction frame needs to add at least one new twin client, the landing position information of at least one of the new twin clients in the virtual operation scene is determined, and the landing position information is sent to each of the new twin clients.

[0018] In one embodiment, determining the falling position of at least one of the newly added twin clients in the virtual operation scene includes:

[0019] Calculate the avoidance information of each newly added twin client in the virtual operation scenario of the current information extraction frame:

[0020] ;

[0021] in, Represents the direction of the repulsive force, R O represents the safety radius of the target twin client, x Oi 、x Oj Respectively represent the current positions of the i-th and j-th target twin clients, u Oi represents the input control amount of the i-th target twin client, that is, the avoidance information, N Oi Then it represents the set of neighboring twin clients of the i-th target twin client, k O is the collision avoidance coefficient;

[0022] According to the avoidance information, the whereabouts location information of each of the newly added twin clients is determined.

[0023] In one embodiment, after sending the pose synchronization integration result to each of the target twin clients, the method further includes:

[0024] Using a visual perception algorithm, obtaining a first distance between each of the target twin clients from the rendered virtual operation scene;

[0025] According to the position information of each of the target twin clients, obtaining a second distance between each of the target twin clients;

[0026] The visual perception algorithm is evaluated and optimized based on the errors between each of the first distances and the corresponding each of the second distances.

[0027] In a second aspect, the present application further provides a visual perception distributed simulation system for cluster robots, the system comprising a simulation server and a cluster robot, each of which is deployed with an independent simulation platform and a visual sensor module; each of the robots uses an independent simulation platform to construct a corresponding twin client and a virtual operation scene, each of the twin clients includes a simulation visual sensor module, and the twin client uses the simulation visual sensor module to collect virtual operation scenes;

[0028] The simulation server is used to determine the target twin client of the current information extraction frame from each of the twin clients according to the set information receiving frequency, and obtain the posture information of each of the target twin clients; synchronously integrate the posture information of each of the target twin clients to obtain a posture synchronization integration result, and send the posture synchronization integration result to each of the target twin clients;

[0029] Based on the pose synchronization integration result, each target twin client renders other twin clients in its own virtual work scene.

[0030] In one embodiment, the simulation server includes a simulation server and a wireless communication middleware.

[0031] The simulation server is used to forward the startup command of the upper PC to the corresponding robot; obtain the twin construction information of each robot and determine the number of existing twin clients; according to the set information receiving frequency, determine the target twin client of the current information extraction frame from each twin client;

[0032] The wireless communication middleware is used to obtain the posture information of each target twin client; synchronously integrate the posture information of each target twin client to obtain a posture synchronization integration result, and send the posture synchronization integration result to each target twin client.

[0033] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps corresponding to the method in the first aspect are implemented.

[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps corresponding to the method described in the first aspect are implemented.

[0035] The above-mentioned distributed simulation method, system and equipment for visual perception of cluster robots determine the target twin client of the current information extraction frame from each of the twin clients according to the set information receiving frequency, and obtain the posture information of each of the target twin clients; synchronously integrate the posture information of each of the target twin clients to obtain a posture synchronization integration result, and send the posture synchronization integration result to each of the target twin clients; based on the posture synchronization integration result, each of the target twin clients renders other twin clients in its own virtual work scene, and distributes the overall visual simulation computing power of the cluster on each independent robot, thereby reducing the overall computing pressure of the cluster and realizing distributed joint real-time visual simulation of cluster robots. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a structural block diagram of a visual perception distributed simulation system of a cluster robot in one embodiment;

[0037] Figure 2 A schematic diagram of a flow chart of a distributed simulation method for visual perception of a cluster robot in one embodiment;

[0038] Figure 3 A flowchart of a visual perception algorithm evaluation optimization process in one embodiment;

[0039] Figure 4 FIG. 2 is a flow chart of step 201 in an embodiment. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. 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.

[0041] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantity limitation, and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0042] The visual perception distributed simulation method of the cluster robot provided in the embodiment of the present application can be applied to Figure 1 In the visual perception distributed simulation system of the cluster robot shown. Among them, the cluster robot client 102 communicates with the simulation server 104 through the network. The data storage system 106 can store the data that the simulation server 104 needs to process. The data storage system 106 can be integrated on the simulation server 104, or it can be placed on the cloud or other network servers. Among them, the cluster robot client 102 can be but not limited to various smart cars, computers, etc. The simulation server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0043] Among them, each robot in the cluster robot is deployed with an independent onboard computer, an independent simulation platform and a visual sensor module. Each robot uses an independent simulation platform to build a corresponding twin client and a virtual work scene. Each twin client includes a simulated visual sensor module. Each twin client uses a simulated visual sensor module to collect virtual work scenes. Each robot can be self-started through external infrared control, or it can be started by receiving a startup command issued by the upper PC.

[0044] The simulation server 104 includes a simulation server and a wireless communication middleware. The simulation server is used to obtain the twin construction information of each robot and determine the number of twin clients that exist; according to the set information receiving frequency, the target twin client of the current information extraction frame is determined from each twin client. The wireless communication middleware is used to obtain the posture information of each target twin client; the posture information of each target twin client is synchronously integrated to obtain a posture synchronization integration result, and the posture synchronization integration result is sent to each target twin client.

[0045] The wireless communication middleware includes but is not limited to the MQTT (Message Queuing Telemetry Transport) protocol.

[0046] In addition, when the upper PC issues instructions according to the task, the simulation server can also be used to forward the instructions of the upper PC to the corresponding robot. The instructions include but are not limited to start instructions, command instructions, etc.

[0047] In one embodiment, Figure 2 As shown in the figure, a distributed simulation method for visual perception of cluster robots is provided. Figure 1 The simulation server in the example is used as an example to illustrate, including the following steps:

[0048] Each robot in the cluster can be regarded as an independent client. An independent simulation platform is built on each independent client. The independent simulation platform includes but is not limited to the airsim simulator and gazebo simulator. Each robot builds a corresponding twin client through an independent simulation platform, and subscribes to each twin client as a simulation node of the system through the ROS robot operating system. In this way, the simulation server can obtain the position and posture information of the twin client from each simulation node.

[0049] Step 201, according to the set information receiving frequency, determine the target twin client of the current information extraction frame from each of the twin clients, and obtain the position and posture information of each of the target twin clients.

[0050] The position information includes position data and posture data. The position data is the xyz coordinate parameters of the twin client in the current frame virtual operation scene, and the posture data is the quaternion of the twin client in the current frame virtual operation scene.

[0051] Specifically, since the simulation server acquires the posture information at a fixed information receiving frequency cycle, the information extraction time point corresponding to the current information extraction frame of the simulation server can be determined according to the set information receiving frequency. Since the update time of the posture information of each twin client itself is random, it is necessary to select the target twin client of the current information extraction frame from the subscribed twin clients to ensure that the posture information of each target twin client is the simulation data at the closest moment to the current information extraction time point, so as to improve the accuracy of the position and posture of other twin clients in the vision of the target twin client during the rendering of the subsequent steps. For example, the information extraction time point corresponding to the current information extraction frame of the simulation server is 11 o'clock, and there are n twin clients among the N twin clients whose real-time time of posture information update is close to or consistent with 11 o'clock, then the n twin clients are used as the target twin clients of the current information extraction frame to obtain the posture information at the corresponding time.

[0052] Step 202, synchronously integrate the posture information of each of the target twin clients to obtain a posture synchronization integration result, and send the posture synchronization integration result to each of the target twin clients.

[0053] Based on the pose synchronization integration result, each target twin client renders other twin clients in its own virtual work scene.

[0054] Specifically, the pose information of each target twin client is synchronously integrated according to the time of the current information extraction frame to obtain a pose synchronization integration result, and the pose synchronization integration result is sent to each target twin client. Since each twin client is an independent simulated individual, the initial simulation vision sensor module of each target twin client can only collect virtual work scenes, and other twin clients will not appear in the simulated vision. After the pose information extracted by the first information extraction frame is integrated and sent, other twin clients are rendered in the field of view of each target twin client. As the current information extraction frame is continuously updated, the field of view of each target twin client is continuously rendered and updated.

[0055] In the above-mentioned distributed simulation method of visual perception of cluster robots, the target twin client of the current information extraction frame is determined from each of the twin clients according to the set information receiving frequency, and the posture information of each target twin client is obtained; the posture information of each target twin client is synchronously integrated to obtain a posture synchronization integration result, and the posture synchronization integration result is sent to each target twin client; each target twin client renders other twin clients in its own virtual work scene based on the posture synchronization integration result, and distributes the overall visual simulation computing power of the cluster on each independent robot, thereby reducing the overall computing pressure of the cluster and realizing distributed joint real-time visual simulation of cluster robots.

[0056] In one embodiment, Figure 3 As shown, after step 202 sends the pose synchronization integration result to each of the target twin clients, the method further includes the following steps:

[0057] Step 301, using a visual perception algorithm, obtain the first distance between each of the target twin clients from the rendered virtual work scene.

[0058] Among them, the first distance is the predicted distance between each target twin client in the rendered virtual operation scene.

[0059] Step 302: Obtain a second distance between each of the target twin clients based on the position information of each of the target twin clients.

[0060] Among them, the second distance is the actual simulation distance between each target twin client during the simulation process.

[0061] Step 303: evaluating and optimizing the visual perception algorithm based on the errors between each of the first distances and the corresponding each of the second distances.

[0062] Specifically, the mean square error between the predicted distance and the actual simulation distance is calculated, and the visual perception algorithm of each target twin client is evaluated and optimized based on the mean square error to obtain an optimized visual perception algorithm.

[0063] More specifically, other twin clients are rendered in the field of view of each target twin client. As the current information extraction frame is continuously updated, the field of view of each target twin client is continuously rendered and updated, thereby obtaining the motion trajectory of each target twin client and the formation of the target twin clients at certain moments.

[0064] Preferably, in the target twin client formation, the frontmost twin client is the guide client, and the remaining twin clients are the follower clients. When each target twin client renders the field of view, the visual perception algorithm of each target twin client is optimized and evaluated by the mean square error between the predicted distance between other twin clients in the field of view and the real simulated distance of these target twin clients, and the performance of the visual perception algorithm on distance estimation is measured.

[0065] Exemplarily, the mean square error between the estimated distance and the true distance is calculated using the following formula:

[0066] ;

[0067] Among them, Er represents the mean square error, represents the predicted distance between the target twin client and any following client in the field of view, represents the predicted distance between the target twin client and the guide client in the field of view, d f represents the real simulation distance between the target twin client and any follower client, d l Represents the actual simulation distance between the target twin client and the guide client.

[0068] In this embodiment, since each twin client uses a visual perception algorithm to simulate the visual sensor module, the simulated visual sensor module is optimized through the first distance between the clients rendered in the field of view of each target twin client and the actual simulation distance of the simulation process of each target twin client, that is, the second distance, thereby improving the reliability of the cluster simulation process.

[0069] In one embodiment, Figure 4 As shown, step 201 determines the target twin client of the current information extraction frame from each of the twin clients according to the set information receiving frequency, and obtains the position and posture information of each of the target twin clients, including:

[0070] Step 401, obtaining an information extraction time group according to the set information receiving frequency; the information extraction time group includes at least one information extraction time point.

[0071] Each of the information extraction time points corresponds to an information extraction frame.

[0072] Step 402: Acquire the information extraction time point of the current information extraction frame from the information extraction time group.

[0073] Step 403, obtaining the real-time time point of the posture information to be sent on each of the twin clients.

[0074] Step 404, the twin client whose time difference between the real-time point and the information extraction time point of the current information extraction frame is less than or equal to a set threshold is used as the target twin client.

[0075] Step 405, obtaining the position and posture information of each target twin client.

[0076] In this embodiment, the target twin client is determined by comparing the real-time time point of the posture information with the information extraction time point corresponding to the current information extraction frame, thereby obtaining the valid posture information of the current information extraction frame, improving the accuracy and effectiveness of the posture synchronization integration results, and then realizing real-time cluster robot vision simulation, thereby improving the reliability of real-time simulation results.

[0077] More preferably, the posture information includes the model posture and the global position of the model of the target twin client. In step 202, the posture information of each twin client is synchronously integrated to obtain a posture synchronization integration result, which specifically includes the following contents:

[0078] According to the information extraction time point of the current information extraction frame, the model posture of each target twin client and the global position of the model are timestamped to obtain the posture synchronization integration result.

[0079] In this preferred embodiment, the pose information of the current information extraction frame is timestamped to obtain the pose integration result of the current information extraction frame, thereby achieving synchronous integration of the pose information of multiple robots.

[0080] In one embodiment, after step 202 sends the pose synchronization integration result to each of the target twin clients, the method further includes:

[0081] Step 203: If the next information extraction frame needs to add at least one new twin client, determine the landing position information of at least one of the new twin clients in the virtual operation scene, and send the landing position information to each of the new twin clients.

[0082] Specifically, during the algorithm simulation process, the simulation server does not intervene in the state of the twin client and does not avoid collisions and other behaviors to achieve the most native algorithm simulation. If the cluster needs to add at least one twin client in the current simulation scenario, it is necessary to determine the location of the newly added twin client in the current simulation scenario, that is, in the registration process of the newly added twin client joining the simulation scenario for the first time, it is necessary to handle the collision.

[0083] The step of determining the falling position of at least one of the newly added twin clients in the virtual operation scene specifically includes the following contents:

[0084] Calculate the avoidance information of each of the newly added twin clients in the virtual operation scenario of the current information extraction frame, and determine the falling position information of each of the newly added twin clients based on the avoidance information.

[0085] The avoidance information is obtained by the core algorithm of the artificial potential field method:

[0086] ;

[0087] in, Represents the direction of the repulsive force, R O represents the safety radius of the target twin client, x Oi 、x Oj Respectively represent the current positions of the i-th and j-th target twin clients, u Oi represents the input control amount of the i-th target twin client, that is, the avoidance information, N Oi Then it represents the set of neighboring twin clients of the i-th target twin client, k O is the collision avoidance coefficient.

[0088] In one embodiment, the method further comprises:

[0089] Forward the startup command of the upper PC to the corresponding robot, and the robot starts the independent simulation platform to build the corresponding twin client according to the startup command;

[0090] The twin construction information of each of the robots is obtained in real time, the number of existing twin clients is determined, and the number of twin clients is sent to the upper PC.

[0091] In this embodiment, if a startup instruction is received from the upper PC during the simulation process of the system, the simulation server forwards the startup instruction to the corresponding robot. After each robot is started, a corresponding twin client will be built according to its own independent simulation platform. The simulation server subscribes to each twin client through the wireless communication middleware, obtains the twin construction information of each robot in real time, and determines the number of twin clients that exist. When the upper PC needs it, the number of twin clients is forwarded to the corresponding upper PC.

[0092] In an exemplary embodiment, a distributed simulation method for visual perception of a swarm robot is provided, which is applied to Figure 1 The visual perception distributed simulation system of the cluster robot shown, where the cluster robot is a plurality of ground robots, specifically includes the following contents:

[0093] First, select the gazebo simulator as an independent simulation platform for each ground robot. Obtain the appearance model of the ground robot, set the export format of the appearance model to URDF format, import it into the corresponding gazebo simulator, and use the gazebo simulator to build the twin client of each ground robot. Each ground robot subscribes to each twin client as a simulation node through the ROS robot operating system.

[0094] Step 501, the simulation server subscribes to each twin client through the communication middleware MQTT and obtains the number of existing twin clients in real time.

[0095] Step 502: Control each ground robot to start automatically, and the gazebo simulator builds the twin client and virtual operation scene of each ground robot according to the appearance model. Each twin client uses the simulated visual sensor built by the visual algorithm to collect the virtual operation scene.

[0096] Step 503: According to the information receiving frequency set by the simulation server, the information extraction time group is obtained to determine the information extraction time point corresponding to the current information extraction frame.

[0097] In step 504, the simulation server obtains the real-time time point of the posture information to be sent on each twin client through the communication middleware MQTT, calculates the difference between each real-time time point and the information extraction time point, and takes the twin client whose difference is less than or equal to the set threshold as the target twin client, and obtains the posture information of each target twin client.

[0098] Step 505: The simulation server timestamps the pose information of each target twin client according to the information extraction time point of the current information extraction frame to obtain the pose synchronization integration result. The pose synchronization integration result is then sent to each target twin client using the communication middleware MQTT.

[0099] Step 506: Each of the target twin clients renders other twin clients in its own virtual work scene based on the pose synchronization integration result.

[0100] In this example embodiment, the visual simulation computing power of the entire ground robot cluster is distributed on each independent robot to reduce the overall computing pressure of the cluster, and by obtaining the effective pose information of the current information extraction frame, the accuracy of the pose synchronization integration results is improved, thereby realizing real-time cluster robot visual simulation and improving the reliability of real-time simulation results.

[0101] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0102] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0103] According to the set information receiving frequency, the target twin client of the current information extraction frame is determined from each of the twin clients, and the posture information of each of the target twin clients is obtained; the posture information of each of the target twin clients is synchronously integrated to obtain a posture synchronization integration result, and the posture synchronization integration result is sent to each of the target twin clients; based on the posture synchronization integration result, each of the target twin clients renders other twin clients in their respective virtual work scenes.

[0104] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0105] According to the set information receiving frequency, an information extraction time group is obtained; the information extraction time group includes at least one information extraction time point, and each information extraction time point corresponds to a frame of the information extraction frame; the information extraction time point of the current information extraction frame is obtained from the information extraction time group; the real-time time point of the posture information to be sent on each twin client is obtained; the twin client whose time difference between the real-time time point and the information extraction time point of the current information extraction frame is less than or equal to a set threshold is used as the target twin client; the posture information of each target twin client is obtained.

[0106] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0107] According to the information extraction time point of the current information extraction frame, the model posture of each target twin client and the global position of the model are timestamped to obtain the posture synchronization integration result.

[0108] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0109] If the next information extraction frame needs to add at least one new twin client, the landing position information of at least one of the new twin clients in the virtual operation scene is determined, and the landing position information is sent to each of the new twin clients.

[0110] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0111] Calculate the avoidance information of each newly added twin client in the virtual operation scenario of the current information extraction frame:

[0112] ;

[0113] in, Represents the direction of the repulsive force, R O represents the safety radius of the target twin client, x Oi 、x Oj Respectively represent the current positions of the i-th and j-th target twin clients, u Oi represents the input control amount of the i-th target twin client, that is, the avoidance information, N Oi Then it represents the set of neighboring twin clients of the i-th target twin client, k O is the collision avoidance coefficient; and according to the avoidance information, the falling position information of each of the newly added twin clients is determined.

[0114] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0115] Using a visual perception algorithm, a first distance between each target twin client is obtained from the rendered virtual work scene; based on the posture information of each target twin client, a second distance between each target twin client is obtained; based on the error between each first distance and the corresponding second distance, the visual perception algorithm is evaluated and optimized.

[0116] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps corresponding to the methods described in the above embodiments are implemented.

[0117] In one embodiment, a computer program product is provided, including a computer program, which implements the steps corresponding to the methods described in the above embodiments when executed by a processor.

[0118] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0119] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0120] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A distributed simulation method for visual perception of swarm robots, characterized in that: Each of the robots uses an independent simulation platform to construct a corresponding twin client and a virtual operation scene. Each of the twin clients includes a simulation visual sensor module. The twin client uses the simulation visual sensor module to collect the virtual operation scene. The method includes: According to the set information receiving frequency, obtain the information extraction time group; the information extraction time group includes at least one information extraction time point, and each information extraction time point corresponds to a frame of the information extraction frame; obtain the information extraction time point of the current information extraction frame from the information extraction time group; obtain the real-time time point of the posture information to be sent on each of the twin clients; take the twin client whose time difference between the real-time time point and the information extraction time point of the current information extraction frame is less than or equal to the set threshold as the target twin client; obtain the posture information of each of the target twin clients; The posture information of each target twin client is synchronously integrated to obtain a posture synchronization integration result, and the posture synchronization integration result is sent to each target twin client; based on the posture synchronization integration result, each target twin client renders other twin clients in its own virtual work scene.

2. The visual perception distributed simulation method of cluster robots according to claim 1 is characterized in that: The pose information includes the model pose and the global position of the model of the target twin client. The pose information of each twin client is synchronously integrated to obtain a pose synchronization integration result including: According to the information extraction time point of the current information extraction frame, the model posture of each target twin client and the global position of the model are timestamped to obtain the posture synchronization integration result.

3. The visual perception distributed simulation method of cluster robots according to claim 1, characterized in that: After sending the pose synchronization integration result to each of the target twin clients, the method further includes: If the next information extraction frame needs to add at least one new twin client, the landing position information of at least one of the new twin clients in the virtual operation scene is determined, and the landing position information is sent to each of the new twin clients.

4. The visual perception distributed simulation method of cluster robots according to claim 3 is characterized in that: Determining the falling position of at least one of the newly added twin clients in the virtual operation scene includes: Calculate the avoidance information of each newly added twin client in the virtual operation scenario of the current information extraction frame: ; in, Represents the direction of the repulsive force, R O represents the safety radius of the target twin client, x Oi 、x Oj Respectively represent the current positions of the i-th and j-th target twin clients, u Oi represents the input control amount of the i-th target twin client, that is, the avoidance information, N Oi Then it represents the set of neighboring twin clients of the i-th target twin client, k O is the collision avoidance coefficient; According to the avoidance information, the whereabouts location information of each of the newly added twin clients is determined.

5. The visual perception distributed simulation method of cluster robots according to claim 1, characterized in that: After sending the pose synchronization integration result to each of the target twin clients, the method further includes: Using a visual perception algorithm, obtaining a first distance between each of the target twin clients from the rendered virtual operation scene; According to the position information of each of the target twin clients, obtaining a second distance between each of the target twin clients; The visual perception algorithm is evaluated and optimized based on the errors between each of the first distances and the corresponding each of the second distances.

6. A visual perception distributed simulation system for swarm robots, characterized in that: The system includes a simulation server and a cluster robot, each of which is equipped with an independent simulation platform and a visual sensor module; Each of the robots uses an independent simulation platform to build a corresponding twin client and a virtual operation scene. Each of the twin clients includes a simulation visual sensor module. The twin client uses the simulation visual sensor module to collect the virtual operation scene. The simulation server is used to obtain an information extraction time group according to the set information receiving frequency; the information extraction time group includes at least one information extraction time point, and each of the information extraction time points corresponds to a frame of the information extraction frame; Obtain the information extraction time point of the current information extraction frame from the information extraction time group; obtain the real-time time point of the posture information to be sent on each of the twin clients; use the twin client whose time difference between the real-time time point and the information extraction time point of the current information extraction frame is less than or equal to a set threshold as the target twin client; obtain the posture information of each of the target twin clients; synchronously integrate the posture information of each of the target twin clients to obtain a posture synchronization integration result, and send the posture synchronization integration result to each of the target twin clients; Based on the pose synchronization integration result, each target twin client renders other twin clients in its own virtual work scene.

7. The system according to claim 6, characterized in that The simulation server includes a simulation server and a wireless communication middleware. The simulation server is used to forward the startup command of the upper PC to the corresponding robot; obtain the twin construction information of each robot and determine the number of existing twin clients; according to the set information receiving frequency, determine the target twin client of the current information extraction frame from each twin client; The wireless communication middleware is used to obtain the posture information of each target twin client; synchronously integrate the posture information of each target twin client to obtain a posture synchronization integration result, and send the posture synchronization integration result to each target twin client.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.