A training method and device for multi-robot arm multi-target search

Through clustering algorithm and fixed trajectory planning combined with reinforcement learning, the problem of dimensional explosion and collision in multi-robot multi-target search is solved, and the robot arm's efficient and accurate multi-target search capability is realized to adapt to the needs of industrial modernization.

CN116834018BActive Publication Date: 2024-08-27NANJING YUNCHUANG LARGE DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310981142.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-07
Publication Date
2024-08-27
Estimated Expiration
2043-08-07

AI Technical Summary

Technical Problem

In the existing technology, when multiple robot arms search for multiple random targets in the same industrial scenario, the dimensions of the total action space and the total state space explode, making it difficult to converge in the reinforcement learning network training, and the collision situation is serious, making it difficult to collect useful data. Unable to adapt to the needs of industrial modernization development.

Method used

A clustering algorithm is used to match the robot arm and the target, and a fixed trajectory planning algorithm is used for trajectory planning as pre-training experience. Then iterative training is performed through a reinforcement learning algorithm, and multiple reward functions are set to reduce collisions and improve explorability, and build Value network and stochastic policy network to update the robotic arm agent.

Benefits of technology

Through the combination of pre-training and multiple reward functions, the difficulty of exploration in high-dimensional action space is reduced, the efficiency and accuracy of the robotic arm in multi-target search are improved, and the adaptability and exploration capabilities in unknown scenarios are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116834018B
    Figure CN116834018B
Patent Text Reader

Abstract

The present invention belongs to the technical field of robot arm design, and provides a training method, method and training device for multi-robot arm multi-target search. The training method includes: matching each robot arm with each target based on a clustering algorithm, and planning the trajectory of each robot arm based on a fixed trajectory planning algorithm so that it can find each target matching it; then using the planned trajectory as the pre-training experience of each corresponding robot arm; using the pre-training experience as the prior knowledge accumulated by the corresponding robot arm, and performing interactive iterative training between the robot arm and the target based on a reinforcement learning algorithm until a preset iteration threshold is reached; then obtaining each trained robot arm; wherein the reward function in the reinforcement learning algorithm includes: a first reward function, a second reward function and a third reward function. The present invention ensures rapid convergence when performing multi-robot arm multi-target search based on a reinforcement learning algorithm, thereby meeting the new demands for robot arms in current industrial scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot arm design, and in particular to a training method and a training device for multi-robot arm multi-target search. Background Art

[0002] In the prior art, there are usually only 1-2 robotic arms involved in the same industrial scenario, and the grasping or operating targets corresponding to these robotic arms are unique and fixed. Therefore, traditional algorithms such as RRT can be used to train the robotic arm to perform repetitive target-finding tasks in a preset fixed trajectory.

[0003] However, with the development of industrial modernization, in order to improve industrial production efficiency, several robotic arms are required to search for several random targets in the same scene; at this time, traditional trajectory planning algorithms similar to RRT are completely inapplicable. Although reinforcement learning has been introduced into the target search of robotic arms in some scenarios. However, on the one hand, since the robotic arms are based on continuous actions in the execution of tasks, the motion space and state space of a single robotic arm are close to infinity. At this time, with the participation of several robotic arms, the total action space and total state space increase exponentially, leading to dimensionality explosion. As a result, the amount of calculation in the reinforcement learning network training process is extremely large and it is difficult to converge. On the other hand, with the increase in the number of robotic arms and the randomization of targets, the collision situation becomes more serious; this situation will make it difficult to collect useful data, which will also lead to training divergence.

[0004] All these result in multiple robotic arms trained by reinforcement learning being unable to successfully complete multiple random target searches, which in turn causes the robotic arms to be unable to adapt to the current needs of industrial modernization development. Summary of the invention

[0005] The purpose of the present invention is to provide a training method and a training device for multi-robot multi-target search, so as to improve the technical problem in the prior art that multi-robot multi-target search based on reinforcement learning is difficult to converge.

