Mechanical arm track optimization method based on reinforcement learning

Through the method based on reinforcement learning, the robotic arm trajectory is optimized, and the problem of insufficient stability in complex environments is solved, and the robotic arm is safe and efficiently operated in power transmission line maintenance is achieved.

CN119036466AActive Publication Date: 2024-11-29SOUTH CHINA AGRICULTURAL UNIVERSITY

Patent Information

Application Number
CN202411440339.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2024-11-29
Estimated Expiration
2044-10-15

AI Technical Summary

Technical Problem

Traditional robotic arm control methods are difficult to adapt to environmental changes in complex and dynamic environments, resulting in unstable movement of robotic arm, especially in the maintenance and repair of transmission lines.

Method used

Using the robotic arm trajectory optimization method based on reinforcement learning, the robotic arm joint information is obtained, the execution end position is positioned in real time, the operation target is identified, the center of mass is calculated, and the pre-trained robotic arm operation control model is used to control posture and center of mass excitation to generate Robot operation instructions to improve motion stability.

Benefits of technology

It improves the movement stability of the robotic arm, reduces the center of mass offset, and ensures that the robotic arm can complete the work tasks safely and efficiently in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119036466A_ABST
    Figure CN119036466A_ABST
Patent Text Reader

Abstract

The invention relates to an artificial intelligence technology, and discloses a mechanical arm trajectory optimization method based on reinforcement learning. The method comprises the steps that firstly, a connecting rod coordinate system is built according to joint information of the mechanical arm, and a kinematic model of the mechanical arm is built on the basis; secondly, a reinforcement learning environment is built, the rotation angle of a mechanical arm and the working target pose serve as input states, and the stability degree of the robot in the working process serves as a key reward item; then, through a pre-trained mechanical arm operation control model, decision generation operation based on posture rewards and centroid rewards is executed, and therefore a robot action instruction is generated; and finally, the target mechanical arm robot is accurately controlled according to the action instructions. By means of the trajectory planning method, the stability of robot movement is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a robot arm trajectory optimization method based on reinforcement learning. Background Art

[0002] In modern manufacturing and power industries, the maintenance and repair of transmission lines and related equipment are crucial, and traditional manual live-line work poses great safety risks. In particular, key components of transmission lines, such as transmission line bolts and nuts, require regular maintenance.

[0003] Due to the special working environment on the transmission line, the base of the dual-arm robot is a floating base, which may cause the tilt angle of the robot arm to change during operation, affecting the motion stability and center of mass distribution of the robot arm, causing shaking or even worse. Existing robot arm control methods have limited performance in complex and dynamic environments, often relying on predefined trajectories and rules, and are difficult to adapt to environmental changes and requirements. Summary of the invention

[0004] The present invention provides a robot arm trajectory optimization method based on reinforcement learning, the main purpose of which is to improve the motion stability of the robot arm through reinforcement learning.

[0005] To achieve the above object, the present invention provides a robot arm trajectory optimization method based on reinforcement learning, comprising:

[0006] Acquire joint information of a target robotic arm robot, and model the target robotic arm robot according to the joint information to obtain a robotic arm motion model;

[0007] Acquire the rotation angle of each joint in the robot arm motion model in real time, and locate the execution end position of the robot arm motion model according to the rotation angle to obtain the execution end real-time state vector;

[0008] Using a scanning device pre-built in the base of the target manipulator robot, a nearby line scanning image of the target manipulator robot is obtained, and an operation target object recognition operation is performed on the nearby line scanning image to obtain an operation target, and a target operation position of the operation target is identified;

[0009] Acquire the mechanical arm composition information of the target mechanical arm robot, and calculate the center of mass position of a single mechanical arm of the target mechanical arm robot according to the real-time state vector of the execution end and the mechanical arm composition information to obtain the center of mass position of the single arm;

[0010] Obtaining an operation distance vector according to the real-time state vector of the execution end and the target operation position;

[0011] Constructing the posture excitation control of the real-time state vector of the execution end for the preset terminal posture, and constructing the center of mass excitation control of the center of mass position of the single arm for the minimum center of mass change rate;

[0012] In the pre-trained manipulator operation control model, the operation distance vector is subjected to a robot decision generation operation based on the posture excitation control and the center of mass excitation control to obtain a robot operation instruction, and the target manipulator robot is controlled according to the robot operation instruction.

[0013] Optionally, the target robotic arm robot has a base and two robotic arms, wherein the robotic arms are connected to the base, the robotic arms have N joints and an execution end of a preset business is configured at the outermost end of the robotic arms, and the execution end can be replaced according to the type of the preset business.

[0014] Optionally, locating the execution end position of the robot arm motion model according to the rotation angle to obtain the execution end real-time state vector includes:

[0015] Sorting the rotation angles of the joints in the robot arm from the base to the execution end to obtain an angle change vector sequence;

