Control method of flexible robotic arm, electronic device and storage medium

By dividing the flexible manipulator into virtual joints and constructing a kinematic model, the calculation of the analytical solution of inverse kinematics is simplified, the problems of high algorithm complexity and slow response in the existing technology are solved, and the response speed and response speed of the flexible manipulator are improved. accuracy.

CN117944033BActive Publication Date: 2024-10-22WANXUN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211296937.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-21
Publication Date
2024-10-22
Estimated Expiration
2042-10-21

AI Technical Summary

Technical Problem

The existing kinematic control methods for flexible manipulators have high algorithm complexity, require a lot of computational overhead, and are sensitive to initial values, resulting in no solution or large errors in the solution results, slow response, and inaccurate movement.

Method used

Divide the flexible manipulator into three virtual joints, each virtual joint includes at least one flexible bending module, build a first kinematics model based on the kinematic parameters of the virtual joints, and synthesize the second kinematics model through multiple virtual joint models, Simplify the transformation to obtain a stable analytical solution of inverse kinematics.

Benefits of technology

It simplifies the complexity of the control algorithm, reduces the computational overhead, improves the response speed of the flexible manipulator and the accuracy of the moving coordinates, and can complete the preset tasks efficiently and accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117944033B_ABST
    Figure CN117944033B_ABST
Patent Text Reader

Abstract

The present application provides a control method, electronic device and storage medium for a flexible robotic arm, which are applied to a flexible robotic arm. The flexible robotic arm includes at least three flexible bending modules arranged in series and a flexible rotating module connected to the end of the terminal flexible bending module, and the flexible robotic arm is divided into three virtual joints. The control method includes: constructing a first kinematic model based on the kinematic parameters of the virtual joints, the first kinematic model characterizing the kinematic state of the virtual joint end of any virtual joint, processing the first kinematic model to obtain a second kinematic model, the second kinematic model characterizing the equivalent kinematic state of the flexible robotic arm end of the flexible robotic arm, and controlling the flexible robotic arm to complete a preset task based on the analytical solution of the second kinematic model, thereby simplifying the complexity of the control algorithm, reducing the computational overhead, thereby improving the response speed of the flexible robotic arm, and improving the accuracy of the moving coordinates of the flexible robotic arm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of robot control technology, and in particular, relates to a control method, electronic equipment and storage medium for a flexible robotic arm. Background Art

[0002] The continuous flexible manipulator is a multi-segment manipulator, each segment of which can bend, rotate in the bending direction, and even stretch in the bending direction within a certain angle range. Therefore, the continuous flexible manipulator with multiple segments has more degrees of freedom and is a highly redundant manipulator structure. The high redundancy gives the continuous flexible manipulator a more complex workspace and more motion characteristics, but it also increases the control difficulty of the continuous flexible manipulator.

[0003] There are two main methods for kinematic control of continuous flexible manipulators. One is to avoid directly solving the inverse solution of forward kinematics and choose to perform incremental control through the generalized Jacobian matrix in its tangent space. The other is to transform the solution of inverse kinematics into solving the extreme value of a certain objective function through an optimization algorithm.

[0004] The kinematic control method of the flexible robotic arm in the prior art has the problems of high algorithm complexity, requiring a large amount of computing overhead, and being sensitive to initial values, resulting in no solution or large errors in the solution, thus causing the flexible robotic arm to respond slowly and move inaccurately. Summary of the invention

[0005] The embodiments of the present application provide a control method, electronic device and storage medium for a flexible robotic arm, which can solve the problems that the kinematic control method of the flexible robotic arm has high algorithm complexity and requires a large amount of computing overhead, and the initial value sensitivity causes the solution to have no solution or large errors, thereby causing the flexible robotic arm to respond slowly and move inaccurately.

[0006] In a first aspect, an embodiment of the present application provides a control method for a flexible robotic arm, which is applied to a flexible robotic arm, wherein the flexible robotic arm includes at least three flexible bending modules arranged in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the flexible bending module at the end, characterized in that the flexible robotic arm is divided into three virtual joints, each of which includes at least one flexible bending module, and the control method includes:

[0007] Constructing a first kinematic model based on the kinematic parameters of the virtual joint, wherein the first kinematic model represents the kinematic state of any end of the virtual joint;

[0008] Processing the first kinematic model to obtain a second kinematic model, wherein the second kinematic model represents an equivalent kinematic state of the end of the flexible manipulator;

[0009] The flexible robotic arm is controlled to complete a preset task based on the analytical solution of the second kinematic model.

[0010] In one embodiment, the step of processing the first kinematic model to obtain the second kinematic model includes:

[0011] Performing transformation based on the first kinematic model to obtain a third kinematic model, wherein the third kinematic model represents a simplified kinematic state of the virtual joint end of any virtual joint;

[0012] A fourth kinematic model is obtained by synthesizing the plurality of third kinematic models, wherein the fourth kinematic model represents a simplified kinematic state of the flexible manipulator;

[0013] An equivalent transformation is performed based on the fourth kinematic model to obtain a second kinematic model.

[0014] In one embodiment, the calculation formula of the first kinematic model is as follows:

[0015]

[0016] Among them, T v is a first joint end transformation matrix of any virtual joint, wherein the first joint end transformation matrix is ​​a transformation matrix of the first kinematic model of the coordinate system O2X2Y2Z2 of the virtual joint end fixed at the virtual joint in the coordinate system O1X1Y1Z1 of its starting end;

[0017] T z (β) is a first z-axis rotation transformation matrix, which is a transformation matrix for rotating the virtual joint end of the virtual joint around the z-axis of the current coordinate system by an angle of β;

[0018] is the first y-axis rotation transformation matrix, which is the rotation matrix of the virtual joint end of the virtual joint around the y-axis of the current coordinate system The transformation matrix of the angle;

[0019] T l (L r ) is a first z-axis translation transformation matrix, wherein the first z-axis translation transformation matrix is ​​a transformation matrix of the virtual joint end of the virtual joint translated Lr along the current z-axis;

[0020] T z (-β) is a second z-axis rotation transformation matrix, and the second z-axis rotation transformation matrix is ​​a transformation matrix of the virtual joint end of the virtual joint rotating around the z-axis of the current coordinate system by an angle of -β;

[0021] β is a direction angle, which is the angle between the projection of the end center of the virtual joint end of the virtual joint on the XY plane in the starting end coordinate system and the X axis;

[0022] α is a bending angle, which is the angle between the plane where the virtual joint end of the virtual joint is located and the plane where the virtual joint start end is located;

[0023] Lr is a first straight-line distance, which is a straight-line distance from an end center O2 of the virtual joint end to a start end center O1 of the virtual joint.

[0024] In one embodiment, the calculation formula of the second kinematic model is as follows:

[0025] T vse_end =T l (L)*T z (θ1)*T y (θ2)*T l (2L)*T z (θ3)*T y (θ4)*T l (2L)*T z (θ5)

[0026] *T y (θ6)*T z (θ7)*T l (L2)

[0027] Among them, T vse_end is a first robot arm end transformation matrix, wherein the first robot arm end transformation matrix is ​​a transformation matrix of the end center of the flexible robot arm;

[0028] T l (L) is a second z-axis translation transformation matrix, which is a transformation matrix of the flexible manipulator translated by L along the current z-axis;

[0029] T l (2L) is a third z-axis translation transformation matrix, and the third z-axis translation transformation matrix is ​​a transformation matrix of the flexible manipulator translated 2L along the current z-axis;

[0030] T z (θ1) is a third z-axis rotation transformation matrix, and the third z-axis rotation transformation matrix is ​​a transformation matrix for rotating the flexible manipulator around the z-axis of the current coordinate system by an angle of θ1;

[0031] T y(θ2) is a second y-axis rotation transformation matrix, which is a transformation matrix for rotating the flexible manipulator around the y-axis of the current coordinate system by an angle of θ2;

[0032] T z (θ3) is a fourth z-axis rotation transformation matrix, and the fourth z-axis rotation transformation matrix is ​​a transformation matrix for rotating the flexible manipulator around the z-axis of the current coordinate system by an angle of θ3;

[0033] T y (θ4) is a third y-axis rotation transformation matrix, and the third y-axis rotation transformation matrix is ​​a transformation matrix for rotating the flexible manipulator around the y-axis of the current coordinate system by an angle of θ4;

[0034] T z (θ5) is the fifth z-axis rotation transformation matrix, and the fifth z-axis rotation transformation matrix is ​​the transformation matrix of the flexible manipulator rotating around the z-axis of the current coordinate system by an angle of θ5;