[0006] To achieve the above object, the present invention proposes the following technical solutions:

[0007] In the first aspect, the technical solution provides a training method for multi-robot multi-target search, including:

[0008] Based on the clustering algorithm, each robot arm is matched with each target, and based on the fixed trajectory planning algorithm, each robot arm is trajectory planned so that it can find each target that matches it; and then the planned trajectory is used as the pre-training experience of each corresponding robot arm;

[0009] The pre-training experience is used as the prior knowledge accumulated by the corresponding robotic arm, and interactive iterative training between the robotic arm and the target is performed based on the reinforcement learning algorithm until a preset iteration threshold is reached, thereby obtaining each trained robotic arm;

[0010] The reward function in the reinforcement learning algorithm includes: a first reward function, a second reward function and a third reward function. The first reward function is used to indicate that any two robotic arms collide, the second reward function is used to indicate that any robotic arm finds the target alone and the other robotic arms do not collide; the third reward function is used to indicate that all robotic arms find the target;

[0011] The first reward function, the second reward function and the third reward function all include a first reward item and a second reward item, the first reward item includes a distance penalty item and a time penalty item, and the second reward item includes an action penalty item.

[0012] Furthermore, the pre-training experience is used as the prior knowledge accumulated by the corresponding robot arm; including:

[0013] The planned trajectory is used as a state-action sequence, and the state-action sequence is split to form a number of state-action pairs; wherein the state is the relative position between the robot arm and the target, and the action is the position adjustment and posture adjustment of the robot arm under the state;

[0014] A training sample is constructed using the state in the state-action pair as a feature and the action as a corresponding label;

[0015] The corresponding robotic arm is trained based on the training samples to accumulate prior knowledge.

[0016] Furthermore, the interactive iterative training between the robot arm and the target based on the reinforcement learning algorithm until a preset iteration threshold is reached includes:

[0017] Set several distance thresholds between the robot end effector and the target;

[0018] When it is determined that the actual distance between the end effector of the robotic arm and the target is less than any distance threshold, a reward is given based on the corresponding reward function.

[0019] Furthermore, the interactive iterative training between the robot arm and the target is performed based on the reinforcement learning algorithm until a preset iteration threshold is reached, thereby obtaining each trained robot arm including:

[0020] Using the robotic arm as an intelligent agent to construct a value network and a random strategy network;

[0021] The value network and the random strategy network are iteratively updated with the maximum reward value and the maximum entropy of the optimal posture of the robot arm in each state as constraints until a preset iteration threshold is reached; thereby obtaining the optimal value network and random strategy network;

[0022] The robotic arm agent is updated based on the optimal value network and random strategy network to obtain the trained robotic arm.

[0023] In the second aspect, the technical solution provides a method for searching multiple targets with multiple manipulators. It includes:

[0024] Based on the trained robotic arms, multi-robotic arm multi-target searching is performed.

[0025] Furthermore, before the multi-manipulator multi-target search based on the trained manipulator includes:

[0026] When it is determined that the multi-manipulator is used for the first time in a corresponding actual scenario, a multi-target search process of the multi-manipulator is practiced based on a simulation platform;

[0027] When it is determined that no collision occurs during the drill and each robotic arm reaches the target, multi-target search is performed in the actual scenario based on the multiple robotic arms.

[0028] In the third aspect, the technical solution provides a multi-manipulator multi-target search training device. It includes:

[0029] A pre-training module is used to match each robot arm with each target based on a clustering algorithm, and to plan the trajectory of each robot arm based on a fixed trajectory planning algorithm so that it can find each target that matches it; and then use the planned trajectory as the pre-training experience of each corresponding robot arm;

[0030] An iterative training module is used to use the pre-training experience as the prior knowledge accumulated by the corresponding robotic arm, and to perform interactive iterative training between the robotic arm and the target based on a reinforcement learning algorithm until a preset iteration threshold is reached; thereby obtaining each trained robotic arm;