[0016] The base position information of the base based on the world coordinate system is obtained, and the angle change vector sequence and the base position information are spliced ​​to obtain a real-time state vector of the execution end.

[0017] Optionally, performing a work target object recognition operation on the nearby line scanning image to obtain a work target and identify a target work position of the work target includes:

[0018] grayscale the scanned image of the nearby lines to obtain a grayscale scanned image, and Gaussian filter the scanned image to obtain a de-noised grayscale image;

[0019] Obtain the target operation requirements input by the user, and query the operation target object corresponding to the target operation requirements according to the pre-built technical manual database;

[0020] Performing a feature extraction operation on the denoised grayscale image to obtain an image feature set, performing a binary classification judgment operation based on the job target object on the image feature set to obtain a job target, and marking the job target to obtain a target mark;

[0021] According to the pre-constructed time-of-flight method, visual recognition analysis is performed on the target mark to obtain the target operating position of the operating target based on the base.

[0022] Optionally, the operation distance vector is expressed as:

[0023] s=(θ1, θ2, θ3,…, θ N , x, y, z, α, β, γ)

[0024] Where s represents the operation distance vector; θ1, θ2, θ3, ..., θ N represents the real-time state vector of the execution end; x, y, z represent the base position information; α, β, γ represent the target operation position.

[0025] Optionally, the use of a pre-trained manipulator operation control model to perform a robot decision generation operation based on the posture excitation control and the center of mass excitation control on the operation distance vector to obtain a robot operation instruction, and controlling the target manipulator robot according to the robot operation instruction includes:

[0026] Using a pre-trained robot arm operation control model, according to a pre-built Markov algorithm, a primary control instruction within a preset time period is randomly generated so that the operation distance vector tends to zero;

[0027] Calculating the primary motion change angle of the robotic arm controlled by the primary control instruction;

[0028] The initial joint angle corresponding to the start time of the preset time period is obtained, and the predicted joint angle at the end time of the preset time period is calculated according to the initial motion change angle and the initial joint angle, wherein the predicted joint angle is expressed as:

[0029] obs2=(q1+θ1, q2+θ2, q3+θ3,…, q N +θ N )

[0030] In the formula, θ1, θ2, θ3,..., θ N represents the initial joint angle; q1, q2, q3, ..., q N represents the primary motion change angle, where q i ∈[-1rad, 1rad], rad represents the radian unit, i∈[1, ..., N];

[0031] According to the predicted joint angle, the robot arm is calculated based on the execution end posture and the center of mass to obtain the execution end posture and the center of mass change curve of the robot arm;

[0032] According to the posture incentive control and the center of mass incentive control, the execution end posture is scored in a standardized manner to obtain an execution posture score, and the center of mass change curve is scored based on the mean value of the center of mass change rate to obtain a center of mass change score;

[0033] The execution posture scores and center of mass change scores corresponding to the primary control instructions randomly generated by the Markov algorithm are sorted in sequence, and the primary control instruction with the highest execution posture score and the smallest center of mass change score is selected as the robot operation instruction.

[0034] Optionally, the center of mass excitation control is expressed as:

[0035] R com =-(x 2 +y 2 ×α+z 2 )×β

[0036] In the formula, R com represents the center of mass excitation control; x, y, z represent the relative position of the center of mass of the robot arm to the base, wherein x, z represent the front-to-back direction and the up-down direction of the base, y represents the lateral direction of the base, α, β represent weight coefficients, α>1.

[0037] In order to solve the above problems, the present invention also provides a robot arm trajectory optimization device based on reinforcement learning, the device comprising:

[0038] A mechanical arm modeling module is used to obtain joint information of a target mechanical arm robot, and to model the target mechanical arm robot according to the joint information to obtain a mechanical arm motion model;

[0039] A robot arm motion positioning module, used to obtain the rotation angle of each joint in the robot arm motion model in real time, and locate the execution end position of the robot arm motion model according to the rotation angle to obtain the real-time state vector of the execution end;

[0040] A target recognition module is used to obtain a nearby line scanning image of the target robot arm robot by using a scanning device pre-built in the base of the target robot arm robot, and perform an operation target object recognition operation on the nearby line scanning image to obtain an operation target, and identify a target operation position of the operation target;

[0041] A posture-center of mass excitation control module is used to obtain the robot arm composition information of the target robot arm robot, calculate the center of mass position of a single robot arm of the target robot arm robot according to the real-time state vector of the execution end and the robot arm composition information, and obtain the center of mass position of the single arm, and obtain the operation distance vector according to the real-time state vector of the execution end and the target operation position, and construct the posture excitation control of the real-time state vector of the execution end for the preset end posture, construct the center of mass excitation control of the single arm center of mass position with the minimum center of mass change rate, and use the pre-trained robot arm operation control model to perform a robot decision generation operation based on the posture excitation control and the center of mass excitation control on the operation distance vector to obtain a robot operation instruction, and control the target robot arm robot according to the robot operation instruction.

