Obstacle avoidance control method, device, electronic device and storage medium for a robotic arm

By constructing the target Jacobian matrix and adjusting the joint angle increment, the problem of real-time performance and success rate of the redundant degree-of-freedom manipulator in obstacle avoidance is solved, and efficient and accurate motion trajectory planning and real-time obstacle avoidance are achieved.

CN118418145BActive Publication Date: 2024-10-15ZOOMLION HEAVY INDUSTRY SCIENCE AND TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410899423.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-15
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

When the existing technology controls a redundant degree-of-freedom manipulator to avoid obstacles, the trajectory planning algorithm is complex and cannot guarantee real-time performance. Moreover, the local optimal solution results in a low obstacle avoidance success rate and cannot meet the constraint requirements under different working conditions.

Method used

By obtaining the end motion trajectory, status information and obstacle information of the robotic arm, the target Jacobian matrix is ​​constructed, the initial joint angle increment is determined based on the standard inverse kinematics model, the adjustment coefficient is adjusted according to the collision risk, and the joint angle increment is corrected to achieve Real-time obstacle avoidance.

Benefits of technology

It improves the obstacle avoidance success rate of the robotic arm, avoids the conflict between the terminal movement direction and the obstacle avoidance method, realizes efficient and accurate motion trajectory planning, and ensures the real-time obstacle avoidance capability of the robotic arm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118418145B_ABST
    Figure CN118418145B_ABST
Patent Text Reader

Abstract

The present application relates to the field of robotic arm control technology, and in particular to a robotic arm obstacle avoidance control method, device, electronic device and storage medium, which are used to improve the success rate of the robotic arm's obstacle avoidance. The method includes: obtaining the motion trajectory of the end of the robotic arm in a preset working area, the state information of the robotic arm and the obstacle information in the preset working area; constructing the target Jacobian matrix of the collision point on the robotic arm according to the obstacle information and the state information; determining the initial joint angle increment corresponding to each joint on the robotic arm when there is no obstacle based on the standard inverse kinematics model; determining the current adjustment coefficient according to whether there is a collision risk in the middle arm section of the robotic arm; for each joint, after determining the joint angle correction amount corresponding to the joint according to the target Jacobian matrix, motion trajectory and adjustment coefficient, correct the corresponding initial joint angle increment according to the joint angle correction amount to obtain the target joint angle increment; and controlling the robotic arm to avoid obstacles according to the determined target joint angle increments.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] A robotic arm is a multi-degree-of-freedom mechanical device equipped with multiple movable joints and controlled by a program. It is widely used in automated tasks such as grasping and handling, simulating and expanding the functions of human arms. Taking a redundant degree-of-freedom arm as an example, a redundant degree-of-freedom arm refers to a robotic arm with a number of degrees of freedom exceeding the required workspace dimensions. These additional degrees of freedom make the arm more flexible and adaptable when performing tasks. At present, when controlling a redundant degree-of-freedom arm for obstacle avoidance, trajectory planning combined with constraint processing is often used.

[0003] Among them, trajectory planning is carried out offline, that is, all calculations are completed before the boom starts to move, and the calculations need to be combined with constraints. The algorithm has high computational complexity, and the real-time requirements for boom movement cannot be guaranteed. Different working conditions require different constraints, and there are high requirements for the universality of constraints. In addition, the overall algorithm has the defect of falling into a local optimal solution.

[0004] In the actual operation scenario of the boom, there are usually several obstacles, and each boom section is at risk of colliding with the obstacles. Therefore, relying solely on offline processing methods cannot guarantee real-time obstacle avoidance of the boom, and the global tracking requirements for the expected motion trajectory may not be met, resulting in the boom being unable to successfully avoid obstacles.

[0005] In summary, how to efficiently and accurately plan the motion trajectory of the robotic arm to control the robotic arm to avoid obstacles in real time and improve the success rate of the robotic arm's obstacle avoidance is an urgent problem to be solved. Summary of the invention

[0006] The embodiments of the present application provide an obstacle avoidance control method, device, electronic device and storage medium for a robotic arm, so as to improve the obstacle avoidance success rate of the robotic arm.

[0007] An obstacle avoidance control method for a robotic arm provided in an embodiment of the present application includes:

[0008] Obtaining the motion trajectory of the end of the robotic arm in a preset working area, the state information of the robotic arm, and the obstacle information in the preset working area;

[0009] Constructing a target Jacobian matrix of a collision point on the robotic arm according to the obstacle information and the state information;

[0010] Based on the standard inverse kinematics model, the initial joint angle increment corresponding to each joint on the robotic arm is determined when there are no obstacles; and the current adjustment coefficient is determined according to whether there is a collision risk for the intermediate arm section of the robotic arm; for each joint, after the joint angle correction amount corresponding to the joint is determined according to the target Jacobian matrix, the motion trajectory and the adjustment coefficient, the corresponding initial joint angle increment is corrected according to the joint angle correction amount to obtain the target joint angle increment corresponding to the joint, and the robotic arm is controlled to avoid obstacles according to the determined target joint angle increments; each target joint angle increment represents: the change in the corresponding joint angle when the end moves from the current end trajectory point in the motion trajectory to the next end trajectory point.

[0011] An obstacle avoidance control device for a robotic arm provided in an embodiment of the present application includes:

[0012] An acquisition module, used to acquire the motion trajectory of the end of the robotic arm in a preset working area, the state information of the robotic arm, and the obstacle information in the preset working area;

[0013] A construction module, used for constructing a target Jacobian matrix of a collision point on the robotic arm according to the obstacle information and the state information;

[0014] The obstacle avoidance module is used to determine the initial joint angle increment corresponding to each joint on the robotic arm when there are no obstacles based on the standard inverse kinematics model; and determine the current adjustment coefficient according to whether there is a collision risk for the intermediate arm section of the robotic arm; for each joint, after determining the joint angle correction amount corresponding to the joint according to the target Jacobian matrix, the motion trajectory and the adjustment coefficient, the corresponding initial joint angle increment is corrected according to the joint angle correction amount to obtain the target joint angle increment corresponding to the joint, and the robotic arm is controlled to avoid obstacles according to the determined target joint angle increments; each target joint angle increment represents: the change in the corresponding joint angle when the end moves from the current end trajectory point in the motion trajectory to the next end trajectory point.

[0015] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the above-mentioned obstacle avoidance control methods for a robotic arm.

[0016] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any one of the above-mentioned obstacle avoidance control methods for a robotic arm.

[0017] An embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps of any one of the above-mentioned obstacle avoidance control methods for a robotic arm.

[0018] An embodiment of the present application provides a working machine, comprising: an obstacle avoidance control device for any one of the above-mentioned mechanical arms.

[0019] The beneficial effects of this application are as follows:

[0020] The embodiments of the present application provide an obstacle avoidance control method, device, electronic device and storage medium for a robotic arm. The present application obtains the motion trajectory of the end of the robotic arm in a preset working area, obstacle information and state information of the robotic arm; constructs a target Jacobian matrix of the collision point on the robotic arm based on the obstacle information and state information, so as to obtain the target joint angle increment based on the target Jacobian matrix in the subsequent steps; determines the initial joint angle increment corresponding to each joint on the robotic arm when there is no obstacle based on the standard inverse kinematics model; and determines the current adjustment coefficient based on whether there is a collision risk in the middle arm section of the robotic arm; for each joint, after determining the joint angle correction amount corresponding to the joint based on the target Jacobian matrix, the motion trajectory and the adjustment coefficient, adjusts the corresponding joint angle according to the joint angle correction amount. The initial joint angle increment is corrected to obtain the target joint angle increment corresponding to the joint, and the robotic arm is controlled to avoid obstacles according to the determined target joint angle increments. After judging the collision risk of the intermediate arm section, the joint correction amount of each joint is determined according to the determined adjustment coefficient, so as to correct the initial joint angle increment without collision risk, so as to separate the terminal trajectory planning without collision risk from the obstacle avoidance target joint angle increment of each joint for calculation, and directly correct the initial joint angle increment through the joint angle correction amount, and directly integrate the obstacle avoidance of each joint into the terminal trajectory planning, so as to avoid the conflict between the terminal motion direction and the obstacle avoidance method, and efficiently and accurately plan the motion trajectory of the robotic arm, so as to control the robotic arm to avoid obstacles in real time, thereby improving the obstacle avoidance success rate of the robotic arm.

[0021] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0023] Figure 1 A schematic diagram of an application scenario of obstacle avoidance control of a robotic arm in an embodiment of the present application;

[0024] Figure 2 A flowchart of an existing technology for obstacle avoidance control in an embodiment of the present application;

[0025] Figure 3 A flowchart of an implementation method of an obstacle avoidance control method for a robotic arm provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of a mechanical arm provided in an embodiment of the present application;

[0027] Figure 5 A flowchart of another obstacle avoidance control method for a robotic arm provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of a hardware structure of an electronic device to which an embodiment of the present application is applied;