[0031] The reward function in the reinforcement learning algorithm includes: a first reward function, a second reward function and a third reward function. The first reward function is used to indicate that any two robotic arms collide, the second reward function is used to indicate that any robotic arm finds the target alone and the other robotic arms do not collide; the third reward function is used to indicate that all robotic arms find the target;

[0032] The first reward function, the second reward function and the third reward function all include a first reward item and a second reward item, the first reward item includes a distance penalty item and a time penalty item, and the second reward item includes an action penalty item.

[0033] Furthermore, the pre-training module includes:

[0034] A pairing unit, used to use the planned trajectory as a state-action sequence, and split the state-action sequence to form a plurality of state-action pairs; wherein the state is the relative position between the robot arm and the target, and the action is the self-position adjustment and posture adjustment of the robot arm in the state;

[0035] A sample unit, used to construct a training sample using the state in the state-action pair as a feature and the action as a corresponding label;

[0036] A training unit is used to train the corresponding robotic arm based on the training samples to accumulate prior knowledge.

[0037] In a fourth aspect, the technical solution provides an electronic device, comprising at least one processor, the processor being coupled to a memory, the memory storing a computer program, and the computer program being configured to execute the method when executed by the processor.

[0038] In a fifth aspect, the present technical solution provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is used to execute the described method.

[0039] Beneficial effects:

[0040] It can be seen from the above technical solutions that the present invention provides a training method for multi-robot arm multi-target searching to improve the current technical defect that the model cannot converge when reinforcement learning is applied to multi-robot arm multi-target searching.

[0041] Considering that the reason why the multi-robot multi-target search model based on reinforcement learning cannot converge is that on the one hand, the dimensionality of the total action space and the total state space explodes, and the algorithm is difficult to search for suitable actions in such a large-scale space; on the other hand, the aggravation of the collision problem makes it difficult to generate useful interactive data. Therefore, in this technical solution, each robot is pre-trained based on a conventional trajectory planning algorithm. Specifically, each robot is matched with each target based on a clustering algorithm, and each robot is trajectory-planned based on a fixed trajectory planning algorithm so that it can find each target that matches it; and then the planned trajectory is used as the pre-training experience of each corresponding robot. At this time, the pre-training experience is used as the prior knowledge accumulated by the corresponding robot, and when the interactive iterative training between the robot and the target is performed based on the reinforcement learning algorithm, the randomness of the action taken by the robot will be greatly reduced. On the one hand, even in a large-scale action space, a suitable action can be quickly searched, and on the other hand, the collision problem will be reduced accordingly during exploration, thereby obtaining enough effective data.

[0042] At the same time, when performing subsequent training of the robotic arm based on the reinforcement learning algorithm, it is considered that the trained multi-robotic arms still need to have sufficient exploratory ability when searching for multiple targets, that is, the trained multi-robotic arms have sufficient versatility to meet the multi-target search needs in different unknown scenarios. The reward function of the reinforcement learning algorithm is set in a targeted manner. Specifically, on the one hand, the reward function is set to include: a first reward function, a second reward function, and a third reward function. The first reward function is used to indicate that any two robotic arms collide, and the second reward function is used to indicate that any robotic arm finds the target alone, and the other robotic arms do not collide; the third reward function is used to indicate that all robotic arms have found the target. This type of setting of multiple rewards can refine the rewards in various situations; thereby avoiding excessive penalties, the robotic arm does not act, does not explore and try; and the robotic arm is prone to collision due to too small penalties. On the other hand, the first reward function, the second reward function and the third reward function are specifically configured to include a first reward item and a second reward item, the first reward item includes a distance penalty item and a time penalty item, and the second reward item includes an action penalty item; thereby allowing the multiple reward functions to take various factors into consideration to improve rationality, thereby enabling the robotic arm to conduct more positive and reasonable exploration.