[0042] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0043] at least one processor; and,

[0044] a memory communicatively connected to the at least one processor; wherein,

[0045] The memory stores a computer program that can be executed 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 above-mentioned reinforcement learning-based robot arm trajectory optimization method.

[0046] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned reinforcement learning-based robot arm trajectory optimization method.

[0047] In order to solve the problems in the background technology, the present invention first models the target manipulator robot, then locates the position of the execution end of the manipulator, then identifies the target working position of the working target, calculates the distance between the real-time state vector of the execution end and the target working position, and then controls the robot and its manipulator arm to move to the target working position; during the movement process, the present invention often uses pre-built center of mass excitation control and posture excitation control to excite the movement of the manipulator, wherein the center of mass excitation control can prevent the center of mass offset caused by the movement of the manipulator, causing the robot to be unbalanced, and the posture excitation control can ensure that when the execution end reaches the target working position, it can have the posture or angle to participate in the work. Therefore, the embodiment of the present invention provides a manipulator trajectory optimization method, device, equipment and storage medium based on reinforcement learning, which can improve the motion stability of the manipulator through reinforcement learning. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of a process flow of a robot arm trajectory optimization method based on reinforcement learning provided by an embodiment of the present invention;

[0049] Figure 2 A schematic diagram of a simplified model of a dual-arm robot in a robot arm trajectory optimization method based on reinforcement learning provided in one embodiment of the present invention;

[0050] Figure 3 A schematic diagram of a dual-arm robot joint coordinate system in a robot arm trajectory optimization method based on reinforcement learning provided in one embodiment of the present invention;

[0051] Figure 4 A detailed flowchart of a step in a robot arm trajectory optimization method based on reinforcement learning provided by an embodiment of the present invention;

[0052] Figure 5 A schematic diagram of a right arm reinforcement learning environment setting in a robot arm trajectory optimization method based on reinforcement learning provided by an embodiment of the present invention;

[0053] Figure 6 A functional module diagram of a robot arm trajectory optimization device based on reinforcement learning provided by an embodiment of the present invention;

[0054] Figure 7 A schematic diagram of the structure of an electronic device for implementing the reinforcement learning-based robot trajectory optimization method provided in one embodiment of the present invention.

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

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

[0057] The embodiment of the present application provides a method for optimizing the trajectory of a robotic arm based on reinforcement learning. In the embodiment of the present application, the execution subject of the method for optimizing the trajectory of a robotic arm based on reinforcement learning includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the method for optimizing the trajectory of a robotic arm based on reinforcement learning can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0058] Reference Figure 1 FIG. 1 is a flow chart of a method for optimizing a robot arm trajectory based on reinforcement learning according to an embodiment of the present invention. In this embodiment, the method for optimizing a robot arm trajectory based on reinforcement learning includes:

[0059] S1. Acquire joint information of a target robotic arm robot, and model the target robotic arm robot according to the joint information to obtain a robotic arm motion model.

[0060] For details, refer to Figure 2 As shown in the simplified model picture of the dual-arm robot, in the embodiment of the present invention, the target robotic arm robot has a base and two robotic arms, wherein the robotic arms are connected to the base, the robotic arms have N joints and the execution end of the preset business is configured at the outermost end of the robotic arms, and the execution end can be replaced according to the type of the preset business.

[0061] Specifically, the robotic arm in the embodiment of the present invention has 6 joints. The present invention records the movable angles of the 6 joints from the inside to the outside, and then records the length and mass distribution of the sub-parts of the robotic arm connected to each joint to obtain joint information, and finally models the robot arm motion model through a mathematical method of numerical constraints.

[0062] S2. Obtain the rotation angle of each joint in the robot arm motion model in real time, and locate the execution end position of the robot arm motion model according to the rotation angle to obtain the real-time state vector of the execution end.

[0063] In the embodiment of the present invention, the rotation angle of each joint is directly used as the motion positioning description of the robot arm.

[0064] In detail, in an embodiment of the present invention, the positioning of the execution end of the robot arm motion model according to the rotation angle to obtain the execution end real-time state vector includes:

[0065] Sorting the rotation angles of the joints in the robot arm from the base to the execution end to obtain an angle change vector sequence;

[0066] The base position information of the base based on the world coordinate system is obtained, and the angle change vector sequence and the base position information are spliced ​​to obtain a real-time state vector of the execution end.

[0067] Specifically, in the embodiment of the present invention, according to Figure 3 The schematic diagram of the dual-arm robot joint coordinate system shown in FIG. 1 shows that the base of the dual-arm robot of the present invention adopts the world coordinate system O w For positioning, the middle joint part of the robot arm or the execution section at the end of the robot arm adopts the robot base coordinate system O r Each joint has its own positive direction of rotation, which can be configured according to the business type.