[0035] T y (θ6) is a fourth y-axis rotation transformation matrix, and the fourth y-axis rotation transformation matrix is ​​a transformation matrix for rotating the flexible manipulator around the y-axis of the current coordinate system by an angle of θ6;

[0036] T z (θ7) is the sixth z-axis rotation transformation matrix, and the sixth z-axis rotation transformation matrix is ​​the transformation matrix of the flexible manipulator rotating around the z-axis of the current coordinate system by an angle of θ7;

[0037] T l (L2) is the fourth z-axis translation transformation matrix, and the fourth z-axis translation transformation matrix is ​​the transformation matrix of the flexible robotic arm translated by L2 along the current z-axis.

[0038] In one embodiment, the calculation formula of the third kinematic model is as follows:

[0039] T vs =T l (L)*T z (Z)*T y (Y)*T z (-Z)*T l (L)

[0040] Among them, T v s is the second joint end transformation matrix of any virtual joint, and the second joint end transformation matrix is ​​the transformation matrix of the third kinematic model of the coordinate system O2X2Y2Z2 of the virtual joint end fixed to the virtual joint in the starting end coordinate system O1X1Y1Z1;

[0041] T l(L) is a fifth z-axis translation transformation matrix, and the fifth z-axis translation transformation matrix is ​​a transformation matrix of the virtual joint end of the virtual joint translated by L along the current Z axis;

[0042] T z (Z) is the seventh z-axis rotation transformation matrix, and the seventh z-axis rotation transformation matrix is ​​the transformation matrix of the virtual joint end of the virtual joint rotating around the z-axis of the current coordinate system by an angle of Z;

[0043] T y (Y) is a fifth y-axis rotation transformation matrix, and the fifth y-axis rotation transformation matrix is ​​a transformation matrix for rotating the virtual joint end of the virtual joint around the y-axis of the current coordinate system by an angle Y;

[0044] T z (-Z) is the eighth z-axis rotation transformation matrix, and the eighth z-axis rotation transformation matrix is ​​the transformation matrix of the virtual joint end of the virtual joint rotating around the z-axis of the current coordinate system by an angle of -Z;

[0045] L is a second straight-line distance, which is half of the straight-line distance from the end center O2 to the start end center O1 of the virtual joint in a straight state with α=0.

[0046] In one embodiment, the calculation formula of the fourth kinematic model is as follows:

[0047] T vs_end =T vs1 *T vs2 *T vs3 *T z4 (Z4)

[0048] Among them, T vs_end is the transformation matrix of the first robot end;

[0049] T vsi is the transformation matrix of the third kinematic model of the i-th virtual joint, i≤3, and i is a positive integer;

[0050] T z4 (Z4) is the ninth z-axis rotation transformation matrix, and the ninth z-axis rotation transformation matrix is ​​the transformation matrix of the flexible robotic arm end rotating around the current z-axis by an angle of Z4.

[0051] In one embodiment, constructing a first kinematic model based on the kinematic parameters of the virtual joint includes:

[0052] Acquire the kinematic parameters of the virtual joint, wherein the kinematic parameters include a first z-axis rotation transformation matrix, a first y-axis rotation transformation matrix, a first z-axis translation transformation matrix, a second z-axis rotation transformation matrix, a direction angle, a bending angle, a first straight-line distance, and a second straight-line distance;

[0053] A calculation formula of a first kinematic model is constructed based on the kinematic parameters.

[0054] In one embodiment, the controlling the flexible robotic arm to complete a preset task based on the analytical solution of the second kinematic model includes:

[0055] Acquire a second robot arm end transformation matrix, where the second robot arm end transformation matrix is ​​a preset end transformation matrix of the flexible robot arm end of the flexible robot arm;

[0056] Based on the second robot arm end transformation matrix, the second straight-line distance and the second kinematic model, an analytical solution of the second kinematic model is obtained, wherein the analytical solution is an inverse kinematics analytical solution;

[0057] Based on the equivalent transformation relationship between the kinematic models, converting the analytical solution into the virtual joint coordinates of the flexible robotic arm;

[0058] The flexible robotic arm is controlled based on the virtual joint coordinates to complete a preset task.

[0059] In one embodiment, obtaining an analytical solution of the second kinematic model based on the second robot end transformation matrix, the second straight-line distance and the second kinematic model includes:

[0060] Obtaining a core transformation matrix based on the second robot end transformation matrix and the second kinematic model;

[0061] Obtaining a first rotation matrix of the core transformation matrix and a displacement component of the core transformation matrix based on the core transformation matrix;

[0062] The analytical solution is obtained based on the displacement component, the first rotation matrix, and the second straight-line distance.

[0063] In one embodiment, the calculation formula of the core transformation matrix is:

[0064] T core =T l -1 (L)*T end *T l -1 (L2)

[0065] Among them, T coreis the core transformation matrix;

[0066] T end is the transformation matrix of the second robot end;

[0067] T l -1 (L) is the second z-axis translation transformation matrix T l The inverse matrix of (L);

[0068] T l - 1(L2) is the fourth z-axis translation transformation matrix T l The inverse matrix of (L2).

[0069] In one embodiment, the analytical solution includes a first rotation angle, a second rotation angle, a third rotation angle, a fourth rotation angle, a fifth rotation angle, a sixth rotation angle, and a seventh rotation angle, and the first rotation angle to the seventh rotation angle are sequentially distributed from the starting end to the end of the flexible robotic arm;

[0070] The obtaining the analytical solution based on the displacement component, the first rotation matrix, and the second straight-line distance includes:

[0071] Based on the displacement component and the second straight-line distance, the first rotation angle, the second rotation angle, the third rotation angle, and the fourth rotation angle are obtained;

[0072] Based on the first rotation matrix, the first rotation angle, the third rotation angle, and the fourth rotation angle, a second rotation matrix is ​​obtained, where the second rotation matrix is ​​a comprehensive posture rotation matrix synthesized by preset joint rotation angles;

[0073] The fifth rotation angle, the sixth rotation angle, and the seventh rotation angle are obtained based on the second rotation matrix.

[0074] In one embodiment, the displacement components include a first axis displacement component, a second axis displacement component, and a third axis displacement component;

[0075] The obtaining the first rotation angle, the second rotation angle, the third rotation angle, and the fourth rotation angle based on the displacement component and the second straight-line distance includes:

[0076] Setting the third rotation angle to zero;

[0077] Based on the first axis displacement component and the second axis displacement component, obtaining the first rotation angle by using a first rotation angle calculation formula;

[0078] Based on the first axis displacement component, the second axis displacement component, the third axis displacement component and the second straight-line distance, obtaining the fourth rotation angle by using a fourth rotation angle calculation formula;

[0079] The second rotation angle is obtained by a second rotation angle calculation formula based on the first axis displacement component, the second axis displacement component, the third axis displacement component and the fourth rotation angle.

[0080] In one embodiment, the first rotation angle calculation formula is:

[0081] θ1=atan2(Y,X)

[0082] Wherein, θ1 is the first rotation angle;

[0083] X is the first axis displacement component, and the first axis displacement component is the core transformation matrix T core The X-axis component of the displacement part;

[0084] Y is the second axis displacement component, and the second axis displacement component is the core transformation matrix T core The Y-axis component of the displacement part;

[0085] The fourth rotation angle calculation formula is:

[0086]

[0087] Wherein, θ4 is the fourth rotation angle;

[0088] X is the first axis displacement component, and the first axis displacement component is the core transformation matrix T core The X-axis component of the displacement part;

[0089] Y is the second axis displacement component, and the second axis displacement component is the core transformation matrix Tc ore The Y-axis component of the displacement part;

[0090] Z is the third axis displacement component, and the second axis displacement component is the core transformation matrix Tc ore The Z-axis component of the displacement part;

[0091] The second rotation angle calculation formula is:

[0092]

[0093] Wherein, θ2 is the second rotation angle;

[0094] X is the first axis displacement component, and the first axis displacement component is the core transformation matrix T coreThe X-axis component of the displacement part;

[0095] Y is the second axis displacement component, and the second axis displacement component is the core transformation matrix T core The Y-axis component of the displacement part;

[0096] Z is the third axis displacement component, and the third axis displacement component is the core transformation matrix T core The Z-axis component of the displacement part;

[0097] θ4 is the fourth rotation angle.

[0098] In one embodiment, the second rotation matrix includes first data, second data, third data, fourth data, fifth data, sixth data, seventh data, eighth data, and ninth data, and the first data to the ninth data sequentially represent the second rotation matrix from the first posture mark of the first row and the first column to the ninth posture mark of the third row and the third column;

[0099] The obtaining the fifth rotation angle, the sixth rotation angle, and the seventh rotation angle based on the second rotation matrix includes:

[0100] Based on the third data, the sixth data, and the ninth data, obtaining the sixth rotation angle by a sixth rotation angle calculation formula;

[0101] Based on the third data, the sixth data, and the sixth rotation angle, obtaining the fifth rotation angle by a fifth rotation angle calculation formula;

[0102] The seventh rotation angle is obtained by a seventh rotation angle calculation formula based on the first data, the fourth data, the seventh data, the eighth data, and the sixth rotation angle.

[0103] In one embodiment, the sixth rotation angle calculation formula is:

[0104]

[0105] Wherein, θ6 is the sixth rotation angle;

[0106] r 13 is the third data; 23 is the sixth data; r 33 is the ninth data;

[0107] The fifth rotation angle calculation formula is:

[0108]

[0109] Wherein, θ5 is the fifth rotation angle;

[0110] r 13 is the third data; 23 is the sixth data; θ6 is the sixth rotation angle;

[0111] The seventh rotation angle calculation formula is:

[0112]

[0113] Wherein, θ7 is the seventh rotation angle;

[0114] r 11 is the first data; 21 is the fourth data;

[0115] r 31 is the seventh data; r 32 is the eighth data;

[0116] θ6 is the sixth rotation angle.

[0117] In a second aspect, an embodiment of the present application provides a flexible robotic arm, comprising at least three flexible bending modules arranged in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the last flexible bending module, wherein the flexible robotic arm is controlled by a method as described in any one of the contents of the first aspect.

[0118] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method as described in any one of the contents of the first aspect when executing the computer program.

[0119] In a fourth aspect, 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 as described in any one of the contents of the first aspect is implemented.

[0120] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute any of the methods described in the first aspect above.

[0121] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0122] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0123] The embodiment of the present application is applied to a flexible robotic arm, which includes at least three flexible bending modules arranged in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the flexible bending module at the end. The flexible robotic arm is divided into three virtual joints, each of which includes at least one flexible bending module. A first kinematic model is then constructed based on the kinematic parameters of the virtual joints, the first kinematic model characterizes the kinematic state of the virtual joint end of any virtual joint, the first kinematic model is then processed to obtain a second kinematic model, the second kinematic model characterizes the equivalent kinematic state of the flexible robotic arm end of the flexible robotic arm, and finally the flexible robotic arm is controlled to complete a preset task based on the analytical solution of the second kinematic model. Since the entire continuous flexible robotic arm is virtually divided into at least three virtual joints, and the kinematic model of any virtual joint is simplified and transformed, a stable and accurate inverse kinematic analytical solution of the flexible robotic arm is obtained. Compared with the prior art in which the solution of inverse kinematics is converted into a control algorithm for solving the extreme value of a certain objective function through an optimization algorithm, the complexity of the control algorithm is simplified, the computational overhead is reduced, and the response speed of the flexible robotic arm is improved, and the accuracy of the moving coordinates of the flexible robotic arm is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0124] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0125] Figure 1 It is a flow chart of a control method of a flexible robotic arm provided in one embodiment of the present application;

[0126] Figure 2 is a schematic diagram of a process of constructing a first kinematic model based on kinematic parameters of a virtual joint provided in an embodiment of the present application;

[0127] Figure 3 It is a flowchart of processing a first kinematic model to obtain a second kinematic model provided by an embodiment of the present application;

[0128] Figure 4 is a schematic diagram of a kinematic model, a simplified kinematic model, or a simplified equivalent kinematic model of any virtual joint provided in an embodiment of the present application;

[0129] Figure 5 It is a schematic diagram of a flow chart of controlling a flexible mechanical arm to complete a preset task based on an analytical solution of a second kinematic model provided in an embodiment of the present application;

[0130] Figure 6 It is a flow chart of obtaining an analytical solution of a second kinematic model based on a second robot arm end transformation matrix, a second straight-line distance and a second kinematic model provided by an embodiment of the present application;

[0131] Figure 7 The second robot arm end transformation matrix T is provided in an embodiment of the present application. end Schematic diagram of a flexible manipulator given a simplified equivalent second kinematic model;

[0132] Figure 8 It is a schematic diagram of a flow chart of obtaining an analytical solution based on a displacement component, a first rotation matrix, and a second straight-line distance provided in an embodiment of the present application;

[0133] Fig. 9 It is a schematic diagram of a flow chart of obtaining a first rotation angle, a second rotation angle, a third rotation angle, and a fourth rotation angle based on a displacement component and a second straight-line distance provided in an embodiment of the present application;

[0134] Fig.10 This is a spatial schematic diagram of solving the first rotation angle to the fourth rotation angle in the flexible robotic arm provided by an embodiment of the present application;

[0135] Fig.11 It is a schematic diagram of a flow chart of obtaining a fifth rotation angle, a sixth rotation angle, and a seventh rotation angle based on a second rotation matrix provided in an embodiment of the present application. DETAILED DESCRIPTION

[0136] In the following description, specific details such as specific system structures, technologies, etc. are provided 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 may 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 obstructing the description of the present application.

[0137] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0138] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0139] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0140] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0141] The technological development of robotic arms has greatly promoted the industrial development of modern society. Traditional robotic arms generally have 6 degrees of freedom, of which three degrees of freedom are translation in 3 orthogonal directions in three-dimensional space (such as mutually orthogonal x-axis, y-axis, and z-axis), and the other 3 degrees of freedom are rotation around three orthogonal directions (such as mutually orthogonal x-axis, y-axis, and z-axis). Since in three-dimensional space, 6 degrees of freedom can fully describe the position and posture of an object. Therefore, the end of a traditional robotic arm can reach any position in any posture within its dexterous workspace. Therefore, by generating a command trajectory of the position and posture of the end of the robotic arm and sending it to the robotic arm for execution, the robotic arm will strictly follow the given trajectory command, so that it can complete various tasks.

[0142] Since continuous flexible manipulators have many degrees of freedom, their over-redundant characteristics make it very difficult to solve inverse kinematics, and it is difficult to quickly obtain feasible joint postures through given end-position commands. Unlike traditional manipulators, which have relatively mature analytical inverse kinematics algorithms and a lot of practical experience, there is no mature and reliable industrial solution for the inverse kinematics control method of continuous flexible manipulators.

[0143] The main control methods of the continuous flexible robotic arm in the prior art are:

[0144] The first control method avoids directly solving the inverse solution of forward kinematics and chooses to perform incremental control through the generalized Jacobian matrix in its tangent space. However, this control method requires the ability to accurately control the joint speed of the continuous flexible manipulator, which is difficult in practice for pneumatically controlled continuous flexible manipulators.

[0145] The second control method is to transform the solution of inverse kinematics into solving the extreme value of a certain objective function through an optimization algorithm. The objective function is generally the deviation between the end posture command and the solved end posture.

[0146] The above-mentioned second control method has the problems of high algorithm complexity and initial value sensitivity due to the non-convex optimization algorithm for inverse kinematics solution. Among them, since the solution of the high-degree-of-freedom inverse kinematics optimization algorithm is very complex, it requires a lot of solution resources and time. Generally, it takes tens or even hundreds of milliseconds on a personal computer to give a result. It is not only difficult to meet the requirements of real-time control frequency, but also has very high hardware requirements and is difficult to adapt to embedded devices, resulting in a slow response speed of the flexible robotic arm. Moreover, the solution of this inverse kinematics optimization algorithm is very dependent on the given seed initial value, and is very sensitive to the seed initial value. It is easy to fall into the local optimum, resulting in a solution result with too large an error or no solution, which causes the flexible robotic arm to move inaccurately in space, affecting the completion of the preset task.

[0147] The embodiment of the present application is applied to a flexible robotic arm, which includes at least three flexible bending modules arranged in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the flexible bending module at the end section. The flexible robotic arm is divided into three virtual joints, each of which includes at least one flexible bending module. A first kinematic model is then constructed based on the kinematic parameters of the virtual joints. The first kinematic model characterizes the kinematic state of the virtual joint end of any virtual joint. The first kinematic model is then processed to obtain a second kinematic model. The second kinematic model characterizes the equivalent kinematic state of the flexible robotic arm end of the flexible robotic arm. kinematic state, and finally, based on the analytical solution of the second kinematic model, the flexible robotic arm is controlled to complete the preset task. Since the entire continuous flexible robotic arm is virtually divided into at least 3 virtual joints, and then the kinematic model of any virtual joint is simplified and transformed, a stable and accurate inverse kinematic analytical solution of the flexible robotic arm is obtained. Compared with the prior art that converts the solution of inverse kinematics into a control algorithm that solves the extreme value of a certain objective function through an optimization algorithm, the complexity of the control algorithm is simplified, the computational overhead is reduced, and the response speed of the flexible robotic arm is improved. The accuracy of the moving coordinates of the flexible robotic arm is also improved, and the preset tasks can be completed efficiently and accurately.