[0043] It should be appreciated that all combinations of the foregoing concepts, as well as additional concepts described in greater detail below, may be considered to be part of the inventive subject matter of the present disclosure, provided such concepts are not mutually inconsistent.

[0044] The foregoing and other aspects, embodiments and features of the present invention can be more fully understood from the following description in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent from the following description or learned from the practice of the specific embodiments according to the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component shown in various figures may be represented by the same reference numeral. For clarity, not every component is labeled in every figure. Embodiments of various aspects of the present invention will now be described by way of example and with reference to the accompanying drawings, in which:

[0046] Figure 1 A flowchart of the training method for multi-robot multi-target search described in this embodiment;

[0047] Figure 2 This is a flowchart of obtaining pre-training experience for this embodiment;

[0048] Figure 3 This is a flow chart of using pre-training experience as the built-in prior knowledge of the robot arm in the middle of this embodiment;

[0049] Figure 4 This is a flow chart of the robot arm reward based on the threshold value in this embodiment;

[0050] Figure 5 This is a flow chart of iterative training based on reinforcement learning in this embodiment;

[0051] Figure 6 A flowchart of the method for searching multiple targets with multiple robotic arms described in this embodiment;

[0052] Figure 7 This is a preprocessing flow chart for performing multi-robot multi-target search in a new scenario in this embodiment;

[0053] Figure 8 A structural block diagram of the training device for multi-manipulator multi-target search described in this embodiment;

[0054] Fig. 9 is a schematic diagram of the electronic device described in this embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be the common meanings understood by people with ordinary skills in the field to which the present invention belongs.

[0056] The words "first", "second" and similar words used in the patent application specification and claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, unless the context clearly indicates otherwise, the singular form of "a", "an" or "the" and other similar words do not indicate a quantitative limitation, but indicate the existence of at least one. "Include" or "comprise" and other similar words mean that the elements or objects appearing before "include" or "comprise" include the features, wholes, steps, operations, elements and / or components listed after "include" or "comprise", and do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0057] In some existing scenarios, in order to satisfy the search for several random targets by several robotic arms in the same scenario, reinforcement learning is introduced into the target search of the robotic arms. However, due to the dimensional explosion that occurs when the total action space and the total state space increase exponentially with the participation of several robotic arms, and the difficulty in obtaining useful data due to increasingly serious collisions, the reinforcement learning network is difficult to converge when multiple robotic arms are searching for multiple targets. Therefore, this embodiment aims to provide a training method for multiple robotic arms searching for multiple targets to improve the above-mentioned technical defects that exist when existing reinforcement learning is applied to target search.

[0058] The following is a detailed introduction to the training method for multi-robot multi-target search described in this embodiment in conjunction with the accompanying drawings.

[0059] like Figure 1 As shown, the method includes:

[0060] Step S102: Match each robot arm with each target based on a clustering algorithm, and plan the trajectory of each robot arm based on a fixed trajectory planning algorithm so that it can find each target that matches it; and then use the planned trajectory as pre-training experience for each corresponding robot arm.

[0061] As a specific implementation method, Figure 2 As shown, the step S102 includes:

[0062] Step S1022, obtaining the initial coordinates of each robotic arm and each target.

[0063] Step S1024: clustering each target according to a preset Euclidean distance with each robotic arm as the center point, so as to obtain a number of targets corresponding to each robotic arm.

[0064] Step S1026, using the initial coordinates of each of the robotic arms as its starting position coordinates, the initial coordinates of each corresponding searched target as its ending position coordinates, and the corresponding coordinates each time the posture transformation is performed as its several decomposed position coordinates, and introducing them into the getPath function for trajectory planning.

[0065] In specific implementation, since the posture at each posture change is uncertain, several commonly used postures are introduced here as target postures at each posture change.

[0066] Step S104, using the pre-training experience as the prior knowledge accumulated by the corresponding robotic arm, and performing interactive iterative training between the robotic arm and the target based on a reinforcement learning algorithm until a preset iteration threshold is reached, thereby obtaining each trained robotic arm.