[0068] S3. Utilize the scanning device pre-built in the base of the target robotic arm robot to obtain the nearby line scanning image of the target robotic arm robot, perform the operation target object recognition operation on the nearby line scanning image, obtain the operation target, and identify the target operation position of the operation target.

[0069] In the embodiment of the present invention, an optical scanning device is used to photograph the area near the base to obtain a nearby line scanning image. Then, a neural network model is used to perform target recognition on the nearby line scanning image to obtain an operating target, such as a screw, a switch plate, etc.

[0070] For details, refer to Figure 4 As shown, in the embodiment of the present invention, the operation of identifying the operation target object on the nearby line scanning image to obtain the operation target and identify the target operation position of the operation target includes:

[0071] S31, graying the nearby line scan image to obtain a gray scan image, and Gaussian filtering the gray scan image to obtain a de-noised gray image;

[0072] S32, obtaining the target operation requirement input by the user, and querying the operation target object corresponding to the target operation requirement according to the pre-built technical manual database;

[0073] S33, performing a feature extraction operation on the denoised grayscale image to obtain an image feature set, performing a binary classification judgment operation based on the operation target object on the image feature set to obtain an operation target, and marking the operation target to obtain a target mark;

[0074] S34. Perform visual recognition analysis on the target mark according to a pre-constructed time-of-flight method to obtain a target operating position of the operating target based on the base.

[0075] The grayscale processing refers to converting the RBG three-channel color image into black and white, which is used to reduce the order of magnitude of the nearby line scanning image and increase the image recognition speed.

[0076] Furthermore, Gaussian filtering processing refers to calculating the mean value between connected pixels in the image according to the Gaussian formula, thereby smoothing the pixel difference between each pixel, reducing the noise in the grayscale scanned image, and obtaining a denoised grayscale image.

[0077] Furthermore, the technical manual database is a training manual and precautions for guiding relevant power operation business. According to the technical manual database, the parts knowledge and usage and maintenance methods designed for each business demand can be identified.

[0078] Then, in the embodiment of the present invention, the correct screws, switches, buttons, slots and circuits are found according to the target operation requirements, such as maintenance, assembly, testing and packaging. Finally, the trained neural network model is used to identify these switches, buttons and screws, thereby identifying the operation target.

[0079] Finally, in the embodiment of the present invention, the visual recognition analysis refers to marking the work target, detecting the light pulse of the work target according to the pre-built time flight method, and calculating the target work position of the work target based on the base according to the time interval. The time flight method refers to a method of using a TOF camera to emit light pulses and measuring the time it takes for the light pulses to be emitted from the camera to the target object and back, thereby calculating the distance of the target object.

[0080] S4. Obtain the mechanical arm composition information of the target mechanical arm robot, and calculate the center of mass position of a single mechanical arm of the target mechanical arm robot according to the real-time state vector of the execution end and the mechanical arm composition information to obtain the center of mass position of the single arm.

[0081] In the embodiment of the present invention, the composition information of the robotic arm can be extracted from the joint information, mainly obtaining the length and mass distribution of each part of the robotic arm. Thus, the overall shape distribution of the robotic arm can be inferred according to the real-time state vector of the execution end.

[0082] In the embodiment of the present invention, for the convenience of calculation, it is assumed that the lengths of the various parts of the robotic arm are the same and the mass distribution is uniform. Therefore, the center of mass position of a single robotic arm can be calculated through the overall shape distribution.

[0083] S5. Obtain an operation distance vector according to the real-time state vector of the execution end and the target operation position.

[0084] In the embodiment of the present invention, the operation example vector is the difference between the real-time state vector of the execution end and the target operation position. For the convenience of calculation, the present invention directly adopts the method of recording the initial-target position value to express it, and its specific calculation process can be calculated by the computer built-in program.

[0085] In detail, in the embodiment of the present invention, the operation distance vector is expressed as:

[0086] s=(θ1,θ2,θ3,θ4,θ5,θ6,x,y,z,α,β,γ)

[0087] Where s represents the operation distance vector; θ1, θ2, θ3, ..., θ N represents the real-time state vector of the execution end; x, y, z represent the base position information; α, β, γ represent the target operation position.

[0088] In the embodiment of the present invention, the first half of the operation distance vector [θ1, θ2, θ3, ..., θ6, x, y, z] represents the real-time state vector of the execution end.

[0089] S6. Constructing the posture excitation control of the real-time state vector of the execution end for the preset terminal posture, and constructing the center of mass excitation control of the center of mass position of the single arm for the minimum center of mass change rate.

[0090] It should be known that on the one hand, the high-altitude power operation scene of the dual-arm robot, on the other hand, the operation methods of different operation objects are fixed. Therefore, the execution section needs to operate the operation object in a fixed posture and angle to avoid safety accidents caused by irregular actions.