[0148] The technical solution of the present application is described below through specific embodiments.

[0149] First, as Figure 1 As shown, this embodiment provides a control method for a flexible robotic arm, which is applied to a flexible robotic arm. The control method includes:

[0150] S100, constructing a first kinematic model based on kinematic parameters of the virtual joint.

[0151] In one embodiment, the flexible robotic arm includes at least three flexible bending modules arranged in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the flexible bending module at the end. Each flexible bending module has at least two degrees of freedom. After adding the flexible rotating module, the flexible robotic arm of this embodiment theoretically has at least seven degrees of freedom. In this embodiment, the flexible robotic arm is virtually divided into three virtual joints, each of which is a virtual joint with a continuous radius bend, and each virtual joint includes one or more flexible bending modules. A first kinematic model is constructed for any virtual joint, and the first kinematic model characterizes the kinematic state of the virtual joint end of any virtual joint, so as to facilitate characterizing the kinematic state of the flexible robotic arm according to the first kinematic models of multiple virtual joints, which is conducive to reducing the complexity of solving the kinematic state of the flexible robotic arm.

[0152] It should be noted that the flexible bending module or the flexible rotating module of the embodiment of the present application is composed of at least one fluid driver, that is, the flexible robotic arm is composed of multiple fluid drivers. The fluid driver includes a gas driver (such as air) or a liquid driver (such as water or liquid). The specific driver type is set according to the needs of the flexible robotic arm, and the embodiment of the present application does not limit it. The flexible robotic arm in this embodiment is only described by taking gas driver as an example.

[0153] In one embodiment, Figure 2 As shown, a first kinematic model is constructed based on the kinematic parameters of the virtual joint, including:

[0154] S110, obtaining kinematic parameters of the virtual joint.

[0155] In one embodiment, the kinematic parameters include a first z-axis rotation transformation matrix, a first y-axis rotation transformation matrix, a first z-axis translation transformation matrix, a second z-axis rotation transformation matrix, a direction angle, a bending angle, a first straight-line distance, and a second straight-line distance.

[0156] S120, constructing a calculation formula of a first kinematic model based on the kinematic parameters.

[0157] In one embodiment, a first kinematic model representing the kinematic state of a virtual joint end of any virtual joint is constructed according to the kinematic parameters of any virtual joint.

[0158] In one embodiment, the calculation formula of the first kinematic model is as follows:

[0159]

[0160] Among them, T v, is the first joint end transformation matrix of any virtual joint, and the first joint end transformation matrix is ​​the transformation matrix of the first kinematic model of the coordinate system O2X2Y2Z2 fixed at the virtual joint end of the virtual joint in the coordinate system O1X1Y1Z1 at its starting end.

[0161] T z (β) is the first z-axis rotation transformation matrix, which is the transformation matrix for rotating the virtual joint end of the virtual joint around the z-axis of the current coordinate system by an angle of β.

[0162] is the first y-axis rotation transformation matrix. The first y-axis rotation transformation matrix is ​​the rotation of the virtual joint end of the virtual joint around the y-axis of the current coordinate system The transformation matrix for the angle.

[0163] T l (L r ) is the first z-axis translation transformation matrix, and the first z-axis translation transformation matrix is ​​the transformation matrix of the virtual joint end of the virtual joint translated Lr along the current z-axis.

[0164] T z (-β) is the second z-axis rotation transformation matrix, and the second z-axis rotation transformation matrix is ​​the transformation matrix of the virtual joint end of the virtual joint rotating around the z-axis of the current coordinate system by an angle of -β.

[0165] β is the direction angle, and the direction angle is the angle between the projection of the end center of the virtual joint end of the virtual joint on the XY plane in the starting end coordinate system and the X axis.

[0166] α is the bending angle, and the bending angle is the angle between the plane where the virtual joint end of the virtual joint is located and the plane where the virtual joint start end is located.

[0167] L r is the first straight-line distance, which is the straight-line distance from the end center O2 of the virtual joint end of the virtual joint to the starting end center O1.

[0168] S200: The first kinematic model is transformed to obtain a second kinematic model.

[0169] In one embodiment, the first kinematic model is processed to obtain the second kinematic model, that is, the first kinematic model of multiple virtual joints is synthesized and transformed into the second kinematic model of the entire flexible robotic arm, wherein the second kinematic model represents the equivalent kinematic state of the flexible robotic arm end of the flexible robotic arm, thereby obtaining the kinematic state of the entire flexible robotic arm through the kinematic state of multiple virtual joints, and there is no need to build a high-complexity model for the entire flexible robotic arm, thereby reducing the complexity of the model representing the entire flexible robotic arm, so as to facilitate efficient and fast calculations and improve the response speed of the flexible robotic arm. It should be noted that the equivalent kinematic state represented by the second kinematic model only represents the approximate equivalent kinematic state of the flexible robotic arm end of the flexible robotic arm, and is not completely equivalent.

[0170] In one embodiment, Figure 3 As shown, the first kinematic model is processed to obtain the second kinematic model, including:

[0171] S210: transform the first kinematic model to obtain a third kinematic model.

[0172] In one embodiment, a flexible bending module is set at the midpoint of each virtual joint, and the first kinematic model is used to define a flexible bending module. Then you can put 2 Combine the Y angle obtained by rotating around the y axis, and then convert T in the first kinematic model z (β) is transformed into a rotation angle Z around the z axis, and T in the first kinematic model is z (-β) is transformed into a -Z angle rotation around the z axis, and then half of the straight-line distance from the end center O2 to the starting end center O1 of the virtual joint in the straight state of α=0 is set as the second straight-line distance, so L can be obtained r =2L, thereby transforming the first kinematic model to obtain a third kinematic model, wherein the third kinematic model represents the simplified kinematic state of the virtual joint end of any virtual joint.

[0173] In one embodiment, the calculation formula of the third kinematic model is as follows:

[0174] T vs =T l (L)*T z (Z)*T y (Y)*T z (-Z)*T l (L)

[0175] Among them, T vsIt is the second joint end transformation matrix of any virtual joint, and the second joint end transformation matrix is ​​the transformation matrix of the third kinematic model of the coordinate system O2X2Y2Z2 fixed at the virtual joint end of the virtual joint in the starting end coordinate system O1X1Y1Z1.

[0176] Tl(L) is the fifth z-axis translation transformation matrix, and the fifth z-axis translation transformation matrix is ​​the transformation matrix of the virtual joint end of the virtual joint translated by L along the current z-axis.

[0177] T z (Z) is the seventh z-axis rotation transformation matrix. The seventh z-axis rotation transformation matrix is ​​the transformation matrix of the virtual joint end of the virtual joint rotating around the z-axis of the current coordinate system by Z angle.

[0178] T y (Y) is the fifth y-axis rotation transformation matrix, and the fifth Y-axis rotation transformation matrix is ​​the transformation matrix of the virtual joint end of the virtual joint rotating around the y-axis of the current coordinate system by an angle Y.

[0179] T z (-Z) is the eighth Z-axis rotation transformation matrix, and the eighth Z-axis rotation transformation matrix is ​​the transformation matrix of the virtual joint end of the virtual joint rotating around the z-axis of the current coordinate system by an angle of -Z.

[0180] L is the second straight-line distance, which is half of the straight-line distance from the end center O2 to the start end center O1 of the virtual joint in the straight state of α=0.

[0181] S220, obtaining a fourth kinematic model by synthesizing the plurality of third kinematic models, wherein the fourth kinematic model represents a simplified kinematic state of the flexible robotic arm.

[0182] In one embodiment, a fourth kinematic model is obtained by synthesizing multiple third kinematic models, and the fourth kinematic model represents a simplified kinematic state of the flexible robotic arm. Thus, the kinematic model of the entire flexible robotic arm is synthesized through the kinematic models of multiple single virtual joints, thereby reducing the complexity of the kinematic model of the entire flexible robotic arm.

[0183] In one embodiment, the calculation formula of the fourth kinematic model is as follows:

[0184] T vs_end =T vs1 *T vs2 *T vs3 *T z4 (Z4)

[0185] Among them, T vs_end is the first robot arm end transformation matrix, and the first robot arm end transformation matrix is ​​the transformation matrix of the end center of the flexible robot arm.

[0186] T vsi is the transformation matrix of the third kinematic model of the i-th virtual joint, i≤3, and i is a positive integer. In the present embodiment, i=(1, 2, 3).

[0187] T z4 (Z4) is the ninth z-axis rotation transformation matrix, which is the transformation matrix for rotating the end of the flexible robotic arm around the current z-axis by an angle of Z4.