[0067] At this time, in step S104, since the result of step S102 is used as the prior knowledge of the robot arm, when the interactive iterative training between the robot arm and the target is performed based on the reinforcement learning algorithm, the randomness of the actions taken by the robot arm will be greatly reduced. On the one hand, even in a large number of action spaces, suitable actions can be quickly searched. On the other hand, the collision problem will be reduced accordingly during exploration, thereby obtaining enough valid data.

[0068] Considering that step S102 may cause the robot arm to have a reduced exploratory ability under the reinforcement learning algorithm, thereby causing the trained robot arm to have a reduced versatility and be unable to be applied to various unknown scenarios. Therefore, the reward function in the reinforcement learning algorithm is set to include: a first reward function, a second reward function and a third reward function, wherein the first reward function is used to indicate that any two robot arms collide, the second reward function is used to indicate that any robot arm finds the target alone, and the other robot arms do not collide; the third reward function is used to indicate that all robot arms find the target. At this time, the rewards in various situations are refined by setting multiple rewards in this way to effectively guide the robot arm in exploration. At the same time, the first reward function, the second reward function and the third reward function are all set to include a first reward item and a second reward item, wherein the first reward item includes a distance penalty item and a time penalty item, and the second reward item includes an action penalty item. In this way, the multiple reward functions take into account various factors to improve rationality, so that the robot arm can conduct more positive and reasonable exploration.

[0069] In this embodiment, the distance penalty item includes the Euclidean distance between the end of the robotic arm and the preset target; the time penalty item includes the time consumed by the robotic arm to execute the optimal rotation amount and rotation speed of each joint at the current moment; the action penalty item includes the relative position between the robotic arm and its own starting point after the robotic arm executes the optimal rotation amount and rotation speed of each joint at the current moment.

[0070] For example, in a specific implementation, if two robotic arms collide, the epoch ends, and a reward value of -0.05 is given to the moving robotic arm based on the first reward function; if a robotic arm reaches its target alone and there is no collision with other robotic arms, the robotic arm is given a reward value of +0.01 based on the second reward function; if the target end effectors of all robotic arms touch the target, the epoch ends, and a reward value of +1 is given to the robotic arm based on the third reward function.

[0071] As a specific implementation method, Figure 3 As shown, when the pre-training experience is used as the prior knowledge accumulated in the corresponding robot arm, it is specifically performed by the following method:

[0072] Step S10402: Use the planned trajectory as a state-action sequence, and split the state-action sequence to form a plurality of state-action pairs.

[0073] In this step, the state is the relative position between the robot and the target, and the action is the self-position adjustment and posture adjustment of the robot in the state. The posture adjustment is determined by the rotation amount and rotation speed of each joint of the robot. Specifically, the state-action sequence is split based on the posture transformation in step S1026.

[0074] Step S10404: construct a training sample using the state in the state-action pair as a feature and the action as a corresponding label.

[0075] Step S10406: Train the corresponding robotic arm based on the training samples to accumulate prior knowledge.

[0076] As a specific implementation method, in order to further effectively guide the robot arm to reach the target position quickly and accurately during iterative training, the specific example is as follows: Figure 4 As shown, proceed as follows:

[0077] Step S10422: setting a plurality of distance thresholds between the robot end effector and the target.

[0078] In this embodiment, the values ​​are arranged from large to small, and a total of 5 thresholds are set, namely 0.08 cm, 0.06 cm, 0.04 cm, 0.02 cm and 0.01 cm.

[0079] Step S10424: When it is determined that the actual distance between the end effector of the robot arm and the target is less than any distance threshold, a reward is given based on the corresponding reward function.

[0080] At this time, based on steps S10422-S10424, exploration information will be given to the robotic arm by setting multiple threshold rewards to encourage it to complete tasks with higher requirements.