[0091] Specifically, in the embodiment of the present invention, since the working environment involved in the present invention is an on-line working environment, the purpose is to remove key components such as wire clamps, bolts and nuts. When the robot arm performs the operation, it needs to reach the target working position in a specific posture. The position of the end effector of the robot arm when it reaches the target working position is as follows: Figure 5 As shown, the direction of the rotation axis is the z′ direction.

[0092] Furthermore, in an embodiment of the present invention, the single arm center of mass is used for analysis, and changes in the center of mass position of the robotic arm are penalized. The greater the change in the center of mass, the higher the penalty.

[0093] In detail, in the embodiment of the present invention, the centroid excitation control is expressed as:

[0094] R com =-(x 2 +y 2 ×α+z 2 )×β

[0095] In the formula, R com represents the center of mass excitation control; x, y, z represent the relative position of the center of mass of the robot arm to the base, wherein x, z represent the front-to-back direction and the up-down direction of the base, y represents the lateral direction of the base, α, β represent weight coefficients, α>1.

[0096] Specifically, the reward function is shown in the formula of center of mass incentive control. x, y, and z are the coordinate changes of the center of mass on the three axes. Since the y-axis has the greatest impact on the robot's center of mass, a weight α (>1) is given on the y-axis, and a weight β is given as a whole.

[0097] S7. Using the pre-trained robotic arm operation control model, perform a robot decision generation operation based on the posture excitation control and the center of mass excitation control on the operation distance vector to obtain a robot operation instruction, and control the target robotic arm robot according to the robot operation instruction.

[0098] The basic function of the robot arm operation control model in the embodiment of the present invention is a distance reward function. The construction process of the distance reward function is as follows: an inverse proportional function is designed. The closer the distance between the robot arm end effector and the target, the higher the reward. When the distance is less than the set threshold, an additional reward is added to accelerate the robot arm to reach the target operation position.

[0099] In detail, in an embodiment of the present invention, the use of the pre-trained manipulator operation control model to perform a robot decision generation operation based on the posture excitation control and the center of mass excitation control on the operation distance vector to obtain a robot operation instruction, and control the target manipulator robot according to the robot operation instruction includes:

[0100] Using a pre-trained robot arm operation control model, according to a pre-built Markov algorithm, a primary control instruction within a preset time period is randomly generated so that the operation distance vector tends to zero;

[0101] Calculating the primary motion change angle of the robotic arm controlled by the primary control instruction;

[0102] The initial joint angle corresponding to the start time of the preset time period is obtained, and the predicted joint angle at the end time of the preset time period is calculated according to the initial motion change angle and the initial joint angle, wherein the predicted joint angle is expressed as:

[0103] obs2=(q1+θ1, q2+θ2, q3+θ3,…, q N +θ N )

[0104] In the formula, θ1, θ2, θ3,..., θ N represents the initial joint angle; q1, q2, q3, ..., q N represents the primary motion change angle, where q i ∈[-1rad, 1rad], rad represents the radian unit, i∈[1, ..., N];

[0105] According to the predicted joint angle, the robot arm is calculated based on the execution end posture and the center of mass to obtain the execution end posture and the center of mass change curve of the robot arm;

[0106] According to the posture incentive control and the center of mass incentive control, the execution end posture is scored in a standardized manner to obtain an execution posture score, and the center of mass change curve is scored based on the mean value of the center of mass change rate to obtain a center of mass change score;

[0107] The execution posture scores and center of mass change scores corresponding to the primary control instructions randomly generated by the Markov algorithm are sorted in sequence, and the primary control instruction with the highest execution posture score and the smallest center of mass change score is selected as the robot operation instruction.

[0108] The Markov algorithm is a random algorithm based on the Markov process. The Markov process is a random process with the characteristic of no aftereffect (i.e., the future state is only related to the current state and has nothing to do with the past state). In the Markov algorithm, the state of the system is transferred to the next state according to a certain probability. The transition probability of each state depends only on the current state and is not affected by the previous state sequence. This characteristic makes the Markov algorithm widely used in modeling and predicting systems with randomness.

[0109] Specifically, the present invention obtains the primary motion change angle, and then determines the final position of the robot arm according to the target working position. Since the final position of the robot arm can be directly detected by posture excitation control, and considering the center of mass excitation control, it is necessary to monitor each time node during the robot arm movement time, therefore, the present invention checks the center of mass change during the robot arm movement process and obtains the center of mass change curve. The mean value of the center of mass change rate is calculated as the score of the center of mass change.

[0110] Finally, the present invention constructs a basic robotic arm control model based on the distance reward function and the Markov function, and then further limits the motion plan instructions generated by the model based on the posture incentive control and center of mass incentive control constructed above, thereby obtaining a robot operation instruction with a stable posture and stable center of mass, which enables the robotic arm to quickly approach the target work object, thereby performing electrical operation control on the target robotic arm robot.

