A dual-arm robot path planning method, device, electronic device and storage medium
Through the dynamic adaptive path planning method, combined with the closed-loop control mechanism and comprehensive evaluation function, the problems of low path planning efficiency and poor collaborative control effect of the dual-arm robot are solved, and the perception and decision-making capabilities and operating efficiency in complex environments are improved.
Patent Information
- Application Number
- CN202410788651.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Existing path planning methods for dual-arm robots are inefficient and have poor collaborative control effects. They are difficult to achieve real-time autonomous decision-making in complex environments and lack the ability to adapt to dynamic environments and uncertain factors.
By obtaining the environmental status information and equipment status information of the dual-arm robot, inputting it into the collaborative control model and path planning decision-making model, dynamic adaptive path planning is performed until the target operation requirements are met. The closed-loop path planning and motion control coupling mechanism is used to combine Comprehensive evaluation function optimization path planning.
It improves the perception and decision-making capabilities of dual-arm robots in complex environments, enhances the safety and flexibility of collaborative operations, and improves path planning efficiency and overall operating efficiency.
Smart Images

Figure CN118357931B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot control technology, and in particular to a path planning method, device, electronic equipment and storage medium for a dual-arm robot. Background Art
[0002] As one of the core technology directions for the development of future intelligent manufacturing and service robots, robotics has developed rapidly in recent years. Among them, dual-arm collaborative robots are an important carrier for realizing human-machine collaborative operations.
[0003] There are still some problems and deficiencies in the existing dual-arm robot path planning and motion control technology. The path planning algorithm of the dual-arm robot is basically based on static environment modeling and geometric planning methods, lacking the ability to adapt to dynamic environments and uncertain factors. In addition, most of the existing dual-arm collaborative control algorithms are based on kinematic models and feedback control strategies, which make it difficult to achieve real-time autonomous decision-making in complex scenarios, making path planning unable to meet real-time path planning requirements, and there are problems such as low path planning efficiency and poor collaborative control effect. Summary of the invention
[0004] The present invention provides a path planning method, device, electronic equipment and storage medium for a dual-arm robot, so as to solve the problems of low path planning efficiency and poor collaborative control effect existing in the prior art.
[0005] According to one aspect of the present invention, a path planning method for a dual-arm robot is provided, comprising:
[0006] Acquire first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and device state information into the dual-arm collaborative control model, and obtain first control data of the dual-arm robot;
[0007] Acquire first position information corresponding to the dual-arm robot, input first control data, first position information and first environmental state information into a path planning decision model, and obtain a first path;
[0008] Determine the operation requirement of the first path based on the dual-arm collaborative control model, and obtain second control data output by the dual-arm collaborative control model when the first path does not meet the target operation requirement;
[0009] Obtain the second position information and second environmental state information corresponding to the dual-arm robot, input the second control data, the second position information and the second environmental state information into the path planning decision model to obtain the second path, and re-determine the operation requirements of the second path based on the dual-arm collaborative control model until a target path that meets the target operation requirements is obtained.
[0010] Optionally, the path planning decision model is specifically used to: generate at least one candidate path based on the control data output by the dual-arm collaborative control model, the position information and environmental state information of the dual-arm robot, the control data output by the dual-arm collaborative control model including the first control data or the second control data, the position information of the dual-arm robot including the first position information or the second position information, and the environmental state information including the first environmental state information or the second environmental state information; evaluate the candidate paths based on a pre-constructed comprehensive evaluation function to obtain evaluation results corresponding to the candidate paths; determine the output path of the path planning decision model based on the evaluation results corresponding to each candidate path, the output path including the first path or the second path.
[0011] Optionally, the comprehensive evaluation function is constructed based on preset indicator information, wherein the preset indicator information includes one or more of the degree of optimization of the coordinated control, the comprehensive score of the path, and the environmental perception score;
[0012] The method for constructing a comprehensive evaluation function includes: setting weight parameters corresponding to the degree of collaborative control optimization, the path comprehensive score and the environmental perception score respectively; weighting one or more of the degree of collaborative control optimization, the path comprehensive score and the environmental perception score based on the weight parameters to obtain a comprehensive evaluation function.
[0013] Optionally, the joint data and actuator data of the dual-arm robot are obtained, and the degree of collaborative control optimization is determined based on the joint data and actuator data, wherein the joint data include one or more of the coordination angle data, coordination speed data, and motion range data of each joint, and the actuator data include one or more of the coordination posture data and coordination speed data of the end effector of the dual-arm robot; the method for determining the path comprehensive score includes: obtaining the associated data of the planned path, and determining the path comprehensive score based on the associated data, wherein the associated data include one or more of the path length data, the path direction change data, and the path curvature data; the method for determining the environmental perception score includes: determining the environmental perception score based on the environmental perception data corresponding to the dual-arm robot, wherein the environmental perception data include one or more of the obstacle location information, the ground condition information, and the light intensity data.
[0014] Optionally, determining the operation requirements of the first path based on the dual-arm collaborative control model includes: obtaining data to be determined for the first path; the data to be determined for the first path includes environmental data and first control data corresponding to the first path; obtaining environmental status information and device status information of the dual-arm robot at the time of verification, generating third control data based on the environmental status information and device status information at the time of verification, using the environmental status information and the third control data at the time of verification as determination data corresponding to the first path, and the determination data is used to determine the operation requirements of the data to be determined; matching the data to be determined for the first path based on the determination data corresponding to the first path, and if the environmental data corresponding to the first path does not match the environmental status information in the determination data, and / or the first control data corresponding to the first path does not match the third control data, then determining that the first path does not meet the target operation requirements.
[0015] Optionally, a training method for a path planning decision model includes: constructing a path planning decision model to be trained, wherein the path planning decision model to be trained and a dual-arm collaborative control model form a closed-loop link; using the output result of the dual-arm collaborative control model, the position information of the dual-arm robot, and the environmental perception data as input parameters of the path planning decision model to be trained, and feeding back the output result of the path planning decision model to be trained to the dual-arm collaborative control model, using a pre-constructed comprehensive evaluation function as the objective function of the path planning decision model to be trained, and through closed-loop interactive training between the path planning decision model to be trained and the dual-arm collaborative control model, a trained path planning decision model is obtained after completing a preset number of interactive training times.
[0016] According to another aspect of the present invention, there is provided a path planning device for a dual-arm robot, comprising:
[0017] A first control data determination module is used to obtain first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and device state information into the dual-arm collaborative control model, and obtain first control data of the dual-arm robot;
[0018] A first path determination module is used to obtain first position information corresponding to the dual-arm robot, input first control data, first position information and first environmental state information into a path planning decision model, and obtain a first path;
[0019] A second control data determination module is used to determine the operation requirement of the first path based on the dual-arm collaborative control model, and obtain the second control data output by the dual-arm collaborative control model when the first path does not meet the target operation requirement;
[0020] The target path determination module is used to obtain the second position information and second environmental state information corresponding to the dual-arm robot, input the second control data, the second position information and the second environmental state information into the path planning decision model, obtain the second path, and re-determine the operation requirements of the second path based on the dual-arm collaborative control model until a target path that meets the target operation requirements is obtained.
[0021] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0022] at least one processor; and
[0023] a memory communicatively connected to at least one processor; wherein,
[0024] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the path planning method for the dual-arm robot of any embodiment of the present invention.
[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to implement the path planning method for a dual-arm robot according to any embodiment of the present invention when executed by a processor.
[0026] The technical solution of the embodiment of the present invention is to obtain the first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and device state information into the dual-arm collaborative control model, and obtain the first control data of the dual-arm robot; obtain the first position information corresponding to the dual-arm robot, input the first control data, the first position information and the first environment state information into the path planning decision model, and obtain the first path; based on the dual-arm collaborative control model, the operation requirement of the first path is determined, and when the first path does not meet the target operation requirement, the second control data output by the dual-arm collaborative control model is obtained; the second position information and the second environment state information corresponding to the dual-arm robot are obtained, and the second control data, the second position information and the second environment state information are input into the path planning decision model to obtain the second path, and the operation requirement of the second path is re-determined based on the dual-arm collaborative control model until the target path that meets the target operation requirement is obtained. By constructing a closed-loop path planning and motion control coupling mechanism, the functions of dynamic adaptation and global optimization of the dual-arm collaborative operation process are completed. The planned path is also judged according to the operating requirements to obtain the target path that matches the collaborative control data. The target operation task can be completed efficiently, solving the problems of low path planning efficiency and poor collaborative control. This enables the dual-arm robot to improve its perception and decision-making capabilities in complex environments, improve path planning efficiency, and enhance the safety and flexibility of dual-arm collaborative operations, further improving the overall operating efficiency and safety of the robot.
[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 is a flow chart of a path planning method for a dual-arm robot provided in Embodiment 1 of the present invention;
[0030] Figure 2 is a flow chart of a path planning method for a dual-arm robot provided in Embodiment 2 of the present invention;
[0031] Figure 3 It is a structural schematic diagram of a path planning device for a dual-arm robot provided in Embodiment 3 of the present invention;
[0032] Figure 4 It is a structural schematic diagram of an electronic device for implementing the path planning method for a dual-arm robot according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] Embodiment 1
[0036] Figure 1 This is a flow chart of a dual-arm robot path planning method provided in the first embodiment of the present invention. This embodiment is applicable to the case of performing path planning on a robot. The method can be executed by a dual-arm robot path planning device. The dual-arm robot path planning device can be implemented in the form of hardware and / or software. The dual-arm robot path planning device can be configured in electronic devices such as controllers and servers. Figure 1 As shown, the method includes:
[0037] S110. Obtain first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and device state information into a dual-arm collaborative control model, and obtain first control data of the dual-arm robot.
[0038] Among them, the first environmental state information can be specifically understood as environmental information characterizing the location of the dual-arm robot, including but not limited to obstacle information, light intensity information and ground condition information. For example, obstacle information can be attribute information corresponding to obstacles, and obstacle information includes but is not limited to obstacle location information and obstacle sparseness information; light intensity information is information used to characterize the state of environmental light, including but not limited to low light intensity state, medium light intensity state and sufficient light intensity state, and ground condition information refers to information used to characterize the state of the ground, including but not limited to the state of rough ground, undulating ground and flat ground. The equipment state information can be specifically understood as information characterizing the operating state of the equipment, including but not limited to the state information corresponding to mechanical parts such as joint equipment and end effectors. For example, the equipment state information can be the angle information of each joint, angular velocity information, actuator coordination speed information and actuator posture information. It should be noted that the setting of environmental state information and equipment state information can be adjusted according to actual needs to meet dynamic perception and make safe and efficient path selection in a complex and changeable environment. The dual-arm collaborative control model specifically refers to a reinforcement learning model used to determine the collaborative control strategy of the dual-arm robot. The first control data can be specifically understood as a control strategy for controlling the dual-arm robot to complete a preset task, which can be determined by a dual-arm collaborative control model. Exemplarily, the first control data can be the driving torque data of each joint, and the first control data can be output in the form of a control instruction. Among them, the dual-arm collaborative control model is a reinforcement learning model for determining the control data of the robot, and the corresponding control data can be determined according to the input environmental state information and device state information.
[0039] Specifically, the environment perception data and device operation data corresponding to the dual-arm robot are detected by the sensor device, and the pre-set environment state information and device state information are matched from the detected environment perception data and device operation data to obtain the first environment state information and device state information corresponding to the dual-arm robot, which are used to determine the control data and path data. The first environment state information and device state information are input into the dual-arm collaborative control model, and the dual-arm collaborative control model processes them to obtain the first control data for the dual-arm robot, wherein the first control data includes the driving torque data of each joint.
[0040] Exemplarily, obstacle information, light intensity and ground condition data corresponding to the environmental perception data of the dual-arm robot are obtained, and the angle data and angular velocity data of each joint are obtained. The obtained data are respectively pre-processed to obtain a data form that can be processed by the dual-arm collaborative control model, that is, the first environmental state information and device state information corresponding to the dual-arm robot are obtained, and the first environmental state information and device state information are input into the dual-arm collaborative control model to obtain the first control data of the dual-arm robot.
[0041] S120, obtaining first position information corresponding to the dual-arm robot, inputting first control data, first position information and first environmental state information into a path planning decision model, and obtaining a first path.
[0042] Among them, the first position information can be specifically understood as information characterizing the position and posture of the dual-arm robot, including but not limited to the joint coordinate values based on the joint coordinate system, the rectangular coordinate values based on the user coordinates and the tool coordinates. For example, the first position information is used to characterize the real-time position information of the dual-arm robot, and is used to distinguish the position information obtained in real time at other times. The information of the surrounding environment can be obtained through sensors such as laser radar, camera, ultrasonic sensor, etc., and the collected information is processed by the preset robot positioning algorithm to determine the position information of the robot itself in space. The preset robot positioning algorithm includes but is not limited to SLAM (Simultaneous Localization and Mapping, synchronous positioning and map construction), laser radar positioning algorithm and GPS positioning algorithm. For example, the SLAM algorithm can be used to process the collected environmental perception data, and the coordinate data of the robot and the feature mark are estimated according to the relative position between the robot and the feature mark and the reading of the odometer, and the position information of the robot itself in space is determined. The path planning decision model can be specifically understood as a reinforcement learning model for determining the path data of the dual-arm robot.
[0043] Specifically, the environmental perception data obtained at the current moment can be processed and analyzed to obtain the first position information, and the first control data, the first position information and the first environmental state information can be input into the path planning decision model. After being processed by the path planning decision model, the first path is obtained, which is used to control the dual-arm robot to walk along the first path, and during the movement, its own posture can be adjusted according to the control data so as to reach the end of the path as quickly and safely as possible.
[0044] In this embodiment, the first path is determined by a reinforcement learning model called a path planning decision model, and path planning can be performed in a dynamic environment to better cope with the unknown environment of the load, thereby overcoming the limitations of existing static planning and feedback control and improving the accuracy and high adaptability of the robot's path planning.
[0045] In this embodiment, by comprehensively considering the coordination degree of the two arms, whether the planned motion path is reasonable, and the robot's perception of the environment, the performance of the control algorithm can be evaluated more accurately. At the same time, by adjusting the weights of each preset indicator information in the comprehensive evaluation function, the control strategy can be flexibly optimized for different application scenarios, and the best balance point can be found, so that the two-arm collaborative control model can be closer to actual needs.
[0046] S130, determining the operation requirement of the first path based on the dual-arm collaborative control model, and obtaining second control data output by the dual-arm collaborative control model when the first path does not meet the target operation requirement.
[0047] Among them, the operation requirement judgment can be specifically understood as being used to determine whether the path data meets the operation requirements, by judging whether the path data meets the corresponding control strategy, preset path evaluation requirements, environmental conditions, etc. determined according to the target requirements. The corresponding judgment rules can be pre-set according to the operation requirements. When the planned path data needs to be evaluated, the judgment rules can be called to judge the path data to obtain the corresponding judgment results. The actual meaning of the second control data is the same as the first control data. Both are control strategies for controlling the operation of the dual-arm robot. However, the second control data is control data determined based on relevant information of the new environmental conditions, and is control data used to update the first path.
[0048] Specifically, after obtaining the first path, the operation requirements of the first path are determined by calling the corresponding preset judgment rules, and a new control strategy can be determined according to the current environmental state information and equipment state information through the dual-arm collaborative control model. The first path is determined according to the new control strategy, environmental information and / or comprehensive evaluation function according to the preset judgment rules. It can be set that if any match is unsuccessful, it is determined that the first path does not meet the target operation requirements. In the case that the first path does not meet the target operation requirements, the environmental state information and equipment state information are re-acquired, and the re-acquired environmental state information and equipment state information are processed through the dual-arm collaborative control model, and the second control data is output for re-acquiring the path planning data.
[0049] In this embodiment, after determining the first path, the operation requirements of the first path are first determined. If it is determined that the first path does not meet the target operation requirements, the path planning is promptly re-performed. Through continuous detection and interaction, the path planning data is dynamically adjusted according to the new environmental conditions to ensure that the path planning is consistent with the control strategy and environmental information, so as to obtain path data that meets the operation requirements and improve the path planning efficiency.
[0050] Optionally, it is determined whether the comprehensive evaluation function corresponding to the first path satisfies a preset evaluation function threshold. If the preset evaluation function threshold is not satisfied, it is determined that the first path does not meet the target operation requirement.
[0051] Specifically, when the path planning decision model outputs the first path, a preset evaluation function threshold is obtained, and the comprehensive evaluation function corresponding to the first path is calculated according to the algorithm of the pre-set comprehensive evaluation function, and it is determined whether the comprehensive evaluation function corresponding to the first path meets the preset evaluation function threshold. If the preset evaluation function threshold is not met, it is determined that the first path does not meet the target operation requirements. If the value corresponding to the comprehensive evaluation function is low, it indicates that the first path is insufficient in terms of coordination, path smoothness or environmental adaptability, and the path needs to be replanned.
[0052] S140. Obtain the second position information and second environmental state information corresponding to the dual-arm robot, input the second control data, the second position information and the second environmental state information into the path planning decision model to obtain a second path, and re-determine the operation requirements of the second path based on the dual-arm collaborative control model until a target path that meets the target operation requirements is obtained.
[0053] Among them, the second environmental state information is substantially the same as the first environmental state information, and the first and second are only used to distinguish the information collected at different times. Correspondingly, if there is a situation where the second path does not meet the target operation requirements, the environmental state information and device state information at the next moment can be obtained, which can be represented by the third environmental state information and the third device state information to obtain new path data of the corresponding information. The second control data and the second position information are substantially the same as the corresponding first control data and the first position information, respectively, and are only used here to distinguish the data obtained at different times. The target operation requirements can be specifically understood as the task requirements set for the dual-arm robot based on actual conditions, which may include destination, path width data, etc.
[0054] Specifically, when it is determined that the first path does not meet the target operation requirements, new environmental state information and equipment state information, that is, the second environmental state information and the second equipment state information, are obtained, and the obtained second control data, the second position information and the second environmental state information are input into the path planning decision model, and the path planning decision model plans a new path according to the newly obtained second control data, the second position information and the second environmental state information to obtain the second path. The operation requirements of the second path are determined by calling the corresponding preset judgment rules to obtain a judgment result. In the case that the second path does not meet the target operation requirements, the environmental state information and the equipment state information are re-acquired, and the re-acquired environmental state information and the equipment state information are processed by the dual-arm collaborative control model, and the control data is output for re-acquiring new path planning data, and then the operation requirements of the obtained path planning data are re-determined until the target path that meets the target operation requirements is obtained. In the case that the second path meets the target operation requirements, the second path is used as the target path that meets the target operation requirements.
[0055] In this embodiment, the job requirements are determined for the path output by the path planning decision model. When the job requirements are not met, the path output by the path planning decision model is adjusted according to the new environmental conditions and equipment status through continuous monitoring and interaction. The target path is obtained based on the new control data, environmental status information, and equipment status information to ensure the consistency of the planned path with the control data and environmental information.
[0056] Optionally, the path planning decision model is specifically used to: generate at least one candidate path based on the control data output by the dual-arm collaborative control model, the position information and environmental state information of the dual-arm robot, the control data output by the dual-arm collaborative control model including the first control data or the second control data, the position information of the dual-arm robot including the first position information or the second position information, and the environmental state information including the first environmental state information or the second environmental state information; evaluate the candidate paths based on a pre-constructed comprehensive evaluation function to obtain evaluation results corresponding to the candidate paths; determine the output path of the path planning decision model based on the evaluation results corresponding to each candidate path, the output path including the first path or the second path.
[0057] Among them, the comprehensive evaluation function can be specifically understood as an indicator set for comprehensively evaluating the path data, wherein the comprehensive evaluation function can be constructed according to the preset indicator information, and the preset indicator information includes but is not limited to the degree of collaborative control optimization, the comprehensive path score and the environmental perception score. The degree of collaborative control optimization is the indicator information set for evaluating the optimization degree of the control data output by the dual-arm collaborative control model, the comprehensive path score is the indicator information set for evaluating the path data, and the environmental perception score is the indicator information set for evaluating the environment. The candidate path specifically refers to the path determined by the path planning model based on the input parameter data.
[0058] Specifically, the control data output by the dual-arm collaborative control model and the position information and environmental state information of the dual-arm robot are used as input data of the path planning decision model to obtain at least one candidate path of the dual-arm robot, wherein the control data output by the dual-arm collaborative control model includes the first control data or the second control data, the position information of the dual-arm robot includes the first position information or the second position information, and the environmental state information includes the first environmental state information or the second environmental state information; that is, the first control data output by the dual-arm collaborative control model, the first position information and the first environmental state information of the dual-arm robot are input into the path planning decision model to obtain the corresponding candidate path; the second control data output by the dual-arm collaborative control model, the second position information and the second environmental state information of the dual-arm robot are input into the path planning decision model to obtain the corresponding candidate path. The candidate paths are evaluated one by one through the pre-constructed comprehensive evaluation function to obtain the evaluation results corresponding to each candidate path, and the candidate path corresponding to the optimal evaluation result can be used as the output path of the path planning decision model, and the output path includes the first path or the second path.
[0059] Optionally, a comprehensive evaluation function is constructed based on preset indicator information, wherein the preset indicator information includes one or more of the collaborative control optimization degree, the path comprehensive score and the environmental perception score; the method of constructing the comprehensive evaluation function includes: setting weight parameters corresponding to the collaborative control optimization degree, the path comprehensive score and the environmental perception score respectively; and weighting one or more of the collaborative control optimization degree, the path comprehensive score and the environmental perception score based on the weight parameters to obtain a comprehensive evaluation function.
[0060] Specifically, by setting weight parameters corresponding to the collaborative control optimization degree, the path comprehensive score and the environmental perception score to adjust the indicator information used to determine the comprehensive evaluation function, one or more of the collaborative control optimization degree, the path comprehensive score and the environmental perception score are weighted based on the weight parameters to obtain a comprehensive evaluation function. The calculation formula of the comprehensive evaluation function is as follows:
[0061]
[0062] Among them, F represents the comprehensive evaluation function, , and They represent the weight parameters of the collaborative control optimization degree, the path comprehensive score and the environmental perception score, respectively. O represents the collaborative control optimization degree, P represents the path comprehensive score, and E represents the environmental perception score. Among them, the preset indicator information used to construct the comprehensive evaluation function can be adjusted according to the needs of the actual application scenario.
[0063] Optionally, a method for determining the degree of collaborative control optimization includes: obtaining joint data and actuator data of the dual-arm robot, and determining the degree of collaborative control optimization based on the joint data and actuator data, wherein the joint data include one or more of coordination angle data, coordination speed data, and motion range data of each joint, and the actuator data include one or more of coordination posture data and coordination speed data of the end effector of the dual-arm robot; a method for determining a comprehensive path score includes: obtaining associated data of a planned path, and determining a comprehensive path score based on the associated data, wherein the associated data include one or more of path length data, path direction change data, and path curvature data; a method for determining an environmental perception score includes: determining an environmental perception score based on environmental perception data corresponding to the dual-arm robot, wherein the environmental perception data include one or more of obstacle location information, ground condition information, and light intensity data.
[0064] Specifically, the joint data of the dual-arm robot is obtained through the detection equipment. The joint data includes one or more of the coordinated angle data, coordinated speed data, and motion range data of each joint. The actuator data includes one or more of the coordinated posture data and coordinated speed data of the end effector of the dual-arm robot. The calculation formula of the coordinated control optimization degree is as follows:
[0065]
[0066] Among them, O represents the optimization degree of collaborative control, represents the coordination angle of the i-th joint, represents the coordination speed of the i-th joint, represents the range of motion of the ith joint, represents the coordinated pose of the end effector, represents the coordination speed of the end effector, represents the obstacle avoidance cost, taking into account the possible obstacles in the path, Indicates load sharing, that is, load sharing during the two-arm collaboration process. Indicates load capacity, that is, the load capacity of each joint.
[0067] Obtain the associated data corresponding to the path data, the associated data including one or more of the path length data, the path direction change data and the path curvature data, wherein the path data includes but is not limited to the path data output by the model and the pre-set path data. Calculate the associated data using the pre-set path comprehensive score calculation formula to obtain the path comprehensive score, the calculation formula for the path comprehensive score is as follows:
[0068]
[0069] Among them, P represents the comprehensive score of the path, L represents the path length, D represents the path direction, and K represents the path curvature. Represents the weight coefficient of path length, which is used to adjust the influence of path length on the comprehensive score. The weight coefficient representing the change in path direction is used to indicate the importance of path direction consistency to the comprehensive score. Represents the weight coefficient of path curvature, which is used to adjust the influence of path curvature on the comprehensive score.
[0070] Obtain the environmental perception data corresponding to the dual-arm robot, which includes one or more of obstacle location information, ground condition information, and light intensity data. Calculate the environmental perception data according to the preset environmental perception score calculation formula to obtain the environmental perception score. The calculation formula for the environmental perception score is as follows:
[0071]
[0072] Where E represents environmental perception information, Represents the weighted parameter of obstacle location information, with a value range of [0, 1], which is used to control the importance of obstacle location information in integration. Represents the weighting parameter of light intensity information, with a value range of [0, 1], which is used to control the importance of light intensity information in integration. The weighting parameter of the ground condition information is in the range of [0, 1], which is used to control the importance of the ground condition information in the integration. Indicates ground condition information. represents the horizontal position of the obstacle in the robot coordinate system, represents the vertical position of the obstacle in the robot coordinate system, Indicates light intensity.
[0073] Optionally, a training method for a path planning decision model includes: constructing a path planning decision model to be trained, wherein the path planning decision model to be trained and a dual-arm collaborative control model form a closed-loop link; using the output result of the dual-arm collaborative control model, the position information of the dual-arm robot, and the environmental perception data as input parameters of the path planning decision model to be trained, and feeding back the output result of the path planning decision model to be trained to the dual-arm collaborative control model, using a pre-constructed comprehensive evaluation function as the objective function of the path planning decision model to be trained, and through closed-loop interactive training between the path planning decision model to be trained and the dual-arm collaborative control model, a trained path planning decision model is obtained after completing a preset number of interactive training times.
[0074] By designing the state space of path planning, for example, constructing the state space according to information such as the robot's position information, environmental information and task objectives; designing the optional action space, for example, constructing the action space according to information such as the robot's motion increment and direction change; using the comprehensive evaluation function as a reward function to evaluate the quality of path planning decisions; constructing a path planning decision model to be trained according to the constructed state space, action space and comprehensive evaluation function, training and optimizing the path planning decision model through a reinforcement learning algorithm, forming a closed-loop link between the path planning decision model to be trained and the pre-constructed dual-arm collaborative control model, the output result of the dual-arm collaborative control model can be input into the path planning decision model to be trained, and the current dual-arm robot's position information and environmental perception data are also input into the path planning decision model to be trained, the model is trained through a reinforcement learning algorithm, and the pre-constructed comprehensive evaluation function is used as the objective function of the path planning decision model to be trained, and the dual-arm collaborative control algorithm and path planning of reinforcement learning are optimized by maximizing the comprehensive evaluation function, and the path planning decision module is trained using the comprehensive evaluation function as a reward signal. Furthermore, the output path of the path planning decision model is input into the dual-arm collaborative control model, and the dual-arm collaborative control model outputs the corresponding control data, and the control data is fed back to the path planning decision model. The path planning decision model fine-tunes and optimizes the originally planned optimal path according to the control data, and passes the optimized path information to the dual-arm collaborative control algorithm based on reinforcement learning again. After multiple rounds of iterative optimization, the model training is terminated after the preset number of interactive trainings are completed to obtain a trained path planning decision model. As for the conditions for determining the end of model training, it is also possible to determine whether the model performance has reached the preset target performance level. If the preset target performance level is reached, the model training can be terminated.
[0075] For the training method of the dual-arm collaborative control model, the environmental perception data corresponding to the dual-arm robot under different preset environmental scenarios are obtained, and the corresponding environmental state information is set according to the environmental perception data corresponding to the dual-arm robot, including obstacle information, light intensity information and ground condition information; the corresponding device state information is determined according to the operation data of the dual-arm robot, including joint angle data and angular velocity data; the state space is determined based on the environmental state information and the device state information, the driving force of each joint is used as the control action, the action space is constructed, and a reward and punishment mechanism is designed to obtain the dual-arm collaborative control model to be trained, and the training is performed through a reinforcement learning algorithm. The reward and punishment mechanism is used to guide the dual-arm collaborative control model to learn an ideal dual-arm collaborative control strategy. Exemplarily, rewards may include behaviors such as successfully completing target tasks and avoiding obstacles; punishments may include behaviors such as performing dangerous actions and colliding with obstacles. Rewards and penalties can be set according to actual needs. The environmental perception data of the dual-arm robot in the preset environmental scenario is labeled, and the expected dual-arm collaborative control strategy in each environmental scenario is labeled. The expected dual-arm collaborative control strategy is the ideal collaborative action that the dual-arm robot should take in the corresponding environmental scenario. For example, in one scenario, the robot needs to coordinate two robotic arms to lift a heavy object together and then place it in a specific position. The expected collaborative control behavior can also be that one robotic arm provides support force, while the other robotic arm is used to adjust the balance to keep the object stable. The dual-arm collaborative control model to be trained is trained with the labeled data, and the dual-arm collaborative control model to be trained is trained according to the reinforcement learning algorithm to obtain the initial dual-arm collaborative control model. The unlabeled environmental perception data is obtained and used to train the initial dual-arm collaborative control model to improve the environmental information perception ability of the initial dual-arm collaborative control model. The initial dual-arm collaborative control model can also be trained through self-adversarial training, specifically by using the labeled environmental perception data as the input data of the model to obtain the corresponding first output result, using the unlabeled environmental perception data as the input data of the model to obtain the second output result, using the first output result and the second output result as training samples, using the first output result as the correct label, and using the second output result as the data to be corrected. The initial dual-arm collaborative control model is gradient updated using this pair of training samples, so that the output result of the initial dual-arm collaborative control model is more inclined to the environmental scene corresponding to the first output result. During the training process, a reward and punishment mechanism is set to guide the initial dual-arm collaborative control model to gradually optimize the dual-arm collaborative control behavior during the training process to obtain a trained initial dual-arm collaborative control model.Moreover, a DH model of the dual-arm robot can be further established, and the Jacobian matrix of the dual-arm robot can be derived based on the DH model; the singularity of the Jacobian matrix can be analyzed to identify the characteristic posture that causes the end effector to lose control, and the rank, condition number, and angles and angular velocities of the corresponding Jacobian matrix can be added to the state variables of the initial dual-arm collaborative control model. The driving torque of each joint is used as the control action to obtain the adjusted dual-arm collaborative control model. Reinforcement learning algorithm is used for training throughout the training process, and a comprehensive evaluation function can be created to optimize the dual-arm collaborative control algorithm based on the calculation results of the comprehensive evaluation function to obtain a trained dual-arm collaborative control model.
[0076] The technical solution of this embodiment is to obtain the first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and device state information into the dual-arm collaborative control model, and obtain the first control data of the dual-arm robot; obtain the first position information corresponding to the dual-arm robot, input the first control data, the first position information and the first environment state information into the path planning decision model, and obtain the first path; determine the operation requirements of the first path based on the dual-arm collaborative control model, and if the first path does not meet the target operation requirements, obtain the second control data output by the dual-arm collaborative control model; obtain the second position information and the second environment state information corresponding to the dual-arm robot, input the second control data, the second position information and the second environment state information into the path planning decision model, and obtain the second path, and re-determine the operation requirements of the second path based on the dual-arm collaborative control model until the target path that meets the target operation requirements is obtained. By constructing a closed-loop path planning and motion control coupling mechanism, the functions of dynamic adaptation and global optimization of the dual-arm collaborative operation process are completed. The planned path is also judged according to the operating requirements to obtain the target path that matches the collaborative control data. The target operation task can be completed efficiently, solving the problems of low path planning efficiency and poor collaborative control. This enables the dual-arm robot to improve its perception and decision-making capabilities in complex environments, improve path planning efficiency, and enhance the safety and flexibility of dual-arm collaborative operations, further improving the overall operating efficiency and safety of the robot.
[0077] Embodiment 2
[0078] Figure 2It is a flow chart of a dual-arm robot path planning method provided in the second embodiment of the present invention. This embodiment is a further optimization of the method of the above embodiment. Optionally, the data to be determined of the first path is obtained; the data to be determined of the first path includes environmental data and first control data corresponding to the first path; the environmental status information and device status information of the dual-arm robot at the time of verification are obtained, and the third control data is generated based on the environmental status information and device status information at the time of verification, and the environmental status information and the third control data at the time of verification are used as the determination data corresponding to the first path, and the determination data is used to determine the operation requirements of the data to be determined; the data to be determined of the first path is matched based on the determination data corresponding to the first path, and when the corresponding environmental data of the first path does not match the environmental status information in the determination data, and / or the first control data corresponding to the first path does not match the third control data, it is determined that the first path does not meet the target operation requirements; when the first path does not meet the target operation requirements, the second control data output by the dual-arm collaborative control model is obtained. Figure 2 As shown, the method includes:
[0079] S210. Obtain first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and device state information into a dual-arm collaborative control model, and obtain first control data of the dual-arm robot.
[0080] S220, obtaining first position information corresponding to the dual-arm robot, inputting first control data, first position information and first environmental state information into a path planning decision model, and obtaining a first path.
[0081] S230, obtaining the data to be determined of the first path; the data to be determined of the first path includes the environment data and the first control data corresponding to the first path.
[0082] The data to be determined can be specifically understood as the associated data corresponding to the path data, which is the data set to evaluate whether the planned path can meet the complex and changeable environment. The data to be determined includes the environmental data and the first control data corresponding to the first path. The environmental data can be specifically understood as the environmental information corresponding to the path, including the path width data and path trajectory data corresponding to the path. Specifically, the environmental data and the first control data corresponding to the first path are used as the data to be determined for the first path.
[0083] S240. Obtain the environmental status information and device status information of the dual-arm robot at the verification time, generate third control data based on the environmental status information and device status information at the verification time, use the environmental status information and the third control data at the verification time as the judgment data corresponding to the first path, and the judgment data is used to perform operation demand judgment on the data to be judged.
[0084] The third control data can be specifically understood as data generated for verifying the path data, and used to verify whether the path data meets the latest environmental conditions. For example, it can be determined whether there is a conflict between the control data corresponding to the first path and the third control data. The determination data can be specifically understood as data for comparison with the data to be determined corresponding to the first path, and the determination data includes the environmental status information at the time of verification and the third control data.
[0085] Specifically, when verifying the first path data, the current environmental status information and device status information are obtained as the environmental status information and device status information at the verification time. The environmental status information and device status information at the verification time are input into the dual-arm collaborative control model. After being processed by the model, the third control data is obtained. The environmental status information and the third control data at the verification time are used as the judgment data corresponding to the first path, and are used to make demand judgments on the first path, that is, the environmental status information and the third control data at the verification time are used as judgment criteria to make job demand judgments on the data to be judged.
[0086] S250, matching the data to be determined of the first path based on the determination data corresponding to the first path, and when the environmental data corresponding to the first path does not match the environmental status information in the determination data, and / or the first control data corresponding to the first path does not match the third control data, determining that the first path does not meet the target operation requirements.
[0087] Specifically, the environmental status information at the verification moment and the third control data are used as judgment criteria to determine whether the data to be determined of the first path matches the judgment data, and specifically to determine whether the corresponding environmental data of the first path matches the environmental status information in the judgment data, that is, to determine whether the path width data corresponding to the first path can meet the environmental status information at the verification moment. Exemplarily, if it is detected that the path width data corresponding to the first path is narrower than the path width corresponding to the environmental status information at the verification moment, the arms cannot move normally or there is a risk of collision, then it is determined that the corresponding environmental data of the first path does not match the environmental status information in the judgment data. It can also be determined whether the path trajectory corresponding to the first path passes through the obstacle position in the judgment data. If the path trajectory of the first path overlaps with the obstacle position in the judgment data, then it is determined that the corresponding environmental data of the first path does not match the environmental status information in the judgment data. Alternatively, by judging whether the first control data and the third control data corresponding to the first path match the preset conflict conditions, it is possible to judge whether there is a conflict in posture control, and it is also possible to judge whether there is a mismatch in joint angle data. This can be set according to specific control data. For example, if there is a restriction on control data in the third control data, and there is corresponding control data in the first control data, it is determined that there is a conflict between the first control data and the third control data corresponding to the first path, and it can be determined that the first control data and the third control data corresponding to the first path do not match. It should be noted that the rules for determining the operation requirements of the path can be set according to actual needs, as long as it can ensure that the verified path can successfully complete the corresponding target operation requirements. The target operation requirements can be requirements such as the dual-arm robot transporting objects to the destination and no collision during the transportation process. That is, when the environmental data corresponding to the first path does not match the environmental status information in the judgment data, it is determined that the first path does not meet the target operation requirements; or, when the first control data corresponding to the first path does not match the third control data, it is determined that the first path does not meet the target operation requirements; it can also be determined that the first path does not meet the target operation requirements when the environmental data corresponding to the first path does not match the environmental status information in the judgment data, and when the first control data corresponding to the first path does not match the third control data.
[0088] S260: When the first path does not meet the target operation requirements, obtain second control data output by the dual-arm collaborative control model.
[0089] S270. Obtain the second position information and second environmental state information corresponding to the dual-arm robot, input the second control data, the second position information and the second environmental state information into the path planning decision model to obtain a second path, and re-determine the operation requirements of the second path based on the dual-arm collaborative control model until a target path that meets the target operation requirements is obtained.
[0090] The technical solution of this embodiment is to obtain first environmental state information and device state information corresponding to the dual-arm robot, input the first environmental state information and device state information into the dual-arm collaborative control model, and obtain first control data of the dual-arm robot; obtain first position information corresponding to the dual-arm robot, input the first control data, the first position information and the first environmental state information into the path planning decision model, and obtain a first path; obtain data to be determined for the first path; the data to be determined for the first path include environmental data and first control data corresponding to the first path; obtain environmental state information and device state information of the dual-arm robot at the time of verification, generate third control data based on the environmental state information and device state information at the time of verification, use the environmental state information and the third control data at the time of verification as determination data corresponding to the first path, and determine the data The data is used to determine the operation requirements of the data to be determined; the data to be determined of the first path is matched based on the determination data corresponding to the first path, and when the corresponding environmental data of the first path does not match the environmental status information in the determination data, and / or the first control data corresponding to the first path does not match the third control data, it is determined that the first path does not meet the target operation requirements; when the first path does not meet the target operation requirements, the second control data output by the dual-arm collaborative control model is obtained; the second position information and the second environmental status information corresponding to the dual-arm robot are obtained, and the second control data, the second position information and the second environmental status information are input into the path planning decision model to obtain a second path, and the operation requirements of the second path are re-determined based on the dual-arm collaborative control model until a target path that meets the target operation requirements is obtained. By constructing a closed-loop path planning and motion control coupling mechanism, the functions of dynamic adaptation and global optimization of the dual-arm collaborative operation process are completed. The planned path is also judged for work requirements to obtain a target path that matches the collaborative control data, which can efficiently complete the target work task and solve the problems of low path planning efficiency and poor collaborative control. This enables the dual-arm robot to improve its perception and decision-making capabilities in complex environments, obtain path data that meets real-time environmental conditions, improve path planning efficiency, and enhance the safety and flexibility of dual-arm collaborative operations as well as the coordination and unity with the path planning decision module, further improving the overall operating efficiency and safety of the robot.
[0091] Embodiment 3
[0092] Figure 3 Schematic diagram of the structure of a path planning device for a dual-arm robot provided in Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:
[0093] A first control data determination module 310 is used to obtain first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and device state information into the dual-arm collaborative control model, and obtain first control data of the dual-arm robot;
[0094] A first path determination module 320 is used to obtain first position information corresponding to the dual-arm robot, input first control data, first position information and first environmental state information into a path planning decision model, and obtain a first path;
[0095] The second control data determination module 330 is used to determine the operation requirement of the first path based on the dual-arm collaborative control model, and obtain the second control data output by the dual-arm collaborative control model when the first path does not meet the target operation requirement;
[0096] The target path determination module 340 is used to obtain the second position information and second environmental state information corresponding to the dual-arm robot, input the second control data, the second position information and the second environmental state information into the path planning decision model to obtain the second path, and re-determine the operation requirements of the second path based on the dual-arm collaborative control model until a target path that meets the target operation requirements is obtained.
[0097] The technical solution of this embodiment is to obtain the first environmental state information and equipment state information corresponding to the dual-arm robot through the first control data determination module, input the first environmental state information and equipment state information into the dual-arm collaborative control model, and obtain the first control data of the dual-arm robot; the first path determination module obtains the first position information corresponding to the dual-arm robot, inputs the first control data, the first position information and the first environmental state information into the path planning decision model, and obtains the first path; the second control data determination module determines the operation requirements of the first path based on the dual-arm collaborative control model, and obtains the second control data output by the dual-arm collaborative control model when the first path does not meet the target operation requirements; the target path determination module obtains the second position information and the second environmental state information corresponding to the dual-arm robot, inputs the second control data, the second position information and the second environmental state information into the path planning decision model, and obtains the second path, and re-determines the operation requirements of the second path based on the dual-arm collaborative control model until the target path that meets the target operation requirements is obtained. By constructing a closed-loop path planning and motion control coupling mechanism, the functions of dynamic adaptation and global optimization of the dual-arm collaborative operation process are completed. The planned path is also judged according to the operation requirements to obtain the target path that matches the collaborative control data. The target operation task can be completed efficiently, solving the problems of low path planning efficiency and poor collaborative control. This enables the dual-arm robot to improve its perception and decision-making capabilities in complex environments, improve path planning efficiency, and enhance the safety and flexibility of dual-arm collaborative operations, further improving the overall operation efficiency and safety of the robot.
[0098] On the basis of the above embodiment, optionally, the device further includes a path planning decision module, which is used to generate at least one candidate path based on the control data output by the dual-arm collaborative control model, the position information and the environmental state information of the dual-arm robot, wherein the control data output by the dual-arm collaborative control model includes the first control data or the second control data, the position information of the dual-arm robot includes the first position information or the second position information, and the environmental state information includes the first environmental state information or the second environmental state information;
[0099] Evaluate the candidate paths based on the pre-built comprehensive evaluation function to obtain the evaluation results corresponding to the candidate paths;
[0100] An output path of the path planning decision model is determined based on the evaluation results corresponding to each candidate path, and the output path includes a first path or a second path.
[0101] Optionally, a comprehensive evaluation function is constructed based on preset indicator information, wherein the preset indicator information includes one or more of the collaborative control optimization degree, the path comprehensive score and the environmental perception score; the device also includes a comprehensive evaluation function construction module, which is used to set weight parameters corresponding to the collaborative control optimization degree, the path comprehensive score and the environmental perception score respectively; based on the weight parameters, one or more of the collaborative control optimization degree, the path comprehensive score and the environmental perception score are weighted to obtain a comprehensive evaluation function.
[0102] Optionally, the comprehensive evaluation function construction module is also used to: obtain the joint data and actuator data of the dual-arm robot, and determine the degree of collaborative control optimization based on the joint data and actuator data, wherein the joint data include one or more of the coordination angle data, coordination speed data, and motion range data of each joint, and the actuator data include one or more of the coordination posture data and coordination speed data of the end effector of the dual-arm robot; obtain the associated data of the planned path, and determine the comprehensive score of the path based on the associated data, wherein the associated data include one or more of the path length data, the path direction change data, and the path curvature data; determine the environmental perception score based on the environmental perception data corresponding to the dual-arm robot, wherein the environmental perception data include one or more of the obstacle location information, the ground condition information, and the light intensity data.
[0103] On the basis of the above embodiment, the device further includes an operation demand determination module, which is used to obtain the data to be determined of the first path; the data to be determined of the first path includes the environment data and the first control data corresponding to the first path;
[0104] Obtaining environmental status information and device status information of the dual-arm robot at the verification time, generating third control data based on the environmental status information and device status information at the verification time, using the environmental status information and the third control data at the verification time as determination data corresponding to the first path, and the determination data is used to determine the operation demand of the determination data;
[0105] The data to be determined of the first path is matched based on the determination data corresponding to the first path. If the environmental data corresponding to the first path does not match the environmental status information in the determination data, and / or the first control data corresponding to the first path does not match the third control data, it is determined that the first path does not meet the target operation requirements.
[0106] Optionally, the job requirement determination module is further used to determine whether the comprehensive evaluation function corresponding to the first path meets a preset evaluation function threshold. If the preset evaluation function threshold is not met, it is determined that the first path does not meet the target job requirement.
[0107] Optionally, the path planning decision module is further used to: construct a path planning decision model to be trained, wherein the path planning decision model to be trained and the dual-arm collaborative control model form a closed-loop link;
[0108] The output results of the dual-arm collaborative control model, the position information of the dual-arm robot, and the environmental perception data are used as input parameters of the path planning decision model to be trained. The output results of the path planning decision model to be trained are fed back to the dual-arm collaborative control model. The pre-constructed comprehensive evaluation function is used as the objective function of the path planning decision model to be trained. Through closed-loop interactive training between the path planning decision model to be trained and the dual-arm collaborative control model, a trained path planning decision model is obtained after completing the preset number of interactive training times.
[0109] The dual-arm robot path planning device provided in the embodiment of the present invention can execute the dual-arm robot path planning method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0110] Embodiment 4
[0111] Figure 4 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0112] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0113] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0114] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a path planning method for a dual-arm robot.
[0115] In some embodiments, the path planning method for the dual-arm robot can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the path planning method for the dual-arm robot described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the path planning method for the dual-arm robot in any other appropriate manner (for example, by means of firmware).
[0116] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0117] The computer program for implementing the path planning method of the dual-arm robot of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0118] Embodiment 5
[0119] Embodiment 5 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute a path planning method for a dual-arm robot, the method comprising:
[0120] Acquire first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and device state information into the dual-arm collaborative control model, and obtain first control data of the dual-arm robot;
[0121] Acquire first position information corresponding to the dual-arm robot, input first control data, first position information and first environmental state information into a path planning decision model, and obtain a first path;
[0122] Determine the operation requirement of the first path based on the dual-arm collaborative control model, and obtain second control data output by the dual-arm collaborative control model when the first path does not meet the target operation requirement;
[0123] Obtain the second position information and second environmental state information corresponding to the dual-arm robot, input the second control data, the second position information and the second environmental state information into the path planning decision model to obtain the second path, and re-determine the operation requirements of the second path based on the dual-arm collaborative control model until a target path that meets the target operation requirements is obtained.
[0124] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0126] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0127] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0128] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0129] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A path planning method for a dual-arm robot, It is characterized in that include: Acquire first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and the device state information into a dual-arm collaborative control model, and obtain first control data of the dual-arm robot; Acquire first position information corresponding to the dual-arm robot, input the first control data, the first position information and the first environmental state information into a path planning decision model, and obtain a first path; Determine the operation requirement of the first path based on the dual-arm collaborative control model, and when the first path does not meet the target operation requirement, obtain second control data output by the dual-arm collaborative control model; Acquire second position information and second environmental state information corresponding to the dual-arm robot, input the second control data, the second position information and the second environmental state information into the path planning decision model to obtain a second path, and re-determine the operation requirement of the second path based on the dual-arm collaborative control model until a target path that meets the target operation requirement is obtained; The path planning decision model is specifically used for: Generate at least one candidate path based on the control data output by the dual-arm collaborative control model, the position information of the dual-arm robot and the environmental state information, wherein the control data output by the dual-arm collaborative control model includes the first control data or the second control data, the position information of the dual-arm robot includes the first position information or the second position information, and the environmental state information includes the first environmental state information or the second environmental state information; Evaluate the candidate paths based on a pre-built comprehensive evaluation function to obtain evaluation results corresponding to the candidate paths; Determine an output path of the path planning decision model based on the evaluation results corresponding to each of the candidate paths, wherein the output path includes the first path or the second path; The comprehensive evaluation function is constructed based on preset indicator information, wherein the preset indicator information includes one or more of the degree of optimization of cooperative control, the comprehensive score of the path and the environmental perception score; The construction method of the comprehensive evaluation function includes: Respectively setting weight parameters corresponding to the collaborative control optimization degree, the path comprehensive score and the environmental perception score; Based on the weight parameter, one or more of the collaborative control optimization degree, the path comprehensive score and the environmental perception score are weighted to obtain the comprehensive evaluation function.
2. The method according to claim 1, It is characterized in that The method for determining the degree of collaborative control optimization includes: acquiring joint data and actuator data of the dual-arm robot, and determining the degree of collaborative control optimization based on the joint data and the actuator data, wherein the joint data includes one or more of coordination angle data, coordination speed data, and motion range data of each joint, and the actuator data includes one or more of coordination posture data and coordination speed data of the end effector of the dual-arm robot; The method for determining the path comprehensive score includes: obtaining associated data of the planned path, and determining the path comprehensive score based on the associated data, wherein the associated data includes one or more of path length data, path direction change data, and path curvature data; The method for determining the environmental perception score includes: determining the environmental perception score based on environmental perception data corresponding to the dual-arm robot, wherein the environmental perception data includes one or more of obstacle location information, ground condition information and light intensity data.
3. The method according to claim 1, It is characterized in that The determining of the operation requirement of the first path based on the dual-arm collaborative control model includes: Acquire the data to be determined of the first path; the data to be determined of the first path includes environment data and first control data corresponding to the first path; Acquire environmental status information and device status information of the dual-arm robot at the verification time, generate third control data based on the environmental status information and device status information at the verification time, use the environmental status information at the verification time and the third control data as determination data corresponding to the first path, and the determination data is used to determine the operation requirements of the data to be determined; The data to be determined of the first path is matched based on the determination data corresponding to the first path. If the environmental data corresponding to the first path does not match the environmental status information in the determination data, and / or the first control data corresponding to the first path does not match the third control data, it is determined that the first path does not meet the target operation requirements.
4. The method according to claim 1, It is characterized in that The method further comprises: It is determined whether the comprehensive evaluation function corresponding to the first path satisfies a preset evaluation function threshold. If the preset evaluation function threshold is not satisfied, it is determined that the first path does not meet the target operation requirement.
5. The method according to claim 1, It is characterized in that It is characterized in that The training method of the path planning decision model comprises: Constructing a path planning decision model to be trained, wherein the path planning decision model to be trained and the dual-arm collaborative control model form a closed-loop link; The output control data of the dual-arm collaborative control model, the position information of the dual-arm robot, and the environmental state information are used as input parameters of the path planning decision model to be trained, and the output result of the path planning decision model to be trained is fed back to the dual-arm collaborative control model. The pre-constructed comprehensive evaluation function is used as the objective function of the path planning decision model to be trained. Through closed-loop interactive training between the path planning decision model to be trained and the dual-arm collaborative control model, the trained path planning decision model is obtained after completing a preset number of interactive training times.
6. A path planning device for a dual-arm robot, It is characterized in that include: A first control data determination module is used to obtain first environment state information and device state information corresponding to the dual-arm robot, input the first environment state information and the device state information into a dual-arm collaborative control model, and obtain first control data of the dual-arm robot; A first path determination module is used to obtain first position information corresponding to the dual-arm robot, input the first control data, the first position information and the first environmental state information into a path planning decision model, and obtain a first path; A second control data determination module is used to determine the operation requirement of the first path based on the dual-arm collaborative control model, and obtain second control data output by the dual-arm collaborative control model when the first path does not meet the target operation requirement; a target path determination module, configured to obtain second position information and second environmental state information corresponding to the dual-arm robot, input the second control data, the second position information and the second environmental state information into the path planning decision model to obtain a second path, and re-determine the operation requirement of the second path based on the dual-arm collaborative control model until a target path that meets the target operation requirement is obtained; The device shown includes: a path planning decision module and a comprehensive evaluation function construction module; The path planning decision module is used to generate at least one candidate path based on the control data output by the dual-arm collaborative control model, the position information of the dual-arm robot and the environmental state information, the control data output by the dual-arm collaborative control model includes the first control data or the second control data, the position information of the dual-arm robot includes the first position information or the second position information, and the environmental state information includes the first environmental state information or the second environmental state information; the candidate paths are evaluated based on a pre-constructed comprehensive evaluation function to obtain an evaluation result corresponding to the candidate paths; the output path of the path planning decision model is determined based on the evaluation results corresponding to each of the candidate paths, and the output path includes the first path or the second path; the comprehensive evaluation function is constructed based on preset indicator information, wherein the preset indicator information includes one or more of the degree of collaborative control optimization, the path comprehensive score and the environmental perception score; The comprehensive evaluation function construction module is used to set the weight parameters corresponding to the collaborative control optimization degree, the path comprehensive score and the environmental perception score respectively; based on the weight parameters, one or more of the collaborative control optimization degree, the path comprehensive score and the environmental perception score are weighted to obtain the comprehensive evaluation function.
7. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the path planning method for the dual-arm robot according to any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the path planning method for a dual-arm robot according to any one of claims 1 to 5 when executed.
Citation Information
Patent Citations
Collaborative robot safety control method based on vision
CN109822579A
Double-arm robot track planning method based on dynamic motion primitive and artificial potential field
CN112549028A