[0081] As a specific implementation method, Figure 5 As shown, the iterative training of the robotic arm is performed in the following way:

[0082] Step S10442: construct a value network and a random strategy network using the robotic arm as an intelligent agent.

[0083] Step S10444, iteratively update the value network and the random strategy network with the maximum reward value and the maximum entropy of the optimal posture of the robot arm in each state as constraints until a preset iteration threshold is reached; thereby obtaining the optimal value network and random strategy network.

[0084] Step S10446: Update the robotic arm agent based on the optimal value network and random strategy network to obtain the trained robotic arm.

[0085] When the robotic arm is iteratively trained based on steps S10442 to S10446, the introduction of the random policy network further improves the exploratory nature of the trained robotic arm, allowing it to be well applied in other unknown scenarios.

[0086] As can be seen from the above, the training method for multi-robot multi-target search described in this embodiment introduces imitation learning and reinforcement learning for training at the same time, so that the robot agent converges quickly during the training process. At the same time, on the one hand, in order to ensure the exploration ability of the robot, a random strategy network is introduced; on the other hand, multiple reward functions and threshold reward guidance methods are set to encourage the robot to conduct positive and active exploration. This avoids the exploration limitations caused by imitation learning, so that the trained multi-robot can quickly and accurately search for multiple targets in any unknown scenario.

[0087] The technical solution also provides a method for searching multiple targets with multiple manipulators, which is described in detail below in conjunction with the accompanying drawings.

[0088] like Figure 6 As shown, the method includes:

[0089] Step S202: performing multi-robotic-arm multi-target search based on the trained robotic arms.

[0090] In order to ensure the reliability of the trained multi-robot arm in target finding in new scenarios, Figure 7 As shown, before step S202, the following steps are included:

[0091] Step S2012: When it is determined that the multi-robotic arm is used for the first time in a corresponding actual scenario, the multi-robotic arm multi-target searching process is practiced based on a simulation practice platform.

[0092] Step S2014: When it is determined that no collision occurs during the drill and each robotic arm reaches the target, multi-target search is performed in the actual scenario based on the multiple robotic arms.

[0093] At this time, the multi-robotic arm multi-target search process will be rehearsed based on the simulation platform to ensure that no collisions or abnormalities occur in actual applications, thereby ensuring the smooth progress of target search.

[0094] Since the method is based on the robot arm obtained by the above training method, multiple targets can be searched quickly and accurately in unknown new scenes. At the same time, the introduction of the simulation exercise mechanism further ensures the smooth progress of the target search process.

[0095] The above program can be run in the processor, or it can also be stored in the memory (or computer-readable storage medium), which includes permanent and non-permanent, removable and non-removable media. Information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include temporary computer-readable media, such as modulated data signals and carrier waves.

[0096] These computer programs can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in one or more blocks can be implemented by different modules corresponding to different steps.

[0097] Based on this, this embodiment also provides a training device for multi-robot multi-target search. Figure 8 As shown, the training device comprises:

[0098] The pre-training module is used to match each robot arm with each target based on a clustering algorithm, and to plan the trajectory of each robot arm based on a fixed trajectory planning algorithm so that it can find the targets that match it; and then use the planned trajectory as the pre-training experience of each corresponding robot arm.

[0099] The iterative training module is used to use the pre-training experience as the prior knowledge accumulated by the corresponding robotic arm, and to perform interactive iterative training between the robotic arm and the target based on the reinforcement learning algorithm until a preset iteration threshold is reached; thereby obtaining each trained robotic arm.

[0100] Among them, the reward function in the reinforcement learning algorithm includes: a first reward function, a second reward function and a third reward function, the first reward function is used to indicate that any two robotic arms collide, the second reward function is used to indicate that any robotic arm finds the target alone and the other robotic arms do not collide; the third reward function is used to indicate that all robotic arms find the target; the first reward function, the second reward function and the third reward function all include a first reward item and a second reward item, the first reward item includes a distance penalty item and a time penalty item, and the second reward item includes an action penalty item.