[0188] It should be noted that if the number of virtual joints is greater than 3, the calculation formula of the fourth kinematic model will be synthesized by the transformation matrix of the third kinematic model greater than 3. The specific number of virtual joints is set according to the needs of the flexible manipulator.

[0189] S230, performing equivalent transformation on the fourth kinematic model to obtain a second kinematic model.

[0190] In one embodiment, if there are three virtual joints, the three third kinematic models are brought into the fourth kinematic model, the degrees of freedom of rotation around the z-axis of adjacent virtual joints are merged into one degree of freedom, and the center distance of the starting endpoints of each virtual joint is set to L r =2L, the transformation matrix T of the first virtual joint rotating around the z axis at an angle of Z z (Z) corresponds to the transformation T z (θ1), the transformation matrix T that rotates around the y-axis by an angle Y y (Y) corresponds to the transformation to T y (θ2), the straight-line distance between the two virtual joint foci is 2L, so the transformation matrix T for translation L along the current z-axis is l (L) is transformed into T l (2L), and similar transformations are performed in sequence to obtain T v (θ3), T y (θ4), T z (θ5), T l (2L), T y (θ6), the flexible rotation module at the end of the flexible manipulator has only one degree of freedom because it does not have a virtual joint focus. Therefore, the transformation matrix T of the flexible manipulator end rotating around the current z-axis by an angle of Z4 is z4 (Z4) corresponds to the transformation T z (θ7), and the distance that the end of the flexible manipulator translates along the z axis is L2, so the corresponding transformation is T l (L2), so the second kinematic model is obtained after equivalent transformation of the fourth kinematic model, wherein the second kinematic model represents the equivalent kinematic state of the flexible manipulator end of the flexible manipulator.

[0191] like Figure 4 As shown, Figure 4 The left picture is the kinematic model of any virtual joint. Figure 4 The middle figure is a simplified kinematic model of any virtual joint. Figure 4 The right picture is the simplified equivalent kinematic model of any virtual joint.

[0192] In one embodiment, the calculation formula for the second kinematic model of the simplified equivalent flexible robotic arm is as follows:

[0193] T vse_end =T l (L)*T z (θ1)*T y (θ2)*T l (2L)*T z (θ3)*T y (θ4)*T l (2L)*T z (θ5)

[0194] *T y (θ6)*T z (θ7)*T l (L2)

[0195] Among them, T vse_end is the first robot arm end transformation matrix, and the first robot arm end transformation matrix is ​​the transformation matrix of the end center of the flexible robot arm.

[0196] T l (L) is the second z-axis translation transformation matrix, which is the transformation matrix of the flexible robotic arm translated by L along the current z-axis.

[0197] T l (2L) is the third z-axis translation transformation matrix, which is the transformation matrix of the flexible robotic arm translated 2L along the current z-axis.

[0198] T z (θ1) is the third z-axis rotation transformation matrix, which is the transformation matrix of the flexible robotic arm rotating around the z-axis of the current coordinate system by an angle of θ1.

[0199] T y (θ2) is the second y-axis rotation transformation matrix, which is the transformation matrix of the flexible robotic arm rotating around the y-axis of the current coordinate system by an angle of θ2.

[0200] T z (θ3) is the fourth z-axis rotation transformation matrix, which is the transformation matrix of the flexible robotic arm rotating around the z-axis of the current coordinate system by an angle of θ3.

[0201] T y (θ4) is the third y-axis rotation transformation matrix, which is the transformation matrix of the flexible robotic arm rotating around the y-axis of the current coordinate system by an angle of θ4.

[0202] T z (θ5) is the fifth z-axis rotation transformation matrix, which is the transformation matrix for the flexible robotic arm to rotate around the z-axis of the current coordinate system by an angle of θ5.

[0203] T y (θ6) is the fourth y-axis rotation transformation matrix, which is the transformation matrix for rotating the flexible robotic arm around the y-axis of the current coordinate system by an angle of θ6.

[0204] T z (θ7) is the sixth z-axis rotation transformation matrix, which is the transformation matrix for rotating the flexible robotic arm around the z-axis of the current coordinate system by an angle of θ7.

[0205] T l (L2) is the fourth z-axis translation transformation matrix, and the fourth z-axis translation transformation matrix is ​​the transformation matrix of the flexible robotic arm translated by L2 along the current z-axis.

[0206] S300, controlling the flexible robotic arm to complete a preset task based on the analytical solution of the second kinematic model.

[0207] In one embodiment, the flexible robotic arm is controlled to complete a preset task through the inverse kinematics analytical solution of the second kinematic model. Since a stable and accurate inverse kinematics analytical solution can be obtained, the flexible robotic arm can be quickly and accurately controlled to complete the preset task.

[0208] In one embodiment, Figure 5 As shown, the analytical solution based on the second kinematic model controls the flexible manipulator to complete the preset tasks, including:

[0209] S310, obtaining a second robot arm end transformation matrix, where the second robot arm end transformation matrix is ​​a preset end transformation matrix of the flexible robot arm.

[0210] The preset end transformation matrix based on the requirement of the preset task of the flexible robot arm is set as the second robot arm end transformation matrix, and a value is assigned to the second robot arm end transformation matrix.

[0211] S320, obtaining an analytical solution of the second kinematic model based on the second robot arm end transformation matrix, the second straight-line distance and the second kinematic model.

[0212] In one embodiment, the result of setting the calculation formula of the second kinematic model is the second robot arm end transformation matrix, that is, the first robot arm end transformation matrix is ​​set equal to the second robot arm end transformation matrix, and at the same time, based on the second straight-line distance, the inverse kinematics analytical solution of the second kinematic model is obtained, which reduces the calculation complexity, improves the operation efficiency, and obtains a stable and accurate inverse kinematics analytical solution, so that the flexible robot arm can quickly respond and accurately reach the designated space and complete the preset task.

[0213] In one embodiment, Figure 6 As shown, based on the second manipulator end transformation matrix, the second straight-line distance and the second kinematic model, an analytical solution of the second kinematic model is obtained, including:

[0214] S321, obtaining a core transformation matrix based on the second robot arm end transformation matrix and the second kinematic model.

[0215] In one embodiment, Figure 7 As shown, Figure 7 To transform the second robot end transformation matrix T end Schematic diagram of a flexible manipulator with a simplified equivalent second kinematic model, where T base is the fixed coordinate system where the starting point is located, P A , P B , P C Corresponding to 3 virtual joints, the terminal virtual joints of the 3 virtual joints are provided with flexible rotation modules and form the end of the flexible robotic arm. T1 to T7 correspond to T z (θ1) to T z (θ7), set the result of the calculation formula of the second kinematic model as the first robot end transformation matrix, and set the first robot end transformation matrix equal to the second robot end transformation matrix, that is, set T vse_end =T end , after transposing the calculation formula of the second kinematic model, the following transposed calculation formula is obtained:

[0216] T z (θ1)*Y y (θ2)*T l (L s )*T z (θ3)*Y y (θ4)*T l (L s )*T z (θ5)*T y (θ6)*T z (θ7)

[0217] =T l -1 (L)*T end*T l -1 (L2)

[0218] in,

[0219] T end is the transformation matrix of the second robot end;

[0220] T l -1 (L) is the second z-axis translation transformation matrix T l The inverse matrix of (L);

[0221] T l -1 (L2) is the fourth z-axis translation transformation matrix T l The inverse matrix of (L2).

[0222] In one embodiment, the core transformation matrix is ​​set as the right part of the transposition calculation formula to obtain the calculation formula of the core transformation matrix. The calculation formula of the core transformation matrix is:

[0223] T core =T l -1 (L)*T end *T l -1 (L2)

[0224] Among them, T core is the core transformation matrix;

[0225] T end is the transformation matrix of the second robot end;

[0226] T l -1 (L) is the second z-axis translation transformation matrix T l The inverse matrix of (L);

[0227] T l -1 (L2) is the fourth z-axis translation transformation matrix T l The inverse matrix of (L2).

[0228] S322, obtaining a first rotation matrix of the core transformation matrix and a displacement component of the core transformation matrix based on the core transformation matrix.

[0229] In one embodiment, a first rotation matrix R of the core transformation matrix is ​​obtained based on the core transformation matrix: core , and the displacement components [X; Y; Z] of the core transformation matrix.

[0230] S323, obtaining an analytical solution based on the displacement component, the first rotation matrix, and the second straight-line distance.

[0231] In one embodiment, based on the displacement components [X; Y; Z], the first rotation matrix R core , the second straight-line distance L, and the inverse kinematic analytical solution of the second kinematic model are obtained, thereby reducing the computational complexity of obtaining the analytical solution.

