Motion planning method, device and robotic arm for seven-axis robotic arm
Through the analytical solution method and equivalent structure diagram, the inverse solution and motion path of the seven-axis robotic arm are calculated, which solves the problem of insufficient inverse solution and planning accuracy and improves the versatility and applicability of the robotic arm, especially in medical surgical assistance. accuracy and stability in the field.
Patent Information
- Application Number
- CN202311300415.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-10-09
AI Technical Summary
The seven-axis manipulator is difficult to solve inversely and motion planning, and lacks versatility. The existing technology mainly relies on numerical solutions, resulting in insufficient accuracy and difficulty in being applicable to a variety of scenarios.
The analytical solution method is used to calculate the inverse solution and motion path of the seven-axis robotic arm through equivalent structural diagrams and joint configuration coefficients, improving the accuracy of the inverse solution and planning accuracy, and enhancing the versatility of the robotic arm.
It improves the inverse solution and motion planning accuracy of the seven-axis robotic arm, enhances the versatility of the robotic arm, and can be applied to a variety of scenarios, especially in the field of medical surgical robot assistance to ensure the accuracy of the surgical process.
Smart Images

Figure CN117464667B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application belong to the technical field of surgical robots and robotic arms, and in particular, to a motion planning method, device, and robotic arm for a seven-axis robotic arm. Background Art
[0002] An important indicator for measuring the performance of a robot arm is the number of degrees of freedom (DoF), which is also known as the number of axes of a mechanical table, such as six axes or seven axes. Having more degrees of freedom or axes means that the robot arm has more flexible operating performance. For example, a seven-axis robot arm is more flexible than a six-axis robot arm.
[0003] Since the seven-axis robot arm is more flexible and can change the posture of the robot arm while ensuring that the end position remains unchanged, this has great advantages in surgical assistance scenarios. Therefore, in the field of medical assisted surgical robots, the seven-axis robot arm is more widely used than the six-axis robot arm. However, the seven-axis robot arm is a redundant robot arm, and it is more difficult to calculate the inverse solution of the seven-axis robot arm and perform motion planning. In practical applications, it is usually necessary to customize it for specific scenarios, and these customized robots are often not universal. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a motion planning method, device and robotic arm for a seven-axis robotic arm, so as to reduce the difficulty of motion planning of the seven-axis robotic arm and improve the versatility of the seven-axis robotic arm.
[0005] A first aspect of an embodiment of the present application provides an inverse solution method for a seven-axis robotic arm, comprising:
[0006] Generate an equivalent structural diagram of each joint axis of the seven-axis robot arm; wherein, in the structural equivalent diagram, the first joint axis, the second joint axis and the third joint axis of each joint axis are equivalent to the shoulder joint, the fourth joint axis is equivalent to the elbow joint, and the fifth joint axis, the sixth joint axis and the seventh joint axis are equivalent to the wrist joint;
[0007] According to the equivalent structure diagram, determining the arm angle of the seven-axis robot arm in the current end posture; the arm angle is the angle between the reference plane formed by the shoulder joint, the elbow joint and the wrist joint and the plane actually formed by the shoulder joint, the elbow joint and the wrist joint when the third joint axis is 0 degrees;
[0008] Determine the joint configuration coefficient of each joint axis respectively, wherein the joint configuration coefficient is used to represent the area where each joint axis is located in the base coordinate system of the seven-axis robot arm;
[0009] According to the end position, the arm angle and the joint configuration coefficient, the inverse solution of each joint axis is calculated respectively.
[0010] A second aspect of an embodiment of the present application provides a motion planning method for a seven-axis robotic arm, comprising:
[0011] Determine a motion path of the seven-axis robot arm to be planned, wherein the motion path consists of a plurality of end positions;
[0012] Calculating the inverse solution of the seven-axis robot arm at each of the end positions respectively, wherein the inverse solution is an analytical solution of each joint axis of the seven-axis robot arm;
[0013] Determine the joint configuration coefficients of the seven-axis robot arm at each of the terminal positions according to the inverse solution;
[0014] Determining a change in the joint configuration coefficients at a current end position and a target end position, wherein the target end position is an end position corresponding to an end point of the motion path;
[0015] Based on the changes in the joint configuration coefficients, motion planning is performed on the seven-axis robotic arm.
[0016] A third aspect of an embodiment of the present application provides an inverse solution device for a seven-axis robotic arm, comprising:
[0017] A generating module, used to generate an equivalent structural diagram of each joint axis of the seven-axis robot arm; wherein, in the structural equivalent diagram, the first joint axis, the second joint axis and the third joint axis of each joint axis are equivalent to the shoulder joint, the fourth joint axis is equivalent to the elbow joint, and the fifth joint axis, the sixth joint axis and the seventh joint axis are equivalent to the wrist joint;
[0018] An arm angle determination module is used to determine the arm angle of the seven-axis robot arm in the current end posture according to the equivalent structure diagram; the arm angle is the angle between the reference plane formed by the shoulder joint, the elbow joint and the wrist joint and the plane actually formed by the shoulder joint, the elbow joint and the wrist joint when the third joint axis is 0 degrees;
[0019] A joint configuration coefficient determination module, used to respectively determine the joint configuration coefficient of each of the joint axes, wherein the joint configuration coefficient is used to represent the area where each of the joint axes is located in the base coordinate system of the seven-axis robot;
[0020] A calculation module is used to calculate the inverse solution of each joint axis according to the end posture, the arm angle and the joint configuration coefficient.
[0021] A fourth aspect of an embodiment of the present application provides a motion planning device for a seven-axis robotic arm, comprising:
[0022] A motion path determination module, used to determine the motion path of the seven-axis robot to be planned, wherein the motion path is composed of multiple end positions;
[0023] A calculation module, used to calculate the inverse solution of the seven-axis robot arm at each of the end positions, wherein the inverse solution is an analytical solution of each joint axis of the seven-axis robot arm;
[0024] A joint configuration coefficient determination module, used to determine the joint configuration coefficients of the seven-axis robot arm at each of the end positions according to the inverse solution;
[0025] A coefficient change determination module, used to determine the change of the joint configuration coefficient under the current end posture and the target end posture, wherein the target end posture is the end posture corresponding to the end point of the motion path;
[0026] A planning module is used to perform motion planning for the seven-axis robotic arm based on changes in the joint configuration coefficients.
[0027] A fifth aspect of an embodiment of the present application provides a robotic arm, which is a seven-axis robotic arm. The inverse solution of the robotic arm can be calculated by the method described in the first aspect above, and / or the motion path of the robotic arm can be planned by the method described in the second aspect above.
[0028] A sixth aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect and / or the second aspect is implemented.
[0029] A seventh aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect and / or the second aspect above is implemented.
[0030] An eighth aspect of the embodiments of the present application provides a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect and / or the second aspect.
[0031] Compared with the prior art, the embodiments of the present application have the following advantages:
[0032] The embodiment of the present application can use an analytical solution to solve the inverse solution of the robotic arm, thereby improving the accuracy of the inverse solution obtained. Motion planning of the robotic arm based on a higher-precision inverse solution also helps to improve the accuracy of motion planning. Compared to the seven-axis robotic arm customized for special scenarios in the prior art, the inverse solution method and motion planning method provided by the embodiment of the present application are applied to the seven-axis redundant robotic arm of the humanoid arm, so that the seven-axis redundant robotic arm has higher versatility and can be applied to a variety of scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 It is a structural schematic diagram of a seven-axis robotic arm provided in an embodiment of the present application;
[0035] Figure 2 is an equivalent structural diagram of a seven-axis robotic arm provided in an embodiment of the present application;
[0036] Figure 3 is a schematic diagram of a change in a joint axis provided in an embodiment of the present application;
[0037] Figure 4 It is a schematic diagram of the correspondence between the sub-areas of the process arm angle area and different joint configuration coefficients provided in an embodiment of the present application;
[0038] Figure 5 It is a schematic diagram of an arm angle area and an arm angle planning trend provided in an embodiment of the present application;
[0039] Figure 6 is a schematic diagram of the influence of arm angle planning on the joint axis provided in an embodiment of the present application;
[0040] Figure 7 It is a schematic diagram of the influence of an arm angle planning of crossing a singular position on a joint axis provided by an embodiment of the present application;
[0041] Figure 8 is a schematic diagram of an inverse solution method for a seven-axis robotic arm provided in an embodiment of the present application;
[0042] Fig. 9 is a schematic diagram of a motion planning method for a seven-axis robotic arm provided in an embodiment of the present application;
[0043] Fig.10is a schematic diagram of a motion planning process of a seven-axis robotic arm provided in an embodiment of the present application;
[0044] Fig.11 is a schematic diagram of an inverse solution device for a seven-axis robotic arm provided in an embodiment of the present application;
[0045] Fig.12 is a schematic diagram of a motion planning device for a seven-axis robotic arm provided in an embodiment of the present application;
[0046] Fig.13 It is a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.
[0048] The inverse solution of the robotic arm refers to the reverse solution of the angle value of each joint axis of the robotic arm based on the position and posture (end pose) of the robotic arm's end effector, so as to achieve precise control of the robotic arm.
[0049] The inverse solution of the robot arm mainly includes numerical solution and analytical solution. For the six-axis robot arm, because the process of solving the six axes from the end position of the robot arm has unique solutions except for the singular position, the six-axis robot arm can easily use the analytical solution to solve the inverse solution. In some medical assistance scenarios, in order not to cause too much interference to the doctor's surgical process, it is necessary to adjust the elbow position of the robot arm while keeping the end of the robot arm still, and the six-axis robot arm cannot achieve this goal. Therefore, in order to meet the requirements of collaboration, the robot arms used in medical surgical robots, except for a few six-axis robots designed for special scenarios, are mostly designed as joint redundant robots, such as seven-axis robots. However, in the process of using analytical solutions to inverse solutions and motion planning, the seven-axis robot arm cannot obtain a unique solution using only the single parameter of the end position of the robot arm, which requires the introduction of additional constraint parameters for constraints. These additional constraint parameters need to be determined according to the corresponding scene requirements, which increases the difficulty in the motion planning process. Therefore, the seven-axis robot arms used in medical surgical robots in the prior art are mostly solved by numerical solutions such as fitting iteration. In practical applications, numerical solutions usually use the Jacobian matrix of the previous moment to approximate the Jacobian matrix of the current moment, which will cause tracking accuracy errors of the robot. In order to reduce the error, the idea of feedback control can be introduced into the seven-axis robot, but this only reduces some errors to a certain extent and has limited effect.
[0050] In view of the above problems, the embodiment of the present application provides a motion planning method for a seven-axis robotic arm, which can use an analytical solution to solve the inverse solution of the robotic arm and improve the accuracy of the solved inverse solution. Motion planning of the robotic arm based on a high-precision inverse solution also helps to improve the accuracy of motion planning. The motion planning method for the seven-axis robotic arm provided in the embodiment of the present application is applied to a medical surgical robot to ensure the accuracy of the surgical process.
[0051] The technical solution of the present application is described below through specific embodiments.
[0052] Reference Figure 1 , showing a schematic structural diagram of a seven-axis robotic arm provided in an embodiment of the present application. Figure 1 The seven-axis robot arm in the paper is a redundant robot arm similar to a human arm, including seven joint axes, namely Figure 1 The first joint axis θ1, the second joint axis θ2, the third joint axis θ3, the fourth joint axis θ4, the fifth joint axis θ5, the sixth joint axis θ6 and the seventh joint axis θ7 in the figure. The xyz shown at each joint axis position represents the joint coordinates of the joint axis at the corresponding position. Figure 1 Medium, d bs represents the distance from the origin of the robot base coordinate system to the coordinate origin of the second joint axis θ2, d serepresents the distance from the coordinate origin of the second joint axis θ2 to the coordinate origin of the fourth joint axis θ4, d ew represents the distance from the coordinate origin of the fourth joint axis θ4 to the coordinate origin of the sixth joint axis θ6, d wf Represents the distance from the coordinate origin of the sixth joint axis θ6 to the coordinate origin of the seventh joint axis θ7. In the introduction of the embodiments of the present application, the first joint axis θ1, the second joint axis θ2, the third joint axis θ3, the fourth joint axis θ4, the fifth joint axis θ5, the sixth joint axis θ6 and the seventh joint axis θ7 may also be referred to as axis 1, axis 2, axis 3, axis 4, axis 5, axis 6 and axis 7.
[0053] In order to calculate the inverse solution of the robotic arm more conveniently and quickly, the embodiment of the present application can solve the inverse solution by using the equivalent structural diagram of each joint axis through structural equivalent conversion.
[0054] like Figure 2 , is an equivalent structural diagram of a seven-axis robotic arm provided in an embodiment of the present application. Figure 2 In the structural equivalent diagram shown in FIG. 1 , the first joint axis, the second joint axis and the third joint axis of each joint axis of the seven-axis robot arm can be equivalent to a shoulder joint, that is, Figure 1 The first joint axis θ1, the second joint axis θ2, and the third joint axis θ3 in can be equivalent to Figure 2 The shoulder joint Ps in the seven-axis robot arm can be equivalent to an elbow joint. Figure 1 The fourth joint axis θ4 in can be equivalent to Figure 2 The elbow joint Pe in the seven-axis robot arm can be equivalent to a wrist joint, that is, Figure 1 The fifth joint axis θ5, the sixth joint axis θ6 and the seventh joint axis θ7 in can be equivalent to Figure 2 The wrist joint Pw.
[0055] Combination Figure 1 and Figure 2 It can be seen that the shoulder joint and wrist joint are gyro joints, and the elbow joint is a single joint. Among them, a single joint refers to a single joint, which has only one axis and correspondingly only one degree of freedom. A gyro joint is also called an omnidirectional joint. Different from a single joint, a gyro joint has multiple joints. This combined joint usually has two to three degrees of freedom. For example, Figure 2 The shoulder joint Ps in is an equivalent axis of the first joint axis θ1, the second joint axis θ2, and the third joint axis θ3. This equivalent axis has three degrees of freedom, that is, the equivalent axis can rotate around the x, y, and z axes. Similar to the shoulder joint Ps, Figure 2The wrist joint Pw in is an axis equivalent to the fifth joint axis θ5, the sixth joint axis θ6 and the seventh joint axis θ7. This equivalent axis also has three degrees of freedom and can also rotate around the x, y, and z axes.
[0056] Figure 2 The reference plane shown in is a plane formed by the shoulder joint Ps, elbow joint Pe and wrist joint Pw when the third joint axis θ3 is 0 degrees. The angle between the reference plane and the plane (manipulator plane) actually formed by the shoulder joint Ps, elbow joint Pe and wrist joint Pw in the equivalent structure diagram is called the arm angle of the seven-axis robot arm, that is, Figure 2 The arm angle Ψ in.
[0057] Depend on Figure 2 It can be seen from the equivalent structure diagram in that after the end pose of the seven-axis robot arm is determined, infinite solutions can be obtained by setting different arm angle Ψ values.
[0058] In the process of using the equivalent structure diagram to find the inverse solution, the end pose of the seven-axis robot arm is generally known. Combined with the equivalent structure diagram, it can be seen that the inverse solution process of the seven-axis robot arm requires not only determining the end pose, but also determining the arm angle Ψ and the joint configuration coefficient GC i (i=2,4,6) to make the inverse solution unique. The formulas used to solve the inverse solution of each joint axis are introduced below.
[0059] For the fourth joint axis θ4, the following formula can be used to calculate the inverse solution of the fourth joint axis θ4:
[0060]
[0061] Where Ψ is the arm angle, P2 6 is the vector from the shoulder joint to the wrist joint in the equivalent structure diagram, d se is the length of the upper arm from the shoulder joint to the elbow joint, d ew is the length of the forearm from the elbow joint to the wrist joint, and GC4 is the joint configuration coefficient of the fourth joint axis θ4. The joint configuration coefficient of the fourth joint axis θ4 can be used to determine whether the fourth joint axis is in the positive half or negative half of the X-axis of the base coordinate system. Specifically, when GC4=1, the calculated value of the fourth joint axis will be in the positive half of the X-axis of the base coordinate system, and when GC4=-1, the calculated value of the fourth joint axis will be in the negative half of the X-axis of the base coordinate system. In practical applications, the value of GC4 can be determined based on the workspace of the robotic arm. For example, in a medical surgical robot-assisted scenario, in order to maximize the workspace of the robotic arm, GC4=-1 can be taken.
[0062] For the first joint axis θ1, the third joint axis θ3, the fifth joint axis θ5 and the seventh joint axis θ7, the inverse solution of each joint axis can be derived using the following formula:
[0063]
[0064] In the above formula, when i=1 or 3, k=2, which means that when calculating the inverse solution of the first joint axis θ1 or the third joint axis θ3, the GC in the calculation formula k The joint configuration coefficient of the second joint axis θ2, that is, the value of GC2, can be used; when i=5 or 7, k=6, which means that when calculating the inverse solution of the fifth joint axis θ5 or the seventh joint axis θ7, the GC in the calculation formula k The joint configuration coefficient of the sixth joint axis θ6, that is, the value of GC6, can be used. n , b n 、c n 、a d , b d 、c d It is a parameter derived by geometric formula when the end position pose and the joint configuration coefficient GC4 of the fourth joint axis θ4 are known, and the third joint axis θ3 is set to 0 degrees. Therefore, a in the above formula is n , b n 、c n 、a d , b d 、c d is known.
[0065] For the second joint axis θ2 and the sixth joint axis θ6, the following formula can be used to solve the inverse solution:
[0066]
[0067] Among them, when i=2, k=2, when i=6, k=6, a, b, and c are obtained by solving the formula based on the end pose pose and the joint configuration coefficient GC4, so the above a, b, and c are also known.
[0068] It can be seen that among the seven joint axes of the seven-axis robot, the inverse solution of the fourth joint axis θ4 can be directly obtained through the end pose pose and the given GC4, while the remaining first joint axis θ1, second joint axis θ2, third joint axis θ3, fifth joint axis θ5, sixth joint axis θ6 and seventh joint axis θ7 still need to determine GC k The value of (k=2,6) and the arm angle Ψ can be solved.
[0069] It should be noted that since each joint axis of the seven-axis robot has its own limit angle, some arm angles Ψ may cause some joint axes to exceed the limit position of the joint axis. Therefore, when the limit angles jointsL of each joint axis are known, in order to solve the inverse solution of each joint axis, it is necessary to determine the feasible arm angle area under the end pose pose, which can provide a reference for the judgment of the subsequent solution results and motion path planning.
[0070] In the embodiment of the present application, the feasible arm angle area Ψ of the seven-axis robot arm range,all It can be determined by the following formula:
[0071] ψ range,all =ψ range,1 ∩ψ range,2 ∩…∩ψ range,7
[0072] Among them, range,1 ~Ψ range,7 It is the feasible arm angle set area for the terminal pose pose, GC2, GC6 when the limit angle of each joint axis is determined. This set area can be obtained by analyzing the limit arm angle Ψ corresponding to the axis limit angle position of each joint axis and sorting and combining them. After determining the feasible arm angle set area for each joint axis, by taking the intersection, the feasible arm angle area Ψ applicable to each joint axis can be obtained. range,all In the feasible arm angle region Ψ range,all Within the range, any value of the arm angle Ψ will not cause any joint axis to exceed its limit.
[0073] From the above introduction, we can see that given the terminal pose, we also need to determine the GC k The angle value θ of each joint axis can be obtained by the value of (k=2,6) and the value of the arm angle Ψ. i (i=1-7). In practical applications, the arm angle Ψ is mainly used for collision avoidance. In the surgical robot-assisted scenario, the arm angle Ψ can be made to continuously tend to a value, such as tending to Ψ approach = 0, and at the same time ensure that each joint axis cannot change too much. During the approach process, it can be set that the arm angle Ψ does not change more than 3 degrees for every 100 mm change in the Cartesian distance between the target end posture and the current end posture or every 10 degrees change in the rotation vector of the joint axis.
[0074] Of course, the arm angle target value Ψ target It is not necessarily equal to 0. The target value of the arm angle Ψ can be determined according to specific scenarios, such as the tendency to Ψ approach= -π / 4, this angle allows the doctor to have a larger working space and does not exceed the limit of the joint axis. During the motion planning process, the rate of change of the arm angle Ψ can also be determined according to the scene. In short, the above approach value Ψ approach and arm angle change rate Ψ v As an open parameter, it can be experimentally determined according to the corresponding scene. With these two parameters and the arm angle Ψ of the current pose curr , the target end pose, that is, the arm angle Ψ of the target pose, can be determined target .
[0075] When determining the arm angle Ψ of the target pose target After that, it is necessary to determine the arm angle Ψ target Is it in the aforementioned feasible arm angle region Ψ range,all If the arm angle Ψ target Not in the aforementioned feasible arm angle region Ψ range,all If the arm angle is within the target pose, the closest arm angle value can be taken as the arm angle value of the target pose.
[0076] In the examples of this application, GC k (k=2,6) can include four combinations, namely GC2=1, GC6=1, GC2=1, GC6=-1, GC2=-1, GC6=1, GC2=-1, GC6=-1. When determining the arm angle Ψ of the target pose target In the case of , we can find the inverse solution of the above four combinations to get θ i (i=1~7), and then perform weighted least squares with the current angle values of each joint axis to determine the most ideal GC k (k=2,6), that is, a set of GC corresponding to the minimum value of weighted least squares k (k=2,6).
[0077] When performing weighted least squares, the weight of each joint axis can be determined according to the actual application needs. For example, in some surgical robot-assisted scenarios, more attention is paid to the first joint axis θ1 and the third joint axis θ3. When setting the weight of each joint axis, the weight of the first joint axis θ1 and the third joint axis θ3 can be set relatively larger, and the weight of other joint axes can be set relatively smaller. In this way, it can be ensured that the positions of the first joint axis θ1 and the third joint axis θ3, which have larger weights, will not change too much.
[0078] In an embodiment of the present application, in order to realize the motion planning of the seven-axis robotic arm, it is also necessary to perform arm angle process planning in this process. Among them, the arm angle process planning refers to the planning of the arm angle at each end pose in the process after determining a motion path. For the seven-axis robotic arm, process planning of the arm angle can avoid the situation where each joint axis shakes significantly when passing through a singular position. Among them, a motion path can be regarded as consisting of multiple end poses. The singular position of the robotic arm refers to the situation where the robotic arm cannot continue to move to the desired position and posture in certain postures due to the limitations of factors such as the connecting rod length and the degree of freedom of movement, that is, there is no solution or the solution does not exist. In this case, some connecting rods or joint axes of the robotic arm have special positions or motion states, making the control of the robotic arm extremely difficult or impossible to achieve.
[0079] like Figure 3 , which is a schematic diagram of a change in a joint axis provided in an embodiment of the present application, Figure 3 The three curves in FIG. 1 describe the change of the fifth joint axis θ5 over time. Figure 3 It can be seen from the figure that when crossing the singular position, if the fifth joint axis θ5 is the change process shown by line 1, the joint axis will undergo a large jump; if it is the change process of line 2, the fifth joint axis θ5 will undergo a small jump; if the fifth joint axis θ5 is Figure 3 The change process shown by the middle line 3 has almost no jump in this process and can smoothly pass through the singular position. Therefore, the purpose of arm angle process planning for the robot arm is to ensure that an effective arm angle is planned so that the change process of each joint axis can be realized as follows Figure 3 The same effect as line 2 or even line 3 in the example.
[0080] The situation where each joint axis of the robotic arm experiences large-scale jitter changes occurs when crossing a singular position, that is, when the second joint axis θ2 and / or the sixth joint axis θ6 crosses the zero position during movement. In the robotic arm, the angle range of each joint axis is -180 degrees to 180 degrees, and the zero position of the joint axis is the position when the angle value of the joint axis is 0 degrees. Exemplarily, if the current axis is GC2=1, GC6=1, and the target axis is GC2=1, GC6=-1, this indicates that the sixth joint axis θ6 will change from a positive value to a negative value during movement, and this process will inevitably lead to crossing the zero position.
[0081] When performing arm angle process planning, the process arm angle area Ψ can be determined region . Process arm angle area Ψ region It refers to all feasible arm angle areas Ψ corresponding to multiple end positions on the motion path during the planning process range,allA collection of k (k=2,6) can be extended to 4 combinations, so the process arm angle area Ψ region It can also be composed of 4 sub-areas, namely:
[0082] ψ region =ψ region1 +ψ region2 +ψ region3 +ψ region4
[0083] Among them, each sub-area and GC k The corresponding situation of (k=2,6) can be Figure 4 As shown. That is, the sub-region corresponding to GC2=1, GC6=1 is Ψ region1 , GC2=1,GC6=-1 corresponds to the sub-region Ψ region2 , GC2=-1,GC6=1 corresponds to the sub-region Ψ region3 , GC2=-1,GC6=-1 corresponds to the sub-region Ψ region4 The above feasible arm angle sub-region Ψ region1 ,Ψ region2 ,Ψ region3 ,Ψ region4 There are intersecting endpoints between each other. For example, Figure 5 As shown, Figure 5 Point b in the figure is the feasible arm angle area Ψ region1 and region2 The number of intersection points of the two sub-areas is related to the GC k (k=2,6). If only one joint configuration coefficient changes, for example, only GC2 or GC6 changes, then the two sub-areas have one intersection endpoint; if both joint configuration coefficients change, for example, both GC2 and GC6 change, then the two sub-areas have two intersection endpoints. The above-mentioned intersection endpoints can indicate that the arm angle here allows the second joint axis θ2 or the sixth joint axis θ6 to approach 0 in their respective positive and negative arm angle regions. For example, Figure 5 As shown in point b, this point can make the sixth joint axis θ6 approach 0 in both the positive and negative arm angle regions, and can also make the sixth joint axis θ6 smoothly pass through singular positions.
[0084] Combination Figure 5 It can be seen that in Figure 5 In the traversing process shown in FIG. 1 , when the time is less than t1, the arm angle is in the sub-area A, and when the time is greater than t1, the arm angle is in the sub-area B, thereby realizing the sixth joint axis θ6 from the area Ψ region1 Cross to area Ψ region2The purpose is to realize the transformation of the joint configuration coefficient GC6 of the sixth joint axis θ6 from a positive value to a negative value. In this transformation process, other joint axes will not vibrate violently.
[0085] In the embodiment of the present application, when planning the arm angle process, in addition to planning the arm angle when crossing the intersection endpoint, it is also necessary to plan the arm angle during the entire movement process. If the arm angle planning is poor during this process, some joint axes may also reciprocate. For example, Figure 6 , which is a schematic diagram of the influence of arm angle planning on joint axes provided by an embodiment of the present application. Figure 6 , pose1, ...pose n The indicated line represents the relationship curve between the arm angle Ψ and a certain joint axis at each moment. n In the process, Figure 6 Line 1 in the figure will cause the fifth joint axis θ5 to first exceed the target position and then return to the target position. Therefore, the ideal effect should be in accordance with Figure 6 As shown in line 2 or line 3. Figure 6 Line 2 in the figure plans the arm angle, which can achieve the deceleration movement of the robot arm when it is about to reach the target position, thus ensuring the safety of the movement. At the same time, the parabola angle in line 2 also determines the change rate of the arm angle and the axis angle, which can be determined according to the maximum speed of the corresponding axis of the robot arm.
[0086] When an intersection endpoint appears, the parabola formed by the arm angle planning needs to take the intersection endpoint into consideration. Figure 7 FIG. 1 is a schematic diagram showing the influence of an arm angle planning of crossing a singular position on a joint axis provided by an embodiment of the present application. Figure 7 Point B in the figure is the intersection endpoint. In practical applications, since the reciprocating motion of the first joint axis θ1, the third joint axis θ3 and the fifth joint axis θ5 of the seven-axis robot arm has a greater impact on the normal movement of the robot arm, when performing arm angle planning, only the first joint axis θ1, the third joint axis θ3 and the fifth joint axis θ5 are separately planned for the arm angle. In this way, three arm angle planning routes can be obtained. An optimal arm angle planning route can be selected from these three routes. This arm angle planning route can simultaneously ensure that the first joint axis θ1, the third joint axis θ3 and the fifth joint axis θ5 will not reciprocate. By way of example, the final determined arm angle planning route can be as follows Figure 5 As shown in line 1.
[0087] Based on the algorithm introduced above, the embodiment of the present application provides an inverse solution method and motion planning method for a seven-axis robot. Figure 8FIG. 1 is a schematic diagram of an inverse solution method for a seven-axis robot arm provided in an embodiment of the present application. The method may specifically include the following steps:
[0088] S801. Generate an equivalent structural diagram of each joint axis of the seven-axis robotic arm; wherein, in the structural equivalent diagram, the first joint axis, the second joint axis and the third joint axis of each joint axis are equivalent to the shoulder joint, the fourth joint axis is equivalent to the elbow joint, and the fifth joint axis, the sixth joint axis and the seventh joint axis are equivalent to the wrist joint.
[0089] This method can be applied to a robot arm control device, that is, the execution subject of this method can be a robot arm control device, and the robot arm control device can solve the inverse solution of the seven-axis robot arm by executing each step in this method, and the inverse solution is an analytical solution. The above-mentioned robot arm control device can be a device, unit or module independent of the robot arm, or it can be integrated with the robot arm as a device of a unit or module of the robot arm. The embodiment of this application does not limit the existence form of the robot arm control device.
[0090] The structure of the seven-axis robot arm in the embodiment of the present application can be seen in Figure 1 As shown, for Figure 1 The equivalent structure diagram obtained by equivalently processing each joint axis of the seven-axis robot arm can be shown as follows Figure 2 Among them, the first joint axis, the second joint axis and the third joint axis of each joint axis of the seven-axis robot arm are equivalent to a shoulder joint, the fourth joint axis is equivalent to an elbow joint, and the fifth joint axis, the sixth joint axis and the seventh joint axis are equivalent to a wrist joint.
[0091] S802. Determine the arm angle of the seven-axis robot arm in the current end position according to the equivalent structure diagram; the arm angle is the angle between the reference plane formed by the shoulder joint, the elbow joint and the wrist joint and the plane actually formed by the shoulder joint, the elbow joint and the wrist joint when the third joint axis is 0 degrees.
[0092] In the embodiment of the present application, the arm angle of the seven-axis robot arm can be the angle between the reference plane in the equivalent structure diagram and the plane formed by the actual shoulder joint, elbow joint and wrist joint. The reference plane is the plane formed by the shoulder joint, elbow joint and wrist joint when the third joint axis in the equivalent structure diagram is 0 degrees. For example, Figure 2 The arm angle Ψ in.
[0093] S803, respectively determine the joint configuration coefficient of each of the joint axes, where the joint configuration coefficient is used to represent the area where each of the joint axes is located in the base coordinate system of the seven-axis robot arm.
[0094] The joint configuration coefficient of each joint axis can be used to indicate the area where each joint axis is located in the base coordinate system. Specifically, the joint configuration coefficient can indicate whether the joint axis is in the positive half or negative half of the X axis in the base coordinate system.
[0095] GC can be used i To represent the joint configuration coefficient of each axis. Where i = 1, ..., 7, respectively represents the first to seventh joint axes on the seven-axis robot.
[0096] In the embodiment of the present application, when a joint axis is in the positive half of the X-axis of the base coordinate system, the joint configuration coefficient of the joint axis can be determined to be 1, that is, GC i =1; when a joint axis is in the negative half of the X axis of the base coordinate system, the joint configuration coefficient of the joint axis can be determined to be -1, that is, GC i =-1.
[0097] In a possible implementation of the embodiment of the present application, the joint configuration coefficients of the first joint axis and the third joint axis can use the configuration coefficient of the second joint axis, that is, GC1=GC2=GC3; the joint configuration coefficients of the fifth joint axis and the seventh joint axis can use the configuration coefficient of the sixth joint axis, that is, GC5=GC6=GC7. Therefore, when determining the joint configuration coefficients of each joint axis, only the joint configuration coefficients of the second joint axis, the fourth joint axis and the sixth joint axis can be determined, that is, GC i The value of (i=2,4,6).
[0098] S804: Calculate the inverse solution of each joint axis according to the end position, the arm angle and the joint configuration coefficient.
[0099] In the embodiment of the present application, in order to calculate the inverse solution of each joint axis, multiple combinations of joint configuration coefficients can be determined first. Among them, in the joint configuration coefficients of different combinations, the joint configuration coefficient GC2 of the second joint axis and the joint configuration coefficient GC6 of the sixth joint axis can be the same or different.
[0100] For example, GC k (k=2,6) can form four different combinations, namely: GC2=1, GC6=1, GC2=1, GC6=-1, GC2=-1, GC6=1, GC2=-1, GC6=-1.
[0101] When calculating the inverse solution of each joint axis, the inverse solution of each joint axis can be calculated separately according to the end posture, arm angle and various combinations of joint configuration coefficients to obtain multiple sets of inverse solutions, and then the unique inverse solution of each joint axis is determined from the multiple sets of inverse solutions. The inverse solution of each axis can be calculated using different formulas.
[0102] In the embodiment of the present application, for the fourth joint axis, multiple intermediate variables can be determined according to the equivalent structure diagram, and the above intermediate variables may include the vector from the shoulder joint to the wrist joint, the upper arm length from the shoulder joint to the elbow joint, and the lower arm length from the elbow joint to the wrist joint in the equivalent structure diagram. Then, according to the end posture, arm angle, joint configuration coefficient of the fourth joint axis and multiple intermediate variables, the inverse solution of the fourth joint axis is calculated.
[0103] Specifically, the following formula can be used to calculate the inverse solution of the fourth joint axis:
[0104]
[0105] Where Ψ is the arm angle, P2 6 is the vector from the shoulder joint to the wrist joint in the equivalent structure diagram, d se is the length of the upper arm from the shoulder joint to the elbow joint, d ew is the length of the forearm from the elbow joint to the wrist joint, and GC4 is the joint configuration coefficient of the fourth joint axis.
[0106] For the second joint axis and the sixth joint axis, similar formulas can be used to calculate their respective joint configuration coefficients.
[0107] In the embodiment of the present application, a plurality of first associated parameters for calculating the inverse solution of the second joint axis and the sixth joint axis can be determined according to the end position and the joint configuration coefficient of the fourth joint axis. The first associated parameters can include the parameters a, b, and c in the above embodiment.
[0108] Then, the inverse solution of the second joint axis can be calculated based on the end posture, arm angle, joint configuration coefficient of the second joint axis and multiple first associated parameters; the inverse solution of the sixth joint axis can be calculated based on the end posture, arm angle, joint configuration coefficient of the sixth joint axis and multiple first associated parameters.
[0109] Specifically, the following formula can be used to calculate the inverse solution of the second joint axis and the sixth joint axis:
[0110]
[0111] When i=2, k=2, when i=6, k=6, a, b, c are multiple first associated parameters, and Ψ is the arm angle.
[0112] For the remaining first joint axis, third joint axis, fifth joint axis and seventh joint axis, similar formulas may be used to calculate their respective joint configuration coefficients.
[0113] In the embodiment of the present application, multiple second associated parameters when the third joint axis is 0 degrees can be determined according to the end position and the joint configuration coefficient of the fourth joint axis. The second associated parameters may include a n , b n 、c n 、a d , b d 、c d And other parameters.
[0114] Then, the inverse solutions of the first joint axis and the third joint axis can be calculated respectively according to the end posture, arm angle, joint configuration coefficient of the second joint axis and multiple second associated parameters; the inverse solutions of the fifth joint axis and the seventh joint axis can be calculated respectively according to the end posture, arm angle, joint configuration coefficient of the sixth joint axis and multiple second associated parameters.
[0115] Specifically, the following formula can be used to calculate the inverse solution of the second joint axis and the sixth joint axis:
[0116]
[0117] When i=1 or 3, k=2, when i=5 or 7, k=6, a n , b n 、c n 、a d , b d 、c d are multiple second associated parameters, and Ψ is the arm angle.
[0118] In the present application example, due to GC k (k=2,6) includes multiple coefficient combinations, and the inverse solution calculated according to each coefficient combination also includes multiple sets of inverse solution sets. Therefore, it is necessary to determine the unique inverse solution of each joint axis from the multiple sets of inverse solution sets.
[0119] In an embodiment of the present application, a unique inverse solution can be determined from multiple sets of inverse solutions based on a weighted least squares method. First, the weight values of each joint axis can be determined, and then based on the weight values, each set of inverse solutions and the angle values of each joint axis under the current end posture are respectively subjected to weighted least squares, and the inverse solution set corresponding to the minimum value of the weighted least squares is used as the unique inverse solution of each joint axis.
[0120] Among them, when determining the weight value of each joint axis, the weight value of each joint axis can be allocated according to the joint axis that is focused on in the actual application scenario. Specifically, at least one target joint axis among each joint axis can be determined, and then the weight values of the target joint axis and other non-target joint axes can be determined respectively; wherein, the weight value of the target joint axis is greater than the weight value of the non-target joint axis. The above-mentioned target joint axis is also the joint axis that is focused on in the actual application scenario. For example, in some scenarios of surgical robot-assisted medical treatment, the use of a seven-axis robotic arm may pay more attention to the first joint axis and the third joint axis. Then, when allocating the weights of each joint axis, the weights of the first joint axis and the third joint axis can be increased.
[0121] According to the above embodiment, a unique inverse solution of each joint axis of the seven-axis robot arm can be calculated, and the inverse solution is a high-precision analytical solution. Based on the above inverse solution method, the embodiment of the present application also provides a motion planning method for a seven-axis robot arm. Fig. 9 FIG. 1 is a schematic diagram of a motion planning method for a seven-axis robot arm according to an embodiment of the present application. The method may specifically include the following steps:
[0122] S901, determining a motion path to be planned for a seven-axis robot arm, wherein the motion path is composed of a plurality of end positions and postures.
[0123] This method can be applied to a robot arm control device, which can be the same as the control device used to solve the inverse solution of the robot arm in the aforementioned embodiment. That is, the robot arm control device can solve the inverse solution of each joint axis according to the aforementioned method, and on this basis, by executing each step in this method, the motion planning of the robot arm is realized.
[0124] In an embodiment of the present application, the motion path of the robot to be planned may be composed of multiple end positions. In practical applications, when planning the path of the robot, the number of input end positions may include multiple, or only one or two, and different numbers of end positions need to be processed separately. The above input end position does not include the position of the starting position.
[0125] In the embodiment of the present application, after determining the input end posture, if the number of end postures is less than 3, posture interpolation should be performed based on the end postures less than 3 to obtain multiple end postures that constitute the motion path.
[0126] For example, if the input terminal posture is less than 2, that is, the input terminal posture may be only one, and multiple terminal postures can be generated by spatial linear posture interpolation in combination with the posture of the starting position to form the motion path to be planned. If the input terminal posture is greater than or equal to 2 and less than 3, that is, the input terminal posture is 2, multiple terminal postures can be generated by spatial arc posture interpolation to form the motion path to be planned.
[0127] S902, respectively calculating the inverse solution of the seven-axis robotic arm at each of the terminal positions, wherein the inverse solution is an analytical solution of each joint axis of the seven-axis robotic arm.
[0128] The inverse solution of the seven-axis robot arm at each end position can be an analytical solution, which can be calculated using the method for finding the inverse solution in the previous embodiment, and will not be repeated here.
[0129] S903. Determine the joint configuration coefficients of the seven-axis robot arm at each of the terminal positions according to the inverse solution.
[0130] The joint configuration coefficient of the fourth joint axis of the seven-axis robot can be determined according to the workspace of the robot, that is, the value of GC4 is determined to be 1 or -1 according to the workspace where the robot is located. In addition, the first joint axis, the second joint axis and the third joint axis can use the joint configuration coefficient of the second joint axis, and the fifth joint axis, the sixth joint axis and the seventh joint axis can use the joint configuration coefficient of the sixth joint axis. Therefore, according to the inverse solution, the joint configuration coefficients of the seven-axis robot at each end posture can only be determined by determining the joint configuration coefficients of the second joint axis and the sixth joint axis, that is, determining GC k The value of (k=2,6).
[0131] S904: Determine changes in the joint configuration coefficients under the current end position and the target end position, where the target end position is the end position corresponding to the endpoint of the motion path.
[0132] In an embodiment of the present application, if the number of end postures constituting the motion path of the robot arm is n, the target end posture may refer to the nth end posture, that is, the target end posture may be the posture corresponding to the endpoint or end point on the motion path.
[0133] According to the method introduced in S903, the joint configuration coefficient corresponding to the nth terminal posture can be determined, that is, the target GC k The value of (k=2,6).
[0134] The robot arm control device can determine the change of the joint configuration coefficients between the current end position and the target end position, that is, determine the change of the joint configuration coefficients of the second joint axis and the sixth joint axis of the seven-axis robot arm between the current end position and the target end position. Specifically, it can determine the GC corresponding to the target end position. k The value of (k=2,6) is compared with the GC corresponding to the current terminal posture. k Whether the value of (k=2,6) changes.
[0135] In the examples of this application, GC k (k=2,6) can include four combinations, namely GC2=1,GC6=1,GC2=1,GC6=-1,GC2=-1,GC6=1,GC2=-1,GC6=-1. When any value of GC2 or GC6 changes, for example, GC2=1,GC6=1 in the current end position, GC2=1,GC6=-1 in the target end position, or GC2=-1,GC6=1 in the target end position, it can be considered that the joint configuration coefficients in the current end position and the target end position have changed, that is, there is a zero crossing.
[0136] S905. Perform motion planning for the seven-axis robotic arm based on changes in the joint configuration coefficients.
[0137] In the present application embodiment, according to GC k Whether the value of (k=2,6) changes, different methods are used for motion planning.
[0138] In one possible implementation, if the GC k The value of (k=2,6) has not changed, that is, the joint configuration coefficients of the second joint axis and the sixth joint axis have not changed. Then, the multi-threaded method can be used to determine the feasible arm angle area of the seven-axis robot arm at each end position, and then the motion path of the seven-axis robot arm can be planned according to the feasible arm angle area.
[0139] In a specific implementation, when determining the feasible arm angle area of the seven-axis robot at each end position, we can first determine the limit angles of each joint axis of the seven-axis robot at each end position, and then take the intersection of the limit angles of each joint axis to obtain the feasible arm angle area of the seven-axis robot at each end position.
[0140] After determining the feasible arm angle region, the arm angle change curve of the seven-axis robot arm over time can be planned within the feasible arm angle region to complete the arm angle process planning. The arm angle of the seven-axis robot arm at any time can be determined according to the arm angle change curve, and the unique inverse solution of the seven-axis robot arm can be calculated based on the arm angle.
[0141] In another possible implementation, if the GC k If the value of (k=2,6) changes, for example, the joint configuration coefficient of the second joint axis or the sixth joint axis changes, or the joint configuration coefficients of the above two joint axes change at the same time, the intersection endpoints of the feasible arm angle area of the seven-axis robot can be calculated based on the change amount using a multi-threaded approach, and the motion path of the seven-axis robot can be planned based on the intersection endpoints.
[0142] In the specific implementation, due to GC k The value of (k=2,6) includes many combinations. When calculating the intersection endpoints of the feasible arm angle area, the joint configuration coefficient GC can be determined. k By determining the feasible arm angle sub-regions corresponding to the joint configuration coefficients of the seven-axis robot arm in each combination of (k=2,6), the intersection endpoints of multiple feasible arm angle sub-regions are determined.
[0143] Then, in each feasible arm angle sub-region, an arm angle variation curve of the seven-axis robot arm is planned over time, and the arm angle variation curve passes through the above-mentioned intersection endpoints. In this way, the arm angle of the seven-axis robot arm at any time can be determined according to the arm angle variation curve, and based on the arm angle, the unique inverse solution of the seven-axis robot arm can be calculated.
[0144] In the embodiment of the present application, based on the inverse solution method and motion planning method described above, a collision avoidance function can be added during the use of the seven-axis robotic arm. For example, a collision avoidance angle can be determined, and the feasible arm angle region of the robotic arm can be limited according to the collision avoidance angle.
[0145] Below, the motion planning method of the seven-axis robotic arm provided in an embodiment of the present application is introduced in combination with a complete example.
[0146] like Fig.10 FIG. 1 is a schematic diagram of a motion planning process of a seven-axis robot arm provided in an embodiment of the present application. Fig.10 In the process shown, at the beginning of planning, the current planning mode can be first determined, for example, whether it belongs to the single-step solution mode or the process motion planning mode.
[0147] In the single-step solution mode, the number of target end poses input to the robot control device can be only one, that is, in the single-step solution mode, a unique inverse solution of each joint axis can be calculated based on an input end pose. In this process, the calculated unique inverse solution should also be judged in combination with the feasible arm angle area of each joint axis to ensure that the inverse solution result is within the feasible arm angle area.
[0148] In the process motion planning mode, for each input terminal posture, multiple terminal postures can be combined into a motion path to be planned. The above-mentioned input terminal posture does not include the posture of the starting position of the robot. In the process motion planning mode, if the number of input terminal postures is less than 3, n terminal postures should be generated by posture interpolation. Specifically, in the case where the number of input terminal postures is less than 3, if the number of input terminal postures is less than 2, that is, the input terminal posture is only 1, then in combination with the posture of the starting position, the n terminal postures can be generated by spatial linear posture interpolation. If the number of input terminal postures is less than 3 and more than or equal to 2, that is, the input terminal postures are only 2, then the n terminal postures can be generated by spatial arc posture interpolation. If the number of input terminal postures is greater than or equal to 3, the terminal postures greater than or equal to 3 can be directly used as n terminal postures. For n terminal postures, a multi-threaded solution method can be used to calculate multiple intermediate variables required for the inverse solution. These intermediate variables can be the intermediate variables in the formulas of the embodiments corresponding to the inverse solution method described above, such as P2 6 , d se , d ew , a n , b n , c n , a d , b d , c d , a, b, c and other variables. On the other hand, for the n input terminal postures, the same calculation method as the single-step solution mode can be used to solve the inverse solution of the nth terminal posture, and the target GC can be determined based on the inverse solution. k (k=2,6), that is, the GC at the last terminal pose k The value of (k=2,6).
[0149] Then, by determining the target GC k (k=2,6) and the current GC k Depending on the change of (k=2,6), different methods can be used to carry out the subsequent motion planning process.
[0150] The inverse solution method and motion planning method of the seven-axis robotic arm provided in the embodiment of the present application are the inverse solution and motion planning for the seven-axis redundant robotic arm of a humanoid arm. Compared with the seven-axis robotic arm customized for special scenarios in the prior art, the inverse solution method and motion planning method provided in the embodiment of the present application are applied to the seven-axis redundant robotic arm of a humanoid arm, so that the seven-axis redundant robotic arm has higher versatility and can be applied to a variety of scenarios. For example, by applying the inverse solution method and motion planning method provided in the embodiment of the present application to the seven-axis redundant robotic arm, the seven-axis redundant robotic arm can be applied to different medical equipment to realize various functions such as assisted surgery.
[0151] Secondly, the embodiment of the present application uses an analytical solution to solve the inverse solution of the seven-axis redundant manipulator, which can ensure the accuracy of the solution result. In scenarios such as surgical robot-assisted medical treatment, it helps to improve the accuracy of surgery. In addition, since the use of analytical solutions for solving and motion planning is the result of clever spatial geometric calculations based on the mechanical configuration, it is theoretically more real-time than numerical solutions, which are solved by iterative fitting. Therefore, the response speed of the motion planning process based on the inverse solution is also faster, so that this method can also be applied to remote-controlled surgery, which is a capability that other methods that solve through cyclic iterations cannot have.
[0152] Third, the application of this method for motion planning can better handle the problem that the second, fourth and sixth joint axes of the seven-axis redundant manipulator of the humanoid arm form singular configurations at zero position, causing large jitters of each joint axis near the zero position, and can achieve continuous and smooth planning throughout the entire motion process. In addition, this method further ensures the safety and stability of the motion planning process by limiting the change trend of the arm angle.
[0153] Fourth, this method has high scalability and can add a collision avoidance function during the motion planning process, so that the robotic arm can perform auxiliary motion planning in a better posture, further improving the versatility of this method and the applicability of the seven-axis redundant robotic arm.
[0154] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0155] Reference Fig.11 , shows a schematic diagram of an inverse solution device for a seven-axis robot arm provided in an embodiment of the present application, which may specifically include a generation module 1101, an arm angle determination module 1102, a joint configuration coefficient determination module 1103 and a calculation module 1104, wherein:
[0156] A generating module 1101 is used to generate an equivalent structural diagram of each joint axis of the seven-axis robot arm; wherein, in the structural equivalent diagram, the first joint axis, the second joint axis and the third joint axis of each joint axis are equivalent to the shoulder joint, the fourth joint axis is equivalent to the elbow joint, and the fifth joint axis, the sixth joint axis and the seventh joint axis are equivalent to the wrist joint;
[0157] An arm angle determination module 1102 is used to determine the arm angle of the seven-axis robot arm in the current end posture according to the equivalent structure diagram; the arm angle is the angle between the reference plane formed by the shoulder joint, the elbow joint and the wrist joint and the plane actually formed by the shoulder joint, the elbow joint and the wrist joint when the third joint axis is 0 degrees;
[0158] A joint configuration coefficient determination module 1103, used to respectively determine the joint configuration coefficients of the joint axes, wherein the joint configuration coefficients are used to represent the regions where the joint axes are located in the base coordinate system of the seven-axis robot;
[0159] The calculation module 1104 is used to calculate the inverse solution of each joint axis according to the end posture, the arm angle and the joint configuration coefficient.
[0160] An embodiment of the present application provides an inverse solution device for a seven-axis robotic arm. By using this device, each step in the aforementioned related method embodiments can be implemented to achieve an inverse solution for the seven-axis robotic arm.
[0161] Reference Fig.12 , shows a schematic diagram of a motion planning device for a seven-axis robot arm provided in an embodiment of the present application, which may specifically include a motion path determination module 1201, a calculation module 1202, a joint configuration coefficient determination module 1203, a coefficient change determination module 1204 and a planning module 1205, wherein:
[0162] A motion path determination module 1201 is used to determine a motion path to be planned for the seven-axis robot, wherein the motion path is composed of a plurality of end positions;
[0163] A calculation module 1202 is used to calculate the inverse solution of the seven-axis robot arm at each of the end positions, wherein the inverse solution is an analytical solution of each joint axis of the seven-axis robot arm;
[0164] A joint configuration coefficient determination module 1203 is used to determine the joint configuration coefficients of the seven-axis robot arm at each of the end positions according to the inverse solution;
[0165] A coefficient change determination module 1204 is used to determine the change of the joint configuration coefficient under the current end posture and the target end posture, and the target end posture is the end posture corresponding to the end point of the motion path;
[0166] The planning module 1205 is used to perform motion planning for the seven-axis robot arm based on the changes in the joint configuration coefficients.
[0167] In a possible implementation of the embodiments of the present application, the inverse solution of the seven-axis robot arm at each end position can be calculated using the inverse solution method of the seven-axis robot arm introduced in the aforementioned method embodiments.
[0168] An embodiment of the present application provides a motion planning device for a seven-axis robotic arm. By using this device, each step in the aforementioned related method embodiments can be implemented to achieve motion planning for the seven-axis robotic arm.
[0169] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.
[0170] Reference Fig.13 , shows a schematic diagram of a computer device provided by an embodiment of the present application. Fig.13 As shown, the computer device 1300 in the embodiment of the present application includes: a processor 1310, a memory 1320, and a computer program 1321 stored in the memory 1320 and executable on the processor 1310. When the processor 1310 executes the computer program 1321, the steps in the above-mentioned various method embodiments are implemented, for example Fig. 9 Alternatively, when the processor 1310 executes the computer program 1321, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Fig.12 Functions of modules 1201 to 1205 are shown.
[0171] Exemplarily, the computer program 1321 may be divided into one or more modules / units, which are stored in the memory 1320 and executed by the processor 1310 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which may be used to describe the execution process of the computer program 1321 in the computer device 1300.
[0172] The computer device 1300 may be a robot arm control device that implements the steps in the above-mentioned method embodiments. The computer device 1300 may be a computing device such as a desktop computer or a cloud server. The computer device 1300 may include, but is not limited to, a processor 1310 and a memory 1320. Those skilled in the art will understand that Fig.13This is only an example of the computer device 1300 and does not constitute a limitation of the computer device 1300. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 1300 may also include input and output devices, network access devices, buses, etc.
[0173] The processor 1310 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0174] The memory 1320 may be an internal storage unit of the computer device 1300, such as a hard disk or memory of the computer device 1300. The memory 1320 may also be an external storage device of the computer device 1300, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 1300. Further, the memory 1320 may also include both an internal storage unit of the computer device 1300 and an external storage device. The memory 1320 is used to store the computer program 1321 and other programs and data required by the computer device 1300. The memory 1320 may also be used to temporarily store data that has been output or is to be output.
[0175] An embodiment of the present application also discloses a robotic arm, which is a seven-axis robotic arm. The inverse solution of the robotic arm can be calculated by the inverse solution method of the above-mentioned seven-axis robotic arm, and / or the motion path of the robotic arm can be planned by the motion planning method of the above-mentioned seven-axis robotic arm.
[0176] An embodiment of the present application also discloses a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the inverse solution method of the seven-axis robotic arm and / or the motion planning method of the seven-axis robotic arm as described in the aforementioned embodiments.
[0177] An embodiment of the present application also discloses a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the inverse solution method of the seven-axis robotic arm as described in the aforementioned embodiments, and / or the motion planning method of the seven-axis robotic arm.
[0178] An embodiment of the present application further discloses a computer program product. When the computer program product is run on a computer, the computer executes the inverse solution method of the seven-axis robotic arm and / or the motion planning method of the seven-axis robotic arm described in the aforementioned embodiments.
[0179] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A motion planning method for a seven-axis robotic arm, characterized in that: include: Determine a motion path of the seven-axis robot arm to be planned, wherein the motion path consists of a plurality of end positions; Calculating the inverse solution of the seven-axis robot arm at each of the end positions respectively, wherein the inverse solution is an analytical solution of each joint axis of the seven-axis robot arm; Determine the joint configuration coefficients of the seven-axis robot arm at each of the end positions according to the inverse solution, wherein the joint configuration coefficients are used to represent the area where each of the joint axes is located in the base coordinate system of the seven-axis robot arm; Determine changes in joint configuration coefficients of the second joint axis and the sixth joint axis of the seven-axis robot arm under a current end position and a target end position, wherein the target end position is an end position corresponding to an end point of the motion path; If the joint configuration coefficients of the second joint axis and the sixth joint axis do not change, determining a feasible arm angle region of the seven-axis robot arm at each of the terminal positions, and planning a motion path of the seven-axis robot arm according to the feasible arm angle region; If the joint configuration coefficient of the second joint axis and / or the sixth joint axis changes, the intersection endpoints of the feasible arm angle area of the seven-axis robot are calculated, and the motion path of the seven-axis robot is planned according to the intersection endpoints of the feasible arm angle area. The intersection endpoints of the feasible arm angle area are used to indicate that the arm angle corresponding to the intersection endpoint allows the second joint axis and / or the sixth joint axis to approach 0 in their respective positive and negative arm angle areas.
2. The method according to claim 1, characterized in that The determining of the feasible arm angle region of the seven-axis robot arm at each of the end positions includes: Respectively determining the limit angle of each joint axis of the seven-axis robot arm at each end position; The intersection of the limit angles of each of the joint axes is taken to obtain the feasible arm angle region of the seven-axis robot arm at each of the end positions.
3. The method according to claim 2, characterized in that The planning of the motion path of the seven-axis robot arm according to the feasible arm angle area includes: Planning an arm angle variation curve of the seven-axis robot arm that changes with time within the feasible arm angle region; Determining the arm angle of the seven-axis robot arm at any moment according to the arm angle variation curve; Based on the arm angle of the seven-axis robotic arm at any moment, a unique inverse solution of the seven-axis robotic arm is calculated.
4. The method according to claim 1, characterized in that The calculating of the intersection endpoints of the feasible arm angle region of the seven-axis robot arm comprises: determining a plurality of combinations of the joint configuration coefficients; Respectively determine the feasible arm angle sub-areas corresponding to the seven-axis robot arm under the joint configuration coefficients of each combination; Determine the intersection endpoints of a plurality of the feasible arm angle sub-regions.
5. The method according to claim 4, characterized in that The planning of the motion path of the seven-axis robot arm according to the intersection endpoints of the feasible arm angle area includes: Planning an arm angle variation curve of the seven-axis robot arm that changes with time in each of the feasible arm angle sub-areas; wherein the arm angle variation curve passes through the intersection endpoint; Determining the arm angle of the seven-axis robot arm at any moment according to the arm angle variation curve; Based on the arm angle of the seven-axis robotic arm at any moment, a unique inverse solution of the seven-axis robotic arm is calculated.
6. The method according to any one of claims 1 to 5, characterized in that: Before performing motion planning for the seven-axis robot arm based on the change of the joint configuration coefficient, the method further includes: Determine collision avoidance angle; The feasible arm angle area is limited according to the collision avoidance angle.
7. The method according to any one of claims 1 to 5, characterized in that: Determining the motion path to be planned for the seven-axis robotic arm includes: Determine the input end pose; If the number of the terminal postures is less than 3, posture interpolation is performed based on the terminal postures less than 3 to obtain multiple terminal postures constituting the motion path.
8. A robotic arm, the robotic arm being a seven-axis robotic arm, characterized in that: The motion path of the robotic arm can be planned by the motion planning method of the seven-axis robotic arm as described in any one of claims 1-7.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the motion planning method for the seven-axis robotic arm is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the motion planning method for the seven-axis robotic arm is implemented.
Citation Information
Patent Citations
Numerical stabilization algorithm for inverse kinematics analytical solution of S-R-S structure seven-degree-of-freedom mechanical arm
CN113378349A
Cited By
Motion planning method and device of mechanical arm and computer equipment
CN120549609A
Method and device for motion planning of a robot arm and computer equipment
CN120549609B