[0101] Since the training device is used to execute the steps of the training method, what has been introduced before will not be repeated here.

[0102] For example, the pre-training module includes:

[0103] A pairing unit is used to use the planned trajectory as a state-action sequence and split the state-action sequence to form a plurality of state-action pairs; wherein the state is the relative position between the robot arm and the target, and the action is the position adjustment and posture adjustment of the robot arm under the state.

[0104] The sample unit is used to construct a training sample by taking the state in the state-action pair as a feature and the action as a corresponding label.

[0105] A training unit is used to train the corresponding robotic arm based on the training samples to accumulate prior knowledge.

[0106] For example, the iterative training module includes:

[0107] A setting unit, used to set a distance threshold between a plurality of robot end effectors and a target;

[0108] The judging unit is used to judge that when the actual distance between the end effector of the robot arm and the target is less than any distance threshold, a reward is given based on the corresponding reward function.

[0109] For another example, the iterative training module further includes:

[0110] A network construction unit, used to construct a value network and a random strategy network using the robotic arm as an intelligent agent;

[0111] A network iteration unit, used to iteratively update the value network and the random strategy network with the maximum reward value and the maximum entropy of the optimal posture of the robot arm in each state as constraints until a preset iteration threshold is reached; thereby obtaining the optimal value network and random strategy network;

[0112] The intelligent agent updating unit is used to update the robot arm intelligent agent based on the optimal value network and random strategy network to obtain the trained robot arms.

[0113] Since the training system is built based on the training method, it has the advantage of fast convergence speed during training in practical applications, and the trained robotic arm still retains good exploration capabilities.

[0114] At the same time, this embodiment also provides an electronic device. Fig. 9 As shown, at least one processor is included. The processor is coupled to a memory. A computer program is stored in the memory. The computer program is configured to execute the method when executed by the processor.

[0115] Furthermore, this embodiment also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used to execute the method described.

[0116] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.

Claims

1. A training method for multi-robot multi-target search, characterized in that: include: Based on the clustering algorithm, each robot arm is matched with each target, and based on the fixed trajectory planning algorithm, each robot arm is trajectory planned so that it can find each target that matches it; and then the planned trajectory is used as the pre-training experience of each corresponding robot arm; The pre-training experience is used as the prior knowledge accumulated by the corresponding robotic arm, and interactive iterative training between the robotic arm and the target is performed based on the reinforcement learning algorithm until a preset iteration threshold is reached, thereby obtaining each trained robotic arm; The reward function in the reinforcement learning algorithm includes: a first reward function, a second reward function and a third reward function. The first reward function is used to indicate that any two robotic arms collide, the second reward function is used to indicate that any robotic arm finds the target alone and the other robotic arms do not collide; the third reward function is used to indicate that all robotic arms find the target; The first reward function, the second reward function and the third reward function all include a first reward item and a second reward item, the first reward item includes a distance penalty item and a time penalty item, and the second reward item includes an action penalty item; The distance penalty item includes the Euclidean distance between the end of the robotic arm and the preset target; the time penalty item includes the time consumed by the robotic arm to execute the optimal rotation amount and rotation speed of each joint at the current moment; the action penalty item includes the relative position between the robotic arm and its own starting point after the robotic arm executes the optimal rotation amount and rotation speed of each joint at the current moment.

2. The multi-robot multi-target search training method according to claim 1, characterized in that: The pre-training experience is used as the prior knowledge accumulated by the corresponding robot arm; including: The planned trajectory is used as a state-action sequence, and the state-action sequence is split to form a number of state-action pairs; wherein the state is the relative position between the robot arm and the target, and the action is the position adjustment and posture adjustment of the robot arm under the state; A training sample is constructed using the state in the state-action pair as a feature and the action as a corresponding label; The corresponding robotic arm is trained based on the training samples to accumulate prior knowledge.