[0232] In one embodiment, the analytical solution includes a first rotation angle, a second rotation angle, a third rotation angle, a fourth rotation angle, a fifth rotation angle, a sixth rotation angle, and a seventh rotation angle, and the first to seventh rotation angles are distributed sequentially from the starting end to the end of the flexible robotic arm.

[0233] In one embodiment, Figure 8 As shown, based on the displacement component, the first rotation matrix, and the second straight-line distance, an analytical solution is obtained, including:

[0234] S3231, based on the displacement component and the second straight-line distance, obtain a first rotation angle, a second rotation angle, a third rotation angle, and a fourth rotation angle.

[0235] In one embodiment, the displacement components include a first axis displacement component, a second axis displacement component, and a third axis displacement component.

[0236] In one embodiment, Fig. 9 As shown, based on the displacement component and the second straight-line distance, the first rotation angle, the second rotation angle, the third rotation angle, and the fourth rotation angle are obtained, including:

[0237] S32311, set the third rotation angle to zero.

[0238] It should be noted that, by simplifying and equivalently obtaining the second kinematic model of the flexible manipulator, the entire kinematic model of the flexible manipulator has been simplified to the 7-axis configuration of the traditional manipulator, and the last three axes are arranged in a ZYZ configuration, so that the second kinematic model has an inverse kinematics analytical solution. θ 3=0, so that the second kinematic model of the flexible manipulator is simplified to a 6-axis configuration, so as to obtain a definite inverse kinematics analytical solution.

[0239] S32312, based on the first axis displacement component and the second axis displacement component, obtain the first rotation angle through the first rotation angle calculation formula.

[0240] In one embodiment, the first rotation angle calculation formula is:

[0241] θ1=atan2(Y,X)

[0242] Wherein, θ1 is the first rotation angle.

[0243] X is the first axis displacement component, and the first axis displacement component is the core transformation matrix T core The X-axis component of the displacement portion.

[0244] Y is the second axis displacement component, and the second axis displacement component is the core transformation matrix T core The Y-axis component of the displacement part.

[0245] S32313, based on the first axis displacement component, the second axis displacement component, the third axis displacement component and the second straight-line distance, obtain a fourth rotation angle using a fourth rotation angle calculation formula.

[0246] In one embodiment, the fourth rotation angle calculation formula is:

[0247]

[0248] Wherein, θ4 is the fourth rotation angle.

[0249] X is the first axis displacement component, and the first axis displacement component is the core transformation matrix T core The X-axis component of the displacement portion.

[0250] Y is the second axis displacement component, and the second axis displacement component is the core transformation matrix T core The Y-axis component of the displacement part.

[0251] Z is the third axis displacement component, and the second axis displacement component is the core transformation matrix T core The Z-axis component of the displacement part.

[0252] S32314, based on the first axis displacement component, the second axis displacement component, the third axis displacement component and the fourth rotation angle, obtain the second rotation angle by using a second rotation angle calculation formula.

[0253] In one embodiment, the second rotation angle calculation formula is:

[0254]

[0255] Wherein, θ2 is the second rotation angle;

[0256] X is the first axis displacement component, and the first axis displacement component is the core transformation matrix T core The X-axis component of the displacement part;

[0257] Y is the second axis displacement component, and the second axis displacement component is the core transformation matrix T core The Y-axis component of the displacement part;

[0258] Z is the third axis displacement component, and the third axis displacement component is the core transformation matrix Tcore The Z-axis component of the displacement part;

[0259] θ4 is the fourth rotation angle.

[0260] The spatial schematic diagram of the flexible manipulator for calculating the first rotation angle to the fourth rotation angle is as follows: Fig.10 shown.

[0261] S3232, based on the first rotation matrix, the first rotation angle, the third rotation angle, and the fourth rotation angle, obtain a second rotation matrix, where the second rotation matrix is ​​a comprehensive posture rotation matrix synthesized by preset joint rotation angles.

[0262] In one embodiment, the inverse matrix of the rotation matrix of the first rotation angle is obtained based on the first rotation angle. Obtain the inverse matrix of the rotation matrix of the second rotation angle based on the second rotation angle Obtain the inverse matrix of the rotation matrix of the fourth rotation angle based on the fourth rotation angle And the first rotation matrix R core The calculation formula of the second rotation matrix is ​​obtained. The calculation formula of the second rotation matrix is:

[0263]

[0264] Among them, R 567 is the second rotation matrix.

[0265] is the inverse matrix of the rotation matrix of the first rotation angle.

[0266] is the inverse matrix of the rotation matrix of the second rotation angle.

[0267] is the inverse matrix of the rotation matrix of the fourth rotation angle.

[0268] S3233, obtaining a fifth rotation angle, a sixth rotation angle, and a seventh rotation angle based on the second rotation matrix.

[0269] In one embodiment, the second rotation matrix includes first data, second data, third data, fourth data, fifth data, sixth data, seventh data, eighth data, and ninth data, and the first data to the ninth data sequentially represent the second rotation matrix from the first attitude mark of the first row and the first column to the ninth attitude mark of the third row and the third column. The second rotation matrix after the assignment is as follows:

[0270]

[0271] In one embodiment, Fig.11As shown, obtaining the fifth rotation angle, the sixth rotation angle, and the seventh rotation angle based on the second rotation matrix includes:

[0272] S32331, based on the third data, the sixth data, and the ninth data, obtain the sixth rotation angle by using the sixth rotation angle calculation formula.

[0273] In one embodiment, the sixth rotation angle calculation formula is:

[0274]

[0275] Wherein, θ6 is the sixth rotation angle; r 13 is the third data; r 23 is the sixth data; r 33 It is the ninth data.

[0276] S32332, based on the third data, the sixth data, and the sixth rotation angle, obtain the fifth rotation angle by using the fifth rotation angle calculation formula.

[0277] In one embodiment, the fifth rotation angle calculation formula is:

[0278]

[0279] Wherein, θ5 is the fifth rotation angle; r 13 is the third data; r 23 is the sixth data; θ6 is the sixth rotation angle.

[0280] S32333, based on the first data, the fourth data, the seventh data, the eighth data, and the sixth rotation angle, obtain the seventh rotation angle by using the seventh rotation angle calculation formula.

[0281] In one embodiment, the seventh rotation angle calculation formula is:

[0282]

[0283] Wherein, θ7 is the seventh rotation angle; r 11 is the first data; r 21 is the fourth data; r 31 is the seventh data; r 32 is the eighth data; θ6 is the sixth rotation angle.

[0284] S330, based on the equivalent transformation relationship between the kinematic models, convert the analytical solution into the virtual joint coordinates of the flexible robotic arm.

[0285] In one embodiment, the angle parameters of the second kinematic model are converted into the angle parameters of the third kinematic model through the first equivalent transformation calculation formula, and then the angle parameters of the third kinematic model are converted into the parameters of the first kinematic model of any virtual joint through the second equivalent transformation calculation formula, so as to obtain the coordinates of each virtual joint of the flexible robotic arm, that is, the angle of the direction angle between the projection of the end center of the virtual joint end of each virtual joint in the XY plane in the starting end coordinate system and the angle of the X-axis and the angle of the bending angle between the plane where the virtual joint end of each virtual joint is located and the plane where the virtual joint starting end is located.

[0286] In one embodiment, the first equivalent transformation calculation formula is:

[0287] [θ1, θ2, θ3, θ4, θ5, θ6, θ7]=[z1, y1, z2-z1, y2, z3-z2, y3, z4-z3]

[0288] Among them, θ1 is the first rotation angle of the flexible robotic arm around the z-axis of the current coordinate system; θ2 is the second rotation angle of the flexible robotic arm around the y-axis of the current coordinate system; θ3 is the third rotation angle of the flexible robotic arm around the z-axis of the current coordinate system; θ4 is the fourth rotation angle of the flexible robotic arm around the y-axis of the current coordinate system; θ5 is the fifth rotation angle of the flexible robotic arm around the z-axis of the current coordinate system; θ6 is the sixth rotation angle of the flexible robotic arm around the y-axis of the current coordinate system; θ7 is the seventh rotation angle of the flexible robotic arm around the z-axis of the current coordinate system.

[0289] z1 is the rotation angle of the first virtual joint around the z-axis of the current coordinate system; y1 is the rotation angle of the first virtual joint around the y-axis of the current coordinate system; z2 is the rotation angle of the second virtual joint around the z-axis of the current coordinate system; y2 is the rotation angle of the second virtual joint around the y-axis of the current coordinate system; z3 is the rotation angle of the third virtual joint around the z-axis of the current coordinate system; y3 is the rotation angle of the third virtual joint around the y-axis of the current coordinate system; z4 is the rotation angle of the end of the flexible manipulator around the z-axis of the current coordinate system