[0029] Figure 7 Schematic diagram of the structure of an obstacle avoidance control device for a robotic arm in an embodiment of the present application;

[0030] Figure 8 A schematic diagram of the hardware composition structure of a computing device using an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0032] The following is an introduction to some concepts involved in the embodiments of the present application.

[0033] Redundant degrees of freedom and redundant degrees of freedom arms: Redundant degrees of freedom refer to the additional degrees of freedom in the robot control system beyond the degrees of freedom required to complete a specific task. A redundant degree of freedom arm refers to a robot structure with more degrees of freedom than required. Therefore, a redundant degree of freedom arm has more joints or axes than necessary, allowing the robot to complete tasks in a more flexible and diverse way. A redundant degree of freedom arm can be composed of a base and multiple connected arm sections. The base is located at the bottom and is the fixed support point of the arm. Each arm section is connected by a rotating joint. The angles of these rotating joints can be adjusted to control the relative position of the arm sections. Each arm section can be straight or curved. The specific shape depends on the design requirements. The top arm section is directly connected to the end effector.

[0034] Initial Jacobian matrix: In the field of robotic arm control technology, the Jacobian matrix is ​​often used to describe the kinematic and dynamic characteristics of the end effector of the robotic arm. It represents the relationship between the motion of each arm segment of the robotic arm (joint velocity) and the motion of the end effector (end velocity) as a matrix. Specifically, for a robotic arm system, the position and posture of its end effector can be determined by the joint angle. The Jacobian matrix can reflect how the position and posture of the end effector will change when each arm segment of the robotic arm undergoes a slight change, so the end effector position can be controlled by adjusting the joint angle. In an embodiment of the present application, the initial Jacobian matrix is ​​the Jacobian matrix of the entire arm.

[0035] Target Jacobian matrix: The Jacobian matrix determined when the collision point on the robot is regarded as the end of the robot. Since the collision point is the point on the robot where the robot collides with the obstacle, it may be on different arm sections at different times. Therefore, the target Jacobian is a dynamic matrix. This matrix describes the influence of each arm section and joint angle on the collision point from the base to the collision point on the robot.

[0036] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0037] like Figure 1 As shown, it is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario diagram includes a terminal device 110, a server 120, a mechanical arm 130, a perception module 1301 and a lower computer 1302. Specifically, the lower computer 1302 and the perception module 1301 are both installed on the mechanical arm 130.

[0038] In addition, the terminal device 110 may also be a device attached to the mechanical arm 130; for example, the terminal device 110 may also be one or more operable display screens of the mechanical arm 130, which is not specifically limited herein. The lower computer 1302 may also not be installed on the mechanical arm 130, for example, the lower computer may be a device independent of the mechanical arm 130.

[0039] It should be noted that the obstacle avoidance control method of the robotic arm in each embodiment of the present application can be executed by an electronic device, and the electronic device can be a terminal device 110 or a server 120, that is, the method can be executed by the terminal device 110 or the server 120 alone, or can be executed jointly by the terminal device 110 and the server 120. For example, when executed jointly by the terminal device 110 and the server 120, the object sets the starting point and the end point of the robotic arm operation on the terminal device 110, and the terminal device 110 calculates the motion trajectory of the end of the robotic arm in the preset working area according to the starting point and the end point, and sends the motion trajectory to the server 120; the perception module 1301 obtains the state information of the robotic arm and the obstacle information in the preset working area, and sends this information to the server 120; the server 120 constructs the target Jacobian matrix of the collision point on the robotic arm according to the obstacle information and the state information; the server 120 is based on the standard inverse kinematics A learning model is used to determine the initial joint angle increment corresponding to each joint on the robotic arm when there are no obstacles; and the current adjustment coefficient is determined according to whether there is a collision risk in the middle arm section of the robotic arm; for each joint, the server 120 determines the joint angle correction amount corresponding to the joint according to the target Jacobian matrix, the motion trajectory and the adjustment coefficient, and then corrects the corresponding initial joint angle increment according to the joint angle correction amount to obtain the target joint angle increment corresponding to the joint, and sends it to the lower computer 1302. The lower computer 1302 controls the movement of each arm section of the robotic arm according to each target joint angle increment, so that the robotic arm 130 can avoid obstacles.

[0040] In an optional implementation, the terminal device 110 and the server 120 may communicate with each other via a communication network.

[0041] In an optional implementation, the communication network is a wired network or a wireless network.

[0042] It should be noted that Figure 1 The figure is only an example. In fact, the number of terminal devices and servers is not limited and is not specifically limited in the embodiments of the present application.

[0043] In the prior art, by Figure 2 The process shown is to perform obstacle avoidance control:

[0044] Step 1: Use the projection vector index pre-screening method to filter out non-collision avoidance rods using the projection vector of the obstacle on the robot link;

[0045] Step 2: Calculate the shortest distance between the robot and the obstacle that can be avoided;

[0046] Step 3: Optimize the robot's obstacle avoidance motion space;

[0047] Step 4: According to the change of the shortest distance between the obstacle avoidance mark and the obstacle, a multi-task conversion factor is introduced to achieve smooth conversion of the redundant robot between task space obstacle avoidance, joint space obstacle avoidance, and terminal trajectory compensation tasks.

[0048] From the above content, it can be seen that the existing technology only analyzes the movement in the two-dimensional plane, does not consider the movement in the three-dimensional space, does not consider the time and tracking effect of the motion joint to execute the speed instruction, there will be a risk of collision, and does not handle the situation where the obstacle avoidance process cannot be completed; when switching between the trajectory tracking task and the obstacle avoidance task, the angular velocity will change suddenly, causing the robot arm to vibrate, affecting the smoothness of the robot arm's movement.

[0049] In view of this, the present application obtains the motion trajectory of the end of the robotic arm in a preset working area, obstacle information and state information of the robotic arm; constructs the target Jacobian matrix of the collision point on the robotic arm based on the obstacle information and state information, so as to obtain the target joint angle increment based on the target Jacobian matrix in the subsequent steps; determines the initial joint angle increment corresponding to each joint on the robotic arm when there are no obstacles based on the standard inverse kinematics model; and determines the current adjustment coefficient based on whether there is a collision risk in the middle arm section of the robotic arm; for each joint, after determining the joint angle correction amount corresponding to the joint according to the target Jacobian matrix, the motion trajectory and the adjustment coefficient, corrects the corresponding initial joint angle increment according to the joint angle correction amount to obtain The target joint angle increment corresponding to the joint is determined, and the robot arm is controlled to avoid obstacles according to the determined target joint angle increments. After judging the collision risk of the intermediate arm section, the joint correction amount of each joint is determined according to the determined adjustment coefficient, so as to correct the initial joint angle increment without collision risk, and realize the separation of the terminal trajectory planning without collision risk and the obstacle avoidance target joint angle increment of each joint for calculation, and directly correct the initial joint angle increment through the joint angle correction amount, and directly integrate the obstacle avoidance of each joint into the terminal trajectory planning, so as to avoid the conflict between the terminal movement direction and the obstacle avoidance method, and efficiently and accurately plan the movement trajectory of the robot arm, so as to control the robot arm to avoid obstacles in real time, and improve the obstacle avoidance success rate of the robot arm.

[0050] In addition, since the present application takes into account whether the robotic arm needs to stop rotating in three-dimensional space by calculating the first plane distance between the collision point on the obstacle and the robotic arm, so as to ensure that the robotic arm can bypass the obstacle in actual working conditions; and, the present application determines whether each joint can increase the target joint angle increment by calculating the angular velocity utilization rate, and adjusts the joint angle increment of each joint based on the maximum angular velocity, so that each joint can smoothly execute the adjusted joint angular velocity.

[0051] The obstacle avoidance control method of the robotic arm provided by the exemplary embodiment of the present application is described below in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation methods of the present application are not subject to any limitations in this regard.

[0052] See also Figure 3 As shown, it is an implementation flow chart of an obstacle avoidance control method of a robotic arm provided in an embodiment of the present application. The specific implementation process of the method is as follows:

[0053] S31: Obtain the motion trajectory of the end of the robot arm in the preset working area, the state information of the robot arm, and the obstacle information in the preset working area.

[0054] In the embodiment of the present application, it is first necessary to determine basic information, including the motion trajectory of the end of the robotic arm and obstacle information.

[0055] The motion trajectory is the result of trajectory planning without obstacles, and the motion trajectory includes the position of the end at each moment.

[0056] The motion trajectory can be based on at least the starting point and the ending point of the operation, and can also be combined with other important points to complete the planning through polynomial interpolation. The trajectory can also be planned through a linear function with a parabola mixture, etc. This application does not make specific limitations on this.

[0057] The state information of the robot arm includes the length of each arm segment and the joint angle of each joint at each trajectory point when the robot arm moves along the above-mentioned motion trajectory.