3. The multi-robot multi-target search training method according to claim 1, characterized in that: The interactive iterative training between the robot arm and the target based on the reinforcement learning algorithm until a preset iteration threshold is reached includes: Set several distance thresholds between the robot end effector and the target; When it is determined that the actual distance between the end effector of the robotic arm and the target is less than any distance threshold, a reward is given based on the corresponding reward function.

4. The multi-robot multi-target search training method according to claim 1, characterized in that: The interactive iterative training between the robot arm and the target is performed based on the reinforcement learning algorithm until a preset iteration threshold is reached, thereby obtaining each trained robot arm, including: Using the robotic arm as an intelligent agent to construct a value network and a random strategy network; The value network and the random strategy network are iteratively updated with the maximum reward value and the maximum entropy of the optimal posture of the robot arm in each state as constraints until a preset iteration threshold is reached; thereby obtaining the optimal value network and random strategy network; The robotic arm agent is updated based on the optimal value network and random strategy network to obtain the trained robotic arms.

5. A method for searching multiple targets using multiple manipulators, characterized in that: include: Perform multi-robotic-arm multi-target searching based on the trained robotic arm described in any one of claims 1-4.

6. The method for searching multiple targets using multiple manipulators according to claim 5, characterized in that: The multi-manipulator multi-target search based on the trained manipulator includes: When it is determined that the multi-manipulator is used for the first time in a corresponding actual scenario, a multi-target search process of the multi-manipulator is practiced based on a simulation platform; When it is determined that no collision occurs during the drill and each robotic arm reaches the target, multi-target search is performed in the actual scenario based on the multiple robotic arms.

7. A training device for multi-robot arm multi-target search, characterized in that: include: A pre-training module is used to match each robot arm with each target based on a clustering algorithm, and to plan the trajectory of each robot arm based on a fixed trajectory planning algorithm so that it can find each target that matches it; and then use the planned trajectory as the pre-training experience of each corresponding robot arm; An iterative training module, used to use the pre-training experience as the prior knowledge accumulated by the corresponding robot arm, and to perform interactive iterative training between the robot arm and the target based on a reinforcement learning algorithm until a preset iteration threshold is reached; Then, each robotic arm after training is obtained; The reward function in the reinforcement learning algorithm includes: a first reward function, a second reward function and a third reward function. The first reward function is used to indicate that any two robotic arms collide, the second reward function is used to indicate that any robotic arm finds the target alone and the other robotic arms do not collide; the third reward function is used to indicate that all robotic arms find the target; The first reward function, the second reward function and the third reward function all include a first reward item and a second reward item, the first reward item includes a distance penalty item and a time penalty item, and the second reward item includes an action penalty item; The distance penalty item includes the Euclidean distance between the end of the robotic arm and the preset target; the time penalty item includes the time consumed by the robotic arm to execute the optimal rotation amount and rotation speed of each joint at the current moment; the action penalty item includes the relative position between the robotic arm and its own starting point after the robotic arm executes the optimal rotation amount and rotation speed of each joint at the current moment.

8. The multi-manipulator multi-target search training device according to claim 7, characterized in that: The pre-training module includes: A pairing unit, used to use the planned trajectory as a state-action sequence, and split the state-action sequence to form a plurality of state-action pairs; wherein the state is the relative position between the robot arm and the target, and the action is the self-position adjustment and posture adjustment of the robot arm in the state; A sample unit, used to construct a training sample using the state in the state-action pair as a feature and the action as a corresponding label; A training unit is used to train the corresponding robotic arm based on the training samples to accumulate prior knowledge.

9. An electronic device, characterized in that: The method comprises at least one processor, wherein the processor is coupled to a memory, wherein a computer program is stored in the memory, and wherein the computer program is configured to execute the method according to any one of claims 1 to 4 when executed by the processor.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is used to execute the method according to any one of claims 1 to 4.