[0290] In one embodiment, the second equivalent transformation calculation formula is:

[0291] [z1, y1, z2, y2, z3, y3, z4] = [β1, α1, β2, α2, β3, α3, β4]

[0292] Among them, β1 is the angle of the direction angle of the projection of the end center of the virtual joint end of the first virtual joint on the plane in the starting end coordinate system; α1 is the angle of the bending angle between the plane where the virtual joint end of the first virtual joint is located and the plane where the starting end of the virtual joint is located; β2 is the angle of the direction angle of the projection of the end center of the virtual joint end of the second virtual joint on the plane in the starting end coordinate system; α2 is the angle of the bending angle between the plane where the virtual joint end of the second virtual joint is located and the plane where the starting end of the virtual joint is located; β3 is the angle of the direction angle of the projection of the end center of the virtual joint end of the third virtual joint on the plane in the starting end coordinate system; α3 is the angle of the bending angle between the plane where the virtual joint end of the third virtual joint is located and the plane where the starting end of the virtual joint is located; β4 is the angle of the direction angle of the projection of the end center of the flexible robotic arm on the plane in the starting end coordinate system.

[0293] S340, controlling the flexible robotic arm to complete a preset task based on the virtual joint coordinates.

[0294] In one embodiment, the flexible robotic arm can be efficiently and accurately controlled to complete various preset tasks based on the virtual joint coordinates.

[0295] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0296] The present embodiment is applied to a flexible robotic arm, which includes at least three flexible bending modules arranged in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the flexible bending module at the end section. The flexible robotic arm is divided into three virtual joints, each of which includes at least one flexible bending module. A first kinematic model is then constructed based on the kinematic parameters of the virtual joints. The first kinematic model characterizes the kinematic state of the virtual joint end of any virtual joint. The first kinematic model is then processed to obtain a second kinematic model. The second kinematic model characterizes the equivalent kinematic state of the flexible robotic arm end of the flexible robotic arm. state, and finally, based on the analytical solution of the second kinematic model, the flexible robotic arm is controlled to complete the preset task. Since the entire continuous flexible robotic arm is virtually segmented into at least 3 virtual joints, and then the kinematic model of any virtual joint is simplified and transformed, a stable and accurate inverse kinematic analytical solution of the flexible robotic arm is obtained. Compared with the prior art that converts the solution of inverse kinematics into a control algorithm that solves the extreme value of a certain objective function through an optimization algorithm, the complexity of the control algorithm is simplified, the computational overhead is reduced, and the response speed of the flexible robotic arm is improved. The accuracy of the moving coordinates of the flexible robotic arm is also improved, and the preset task can be completed efficiently and accurately.

[0297] This embodiment also provides a control device for a flexible robotic arm, the flexible robotic arm comprising at least three flexible bending modules connected in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the flexible bending module at the end, the flexible robotic arm is divided into three virtual joints, each virtual joint comprises one or more flexible bending modules, and the control device comprises:

[0298] A construction module, used to construct a first kinematic model based on kinematic parameters of the virtual joint, wherein the first kinematic model represents a kinematic state of a virtual joint end of any virtual joint;

[0299] An acquisition module, used for processing the first kinematic model to obtain a second kinematic model, wherein the second kinematic model represents an equivalent kinematic state of a flexible manipulator end of the flexible manipulator;

[0300] The control module is used to control the flexible robotic arm to complete a preset task based on the analytical solution of the second kinematic model.

[0301] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0302] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0303] In a second aspect, an embodiment of the present application provides a flexible robotic arm, comprising at least three flexible bending modules arranged in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the last flexible bending module, wherein the flexible robotic arm is controlled by a method as described in any one of the contents of the first aspect.

[0304] In a third aspect, this embodiment provides an electronic device, comprising 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 as described in any one of the contents of the first aspect is implemented.

[0305] In a fourth aspect, this embodiment further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of the contents of the first aspect is implemented.

[0306] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute any of the methods for accessing a shared memory database of the first aspect.

[0307] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0308] A control method for a flexible robotic arm provided in an embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.

[0309] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by a processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.

[0310] The computer-readable medium may include at least: any entity or device capable of carrying computer program codes to a camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable medium cannot be an electric carrier signal or a telecommunication signal.

[0311] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0312] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0313] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0315] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A control method for a flexible robotic arm, applied to a flexible robotic arm, wherein the flexible robotic arm comprises at least three flexible bending modules arranged in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the flexible bending module at the end, characterized in that: All flexible bending modules are divided into three virtual joints, each of the virtual joints includes at least one flexible bending module, each flexible bending module has two degrees of freedom, and the flexible manipulator has seven degrees of freedom. The control method includes: Constructing a first kinematic model based on the kinematic parameters of the virtual joint, wherein the first kinematic model represents the kinematic state of any end of the virtual joint; Processing the first kinematic model to obtain a second kinematic model, wherein the second kinematic model represents an equivalent kinematic state of the end of the flexible manipulator; Controlling the flexible robotic arm to complete a preset task based on the analytical solution of the second kinematic model; The step of processing the first kinematic model to obtain the second kinematic model includes: Performing transformation based on the first kinematic model to obtain a third kinematic model, wherein the third kinematic model represents a simplified kinematic state of the virtual joint end of any virtual joint; A fourth kinematic model is obtained by synthesizing the plurality of third kinematic models, wherein the fourth kinematic model represents a simplified kinematic state of the flexible manipulator; An equivalent transformation is performed based on the fourth kinematic model to obtain a second kinematic model.

2. The control method according to claim 1, characterized in that: The calculation formula of the first kinematic model is as follows: in, is the first joint end transformation matrix of any virtual joint, and the first joint end transformation matrix is ​​the coordinate system of the virtual joint end fixed at the virtual joint At its starting point coordinate system A transformation matrix of the first kinematic model; is the first z-axis rotation transformation matrix, which is the rotation matrix of the virtual joint end of the virtual joint around the z-axis of the current coordinate system The transformation matrix of the angle; is the first y-axis rotation transformation matrix, which is the rotation matrix of the virtual joint end of the virtual joint around the y-axis of the current coordinate system The transformation matrix of the angle; is a first z-axis translation transformation matrix, wherein the first z-axis translation transformation matrix is ​​a translation matrix of the virtual joint end of the virtual joint along the current z-axis The transformation matrix of is the second z-axis rotation transformation matrix, which is the rotation matrix of the virtual joint end of the virtual joint around the z-axis of the current coordinate system The transformation matrix of the angle; is a direction angle, wherein the direction angle is the angle between the projection of the end center of the virtual joint end of the virtual joint on the XY plane in the starting end coordinate system and the X axis; is a bending angle, which is the angle between the plane where the virtual joint end of the virtual joint is located and the plane where the virtual joint start end is located; is the first straight line distance, the first straight line distance is the end center of the virtual joint end of the virtual joint To the center of the starting point The straight-line distance.

3. The control method according to claim 1, characterized in that: The calculation formula of the second kinematic model is as follows: in, is a first robot arm end transformation matrix, wherein the first robot arm end transformation matrix is ​​a transformation matrix of the end center of the flexible robot arm; is the second z-axis translation transformation matrix, which is the translation transformation matrix of the flexible manipulator along the current z-axis. The transformation matrix of is the third z-axis translation transformation matrix, and the third z-axis translation transformation matrix is ​​the translation transformation matrix of the flexible manipulator along the current z-axis 2 The transformation matrix of is the third z-axis rotation transformation matrix, and the third z-axis rotation transformation matrix is ​​the rotation matrix of the flexible manipulator around the z-axis of the current coordinate system The transformation matrix of the angle; is the second y-axis rotation transformation matrix, which is the rotation matrix of the flexible manipulator around the y-axis of the current coordinate system. The transformation matrix of the angle; is the fourth z-axis rotation transformation matrix, and the fourth z-axis rotation transformation matrix is ​​the rotation matrix of the flexible manipulator around the z-axis of the current coordinate system The transformation matrix of the angle; is the third y-axis rotation transformation matrix, and the third y-axis rotation transformation matrix is ​​the rotation matrix of the flexible manipulator around the y-axis of the current coordinate system The transformation matrix of the angle; is the fifth z-axis rotation transformation matrix, and the fifth z-axis rotation transformation matrix is ​​the rotation matrix of the flexible manipulator around the z-axis of the current coordinate system The transformation matrix of the angle; is the fourth y-axis rotation transformation matrix, and the fourth y-axis rotation transformation matrix is ​​the rotation matrix of the flexible manipulator around the y-axis of the current coordinate system The transformation matrix of the angle; is the sixth z-axis rotation transformation matrix, and the sixth z-axis rotation transformation matrix is ​​the rotation matrix of the flexible manipulator around the z-axis of the current coordinate system The transformation matrix of the angle; is the fourth z-axis translation transformation matrix, and the fourth z-axis translation transformation matrix is ​​the translation transformation matrix of the flexible manipulator along the current z-axis The transformation matrix of .