[0058] The obstacle information is obtained through feedback from the perception module, and specifically includes the position information of each obstacle, the position information of the plane center of each obstacle, and the envelope plane size of each obstacle, and the envelope plane size can be a square.

[0059] It should be noted that the position information of the obstacle in the embodiment of the present application actually refers to the position information of the point on the obstacle where the robotic arm collides with the obstacle when the robotic arm collides with the obstacle.

[0060] After obtaining the basic information in the above way, the positional relationship between the obstacle and the end of the robotic arm can be obtained in the following way:

[0061] S32: Construct a target Jacobian matrix of the collision point on the robot arm according to the obstacle information and the state information.

[0062] The collision point is the point on each arm segment of the robotic arm that is closest to the obstacle, and the arm segment where the collision point is located is the target arm segment.

[0063] Considering that the target Jacobian matrix of the collision point on the target arm segment is obtained from the position of the rotation center of the robot arm to the collision point, which is used for the subsequent calculation of the joint angle increment, and the collision point may be on different arm segments at different times, that is, the target arm segment is not a fixed arm segment, so the target Jacobian matrix is ​​a dynamic matrix and is difficult to obtain.

[0064] Therefore, the embodiment of the present application first obtains the initial Jacobian matrix of the entire robotic arm, sets each joint angle and the length of each arm segment as variables, and regards the collision point on the target arm segment as the end of the robotic arm. Thus, the target Jacobian matrix can be obtained by substituting each joint angle and the length of each arm segment into the initial Jacobian matrix.

[0065] Optionally, in an embodiment of the present application, the target Jacobian matrix is ​​calculated in the following manner:

[0066] Firstly, based on the state information and the kinematic model of the robot, the initial Jacobian matrix corresponding to the entire robot is constructed.

[0067] The kinematic model of the robot arm is a forward kinematic model, which can determine the Jacobian matrix of the robot arm by given joint angles of each joint.

[0068] For details, see Figure 4 The schematic diagram of the robotic arm shown in Figure 4 The robot arm in the figure has 6 arm sections, and the length of each arm section from left to right is , , , , , , the joint angles of each joint from left to right are , , , , , , the forward kinematics model T of the entire robot arm can be obtained by multiplying the transformation matrix. is the transformation matrix from arm segment 1 to the center 401 of the robot turntable, is the transformation matrix from arm section 2 to arm section 1. Similarly, we can get the following formulas 1 to 8:

[0069] (Formula 1)

[0070] (Formula 2)

[0071] (Formula 3)

[0072] (Formula 4)

[0073] (Formula 5)

[0074] (Formula 6)

[0075] (Formula 7)

[0076] (Formula 8)

[0077] in, It represents the attitude transformation relationship of the end of the robot arm relative to the base coordinate system with the center of the robot arm turntable (i.e. the rotation center) as the origin. Represents the spatial position of the end in the base coordinate system. The initial Jacobian matrix of the entire robot can be obtained from Formula 8: , as shown in the following formula 9:

[0078] (Formula 9)

[0079] Then, for each obstacle, the target Jacobian matrix of the collision point on the corresponding target arm segment is constructed as follows:

[0080] Step 1: Based on the location information of the collision point on the obstacle, determine the projection point from the collision point on the obstacle to each arm segment through the spatial projection method;

[0081] Specifically, let the position coordinates of the collision point on the obstacle be , the distance from the collision point on the obstacle to each arm segment can be obtained by spatial projection method The projection point .

[0082] Step 2: For each arm section, determine the projection length corresponding to the arm section.

[0083] The projection length represents the spatial distance between the starting point of the arm section and the projection point on the arm section.

[0084] Specifically, let the projection length be ,by Figure 4 Take the arm section 3 in the figure as an example (the arm section length is ),but It can be calculated by the following formula 10:

[0085] (Formula 10)

[0086] Among them, A is the starting point of arm section 3, and its coordinates are , B is the end point of arm section 3, and its coordinates are , C is the projection point of the obstacle on arm segment 3, and its coordinates are , D is the collision point on the obstacle, and its coordinates are .

[0087] The vector calculation formula, that is, the following formula 11 can be used to calculate:

[0088] (Formula 11)

[0089] Among them, the vector The vector length is It can be calculated, and since the coordinates of point A are known, the coordinates of point C can be calculated.

[0090] Step 4: The shortest projection length among the determined projection lengths is recorded as the target length, the arm section corresponding to the target length is recorded as the target arm section, and the projection point on the target arm section is recorded as the collision point between the robot arm and the obstacle;

[0091] Specifically, the target boom section corresponding to the shortest projection length is the boom section closest to the obstacle, and the collision point on the target boom section is the point closest to the obstacle.

[0092] Specifically, if you still use Figure 4 According to the assumption in formula 10, the , select the shortest one and put it The corresponding arm segment is recorded as the target arm segment, assuming that Figure 4 The arm segment 3 in is the target arm segment, then Figure 4 The projection point C on the middle arm section 3 is recorded as the collision point.

[0093] Step 5: Update the length of the target arm segment in the initial Jacobian matrix to the target length, and set the lengths and related joint angles from the target arm segment to the last arm segment to 0, to obtain the target Jacobian matrix of the collision point on the target arm segment.

[0094] Specifically, if the assumption in step 5 is still true, arm section 3 is the target arm section, then the target Jacobian matrix only needs to be calculated up to point C of arm section 3, let , the joint angles of arm segments 1 to 3 are obtained normally, and the lengths and related joint angles of arm segments 4 to the last arm 6 are set to 0, that is, , Substituting it into formula 8 and formula 9, we can get the Jacobian matrix from the center of the robot turntable to the collision point on the target arm segment closest to the obstacle on the robot arm. .

[0095] When there are multiple obstacles, each obstacle corresponds to a target arm segment and a collision point on the target arm segment, and then each collision point on the target arm segment corresponds to a target Jacobian matrix .

[0096] In the above embodiment, the Jacobian matrix of the entire robot arm is first obtained. By setting each joint angle and arm length as a variable, the Jacobian matrix from the center of the robot turntable to the collision point on the target arm segment closest to the obstacle on the robot arm can be obtained simply and quickly. , which greatly facilitates the subsequent calculation of joint angle increments, thereby improving the efficiency of the robot arm's obstacle avoidance.

[0097] After obtaining the target Jacobian matrix in the above way, the following steps can be used to determine whether there is a risk of collision between the end of the robot arm and the obstacle:

[0098] For any obstacle, determine the first plane distance between the obstacle and the robotic arm according to the position information of the obstacle; and determine the second plane distance between the obstacle and the end according to the position information of the plane center of the obstacle and the envelope plane size;

[0099] Specifically, before calculating the first plane distance, it is necessary to first calculate the plane equation of the robot arm.

[0100] Step 1: Based on the kinematic model of the robot arm, the position of each joint can be calculated through the joint angle and the length of each arm segment. is the position coordinate of the center of the robot turntable, is the starting point coordinate of arm section 1, is the starting point coordinate of arm segment 2, and so on, the end coordinate of the end arm segment n is . Set the coordinates of the turntable center as the origin of the robot arm coordinate system.

[0101] It should be noted that due to Figure 4 Boom section 1 is directly connected to the center of the turntable, so Figure 4 middle and If arm section 1 is not directly connected to the center of the turntable, then and There will be no overlap.

[0102] Step 2: Select the center point of the turntable , starting point of middle boom section 、Arm segment n end point The plane equation of the robot arm is constructed as shown in Formula 12:

[0103] (Formula 12)

[0104] in, , , .

[0105] It should be noted that the middle boom section is the section in the middle of the boom sections. For example, if there are 6 boom sections in total, the middle boom section can be boom section 3 or boom section 4. If there are 7 boom sections in total, the middle boom section can be boom section 4, and so on.

[0106] After determining the plane equation, the collision point on the obstacle The first plane distance from the robot arm As shown in the following formula 13:

[0107] (Formula 13)

[0108] Among them, the first plane distance It is the vertical distance between the collision point D on the obstacle and the plane where the robotic arm is located.

[0109] Assume the position information of the plane center of the obstacle is , the envelope plane size is w, then the second plane distance between the obstacle and the end As shown in the following formula 14:

[0110] (Formula 14)

[0111] Among them, the second plane distance is the distance between the edge of the obstacle and the end of the robot arm on the XY plane.

[0112] It should be noted that, considering that obstacles may be much higher than the robot arm, it is impossible to pass over the obstacles, so the second plane distance does not involve the Z coordinate.

[0113] If the first plane distance is not greater than the first preset obstacle avoidance safety threshold (denoted as ), and the second plane distance is not greater than the second preset obstacle avoidance safety threshold (denoted as ), it is determined that there is a risk of collision with an obstacle at the end.

[0114] It should be noted that the magnitudes of the first preset obstacle safety threshold and the second preset obstacle safety threshold are not specifically limited. According to specific requirements, the first preset obstacle safety threshold may be greater than the second preset obstacle safety threshold, the first preset obstacle safety threshold may be equal to the second preset obstacle safety threshold, and the first preset obstacle safety threshold may also be less than the second preset obstacle safety threshold.