[0111] In order to solve the problems in the background technology, the present invention first models the target manipulator robot, then locates the position of the execution end of the manipulator, then identifies the target working position of the working target, calculates the distance between the real-time state vector of the execution end and the target working position, and then controls the robot and its manipulator arm to move to the target working position; during the movement process, the present invention often uses pre-built center of mass excitation control and posture excitation control to excite the movement of the manipulator, wherein the center of mass excitation control can prevent the center of mass offset caused by the movement of the manipulator, causing the robot to be unbalanced, and the posture excitation control can ensure that when the execution end reaches the target working position, it can have the posture or angle to participate in the work. Therefore, a manipulator trajectory optimization method based on reinforcement learning provided in an embodiment of the present invention can improve the motion stability of the manipulator through reinforcement learning.

[0112] like Figure 6 , is a functional module diagram of a robot arm trajectory optimization device based on reinforcement learning provided by one embodiment of the present invention.

[0113] The robot arm trajectory optimization device 100 based on reinforcement learning of the present invention can be installed in an electronic device. According to the functions to be implemented, the robot arm trajectory optimization device 100 based on reinforcement learning can include a robot arm modeling module 101, a robot arm motion positioning module 102, a target recognition module 103 and a posture-center of mass excitation control module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0114] In this embodiment, the functions of each module / unit are as follows:

[0115] The mechanical arm modeling module 101 is used to obtain joint information of a target mechanical arm robot, and to model the target mechanical arm robot according to the joint information to obtain a mechanical arm motion model;

[0116] The robot arm motion positioning module 102 is used to obtain the rotation angle of each joint in the robot arm motion model in real time, and locate the execution end position of the robot arm motion model according to the rotation angle to obtain the execution end real-time state vector;

[0117] The target recognition module 103 is used to obtain a nearby line scanning image of the target robot arm robot by using a scanning device pre-built in the base of the target robot arm robot, and perform a work target object recognition operation on the nearby line scanning image to obtain a work target, and identify a target work position of the work target;

[0118] The posture-center of mass excitation control module 104 is used to obtain the robot arm composition information of the target robot arm robot, calculate the center of mass position of a single robot arm of the target robot arm robot according to the real-time state vector of the execution end and the robot arm composition information, and obtain the center of mass position of the single arm, and obtain the operation distance vector according to the real-time state vector of the execution end and the target operation position, and construct the posture excitation control of the real-time state vector of the execution end for the preset end posture, construct the center of mass excitation control of the single arm center of mass position with the minimum center of mass change rate, and use the pre-trained robot arm operation control model to perform a robot decision generation operation based on the posture excitation control and the center of mass excitation control on the operation distance vector to obtain a robot operation instruction, and control the target robot arm robot according to the robot operation instruction.

[0119] In detail, each module described in the robot arm trajectory optimization device 100 based on reinforcement learning in the embodiment of the present application is used in the same manner as described above. Figures 1 to 5 The same technical means as the robotic arm trajectory optimization method based on reinforcement learning described in the text can produce the same technical effects, so I will not go into details here.

[0120] like Figure 7 , is a schematic diagram of the structure of an electronic device 1 for implementing a robot arm trajectory optimization method based on reinforcement learning provided by an embodiment of the present invention.

[0121] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a robot trajectory optimization program based on reinforcement learning.

[0122] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device 1, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a robot trajectory optimization program based on reinforcement learning, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device and process data.

[0123] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of a robot arm trajectory optimization program based on reinforcement learning, but also can be used to temporarily store data that has been output or is to be output.

[0124] The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0125] The communication interface 13 is used for communication between the above-mentioned electronic device 1 and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0126] Figure 7 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 7 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0127] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0128] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0129] The robot arm trajectory optimization program based on reinforcement learning stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0130] Acquire joint information of a target robotic arm robot, and model the target robotic arm robot according to the joint information to obtain a robotic arm motion model;

[0131] Acquire the rotation angle of each joint in the robot arm motion model in real time, and locate the execution end position of the robot arm motion model according to the rotation angle to obtain the execution end real-time state vector;

[0132] Using a scanning device pre-built in the base of the target manipulator robot, a nearby line scanning image of the target manipulator robot is obtained, and an operation target object recognition operation is performed on the nearby line scanning image to obtain an operation target, and a target operation position of the operation target is identified;

[0133] Acquire the mechanical arm composition information of the target mechanical arm robot, and calculate the center of mass position of a single mechanical arm of the target mechanical arm robot according to the real-time state vector of the execution end and the mechanical arm composition information to obtain the center of mass position of the single arm;

[0134] Obtaining an operation distance vector according to the real-time state vector of the execution end and the target operation position;