4. The control method according to claim 1, characterized in that: The calculation formula of the third kinematic model is as follows: in, is the second joint end transformation matrix of any virtual joint, and the second joint end transformation matrix is ​​the coordinate system of the virtual joint end fixed to the virtual joint At its starting point coordinate system The transformation matrix of the third kinematic model in ; is the fifth Z-axis translation transformation matrix, and the fifth Z-axis translation transformation matrix is ​​the translation of the virtual joint end of the virtual joint along the current Z axis The transformation matrix of is the seventh z-axis rotation transformation matrix, and the seventh z-axis rotation transformation matrix is ​​the rotation of the virtual joint end of the virtual joint around the z-axis of the current coordinate system The transformation matrix of the angle; is the fifth Y-axis rotation transformation matrix, and the fifth Y-axis rotation transformation matrix is ​​the rotation of the virtual joint end of the virtual joint around the y-axis of the current coordinate system The transformation matrix of the angle; is the eighth Z-axis rotation transformation matrix, and the eighth Z-axis rotation transformation matrix is ​​the rotation of the virtual joint end of the virtual joint around the current coordinate system z-axis The transformation matrix of the angle; is the second straight line distance, and the second straight line distance is the distance between the virtual joint and The end center of the straight state To the center of the starting point Half the straight-line distance.

5. The control method according to claim 1, characterized in that: The calculation formula of the fourth kinematic model is as follows: in, is the transformation matrix of the first robot end; is the transformation matrix of the third kinematic model of the i-th virtual joint, i≦3, and i is a positive integer; is the ninth z-axis rotation transformation matrix, and the ninth z-axis rotation transformation matrix is ​​the rotation matrix of the end of the flexible manipulator around the current z-axis The transformation matrix for the angle.

6. The control method according to claim 1, characterized in that: The step of constructing a first kinematic model based on the kinematic parameters of the virtual joint comprises: Acquire the kinematic parameters of the virtual joint, wherein the kinematic parameters include a first z-axis rotation transformation matrix, a first y-axis rotation transformation matrix, a first z-axis translation transformation matrix, a second z-axis rotation transformation matrix, a direction angle, a bending angle, a first straight-line distance, and a second straight-line distance; A calculation formula of a first kinematic model is constructed based on the kinematic parameters.

7. The control method according to claim 6, characterized in that: The method of controlling the flexible robotic arm to complete a preset task based on the analytical solution of the second kinematic model includes: Acquire a second robot arm end transformation matrix, where the second robot arm end transformation matrix is ​​a preset end transformation matrix of the flexible robot arm end of the flexible robot arm; Based on the second robot arm end transformation matrix, the second straight-line distance and the second kinematic model, an analytical solution of the second kinematic model is obtained, wherein the analytical solution is an inverse kinematics analytical solution; Based on the equivalent transformation relationship between the kinematic models, converting the analytical solution into the virtual joint coordinates of the flexible robotic arm; The flexible robotic arm is controlled based on the virtual joint coordinates to complete a preset task.

8. The control method according to claim 7, characterized in that: Based on the second robot end transformation matrix, the second straight-line distance and the second kinematic model, an analytical solution of the second kinematic model is obtained, including: Obtaining a core transformation matrix based on the second robot end transformation matrix and the second kinematic model; Obtaining a first rotation matrix of the core transformation matrix and a displacement component of the core transformation matrix based on the core transformation matrix; The analytical solution is obtained based on the displacement component, the first rotation matrix, and the second straight-line distance.

9. The control method according to claim 8, characterized in that: The calculation formula of the core transformation matrix is: in, is the core transformation matrix; is the transformation matrix of the second robot end; The second z-axis translation transformation matrix The inverse matrix of is the fourth z-axis translation transformation matrix The inverse matrix of .

10. The control method according to claim 8, characterized in that: The analytical solution includes a first rotation angle, a second rotation angle, a third rotation angle, a fourth rotation angle, a fifth rotation angle, a sixth rotation angle, and a seventh rotation angle, wherein the first rotation angle to the seventh rotation angle are sequentially distributed from the starting end to the end of the flexible robotic arm; The obtaining the analytical solution based on the displacement component, the first rotation matrix, and the second straight-line distance comprises: Based on the displacement component and the second straight-line distance, the first rotation angle, the second rotation angle, the third rotation angle, and the fourth rotation angle are obtained; Based on the first rotation matrix, the first rotation angle, the third rotation angle, and the fourth rotation angle, a second rotation matrix is ​​obtained, where the second rotation matrix is ​​a comprehensive posture rotation matrix synthesized by preset joint rotation angles; The fifth rotation angle, the sixth rotation angle, and the seventh rotation angle are obtained based on the second rotation matrix.

11. The control method according to claim 10, characterized in that: The displacement components include a first axis displacement component, a second axis displacement component, and a third axis displacement component; The obtaining the first rotation angle, the second rotation angle, the third rotation angle, and the fourth rotation angle based on the displacement component and the second straight-line distance includes: Setting the third rotation angle to zero; Based on the first axis displacement component and the second axis displacement component, obtaining the first rotation angle by using a first rotation angle calculation formula; Based on the first axis displacement component, the second axis displacement component, the third axis displacement component and the second straight-line distance, obtaining the fourth rotation angle by a fourth rotation angle calculation formula; The second rotation angle is obtained by a second rotation angle calculation formula based on the first axis displacement component, the second axis displacement component, the third axis displacement component and the fourth rotation angle.

12. The control method according to claim 11, characterized in that: The first rotation angle calculation formula is: in, is the first rotation angle; X is the first axis displacement component, and the first axis displacement component is the core transformation matrix The X-axis component of the displacement part; is the second axis displacement component, and the second axis displacement component is the core transformation matrix The Y-axis component of the displacement part; The fourth rotation angle calculation formula is: in, is the fourth rotation angle; is the first axis displacement component, and the first axis displacement component is the core transformation matrix The X-axis component of the displacement part; is the second axis displacement component, and the second axis displacement component is the core transformation matrix The Y-axis component of the displacement part; is the third axis displacement component, and the second axis displacement component is the core transformation matrix The Z-axis component of the displacement part; The second rotation angle calculation formula is: in, is the second rotation angle; is the first axis displacement component, and the first axis displacement component is the core transformation matrix The X-axis component of the displacement part; is the second axis displacement component, and the second axis displacement component is the core transformation matrix The Y-axis component of the displacement part; is the third axis displacement component, and the third axis displacement component is the core transformation matrix The Z-axis component of the displacement part; is the fourth rotation angle.

13. The control method according to claim 10, characterized in that: The second rotation matrix includes first data, second data, third data, fourth data, fifth data, sixth data, seventh data, eighth data, and ninth data, wherein the first data to the ninth data sequentially represent the first posture mark of the first row and first column of the second rotation matrix to the ninth posture mark of the third row and third column; The obtaining the fifth rotation angle, the sixth rotation angle, and the seventh rotation angle based on the second rotation matrix includes: Based on the third data, the sixth data, and the ninth data, obtaining the sixth rotation angle by a sixth rotation angle calculation formula; Based on the third data, the sixth data, and the sixth rotation angle, obtaining the fifth rotation angle by a fifth rotation angle calculation formula; The seventh rotation angle is obtained by a seventh rotation angle calculation formula based on the first data, the fourth data, the seventh data, the eighth data, and the sixth rotation angle.

14. The control method according to claim 13, characterized in that: The sixth rotation angle calculation formula is: in, is the sixth rotation angle; is the third data; is the sixth data; is the ninth data; The fifth rotation angle calculation formula is: in, is the fifth rotation angle; is the third data; is the sixth data; is the sixth rotation angle; The seventh rotation angle calculation formula is: in, is the seventh rotation angle; is the first data; is the fourth data; is the seventh data; is the eighth data; is the sixth rotation angle.

15. A flexible robotic arm, characterized in that: The flexible robotic arm comprises at least three flexible bending modules arranged in series and a flexible rotating module located at the end of the flexible robotic arm and connected to the end of the last flexible bending module. The flexible robotic arm is controlled by the method described in any one of claims 1 to 14.

16. An electronic device comprising 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 according to any one of claims 1 to 14 is implemented.

17. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.