[0115] In the above embodiment, by calculating the first plane distance between the collision point on the obstacle and the plane where the robot arm is located , the distance between the obstacle edge and the end of the robot arm on the second plane on the XY plane , considering the obstacle avoidance of the robot arm in three-dimensional space, it quickly determines whether there is a collision risk at the end of the robot arm, so as to facilitate the planning of subsequent obstacle avoidance trajectory.

[0116] Optionally, if it is determined through the above method that there is indeed a risk of collision at the end of the robot arm, the motion trajectory can be updated through the following steps to achieve obstacle avoidance:

[0117] When it is determined that there is a risk of collision at the terminal, the terminal obstacle avoidance method is determined based on the terminal trajectory points and obstacle information on the motion trajectory;

[0118] The motion trajectory is updated according to the obstacle information and the terminal obstacle avoidance method.

[0119] The obstacle avoidance method includes the movement direction and the obstacle avoidance action in the movement direction.

[0120] Specifically, the terminal obstacle avoidance method is to first determine the running direction of the terminal and then determine the obstacle avoidance action.

[0121] In the embodiment of the present application, for any obstacle, if it is determined that the terminal has a risk of colliding with the obstacle, an optional implementation method for determining the terminal obstacle avoidance method is as follows:

[0122] Step 1: Select two end trajectory points at different times on the motion trajectory, and determine the trajectory vector formed by the two end trajectory points in the robot arm coordinate system;

[0123] Specifically, for obstacles with collision risk, two end trajectory points are taken on the motion trajectory and recorded as points , and point , these two points are separated by N moments on the trajectory, N is an empirical value, and points E and F constitute the trajectory vector .

[0124] Step 2: Determine the direction of movement of the end according to the angle between the trajectory vector and the horizontal axis in the robot coordinate system;

[0125] Specifically, according to the trajectory vector Angle with the X-axis of the robot coordinate system Determine the direction of the end motion. For example, it can be based on the angle The direction of movement of the end can be determined by the size of The positive or negative value determines the direction of movement of the end.

[0126] It should be noted that when there are multiple obstacles, the E and F points must be re-selected for each obstacle and the end motion direction must be re-analyzed. For example, if there are three obstacles, namely obstacle 1, obstacle 2 and obstacle 3, for obstacle 1, select the point on the current motion trajectory. , point to determine the direction of movement of the end at this time; after avoiding obstacle 1, for obstacle 2, select the point on the movement trajectory after avoiding obstacle 1 , point to determine the direction of movement of the end at this time; after avoiding obstacles 1 and 2, for obstacle 3, select the point on the movement trajectory after avoiding obstacles 1 and 2 , point to determine the direction of movement of the end at this time.

[0127] Step 3: According to the relative position relationship between the position information of the plane center of the obstacle and the position information of the two terminal trajectory points, the obstacle circumvention action of the terminal in the direction of movement when circumventing the obstacle is determined.

[0128] Optionally, the relative position relationship between the position information of the plane center of the obstacle and the position information of the two end trajectory points is determined by:

[0129] According to the position information of the plane center of the obstacle and the position information of the two end trajectory points, the first vector and the second vector in the robot coordinate system are determined; the first vector and the second vector are cross-multiplied, and the cross-multiplication result is used as the relative position relationship.

[0130] The first vector and the second vector use the plane center of the obstacle as the vector starting point and use different terminal trajectory points of the two terminal trajectory points as the vector end points.

[0131] Specifically, the first vector is , , the second vector is , , then the above relative position relationship can be expressed as the following formula 15:

[0132] (Formula 15)

[0133] Optionally, the movement direction of the terminal is one of lateral movement or vertical movement. If the relative position relationship is not less than a preset value, it is determined that the terminal is moving laterally and around the obstacle from the front, or moving vertically and around the obstacle from the right; if the relative position relationship is less than a preset value, it is determined that the terminal is moving laterally and around the obstacle from the back, or moving vertically and around the obstacle from the left.

[0134] For formula 15, the preset value is 0, that is, according to The positive or negative value of selects the obstacle avoidance action to be clockwise or counterclockwise. If it is greater than 0, the obstacle avoidance action is forward when the terminal moves in the horizontal direction, and it is to the right when the terminal moves in the vertical direction; If it is less than 0, the obstacle avoidance action is to go backwards when moving in the horizontal direction, and to the left when moving in the vertical direction.

[0135] It should be noted that if the formula for determining the relative position relationship is other than formula 15, the preset value may also be other values. Different formulas for determining the relative position relationship correspond to different preset values.

[0136] In the above method, the movement direction of the end is first determined based on the angle between the trajectory vector and the horizontal axis in the robot arm coordinate system. On this basis, the obstacle avoidance action of the end in the movement direction when bypassing the obstacle is determined based on the relative position relationship between the position information of the plane center of the obstacle and the position information of the two end trajectory points, so as to facilitate the subsequent updating of the motion trajectory according to the obstacle avoidance action.

[0137] After determining the obstacle avoidance action in the above manner, the trajectory used for obstacle avoidance can be integrated into the motion trajectory in the following manner:

[0138] The terminal trajectory point when the second plane distance is less than the second preset obstacle avoidance safety threshold for the first time is used as the obstacle avoidance starting point, and the obstacle avoidance end point is determined according to the preset obstacle avoidance range, and the obstacle avoidance end point is on the motion trajectory; according to the terminal obstacle avoidance mode when the terminal avoids the obstacle, the motion trajectory between the obstacle avoidance starting point and the obstacle avoidance end point is updated.

[0139] Specifically, the second preset obstacle avoidance safety threshold (denoted as ), to satisfy the first < The end trajectory point when the condition is met is used as the obstacle avoidance starting point, and the obstacle avoidance end point is determined by the preset obstacle avoidance range, and the obstacle avoidance end point is on the motion trajectory; wherein the preset obstacle avoidance range can be determined according to parameters such as the size of the obstacle and the length of the arm section. According to the obstacle avoidance method determined above, based on a local path planning method such as polynomial interpolation, the motion trajectory between the obstacle avoidance starting point and the obstacle avoidance end point is updated.

[0140] It should be noted that when there are multiple obstacles with collision risk, each obstacle meets < When the conditions are met, the motion trajectory is updated once in the above manner. For example, if there are two obstacles, namely obstacle 1 and obstacle 2, and obstacle 1 meets the above conditions for the first time at time 1, the motion trajectory is updated once to obtain motion trajectory 1; if obstacle 2 subsequently meets the above conditions for the first time at time 3, then based on motion trajectory 1, it is updated again to obtain motion trajectory 2.

[0141] In the above embodiment, the terminal motion trajectory between the obstacle avoidance starting point and the obstacle avoidance end point in the motion trajectory is updated through the motion direction and obstacle avoidance action of the terminal. The problem of conflict between the terminal motion direction and the obstacle avoidance direction in the prior art is avoided through the advance terminal motion trajectory planning, and the target is determined for the subsequent adjustment of the joint angle.

[0142] After updating the motion trajectory in the above way, you can adjust the joint angles of each joint of the robot arm according to the following steps to achieve obstacle avoidance:

[0143] S33: Based on the standard inverse kinematics model, determine the initial joint angle increment corresponding to each joint on the robotic arm when there are no obstacles; and, determine the current adjustment coefficient based on whether there is a collision risk in the middle arm section of the robotic arm; for each joint, determine the joint angle correction corresponding to the joint according to the target Jacobian matrix, motion trajectory and adjustment coefficient, then correct the corresponding initial joint angle increment according to the joint angle correction to obtain the target joint angle increment corresponding to the joint, and control the robotic arm to avoid obstacles according to the determined target joint angle increments; each target joint angle increment represents: the change in the corresponding joint angle when the end moves from the current end trajectory point in the motion trajectory to the next end trajectory point.

[0144] In the embodiment of the present application, each moment in the motion trajectory corresponds to an end trajectory point, and the time interval between two adjacent moments is a unit time interval.

[0145] Specifically, before determining the target joint angle increment, it is necessary to first determine whether the intermediate arm section has a collision risk. Preset length threshold with intermediate boom section To judge by the size. Less than , then there is a collision risk between the intermediate boom section; otherwise, it is determined that there is no collision risk between the intermediate boom section and the obstacle.

[0146] It should be noted that the preset threshold value of each arm section may be different and is obtained from actual tests. The preset threshold value will also affect the obstacle avoidance speed of subsequent collision points.

[0147] In an embodiment of the present application, an optional implementation method for determining the target joint angle increment corresponding to each joint on the robotic arm is as follows:

[0148] Step 1: Based on the standard inverse kinematics model, determine the initial joint angle increment corresponding to each joint on the robot arm when there is no obstacle; and determine the current adjustment coefficient based on whether there is a collision risk in the middle arm section of the robot arm.