[0135] Constructing the posture excitation control of the real-time state vector of the execution end for the preset terminal posture, and constructing the center of mass excitation control of the center of mass position of the single arm for the minimum center of mass change rate;

[0136] By using a pre-trained manipulator operation control model, a robot decision generation operation based on the posture excitation control and the center of mass excitation control is performed on the operation distance vector to obtain a robot operation instruction, and the target manipulator robot is controlled according to the robot operation instruction.

[0137] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.

[0138] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0139] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0140] Acquire joint information of a target robotic arm robot, and model the target robotic arm robot according to the joint information to obtain a robotic arm motion model;

[0141] Acquire the rotation angle of each joint in the robot arm motion model in real time, and locate the execution end position of the robot arm motion model according to the rotation angle to obtain the execution end real-time state vector;

[0142] Using a scanning device pre-built in the base of the target manipulator robot, a nearby line scanning image of the target manipulator robot is obtained, and an operation target object recognition operation is performed on the nearby line scanning image to obtain an operation target, and a target operation position of the operation target is identified;

[0143] Acquire the mechanical arm composition information of the target mechanical arm robot, and calculate the center of mass position of a single mechanical arm of the target mechanical arm robot according to the real-time state vector of the execution end and the mechanical arm composition information to obtain the center of mass position of the single arm;

[0144] Obtaining an operation distance vector according to the real-time state vector of the execution end and the target operation position;

[0145] Constructing the posture excitation control of the real-time state vector of the execution end for the preset terminal posture, and constructing the center of mass excitation control of the center of mass position of the single arm for the minimum center of mass change rate;

[0146] By using a pre-trained manipulator operation control model, a robot decision generation operation based on the posture excitation control and the center of mass excitation control is performed on the operation distance vector to obtain a robot operation instruction, and the target manipulator robot is controlled according to the robot operation instruction.

[0147] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0148] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0149] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0150] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0151] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0152] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0153] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0154] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A robot arm trajectory optimization method based on reinforcement learning, characterized in that: The method comprises: Acquire joint information of a target robotic arm robot, and model the target robotic arm robot according to the joint information to obtain a robotic arm motion model; Acquire the rotation angle of each joint in the robot arm motion model in real time, and locate the execution end position of the robot arm motion model according to the rotation angle to obtain the execution end real-time state vector; Using a scanning device pre-built in the base of the target manipulator robot, a nearby line scanning image of the target manipulator robot is obtained, and an operation target object recognition operation is performed on the nearby line scanning image to obtain an operation target, and a target operation position of the operation target is identified; Acquire the mechanical arm composition information of the target mechanical arm robot, and calculate the center of mass position of a single mechanical arm of the target mechanical arm robot according to the real-time state vector of the execution end and the mechanical arm composition information to obtain the center of mass position of the single arm; Obtaining an operation distance vector according to the real-time state vector of the execution end and the target operation position; Constructing the posture excitation control of the real-time state vector of the execution end for the preset terminal posture, and constructing the center of mass excitation control of the center of mass position of the single arm for the minimum center of mass change rate; By using a pre-trained manipulator operation control model, a robot decision generation operation based on the posture excitation control and the center of mass excitation control is performed on the operation distance vector to obtain a robot operation instruction, and the target manipulator robot is controlled according to the robot operation instruction.

2. The robot arm trajectory optimization method based on reinforcement learning as claimed in claim 1, characterized in that: The target robotic arm robot has a base and two robotic arms, wherein the robotic arms are connected to the base, the robotic arms have N joints and an execution end of a preset business is configured at the outermost end of the robotic arms, and the execution end can be replaced according to the type of the preset business.

3. The robot arm trajectory optimization method based on reinforcement learning as claimed in claim 2, characterized in that: The step of positioning the execution end position of the robot arm motion model according to the rotation angle to obtain the execution end real-time state vector includes: Sorting the rotation angles of the joints in the robot arm from the base to the execution end to obtain an angle change vector sequence; The base position information of the base based on the world coordinate system is obtained, and the angle change vector sequence and the base position information are spliced ​​to obtain a real-time state vector of the execution end.

4. The robot arm trajectory optimization method based on reinforcement learning as claimed in claim 3, characterized in that: The performing of a work target object recognition operation on the nearby line scanning image to obtain a work target and identify a target work position of the work target includes: grayscale the scanned image of the nearby lines to obtain a grayscale scanned image, and Gaussian filter the scanned image to obtain a de-noised grayscale image; Obtain the target operation requirements input by the user, and query the operation target object corresponding to the target operation requirements according to the pre-built technical manual database; Performing a feature extraction operation on the denoised grayscale image to obtain an image feature set, performing a binary classification judgment operation based on the job target object on the image feature set to obtain a job target, and marking the job target to obtain a target mark; According to the pre-constructed time-of-flight method, visual recognition analysis is performed on the target mark to obtain the target operating position of the operating target based on the base.