[0149] Specifically, when there are no obstacles, the initial joint angle increments corresponding to each joint on the robot arm are recorded as For any obstacle, if there is a collision risk between the middle arm section of the robot and the obstacle, the value of the adjustment coefficient corresponding to the obstacle is determined to be ; If there is no collision risk between the middle arm section of the robot and the obstacle, the value of the adjustment coefficient corresponding to the obstacle is determined to be ;in, Much greater than .

[0150] Since, during the movement of the robotic arm, the middle arm section may have a sudden change in the adjustment coefficient due to a change from a collision risk to no collision risk, or from no collision risk to a collision risk, the present application corrects the adjustment coefficient by setting a smooth switching function, so that the adjustment coefficient is converted from a sudden change to a change that increases or decreases rapidly in quantity.

[0151] In the embodiment of the present application, an optional implementation method for determining the smooth switching function is as follows:

[0152] According to the adjustable distance parameter and the preset smooth constant, a smooth switching function is determined, the lower limit of the adjustable distance parameter is 0, and the upper limit is the absolute value of the distance difference between the second plane distance between the obstacle and the end and the second preset obstacle avoidance safety threshold; the adjustment coefficient is corrected according to the smooth switching function.

[0153] The degree of correction of the adjustment coefficient is negatively correlated with the distance difference.

[0154] Specifically, let the adjustable distance parameter be , , the preset smoothing constant is , Obtained from actual measurement, the smooth switching function is .

[0155] In addition, in addition to the above-mentioned hyperbolic tangent function, the smooth switching function may also use a hyperbolic inverse tangent function, a multi-order function, etc., and this application does not make any specific limitations on this.

[0156] In the above embodiment, by setting a smooth switching function, the adjustment coefficient will not change suddenly when the collision risk appears or disappears, so that the calculation result of the subsequent joint angle increment will not change suddenly, which can effectively reduce the burden of the actuator and eliminate the tremor of the robot arm during obstacle avoidance movement.

[0157] Step 2: For each joint, after determining the joint angle correction corresponding to the joint according to the target Jacobian matrix, motion trajectory and adjustment coefficient, correct the corresponding initial joint angle increment according to the joint angle correction amount to obtain the target joint angle increment corresponding to the joint.

[0158] Specifically, for the i-th obstacle, find its target Jacobian matrix The inverse matrix , and determine the obstacle avoidance speed of the collision point corresponding to the i-th obstacle according to the position information of the plane center of the i-th obstacle, the envelope plane size of the i-th obstacle, the terminal obstacle avoidance method and motion trajectory of the terminal bypassing the i-th obstacle .

[0159] Then, the joint angle correction corresponding to each joint is calculated by the following formula 16:

[0160] (Formula 16)

[0161] in, is the joint angle correction, is the preset obstacle avoidance weight corresponding to the i-th obstacle, which is determined by the obstacle avoidance priority of different working conditions. is the adjustment coefficient corresponding to the ith obstacle, and its value is or . is the smooth switching function corresponding to the ith obstacle, is the adjustable distance parameter corresponding to the ith obstacle, is the preset smooth constant corresponding to the ith obstacle, is the target Jacobian matrix of the collision point corresponding to the i-th obstacle on the robot arm The inverse matrix of is the obstacle avoidance speed of the collision point corresponding to the i-th obstacle on the robot arm, is the speed of the collision point corresponding to the i-th obstacle on the robot arm when there is no collision risk.

[0162] Step 3: Increment the initial joint angle and joint angle correction By summing them up, we can get the target joint angle increment as shown in Formula 17:

[0163] (Formula 17)

[0164] In the above-mentioned implementation manner, the embodiment of the present application calculates the target joint angle increment of each joint in the obstacle avoidance process based on the inverse kinematics solution method of the obstacle avoidance condition.

[0165] Considering that the target joint angle increment mentioned above may exceed the capability of the actuator, resulting in the inability of the joints of the robot arm to increase the target joint angle increment, please adjust the joint speed in the following ways:

[0166] Step 1: Determine the current joint angular velocity of each joint according to the current joint angle increment of each joint and the corresponding time interval;

[0167] The time interval may be a unit time interval. The ratio of the joint angle increment to the time interval is taken as the joint angular velocity, and the difference between the values ​​of the joint angle increment and the joint angular velocity is a multiple of the value of the time interval.

[0168] Step 2: Determine the angular velocity utilization rate of each joint according to the current angular velocity of each joint and the corresponding maximum angular velocity;

[0169] Specifically, the angular velocity utilization rate formula is shown in the following formula 18:

[0170] (Formula 18)

[0171] in, is the joint angular velocity of arm segment j, is the maximum angular velocity of arm segment j.

[0172] Step 3: If the joint corresponding to the maximum angular velocity usage rate among the angular velocity usage rates is recorded as the target joint;

[0173] Specifically, select The maximum value is the one in the middle, and the corresponding joint number is M.

[0174] Step 4: If the maximum angular velocity usage rate is not less than the preset usage rate threshold, update the current joint angular velocity of each joint according to the current joint angular velocity and the maximum angular velocity of the target joint, and return to the step of determining the angular velocity usage rate of each joint according to the current joint angular velocity of each joint and the corresponding maximum angular velocity, until the maximum angular velocity usage rate is less than the preset usage rate threshold.

[0175] Specifically, for any joint other than the target joint, the product of the ratio of the joint angular velocity of the other joint to the target joint before updating and the maximum angular velocity of the target joint is used as the current joint angular velocity of the other joint after updating.

[0176] Set the preset usage threshold to ,when When , the current joint angular velocity of each joint is updated by the following formula 19:

[0177] (Formula 19)

[0178] in, is the updated joint angular velocity of arm segment j, is the joint angular velocity of the target joint before updating, is the maximum angular velocity of the target joint.

[0179] For the target joint, the maximum angular velocity of the target joint is used as the current angular velocity of the target joint after update, that is, .

[0180] It should be noted that the above-mentioned joint angle increment adjustment method will not affect the end position at each moment, but only change the movement speed of the robot arm.

[0181] In the above embodiment, the joint angle increment of each joint is adjusted by the angular velocity utilization rate and the maximum angular velocity, so that each arm section can successfully increase the corresponding joint angle increment.

[0182] Considering that the controller of the robotic arm may have insufficient tracking performance (for example, the robotic arm is controlled to move forward 2 meters as a whole to avoid obstacles, but due to insufficient tracking performance, the robotic arm only moves 1 meter, resulting in failure to avoid obstacles), this application adjusts the posture of each joint in the following way:

[0183] During the movement of the robot arm, if the current target length is not greater than the preset length threshold , and the first plane distance between the collision point on the obstacle and the robotic arm is not greater than the preset plane distance threshold (denoted as ), the robot arm is controlled to stop the rotational motion, and the next end trajectory point in the motion trajectory is updated to the current end trajectory point; the postures of the joints on the robot arm except the rotation joint are adjusted until the target length is greater than the preset length threshold, or the first plane distance is greater than the preset plane distance threshold, and the robot arm is controlled to resume the rotational motion.

[0184] The swivel joint is Figure 4 The joint at 401 in the middle can realize 360-degree rotation.

[0185] Specifically, is the threshold of the fast obstacle avoidance distance, is the safety threshold between the collision point on the obstacle and the plane of the robot arm. During the movement of the robot arm, if the shortest < and < , the robot stops rotating and updates the next end point in the motion trajectory to the current end point. Repeat the above steps to adjust the joint angular velocity to adjust the posture of each joint of the robot except the rotation joint until the shortest < and < If any of the above conditions is met, it can be considered that the robot arm can avoid obstacles during movement, control the robot arm to resume rotational motion, and the end planning position is updated normally.

[0186] In fact, the above process can be regarded as a closed-loop control process, that is, stopping the rotational motion, waiting for the obstacle avoidance postures of each joint to be in place, and then resuming the rotational motion.

[0187] In the above implementation, by adding a strategy for determining whether to stop the rotational motion and adjust the posture of each joint, it is ensured that the robot arm can bypass obstacles in actual working conditions.

[0188] Considering that the prior art does not handle the situation where the obstacle avoidance process cannot be completed, the embodiment of the present application handles the situation where the obstacle avoidance process cannot be completed in the following manner:

[0189] When the robot arm stops moving, if the current joint angle increment is the opposite of the previous joint angle increment for a continuous period of time, it is determined that the robot arm cannot avoid the obstacle, all joint movements are stopped, and an alarm is issued.

[0190] Specifically, when the robot stops moving, if within T moments, the joint angle increment at the current moment is the opposite of the joint angle increment at the previous moment, that is, , it can be considered that the robot arm cannot avoid obstacles no matter how it is adjusted, so all motion enables are cleared, all joint movements are stopped, and an alarm is issued on the corresponding page of the terminal device.

[0191] like Figure 5 As shown, it is an implementation flow chart of another obstacle avoidance control method of a robotic arm provided in an embodiment of the present application, which specifically includes S501~S515:

[0192] S501: Planning the motion trajectory according to the preset operation starting point and end point;

[0193] S502: Obtain obstacle information;

[0194] S503: constructing a target Jacobian matrix of the collision point on the target arm section;

[0195] S504: Determine a first plane distance between the collision point on the obstacle and the robot arm, and determine a second plane distance between the obstacle and the end;

[0196] S505: Determine whether a collision occurs;

[0197] Specifically, if a collision occurs, jump to S506, otherwise, jump to S510;

[0198] S506: Determine whether there is a collision risk at the end;

[0199] Specifically, if there is a collision risk, jump to S508, otherwise, jump to S507;

[0200] S507: Determine whether there is a collision risk for the intermediate boom section;

[0201] Specifically, if there is a collision risk, the adjustment coefficient is , otherwise, the adjustment coefficient is ;

[0202] S508: Determine the terminal obstacle avoidance method;

[0203] S509: Update the motion trajectory;

[0204] S510: Determine the initial joint angle increment corresponding to each joint on the robot arm;

[0205] S511: Correcting the corresponding initial joint angle increment according to the joint angle correction amount to obtain a target joint angle increment;

[0206] S512: Determine whether the rotational motion needs to be stopped, and adjust the postures of the joints on the robot arm except the rotational joint;

[0207] Specifically, if the rotation motion needs to be stopped, jump to S513, otherwise, jump to S515;

[0208] S513: Determine whether the robot arm cannot avoid obstacles;

[0209] Specifically, if the robot arm cannot avoid the obstacle, jump to S514, otherwise, jump to S515;

[0210] S514: Stop all joint movements and issue an alarm;

[0211] S515: Send the target joint angle increment to the lower computer and repeat the above operations until the robot arm completes the operation.

[0212] The present application obtains the motion trajectory of the end of the robotic arm in a preset working area, obstacle information and status information of the robotic arm; based on the obstacle information and the status information of the robotic arm, a target Jacobian matrix of the collision points on the robotic arm is constructed, so that the target joint angle increment can be obtained based on the target Jacobian matrix in the subsequent steps; wherein, if it is determined that there is a collision risk at the end, the terminal obstacle avoidance method is determined based on the terminal trajectory points and obstacle information on the motion trajectory, and the motion trajectory is updated according to the obstacle information, thereby realizing the integration of the obstacle avoidance trajectory into the terminal motion trajectory, so that the joint angle increments of each robotic arm can be determined according to the motion trajectory later. According to the target Jacobian matrix, the terminal obstacle avoidance method and the motion trajectory, the target joint angle increment corresponding to each joint on the robot arm is determined, and the robot arm is controlled to avoid obstacles according to the determined target joint angle increments. After judging the collision risk of the intermediate arm section, the joint correction amount of each joint is determined according to the determined adjustment coefficient, so as to correct the initial joint angle increment without collision risk, so as to separate the terminal trajectory planning without collision risk from the obstacle avoidance target joint angle increment of each joint for calculation, and directly correct the initial joint angle increment through the joint angle correction amount, and directly integrate the obstacle avoidance of each joint into the terminal trajectory planning, so as to avoid the conflict between the terminal motion direction and the obstacle avoidance method, and efficiently and accurately plan the motion trajectory of the robot arm, so as to control the robot arm to avoid obstacles in real time, thereby improving the obstacle avoidance success rate of the robot arm.

[0213] Based on the same inventive concept, the embodiment of the present application also provides an obstacle avoidance control device for a robotic arm. Figure 6 As shown, it is a schematic diagram of the structure of the obstacle avoidance control device of the robotic arm, which may include:

[0214] An acquisition module 601 is used to acquire the motion trajectory of the end of the robot arm in a preset working area, the state information of the robot arm, and the obstacle information in the preset working area;

[0215] A construction module 602 is used to construct a target Jacobian matrix of the collision point on the robot arm according to the obstacle information and the state information;

[0216] The obstacle avoidance module 603 is used to determine the initial joint angle increments corresponding to each joint on the robot arm when there are no obstacles based on the standard inverse kinematics model; and determine the current adjustment coefficient according to whether there is a collision risk in the middle arm section of the robot arm; for each joint, after determining the joint angle correction amount corresponding to the joint according to the target Jacobian matrix, the motion trajectory and the adjustment coefficient, the corresponding initial joint angle increment is corrected according to the joint angle correction amount to obtain the target joint angle increment corresponding to the joint, and the robot arm is controlled to avoid obstacles according to the determined target joint angle increments; each target joint angle increment represents: the change in the corresponding joint angle when the end moves from the current end trajectory point in the motion trajectory to the next end trajectory point.

[0217] Optionally, the construction module 602 is specifically used for:

[0218] Based on the state information and the kinematic model of the robot arm, the initial Jacobian matrix corresponding to the entire robot arm is constructed; the state information includes the length of each arm segment on the robot arm and the joint angle of each joint;

[0219] Based on the state information and obstacle information, the collision point and the target arm section are determined. The collision point is the point on each arm section of the robot arm that is closest to the obstacle, and the arm section where the collision point is located is the target arm section.

[0220] Determine the target length corresponding to the target boom section according to the spatial distance between the starting point of the target boom section and the collision point;

[0221] The length of the target arm segment in the initial Jacobian matrix is ​​updated to the shortest target length, and the lengths and related joint angles from the target arm segment to the last arm segment are set to 0, thereby obtaining the target Jacobian matrix of the collision point.

[0222] Optionally, the device further includes: a determination module 604;

[0223] Before the obstacle avoidance module 603 determines the current adjustment coefficient according to whether there is a collision risk at the middle arm section of the robot arm, the determination module 604 is used to:

[0224] When it is determined that there is a risk of collision at the terminal, the terminal obstacle avoidance method is determined based on the terminal trajectory points and obstacle information on the motion trajectory;

[0225] The motion trajectory is updated according to the obstacle information and the terminal obstacle avoidance method.

[0226] Optionally, the obstacle information includes position information of the plane center of each obstacle; the terminal obstacle avoidance mode includes a movement direction and an obstacle avoidance action in the movement direction;

[0227] For any obstacle, if it is determined that there is a risk of collision with the obstacle at the end, the determination module 604 is specifically used to:

[0228] Select two end trajectory points at different times on the motion trajectory, and determine the trajectory vector formed by the two end trajectory points in the robot arm coordinate system;

[0229] Determine the direction of movement of the end according to the angle between the trajectory vector and the horizontal axis in the robot coordinate system;

[0230] According to the relative position relationship between the position information of the plane center of the obstacle and the position information of the two terminal trajectory points, the obstacle circumvention action of the terminal in the moving direction when circumventing the obstacle is determined.

[0231] Optionally, the determination module 604 is specifically configured to determine the relative position relationship between the position information of the plane center of the obstacle and the position information of the two end trajectory points in the following manner:

[0232] According to the position information of the plane center of the obstacle and the position information of the two end trajectory points, a first vector and a second vector in the robot arm coordinate system are determined, wherein the first vector and the second vector take the plane center of the obstacle as the vector starting point and take different end trajectory points of the two end trajectory points as the vector end points;

[0233] The first vector and the second vector are cross-multiplied, and the obtained cross-multiplication result is used as the relative position relationship.

[0234] Optionally, the obstacle information includes: location information of each obstacle, location information of the plane center of each obstacle, and envelope plane size of each obstacle;

[0235] The determination module 604 is used to determine whether there is a collision risk at the end in the following manner:

[0236] For any obstacle, determine the first plane distance between the collision point on the obstacle and the robot arm according to the position information of the obstacle; and determine the second plane distance between the obstacle and the end according to the position information of the plane center of the obstacle and the envelope plane size;

[0237] If the first plane distance is not greater than the first preset obstacle avoidance safety threshold, and the second plane distance is not greater than the second preset obstacle avoidance safety threshold, it is determined that there is a risk of the terminal colliding with an obstacle.

[0238] Optionally, for any obstacle, if it is determined that the end has a risk of colliding with the obstacle, the determination module 604 is specifically configured to:

[0239] The end track point when the second plane distance is less than the second preset obstacle avoidance safety threshold for the first time is used as the obstacle avoidance starting point, and the obstacle avoidance end point is determined according to the preset obstacle avoidance range, and the obstacle avoidance end point is on the motion track;

[0240] According to the terminal obstacle avoidance method when the terminal avoids the obstacle, the motion trajectory between the obstacle avoidance starting point and the obstacle avoidance end point is updated.

[0241] Before determining the joint angle correction amount corresponding to the joint according to the target Jacobian matrix, the motion trajectory and the adjustment coefficient, the obstacle avoidance module 603 is further used to:

[0242] The adjustment coefficient is corrected according to the distance difference between the second plane distance between the obstacle and the terminal and the second preset obstacle avoidance safety threshold, wherein the correction degree of the adjustment coefficient is negatively correlated with the distance difference.

[0243] Optionally, the obstacle information includes location information of each obstacle; the obstacle avoidance module 603 is specifically used for:

[0244] For any obstacle, if there is a collision risk between the middle arm section of the robot and the obstacle, the value of the adjustment coefficient corresponding to the obstacle is determined as ;

[0245] If there is no collision risk between the middle arm section of the robot and the obstacle, the value of the adjustment coefficient corresponding to the obstacle is determined to be ;

[0246] in, Greater than .

[0247] Optionally, the device further comprises:

[0248] An updating module 605 is used to determine the current joint angular velocity of each joint according to the current joint angle increment of each joint and the corresponding time interval;

[0249] Determine the angular velocity utilization rate of each joint according to the current angular velocity of each joint and the corresponding maximum angular velocity;

[0250] If the joint corresponding to the maximum angular velocity usage rate among the angular velocity usage rates is recorded as the target joint;

[0251] If the maximum angular velocity usage rate is not less than the preset usage rate threshold, the current joint angular velocity of each joint is updated according to the current joint angular velocity and the maximum angular velocity of the target joint, and the step of determining the angular velocity usage rate of each joint according to the current joint angular velocity of each joint and the corresponding maximum angular velocity is returned until the maximum angular velocity usage rate is less than the preset usage rate threshold.

[0252] Optionally, the obstacle information includes location information of each obstacle;

[0253] For any obstacle, the device also includes:

[0254] The rotation module 606 is used to control the robot arm to stop the rotation movement and update the next end trajectory point in the motion trajectory to the current end trajectory point if the current target length is not greater than a preset length threshold and the first plane distance between the obstacle and the robot arm is not greater than a preset plane distance threshold during the movement of the robot arm; the target length represents: the spatial distance between the starting point of the arm segment where the collision point is located and the collision point;

[0255] The postures of the joints on the robotic arm except the rotary joint are adjusted until the shortest target length is greater than a preset length threshold, or the first plane distance is greater than a preset plane distance threshold, and the robotic arm is controlled to resume the rotary motion.

[0256] Optionally, the device further comprises:

[0257] The alarm module 607 is used to determine that the robot arm cannot avoid obstacles, stop all joint movements, and issue an alarm when the robot arm stops moving if the current joint angle increment is the opposite of the previous joint angle increment for a continuous period of time.

[0258] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.

[0259] It should be noted that the obstacle avoidance control device of the robotic arm in the embodiment of the present application can be deployed in operating machinery, such as construction machinery, agricultural machinery, or arm-operating robots and other operating machinery. The power of the operating machinery can be new energy batteries, fuel engines, or hybrid power or AC electricity, etc. This application does not make specific limitations on this.

[0260] Correspondingly, an embodiment of the present application also provides a working machine, including the above-mentioned obstacle avoidance control device for the robot arm.

[0261] In some examples, the working machine may be a new energy vehicle, such as a new energy crane, an aerial work vehicle, a pump truck, a high-rise jet fire truck, or any other new energy vehicle that can be equipped with a mechanical arm. The new energy vehicle may include a power battery, a chassis, or a mechanical arm, wherein the power battery may be a lithium battery or a hydrogen fuel cell, etc., which may be used to drive the chassis to travel, or provide power for the movement of the mechanical arm, etc.

[0262] In other examples, the operating machine may be a conventional fuel vehicle. Alternatively, in still other examples, the operating machine may be an arm-type operating robot, such as a picking robot, a cleaning robot, etc., which will not be described one by one here.

[0263] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0264] After introducing the obstacle avoidance control method and device of the robot arm according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.

[0265] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0266] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. In one embodiment, the electronic device may be a server, such as Figure 1 In this embodiment, the structure of the electronic device can be as follows: Figure 7 As shown, it includes a memory 701 , a communication module 703 and one or more processors 702 .

[0267] The memory 701 is used to store computer programs executed by the processor 702. The memory 701 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0268] The memory 701 may be a volatile memory, such as a random-access memory (RAM); the memory 701 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 701 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 701 may be a combination of the above memories.

[0269] The processor 702 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 702 is used to implement the above-mentioned obstacle avoidance control method of the robot arm when calling the computer program stored in the memory 701 .

[0270] The communication module 703 is used to communicate with terminal devices and other servers.

[0271] The specific connection medium between the memory 701, the communication module 703 and the processor 702 is not limited in the embodiment of the present application. Figure 7 In the embodiment, the memory 701 and the processor 702 are connected via a bus 704. The bus 704 is connected to the processor 702 via a bus 704. Figure 7 The connections between the other components are only for illustration and are not intended to be limiting. The bus 704 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Figure 7 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or only one type of bus.

[0272] The memory 701 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the obstacle avoidance control method of the robot arm of the embodiment of the present application. The processor 702 is used to execute the above-mentioned obstacle avoidance control method of the robot arm, such as Figure 3 shown.

[0273] In another embodiment, the electronic device may also be other electronic devices, such as Figure 1 The terminal device 110 shown in FIG. 1 is a terminal device 110 shown in FIG. 1 . In this embodiment, the structure of the electronic device can be as follows: Figure 8 As shown, it includes: a communication component 810, a memory 820, a display unit 830, a camera 840, a sensor 850, an audio circuit 860, a Bluetooth module 870, a processor 880 and other components.

[0274] The communication component 810 is used to communicate with the server. In some embodiments, a wireless fidelity (WiFi) module may be included. The WiFi module belongs to a short-range wireless transmission technology. The electronic device can help the user to send and receive information through the WiFi module.

[0275] The memory 820 can be used to store software programs and data. The processor 880 executes various functions and data processing of the terminal device 110 by running the software programs or data stored in the memory 820. The memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 820 stores an operating system that enables the terminal device 110 to run. In the present application, the memory 820 can store an operating system and various application programs, and can also store a computer program for executing the obstacle avoidance control method of the robotic arm of the embodiment of the present application.

[0276] The display unit 830 may also be used to display information input by a user or information provided to a user and a graphical user interface (GUI) of various menus of the terminal device 110. Specifically, the display unit 830 may include a display screen 832 disposed on the front of the terminal device 110. The display screen 832 may be configured in the form of a liquid crystal display, a light emitting diode, or the like.

[0277] The display unit 830 can also be used to receive input digital or character information and generate signal input related to user settings and function control of the terminal device 110. Specifically, the display unit 830 may include a touch screen 831 arranged on the front of the terminal device 110, which can collect user touch operations on or near it, such as clicking a button, dragging a scroll box, etc.

[0278] The touch screen 831 can be covered on the display screen 832, or the touch screen 831 and the display screen 832 can be integrated to realize the input and output functions of the terminal device 110, and the integrated display screen can be referred to as a touch display screen. In this application, the display unit 830 can display the application and the corresponding operation steps.

[0279] The camera 840 can be used to capture static images, and the user can publish the images taken by the camera 840 through the application. The camera 840 can be one or more. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the processor 880 for conversion into a digital image signal.

[0280] The terminal device may further include at least one sensor 850, such as an acceleration sensor 851, a distance sensor 852, a fingerprint sensor 853, and a temperature sensor 854. The terminal device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor.

[0281] The audio circuit 860, the speaker 861, and the microphone 862 can provide an audio interface between the user and the terminal device 110. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, which is converted into a sound signal for output. The terminal device 110 can also be equipped with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 860 and converted into audio data, and then the audio data is output to the communication component 810 to be sent to, for example, another terminal device 110, or the audio data is output to the memory 820 for further processing.

[0282] The Bluetooth module 870 is used to exchange information with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the terminal device can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 870 to exchange data.

[0283] The processor 880 is the control center of the terminal device. It uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal device and processes data by running or executing software programs stored in the memory 820 and calling data stored in the memory 820. In some embodiments, the processor 880 may include one or more processing units; the processor 880 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 880. In the present application, the processor 880 can run the operating system, application programs, user interface display and touch response, as well as the obstacle avoidance control method of the robotic arm in the embodiment of the present application. In addition, the processor 880 is coupled to the display unit 830.

[0284] In some possible implementations, various aspects of the obstacle avoidance control method for a robotic arm provided in the present application may also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the obstacle avoidance control method for a robotic arm according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device may execute the following steps: Figure 3 or Figure 5 Follow the steps shown in .

[0285] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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 thereof.

[0286] The program product of the embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include a computer program, and can be run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which can be used by or in combination with a command execution system, apparatus, or device.

[0287] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.

[0288] The computer program embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0289] The computer program for performing the operation of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and also conventional procedural programming languages ​​such as "C" language or similar programming languages. The computer program can be executed entirely on the user electronic device, partially on the user electronic device, as an independent software package, partially on the user electronic device and partially on the remote electronic device, or completely on the remote electronic device or server. In the case of involving a remote electronic device, the remote electronic device can be connected to the user electronic device through any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (e.g., using an Internet service provider to connect through the Internet).

[0290] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0291] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0292] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain a computer-usable computer program.