5. The robot arm trajectory optimization method based on reinforcement learning as claimed in claim 4, characterized in that: The operation distance vector is expressed as: s=(θ1,θ2,θ3,……,θ N ,x,y,z,a,b,c) Where s represents the operation distance vector; θ1, θ2, θ3, ..., θ N represents the real-time state vector of the execution end; x, y, z represent the base position information; α, β, γ represent the target operation position.

6. The robot arm trajectory optimization method based on reinforcement learning as claimed in claim 5, characterized in that: The method uses the pre-trained manipulator operation control model to perform a robot decision generation operation based on the posture excitation control and the center of mass excitation control on the operation distance vector to obtain a robot operation instruction, and controls the target manipulator robot according to the robot operation instruction, including: Using a pre-trained robot arm operation control model, according to a pre-built Markov algorithm, a primary control instruction within a preset time period is randomly generated so that the operation distance vector tends to zero; Calculating the primary motion change angle of the robotic arm controlled by the primary control instruction; The initial joint angle corresponding to the start time of the preset time period is obtained, and the predicted joint angle at the end time of the preset time period is calculated according to the initial motion change angle and the initial joint angle, wherein the predicted joint angle is expressed as: obs2=(q1+θ1,q2+θ2,q3+θ3,……,q N +θ N ) In the formula, θ1, θ2, θ3,..., θ N represents the initial joint angle; q1, q2, q3, ..., q N represents the primary motion change angle, where q i ∈[-1rad, 1rad], rad represents the radian unit, i∈[1, ..., N]; According to the predicted joint angle, the robot arm is calculated based on the execution end posture and the center of mass to obtain the execution end posture and the center of mass change curve of the robot arm; According to the posture incentive control and the center of mass incentive control, the execution end posture is scored in a standardized manner to obtain an execution posture score, and the center of mass change curve is scored based on the mean value of the center of mass change rate to obtain a center of mass change score; The execution posture scores and center of mass change scores corresponding to the primary control instructions randomly generated by the Markov algorithm are sorted in sequence, and the primary control instruction with the highest execution posture score and the smallest center of mass change score is selected as the robot operation instruction.

7. The robot arm trajectory optimization method based on reinforcement learning as claimed in claim 6, characterized in that: The center of mass excitation control is expressed as: R com =-(x 2 +y 2 ×α+z 2 )×β In the formula, R com represents the center of mass excitation control; x, y, z represent the relative position of the center of mass of the robot arm to the base, wherein x, z represent the front-to-back direction and the up-down direction of the base, y represents the lateral direction of the base, α, β represent weight coefficients, α>1.

8. A robot arm trajectory optimization device based on reinforcement learning, characterized in that: The device comprises: A mechanical arm modeling module is used to obtain joint information of a target mechanical arm robot, and to model the target mechanical arm robot according to the joint information to obtain a mechanical arm motion model; A robot arm motion positioning module, used to obtain the rotation angle of each joint in the robot arm motion model in real time, and locate the execution end position of the robot arm motion model according to the rotation angle to obtain the real-time state vector of the execution end; A target recognition module is used to obtain a nearby line scanning image of the target robot arm robot by using a scanning device pre-built in the base of the target robot arm robot, and perform an operation target object recognition operation on the nearby line scanning image to obtain an operation target, and identify a target operation position of the operation target; A posture-center of mass excitation control module is used to obtain the robot arm composition information of the target robot arm robot, calculate the center of mass position of a single robot arm of the target robot arm robot according to the real-time state vector of the execution end and the robot arm composition information, and obtain the center of mass position of the single arm, and obtain the operation distance vector according to the real-time state vector of the execution end and the target operation position, and construct the posture excitation control of the real-time state vector of the execution end for the preset end posture, construct the center of mass excitation control of the single arm center of mass position with the minimum center of mass change rate, and use the pre-trained robot arm operation control model to perform a robot decision generation operation based on the posture excitation control and the center of mass excitation control on the operation distance vector to obtain a robot operation instruction, and control the target robot arm robot according to the robot operation instruction.

9. An electronic device, 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 that can be executed 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 reinforcement learning-based robot arm trajectory optimization method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the robot arm trajectory optimization method based on reinforcement learning as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Mechanical arm navigation obstacle avoidance method and system, computer equipment and storage medium

    CN114603564A

  • Compliant control method and device for on-orbit assembly of double-arm robot

    CN117182929A

  • Multi-robot coordinated carrying control method based on coordinated impedance

    CN117601117A

  • Method For Detecting A Collision Of A Robot Arm With An Object, And A Robot With A Robot Arm

    US20190001504A1

Cited By

  • Humanoid robot welding pose adjusting method and system

    CN120326636A

  • Magnet support kinematic model construction method and accelerator orbit collimation optimization method

    CN121211606A