[0293] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program commands. These computer program commands can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the commands executed by the processor of the computer or other programmable data processing device generate commands for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0294] These computer program commands may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the commands stored in the computer readable memory produce an article of manufacture comprising a command device, the command device implementing the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

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

[0296] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0297] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An obstacle avoidance control method for a robotic arm, characterized in that: The method comprises: Obtaining the motion trajectory of the end of the robotic arm in a preset working area, the state information of the robotic arm, and the obstacle information in the preset working area; Constructing a target Jacobian matrix of a collision point on the robotic arm according to the obstacle information and the state information; Based on the standard inverse kinematics model, the initial joint angle increments corresponding to the joints on the robotic arm are determined when there is no obstacle; and the current adjustment coefficient is determined according to whether there is a collision risk between the intermediate arm section of the robotic arm and the obstacle; wherein, for any obstacle, if there is a collision risk between the intermediate arm section of the robotic arm and the obstacle, the value of the adjustment coefficient currently corresponding to the obstacle is determined to be ; If there is no collision risk between the middle arm section of the robot arm and the obstacle, the value of the adjustment coefficient currently corresponding to the obstacle is determined to be ; Greater than ; For each joint, after determining the joint angle correction amount corresponding to the joint according to the target Jacobian matrix, the motion trajectory and the adjustment coefficient, the corresponding initial joint angle increment is corrected according to the joint angle correction amount to obtain the target joint angle increment corresponding to the joint, and the robotic arm is controlled to avoid obstacles according to the determined target joint angle increments; each target joint angle increment represents: the change in the corresponding joint angle when the end moves from the current end trajectory point in the motion trajectory to the next end trajectory point.

2. The method according to claim 1, characterized in that The step of constructing a target Jacobian matrix of the collision point on the robot arm according to the obstacle information and the state information includes: Based on the state information and the kinematic model of the robotic arm, construct an initial Jacobian matrix corresponding to the entire robotic arm, wherein the state information includes the length of each arm segment and the joint angle of each joint on the robotic arm; Based on the state information and the obstacle information, determine a collision point and a target arm section, wherein the collision point is a point on each arm section of the robotic arm that is closest to the obstacle, and the arm section where the collision point is located is the target arm section; Determining a target length corresponding to the target boom section according to a spatial distance between a starting point of the target boom section and the collision point; The length of the target arm section in the initial Jacobian matrix is ​​updated to the target length, and the lengths and related joint angles from the target arm section to the last arm section are set to 0, so as to obtain the target Jacobian matrix of the collision point.

3. The method according to claim 1, characterized in that Before determining the current adjustment coefficient according to whether there is a collision risk at the intermediate arm section of the mechanical arm, the method further includes: In the case where it is determined that the terminal has a collision risk, determining a terminal obstacle avoidance method based on the terminal trajectory point on the motion trajectory and the obstacle information; The motion trajectory is updated according to the obstacle information and the terminal obstacle avoidance method.

4. The method according to claim 3, characterized in that The obstacle information includes the position information of the plane center of each obstacle; the terminal obstacle avoidance mode includes the movement direction and the obstacle avoidance action in the movement direction; The determining of the terminal obstacle avoidance method based on the terminal trajectory point on the motion trajectory and the obstacle information includes: Selecting two end trajectory points at different times on the motion trajectory, and determining a trajectory vector formed by the two end trajectory points in the robot arm coordinate system; Determine the movement direction of the end according to the angle formed by the trajectory vector and the horizontal axis in the robot arm coordinate system; According to the relative position relationship between the position information of the plane center of the obstacle and the position information of the two terminal trajectory points, the obstacle circumventing action of the terminal in the movement direction when circumventing the obstacle is determined.

5. The method according to claim 4, characterized in that The relative position relationship between the position information of the plane center of the obstacle and the position information of the two end track points is determined by: Determine a first vector and a second vector in the robot arm coordinate system according to the position information of the plane center of the obstacle and the position information of the two terminal trajectory points, wherein the first vector and the second vector take the plane center of the obstacle as a vector starting point and take different terminal trajectory points of the two terminal trajectory points as vector end points; The first vector and the second vector are cross-multiplied, and the obtained cross-multiplication result is used as the relative position relationship.

6. The method according to claim 3, characterized in that The obstacle information includes: location information of each obstacle, location information of the plane center of each obstacle, and envelope plane size of each obstacle; The existence of a collision risk at the end is determined in the following manner: For any obstacle, determine a first plane distance between the obstacle and the robotic arm according to the position information of the obstacle; and determine a second plane distance between the obstacle and the end according to the position information of the plane center of the obstacle and the envelope plane size; If the first plane distance is not greater than a first preset obstacle avoidance safety threshold, and the second plane distance is not greater than a second preset obstacle avoidance safety threshold, it is determined that the terminal is at risk of colliding with the obstacle.

7. The method according to claim 6, characterized in that For any obstacle, if it is determined that the end has a risk of colliding with the obstacle, then updating the motion trajectory according to the obstacle information includes: Taking the end track point when the second plane distance is less than the second preset obstacle avoidance safety threshold for the first time as the obstacle avoidance starting point, determining the obstacle avoidance end point according to the preset obstacle avoidance range, and the obstacle avoidance end point is on the motion track; According to the terminal obstacle avoidance mode when the terminal avoids the obstacle, the motion trajectory between the obstacle avoidance starting point and the obstacle avoidance end point is updated.

8. The method according to claim 6, characterized in that Before determining the joint angle correction amount corresponding to the joint according to the target Jacobian matrix, the motion trajectory and the adjustment coefficient, the method further includes: The adjustment coefficient is corrected according to the distance difference between the second plane distance between the obstacle and the terminal and the second preset obstacle avoidance safety threshold, wherein the correction degree of the adjustment coefficient is negatively correlated with the distance difference.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: Determining the current joint angular velocity of each joint according to the current joint angle increment of each joint and the corresponding time interval; Determining the angular velocity utilization rate of each joint according to the current joint angular velocity of each joint and the corresponding maximum angular velocity; If the joint corresponding to the maximum angular velocity usage rate among the angular velocity usage rates is recorded as the target joint; If the maximum angular velocity usage rate is not less than the preset usage rate threshold, the current joint angular velocity of each joint is updated according to the current joint angular velocity and the maximum angular velocity of the target joint, and the step of determining the angular velocity usage rate of each joint according to the current joint angular velocity of each joint and the corresponding maximum angular velocity is returned until the maximum angular velocity usage rate is less than the preset usage rate threshold.

10. The method according to any one of claims 1 to 8, characterized in that: The obstacle information includes location information of each obstacle; For any obstacle, the method further includes: During the movement of the robotic arm, if the current target length is not greater than a preset length threshold, and the first plane distance between the obstacle and the robotic arm is not greater than a preset plane distance threshold, the robotic arm is controlled to stop the rotational movement, and the next end trajectory point in the motion trajectory is updated to the current end trajectory point; the target length represents: the spatial distance between the starting point of the arm section where the collision point is located and the collision point; The postures of the joints on the robotic arm except the rotary joint are adjusted until the target length is greater than a preset length threshold, or the first plane distance is greater than a preset plane distance threshold, and the robotic arm is controlled to resume the rotary motion.

11. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: When the robot arm stops moving, if the current joint angle increment and the previous joint angle increment are opposite to each other for a continuous period of time, it is determined that the robot arm cannot avoid the obstacle, all joint movements are stopped, and an alarm is issued.

12. An obstacle avoidance control device for a robotic arm, characterized in that: include: An acquisition module, used to acquire the motion trajectory of the end of the robotic arm in a preset working area, the state information of the robotic arm, and the obstacle information in the preset working area; A construction module, used for constructing a target Jacobian matrix of a collision point on the robotic arm according to the obstacle information and the state information; An obstacle avoidance module, used to determine the initial joint angle increments corresponding to the joints on the robotic arm when there are no obstacles based on a standard inverse kinematics model; And, according to whether there is a collision risk between the intermediate arm section of the robot arm, the current adjustment coefficient is determined; wherein, for any obstacle, if there is a collision risk between the intermediate arm section of the robot arm and the obstacle, the value of the adjustment coefficient currently corresponding to the obstacle is determined to be ; If there is no collision risk between the middle arm section of the robot arm and the obstacle, the value of the adjustment coefficient currently corresponding to the obstacle is determined to be ; Greater than ; For each joint, after determining the joint angle correction amount corresponding to the joint according to the target Jacobian matrix, the motion trajectory and the adjustment coefficient, the corresponding initial joint angle increment is corrected according to the joint angle correction amount to obtain the target joint angle increment corresponding to the joint; and the robotic arm is controlled to avoid obstacles according to the determined target joint angle increments; each target joint angle increment represents: the change in the corresponding joint angle when the end moves from the current end trajectory point in the motion trajectory to the next end trajectory point.

13. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: It includes a computer program, and when the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 11.

15. A working machine, characterized in that: include: The obstacle avoidance control device for the robot arm as claimed in claim 12.