Control method of rigid-flexible hybrid mechanical arm, related device and storage medium
By mapping the physical configuration of the rigid-flexible hybrid manipulator into a configuration suitable for inverse kinematics solution and calculating its joint angles, the problem of joint angle decoupling calculation complexity in the existing technology is solved, and the control of the manipulator is realized. Improved overall control and flexibility.
Patent Information
- Application Number
- CN202310442886.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2024-10-22
AI Technical Summary
Existing technology makes it difficult to directly decouple and calculate the angles of all joints of a rigid-flexible hybrid manipulator, resulting in a complex kinematic model that cannot be effectively controlled as a whole.
By obtaining the physical configuration information of the robot arm and the preset configuration mapping model, the DH parameters are determined, the robot arm configuration is mapped to the desired configuration suitable for inverse kinematics solution, a transformation matrix is generated, and the process is carried out according to the target pose. Inverse kinematics calculation calculates the target angle value of the joint to adjust the joint angle.
It achieves overall control of the rigid-soft hybrid manipulator, improves its flexibility, and simplifies the inverse kinematics solution process, which is similar to the calculation method of traditional six- and seven-degree-of-freedom manipulators.
Smart Images

Figure CN118809574A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of rigid-flexible hybrid robotic arm control, and in particular to a control method, related device and storage medium of a rigid-flexible hybrid robotic arm. Background Art
[0002] The rigid-flexible hybrid robot arm consists of a rigid robot arm unit and a rigid-flexible hybrid robot arm unit connected to it. It is a relatively new type of highly redundant robot arm. Compared with the traditional high-degree-of-freedom robot arm, it takes into account the flexibility of the traditional robot arm while optimizing the defect of insufficient flexibility of the traditional robot arm.
[0003] When controlling a rigid-flexible hybrid robot, most of them adopt a separate control method, treating the rigid robot unit and the rigid-flexible hybrid robot unit as two low-freedom robot arms, and separately processing and controlling them. The advantage of this method is that it is relatively simple in processing the control model.
[0004] However, if the rigid-flexible hybrid robot is operated as a whole, the inverse kinematics solution of the rigid-flexible hybrid robot cannot be avoided. Compared with the inverse kinematics analytical solution of the traditional six-degree-of-freedom robot, the rigid-flexible hybrid robot has a high degree of redundancy, which makes the kinematic model more complicated and cannot directly decouple and calculate the angles of all joints of the rigid-flexible hybrid robot. Summary of the invention
[0005] The embodiments of the present application provide a control method, related devices and storage medium for a rigid-flexible hybrid robotic arm, which can directly decouple and calculate the angles of all joints of the rigid-flexible hybrid robotic arm.
[0006] In a first aspect, an embodiment of the present application provides a control method for a rigid-flexible hybrid robotic arm, the method being applied to a rigid-flexible hybrid robotic arm, the rigid-flexible hybrid robotic arm comprising a cross orthogonal movable joint, a rotation joint and / or a swing joint, and each joint being a rigid joint or a flexible joint, the method comprising:
[0007] Acquiring physical configuration information of the rigid-flexible hybrid robotic arm;
[0008] Determine the DH parameters of the rigid-flexible hybrid manipulator based on the physical configuration information of the rigid-flexible hybrid manipulator and a preset manipulator configuration mapping model, wherein the manipulator configuration mapping model is used to map the physical manipulator configuration of the rigid-flexible hybrid manipulator into a desired manipulator configuration suitable for inverse kinematics solution, and the manipulator configuration mapping model is generated based on mapping cross orthogonal active joints into mutually orthogonal rotational joints and swinging joints in physical space;
[0009] Obtaining a transformation matrix of each joint based on the DH parameter processing;
[0010] Performing inverse kinematics solution according to the transformation matrix and the given target posture, and generating target angle values of each joint according to the solution results;
[0011] The corresponding joint angle is adjusted based on each of the target angle values so that the end of the rigid-flexible hybrid robot arm moves to the target posture.
[0012] In the second aspect, an embodiment of the present application also provides a rigid-flexible hybrid robotic arm, which includes cross-orthogonal active joints, rotational joints and / or swinging joints, and each joint is a rigid joint or a flexible joint. The rigid-flexible hybrid robotic arm is controlled using the above method.
[0013] In a third aspect, an embodiment of the present application further provides a control device for a rigid-flexible hybrid robotic arm, wherein the control device for the rigid-flexible hybrid robotic arm is configured in the rigid-flexible hybrid robotic arm, wherein the rigid-flexible hybrid robotic arm includes a cross-orthogonal movable joint, a rotation joint and / or a swing joint, and each joint is a rigid joint or a flexible joint, and the control device for the rigid-flexible hybrid robotic arm includes:
[0014] A transceiver unit, used to obtain physical configuration information of the rigid-flexible hybrid robotic arm;
[0015] A processing unit is used to determine the DH parameters of the rigid-flexible hybrid manipulator based on the physical configuration information of the rigid-flexible hybrid manipulator and a preset manipulator configuration mapping model, wherein the manipulator configuration mapping model is used to map the physical manipulator configuration of the rigid-flexible hybrid manipulator into a desired manipulator configuration suitable for inverse kinematics solution, and the manipulator configuration mapping model is generated based on the mapping of cross-orthogonal active joints into mutually orthogonal rotational joints and swinging joints in physical space; obtain the transformation matrix of each joint based on the DH parameter processing; perform inverse kinematics solution according to the transformation matrix and a given target posture, and generate a target angle value for each joint according to the solution result; adjust the corresponding joint angle based on each of the target angle values so that the end of the rigid-flexible hybrid manipulator moves to the target posture.
[0016] In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0017] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions can implement the above method when executed by a processor.
[0018] The embodiment of the present application provides a control method, related device and storage medium for a rigid-flexible hybrid manipulator. It has the following intended effects: on the one hand, since the present application maps the physical manipulator configuration of the rigid-flexible hybrid manipulator to the desired manipulator configuration suitable for inverse kinematics solution, the present solution can directly decouple and calculate the angles of all joints of the rigid-flexible hybrid manipulator through inverse kinematics analytical solution calculation similar to traditional six- and seven-degree-of-freedom manipulator configurations; on the other hand, the present application can simultaneously perform fusion control on all joints in the rigid-flexible hybrid manipulator, so the rigid-flexible hybrid manipulator can be controlled as a whole, thereby improving the flexibility of the rigid-flexible hybrid manipulator. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are 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.
[0020] Figure 1 A structural schematic diagram of a rigid-flexible hybrid robotic arm provided in an embodiment of the present application;
[0021] Figure 2 A schematic diagram of a model structure of a flexible arm section in a rigid-flexible hybrid robotic arm provided in an embodiment of the present application;
[0022] Figure 3 A simplified schematic diagram of the model structure of a flexible arm section in a rigid-flexible hybrid robotic arm provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of a simplified equivalent configuration of a rigid-flexible hybrid robotic arm provided in an embodiment of the present application;
[0024] Figure 5 A schematic flow chart of a control method for a rigid-flexible hybrid robotic arm provided in an embodiment of the present application;
[0025] Figure 6 A schematic block diagram of a control device for a rigid-flexible hybrid robotic arm provided in an embodiment of the present application;
[0026] Figure 7 A schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0029] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0030] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0031] The embodiments of the present application provide a control method, a related device and a storage medium for a rigid-flexible hybrid robotic arm.
[0032] The execution subject of the control method of the rigid-flexible hybrid robotic arm may be the control device of the rigid-flexible hybrid robotic arm provided in the embodiment of the present application, or the rigid-flexible hybrid robotic arm in which the control device of the rigid-flexible hybrid robotic arm is integrated.
[0033] The rigid-flexible hybrid robotic arm includes cross orthogonal movable joints, rotational joints and / or swinging joints, and each joint is a rigid joint or a flexible joint.
[0034] In this embodiment, the combination types of two adjacent joints include: a purely rigid combination joint, a rigid-flexible combination joint and a purely flexible combination joint; the purely rigid combination joint includes: a first rigid joint and a second rigid joint; the rigid-flexible combination joint includes: a first rigid joint and a first flexible joint; the purely flexible combination joint includes: a first flexible joint and a second flexible joint.
[0035] Among them, the terminal posture error corresponding to the pure rigid combined joint is smaller than the terminal posture error corresponding to the rigid-flexible combined joint, and the terminal posture error corresponding to the rigid-flexible combined joint is smaller than the terminal posture error corresponding to the pure flexible combined joint. That is, the control accuracy of the pure rigid combined joint is higher than that of the rigid-flexible combined joint and the pure flexible combined joint, and correspondingly, the passive compliance of the pure flexible combined joint is higher than that of the rigid-flexible combined joint and the pure rigid combined joint.
[0036] Before executing the control method of the rigid-flexible hybrid robotic arm in this embodiment, the combination type of adjacent joints of the rigid-flexible hybrid robotic arm is first determined. The method for determining the combination type is as follows:
[0037] The desired information of the end state of the rigid-flexible hybrid manipulator is obtained, and the desired information of the end state is used to characterize the end accuracy and passive compliance of the manipulator; then, the combination type of adjacent joints of the rigid-flexible hybrid manipulator is determined according to the desired information of the end state and the theoretical model of the end posture error, and the theoretical model of the end posture error is expressed as the following formula:
[0038]
[0039] Among them, Δ is the theoretical error of the terminal posture, δ1, δ2, δ3…δ N are the joint errors from the first joint close to the base to the Nth joint close to the end, l1, l2, l3…l N is the length of the connecting rod corresponding to each joint from the base to the end, and i is the joint number corresponding to each joint.
[0040] It should be noted that when the end precision of the robot arm is expected to be high, the pure rigid combined joint is set close to the base. Based on the above-mentioned terminal posture error theoretical model, it can be known that the closer the combined joint with high control precision is set to the base, the smaller the terminal posture error will be. For a rigid-flexible hybrid robot arm, if both high terminal precision and good passive compliance are desired, the pure rigid combined joint can be set close to the base, the pure flexible combined joint can be set close to the end, and the rigid-flexible combined joint can be placed between the two as a connection.
[0041] When the end of the robot arm is expected to have higher passive compliance, the rigid-flexible combined joint or pure flexible combined joint is arranged close to the end. Under certain rigidity requirements, the rigid joints can be gradually replaced with flexible joints from the end to the base to improve the passive compliance of the rigid-flexible hybrid robot arm.
[0042] It can be seen that the present application can meet different requirements for rigid-flexible hybrid robotic arms through different combination types.
[0043] For example, in some embodiments, see Figure 1 , Figure 1A structural schematic diagram of a rigid-flexible hybrid robotic arm provided in an embodiment of the present application, the robotic arm 1 includes: a rigid arm segment 100 near the root and a flexible arm segment 200 near the end (a case where a pure rigid combined joint is arranged close to the base).
[0044] In this embodiment, the rigid arm section 100 includes in sequence: a rotational joint of a first degree of freedom, a swing joint of a second degree of freedom, and a swing joint of a third degree of freedom; the flexible arm section 200 includes in sequence: a cross-orthogonal movable joint of a fourth and fifth degree of freedom, and a rotational joint of a sixth degree of freedom; the cross-orthogonal movable joint is a flexible joint that can bend circumferentially around an axis. In some embodiments, the rigid-flexible hybrid robot arm 1 is also provided with an end effector 300.
[0045] Figure 1 The rigid-flexible hybrid robot arm 1 shown is composed of a rigid arm segment 100 near the root and a flexible arm segment 200 near the end, and the end can reach any position in any posture within its dexterous workspace. Moreover, because the rigid arm segment 100 and the flexible arm segment 200 are used in combination, the advantages of both the rigid robot arm and the rigid-flexible hybrid robot arm can be obtained. For example, if the flexible arm segment 200 is connected to one end of the rigid arm segment 100, the robot arm 1 can have both the rigid structural strength and the flexibility, collision resistance and safety of the flexible arm segment 200 joint. For example, the flexible arm segment 200 is provided at the end of the rigid-flexible hybrid robot arm 1, which can reduce the collision and damage caused by the robot arm 1 to the surrounding people or objects during use, and the flexible arm segment 200 of the rigid-flexible hybrid robot arm 1 will cause less damage to the flexible arm segment 200 itself when it collides with other objects. It can be seen that Figure 1 The rigid-flexible hybrid robot arm 1 shown has the advantage of strong adaptability.
[0046] See also Figure 2 , Figure 2It is a model of the flexible arm section 200 in the robot arm 1. The flexible arm section 200 of the robot arm 1 is composed of a cross-orthogonal active joint 210 and a sixth degree of freedom 220. The cross-orthogonal active joint 210 is a joint that can bend circumferentially around an axis. The coordinate parameters of the flexible arm base coordinate system (or the base coordinate system of the cross-orthogonal active joint) of the flexible arm section 200 are (O, X, Y, Z), where O is the origin of the flexible arm base coordinate system (or the base coordinate system of the cross-orthogonal active joint), X is the first horizontal axis, Y is the first longitudinal axis, and Z is the first vertical axis; the coordinate parameters of the bending end coordinate system of the cross-orthogonal active joint 210 (that is, the end coordinate system of the cross-orthogonal active joint 210) are (O1, X1, Y1, Z1), where O1 is The origin of the bending end coordinate system, X1 is the second horizontal axis, Y1 is the second vertical axis and Z1 is the second vertical axis; the flexible end coordinate system of the flexible arm section 200 is (O2, X2, Y2, Z2), where O2 is the origin of the flexible end coordinate system, X2 is the third horizontal axis, Y2 is the third vertical axis and Z2 is the third vertical axis; the cross orthogonal active joint 210 has three key parameters: bending swing angle α, rotation angle β and distance l from the base origin O to the origin O1 of the bending end coordinate system of the joint. As α changes, the distance l will also change, but the arc L between the origin O and the origin O1 is a fixed value, then At this time, the kinematic model from the flexible arm base coordinate system to the bending end coordinate system is expressed as: Among them, T z (β) represents the transformation matrix of the β-angle rotation around the Z axis of the flexible arm base coordinate system, Indicates rotation around the Y axis of the flexible arm base coordinate system The transformation matrix of the angle, T d (l) represents the translation length l along the Z axis of the flexible arm base coordinate system, T z (-β) represents the transformation matrix of the -β angle rotation around the Z axis of the flexible arm base coordinate system.
[0047] However, from the transformation matrix T 01 It can be seen that the expression of its transformation matrix is very complex. The translation l and the angle α are both variables, and the translation l and the angle α are coupled together, which makes the solution difficult. Therefore, in order to facilitate the acquisition of the analytical solution of the inverse solution of the robot arm when the rigid-flexible hybrid robot arm unit is used together, the model of the flexible arm section needs to be simplified.
[0048] Specifically, the arc L of constant length is represented as two line segments l1 of the same length, and the intersection of the coordinate axes Z and Z1 is used as the rotation center of the universal rotation. Then, the cross orthogonal movable joint 210 is approximately a motion model of universal rotation around the rotation center. In order to facilitate the use of a rotation sensor to measure the angle of the universal rotation, the cross joint model is used to process the universal rotation. The rotation angle of the universal rotation is expressed as the angle θ of rotation around the Y axis of the flexible arm base coordinate system y and the angle θ of rotation around the X-axis of the flexible arm base coordinate system x , then the robot arm configuration mapping model from the flexible arm base coordinate system to the bending end coordinate system is expressed as (i.e.
[0049] '
[0050] The robot arm configuration mapping model from the base to the end of the cross orthogonal movable joint 210): T 01 =
[0051] '
[0052] T d (l1)T y (θ y )T x (θ x )T d (l1), where T 01 is the transformation matrix corresponding to the robot configuration mapping model, T d (l1) represents the movement l1 along Z, L is the length of the arc between O and O1, and T y (θ y ) represents the rotation θ around Y y Angle, T x (θ x ) represents the rotation θ around X x angle.
[0053] At this time, in some embodiments, the simplified equivalent configuration of the flexible arm section 200 is as follows Figure 3 As shown, in the simplified equivalent configuration of the flexible arm section 200, the cross orthogonal active joint 210 is equivalent to a cross-configuration joint with two degrees of freedom. Since the cross orthogonal active joint 210 is equivalent to a cross-configuration joint with two degrees of freedom, the robot arm at this time has six degrees of freedom, so that the entire rigid-flexible hybrid robot arm constitutes a robot arm configuration with six degrees of freedom, as shown in FIG. Figure 4 As shown, Figure 4 The simplified equivalent configuration of the robot arm of the present application, the placement positions of the six degrees of freedom of the robot arm are as follows Figure 4 As shown in the figure, the coordinate origin and coordinate axis direction of each degree of freedom (joint) are specified, and the coordinate systems in the figure are all right-handed.
[0054] The present application provides a control method for a rigid-flexible hybrid robotic arm, which is applied to a rigid-flexible hybrid robotic arm. The rigid-flexible hybrid robotic arm includes a cross-orthogonal active joint, a rotational joint and / or a swinging joint, and each joint is a rigid joint or a flexible joint.
[0055] like Figure 5 As shown, the method includes the following steps S110-S150.
[0056] S110, obtaining physical configuration information of the rigid-flexible hybrid robotic arm.
[0057] The rigid-flexible hybrid robotic arm is a robotic arm that currently needs to be motion controlled, and the physical configuration information of the rigid-flexible hybrid robotic arm may be the motion structure information of the rigid-flexible hybrid robotic arm.
[0058] S120 . Determine DH parameters of the rigid-flexible hybrid robotic arm based on the physical configuration information of the rigid-flexible hybrid robotic arm and a preset robotic arm configuration mapping model.
[0059] The manipulator configuration mapping model is used to map the physical manipulator configuration of the rigid-flexible hybrid manipulator into a desired manipulator configuration suitable for inverse kinematics solution, and the manipulator configuration mapping model is generated based on the mapping of cross orthogonal active joints into mutually orthogonal rotational joints and swinging joints in physical space;
[0060] '
[0061] Wherein, the robot arm configuration mapping model is expressed as: T 01 =T d (l1)T y (θ y )T x (θ x )T d (l1);
[0062] '
[0063] Among them, T 01 is the transformation matrix of the robot arm configuration mapping model, the coordinate parameters of the base coordinate system of the cross orthogonal movable joint are (O, X, Y, Z), the coordinate parameters of the end coordinate system of the cross orthogonal movable joint are (O1, X1, Y1, Z1), T d (l1) represents the movement l1 along Z, L is the length of the arc from O to O1, T y (θ y ) represents the rotation θ around Y y Angle, T x (θ x ) represents the rotation θ around X x angle.
[0064] Since the physical configuration information of the rigid-flexible hybrid manipulator is mapped based on the manipulator configuration mapping model, the physical manipulator configuration of the rigid-flexible hybrid manipulator can be mapped to the desired manipulator configuration suitable for inverse kinematics solution. Therefore, the DH parameters of the rigid-flexible hybrid manipulator can be determined based on the physical configuration information and the preset manipulator configuration mapping model.
[0065] Specifically, in some embodiments, the rigid-flexible hybrid robotic arm includes, in sequence: a rotational joint of a first degree of freedom, a swing joint of a second degree of freedom, a swing joint of a third degree of freedom, a cross-orthogonal active joint of a fourth and fifth degree of freedom, and a rotational joint of a sixth degree of freedom, wherein the cross-orthogonal active joint is a flexible joint that can bend circumferentially around an axis.
[0066] It should be noted that this embodiment uses the mapping of a rigid-flexible hybrid robotic arm to 6 joints as an example for explanation. The rigid-flexible hybrid robotic arm can also be a robotic arm with other numbers of joints, such as a robotic arm with 7 joints. This embodiment does not limit the specific number of joints of the robotic arm.
[0067] In this embodiment, the DH parameters include the link parameters corresponding to the first link (Link1), the second link (Link2), the third link (Link3), the fourth link (Link4), the fifth link (Link5) and the sixth link (Link6) of the rigid-flexible hybrid robot arm, and the link parameters include the rotation angle θ i , joint offset d i , connecting rod length a i and the torsion angle α i , where the mapped model is very convenient to use the DH parameter rule. Specifically, the DH parameters of the rigid-flexible hybrid manipulator are shown in Table 1:
[0068] Table 1
[0069]
[0070] Among them, θ in the simplified transformation matrix from the flexible arm base coordinate system to the bending end coordinate system is y is θ4 in DH parameters, θ x is θ5 in the DH parameter, the first segment l1 is part of a3 in the DH parameter, and the second segment l1 is part of d6 in the DH parameter.
[0071] S130, obtaining the transformation matrix of each joint based on the DH parameter processing.
[0072] Among them, the above-mentioned joints are the joints corresponding to the rigid-flexible hybrid manipulator. At this time, according to the DH parameters in Table 1, the transformation matrix of the six degrees of freedom can be obtained. Specifically, from the root to the end of the manipulator, the transformation matrix of the six degrees of freedom is:
[0073]
[0074]
[0075]
[0076]
[0077]
[0078]
[0079] S140, performing inverse kinematics solution according to the transformation matrix and the given target posture, and generating target angle values for each joint according to the solution results.
[0080] In some embodiments, step S140 includes: determining a first angle calculation formula for the first degree of freedom, a fifth angle calculation formula for the fifth degree of freedom, a third angle calculation formula for the third degree of freedom, a second angle calculation formula for the second degree of freedom, a fourth angle calculation formula for the fourth degree of freedom, and a sixth angle calculation formula for the sixth degree of freedom according to each of the transformation matrices and the target posture; and then determining in sequence the first angle value of the first degree of freedom, the fifth angle value of the fifth degree of freedom, the third angle value of the third degree of freedom, the second angle value of the second degree of freedom, the fourth angle value of the fourth degree of freedom, and the sixth angle value of the sixth degree of freedom according to the first angle calculation formula, the fifth angle calculation formula, the third angle calculation formula, the second angle calculation formula, the fourth angle calculation formula, and the sixth angle calculation formula.
[0081] Specifically, the target pose is the terminal pose matrix:
[0082] in, is a 3×3 matrix composed of the direction cosines of the coordinate axis vector of the end pose coordinate system of the rigid-flexible hybrid manipulator relative to the base coordinate system of the rigid-flexible hybrid manipulator, p x 、p y 、p z is the position of the origin of the terminal pose coordinate system on the coordinate axis of the base coordinate system;
[0083] The relationship between the transformation matrix and the pose matrix of the six joints is expressed as: P = A1A2A3A4A5A6 (1)
[0084] The following describes the derivation process of the angle calculation formula for each joint:
[0085] The first angle calculation formula:
[0086] Multiply both sides of formula (1) by the inverse matrix of A1, then:
[0087]
[0088]
[0089]
[0090] According to formula (2) and the relationship between (3, 3) and (3, 4) in formula (3) (the same values are the same at the same position), we can get:
[0091] p x sinθ1-p y cosθ1=d6(a x sinθ1-a y cosθ1) (4)
[0092] According to formula (4), θ1 can be calculated. If θ1 has multiple solutions, they need to be listed one by one.
[0093] At this time, the first angle calculation formula derived from formula (4) is:
[0094] θ1=atan2(p y -d6a y ,p x -d6a x ) (5)
[0095] The fifth angle calculation formula:
[0096] From the relationship between (3, 4) in formula (2) and formula (3), we can get:
[0097]
[0098] The fifth angle calculation formula obtained from formula (6) is:
[0099]
[0100] Formula (2) and formula (3) are multiplied by the inverse matrix (A5A6) respectively -1 ,have but:
[0101]
[0102]
[0103] The third angle calculation formula:
[0104] The element p in formula (9) x cosθ1+p y sinθ1-d6(a x cosθ1+a y sinθ1)=m,p z -d1-a z d6=n, according to formula (8) and formula (9), we have,
[0105] -a2sinθ2-a3sin(θ2+θ3)=m (10)
[0106] a2cosθ2+a3cos(θ2+θ3)=n (11)
[0107] The square difference between the above formula (10) and formula (11) can be calculated to obtain
[0108]
[0109] The third angle calculation formula is:
[0110]
[0111] The second angle calculation formula:
[0112] When θ3 has been calculated, formula (10) and formula (11) can be rewritten as:
[0113] -(a2+a3cosθ3)sinθ2-a3sinθ3cosθ2=m (14)
[0114] (a2+a3cosθ3)cosθ2-a3sinθ3sinθ2=n (15)
[0115] Assuming the known quantities a2+a3cosθ3=j, a3sinθ3=k, formula (14) and formula (15) can be rewritten as:
[0116] -jsinθ2-kcosθ2= m (16)
[0117] jcosθ2-ksinθ2=n (17)
[0118] According to equations (16) and (17), since j and k will not be 0 at the same time,
[0119] When j = 0,
[0120] When k = 0,
[0121] When j≠0 and k≠0, From the results of these three cases, we can know that the second angle calculation formula is:
[0122] θ2=atan2(sinθ2,cosθ2) (18)
[0123] The fourth angle calculation formula and the sixth angle calculation formula are:
[0124] When θ5 is not equal to 90°, the value of θ1 has been calculated, and the elements (3, 1) and (3, 2) of formula (2) and formula (3) can be used to obtain
[0125]
[0126]
[0127] Then the calculation formula of the sixth angle is:
[0128] θ6=atan2(sinθ6,cosθ6) (21)
[0129] Through the elements (1, 3) and (2, 3) of formula (8) and formula (9), when θ1 and θ6 have been calculated, the elements (1, 3) and (2, 3) of formula (9) are known, and the elements (1, 3) and (2, 3) of formula (8) are also known. At this time, the fourth angle calculation formula is:
[0130] θ2+θ3+θ4=atan2(sin(θ2+θ3+θ4),cos(θ2+θ3+θ4)) (22)
[0131] The values of θ2 and θ3 have been calculated, so the angle of θ4 can be obtained.
[0132] When θ5 is equal to 90°, the values of θ4 and θ6 are related to each other. Let θ6 = 0°, then according to the known θ1, according to formula (22), θ′4 is calculated, assuming that θ′4 = F. Under the comprehensive consideration of the joint motion range and motion energy efficiency, the values of θ4 and θ6 can be flexibly selected. As long as the values of θ4 and θ6 satisfy θ4 + θ6 = F, the values of θ4 and θ6 are reasonable.
[0133] That is, when the fifth angle value is equal to 90°, the fourth angle calculation formula and the sixth angle calculation formula are:
[0134] θ4+θ6=F (23)
[0135] It should be noted that after confirming the angle calculation formula of each joint (degree of freedom), the angle calculation formula of each joint can be stored. After obtaining the terminal pose matrix (the pose matrix corresponding to the position that the end of the rigid-flexible hybrid manipulator needs to reach), the angle value of each joint can be directly calculated in sequence according to the angle calculation formula of each joint. Through such processing, the amount of calculation required later can be greatly reduced, which greatly reduces the requirements for electronic equipment, improves the real-time control, and reduces the hardware cost. This processing method allows the solution of inverse kinematics to be completed on many embedded devices, enriching the application scenarios of rigid-flexible hybrid manipulators.
[0136] S150: adjusting the corresponding joint angle based on each of the target angle values so that the end of the rigid-flexible hybrid robot arm moves to the target posture.
[0137] In this embodiment, after the target angle values corresponding to each joint are calculated, the corresponding joint angles are adjusted according to the calculated target angle values of each joint, so that the end of the rigid-flexible hybrid robot arm moves to the target posture.
[0138] Among them, under normal circumstances, the angle value of each degree of freedom in the six degrees of freedom includes multiple angle values. At this time, it is necessary to determine the multiple angle values into multiple angle combinations based on the angle value calculation relationship between the angle values; then determine the target angle combination from the multiple angle combinations; finally, adjust the corresponding joint angle according to the target angle value in the target angle combination, so that the end of the rigid-flexible hybrid robot arm moves to the target posture.
[0139] The target angle combination is the optimal angle combination among the plurality of angle combinations. In some embodiments, considering that the more rotation angles there are, the greater the energy consumption is, the combination with the least total joint rotation angle can be determined as the target angle combination. In this case, the target angle combination is determined specifically by the following steps:
[0140] For each angle combination, the least square method is used to determine the sum of squares of the angle values in the angle combination to obtain the sum of squares corresponding to each angle combination; the angle combination with the smallest sum of squares among the multiple angle combinations is determined as the target angle combination.
[0141] In other embodiments, considering that different joints have different energy consumption rates, the target angle combination is determined by the following steps:
[0142] For each of the angle combinations, the energy consumption value corresponding to the angle combination is determined according to the angle values in the angle combination and the energy consumption rate corresponding to each joint, so as to obtain the energy consumption values corresponding to each of the angle combinations; the angle combination with the smallest energy consumption value among the multiple angle combinations is determined as the target angle combination.
[0143] In some embodiments, after adjusting the corresponding joint angles, it is also necessary to detect the motion parameters of each joint through sensors, and calculate the actual angle value of each joint based on the motion parameters; by comparing the actual angle value with the target angle value, the end posture error is determined.
[0144] Among them, the actual angle value is the actual position reached by each joint after adjusting the angle, and the target angle value is the position that each joint needs to reach. Specifically, it is necessary to determine the error between the actual angle value of each joint and the target angle value, and then determine the end posture error of the rigid-flexible hybrid robot arm according to the errors corresponding to each joint.
[0145] After determining the terminal posture error, if the terminal posture error is greater than a preset error value, real-time feedback control will be performed on the error between the actual angle value and the target angle value to reduce the terminal posture error, thereby improving the accuracy of motion control.
[0146] Specifically, the real-time feedback control may be PID (Proportional Integral Derivative) control.
[0147] To summarize, on the one hand, since the present application maps the physical robot arm configuration of the rigid-flexible hybrid robot arm into the desired robot arm configuration suitable for inverse kinematics solution, the present scheme can directly decouple and calculate the angles of all joints of the rigid-flexible hybrid robot arm through inverse kinematics analytical solution calculations similar to traditional six- and seven-degree-of-freedom robot arm configurations; on the other hand, the present application can simultaneously perform fusion control on all joints in the rigid-flexible hybrid robot arm, so the rigid-flexible hybrid robot arm can be controlled as a whole, thereby improving the flexibility of the rigid-flexible hybrid robot arm.
[0148] Figure 6 is a schematic block diagram of a control device for a rigid-flexible hybrid robotic arm provided in an embodiment of the present application. Figure 6 As shown, corresponding to the control method of the rigid-flexible hybrid manipulator, the present application also provides a control device for the rigid-flexible hybrid manipulator. The control device for the rigid-flexible hybrid manipulator includes a unit for executing the control method of the rigid-flexible hybrid manipulator. The device is configured in the rigid-flexible hybrid manipulator. The rigid-flexible hybrid manipulator includes a cross orthogonal active joint, a rotation joint and / or a swing joint, and each joint is a rigid joint or a flexible joint. The control device 600 of the rigid-flexible hybrid manipulator includes:
[0149] The transceiver unit 601 is used to obtain the physical configuration information of the rigid-flexible hybrid robotic arm;
[0150] The processing unit 602 is used to determine the DH parameters of the rigid-flexible hybrid manipulator based on the physical configuration information of the rigid-flexible hybrid manipulator and a preset manipulator configuration mapping model, wherein the manipulator configuration mapping model is used to map the physical manipulator configuration of the rigid-flexible hybrid manipulator into a desired manipulator configuration suitable for inverse kinematics solution, and the manipulator configuration mapping model is generated based on the mapping of cross-orthogonal active joints into mutually orthogonal rotational joints and swinging joints in physical space; obtain the transformation matrix of each joint based on the DH parameter processing; perform inverse kinematics solution according to the transformation matrix and a given target posture, and generate a target angle value for each joint according to the solution result; adjust the corresponding joint angle based on each target angle value so that the end of the rigid-flexible hybrid manipulator moves to the target posture.
[0151] In some embodiments, the combination types of two adjacent joints include: a pure rigid combination joint, a rigid-flexible combination joint and a pure flexible combination joint; the pure rigid combination joint includes: a first rigid joint and a second rigid joint; the rigid-flexible combination joint includes: a first rigid joint and a first flexible joint; the pure flexible combination joint includes: a first flexible joint and a second flexible joint; wherein the terminal posture error corresponding to the pure rigid combination joint is less than the terminal posture error corresponding to the rigid-flexible combination joint, and the terminal posture error corresponding to the rigid-flexible combination joint is less than the terminal posture error corresponding to the pure flexible combination joint;
[0152] Before executing the step of acquiring the physical configuration information of the rigid-flexible hybrid robotic arm, the processing unit 602 is further configured to:
[0153] The desired information of the end state of the rigid-flexible hybrid manipulator is obtained through the transceiver unit 601, and the desired information of the end state is used to characterize the end accuracy and passive compliance of the manipulator; the combination type of adjacent joints of the rigid-flexible hybrid manipulator is determined according to the desired information of the end state and the theoretical model of the end posture error, and the theoretical model of the end posture error is expressed as the following formula:
[0154]
[0155] Among them, Δ is the theoretical error of the terminal posture, δ1, δ2, δ3…δ N are the joint errors from the first joint close to the base to the Nth joint close to the end, l1, l2, l3…l N is the length of the connecting rod corresponding to each joint from the base to the end, and i is the joint number corresponding to each joint;
[0156] When the end of the robot arm is expected to have high precision, the purely rigid combined joint is set close to the base; when the end of the robot arm is expected to have high passive compliance, the rigid-flexible combined joint or the purely flexible combined joint is set close to the end.
[0157] In some embodiments, after executing the step of adjusting the corresponding joint angle based on each of the target angle values, the processing unit 602 is further configured to:
[0158] The motion parameters of each joint are detected by sensors, and the actual angle value of each joint is calculated based on the motion parameters; the end position error is determined by comparing the actual angle value with the target angle value.
[0159] In some embodiments, after executing the step of comparing the actual angle value with the target angle value to determine the actual error of the terminal posture, the processing unit 602 is further configured to:
[0160] When the terminal posture error is greater than a preset error value, real-time feedback control is performed on the error between the actual angle value and the target angle value to reduce the terminal posture error.
[0161] In some embodiments, the robot arm configuration mapping model is represented as: 01 =T d (l1)T y (θ y )T x (θ x )T d (l1);
[0162] Among them, T′ 01 is the transformation matrix of the robot arm configuration mapping model, the coordinate parameters of the base coordinate system of the cross orthogonal movable joint are (O, X, Y, Z), the coordinate parameters of the end coordinate system of the cross orthogonal movable joint are (O1, X1, Y1, Z1), T d (l1) represents the movement l1 along Z, L is the length of the arc from O to O1, T y (θ y ) represents the rotation θ around Y y Angle, T x (θ x ) represents the rotation θ around X x angle.
[0163] In some embodiments, the rigid-flexible hybrid manipulator includes, in sequence: a rotation joint of a first degree of freedom, a swing joint of a second degree of freedom, a swing joint of a third degree of freedom, a cross-orthogonal movable joint of a fourth and fifth degree of freedom, and a rotation joint of a sixth degree of freedom, wherein the cross-orthogonal movable joint is a flexible joint that can bend circumferentially around an axis, and the DH parameters include the link parameters corresponding to each of the first link, the second link, the third link, the fourth link, the fifth link, and the sixth link corresponding to the six degrees of freedom of the rigid-flexible hybrid manipulator, and the link parameters include a rotation angle, a joint offset, a link length, and a torsion angle, wherein:
[0164] The rotation angles of the first link, the second link, the third link, the fourth link, the fifth link and the sixth link are θ1, θ2, θ3 and θ4, respectively. θ3、θ4、 and θ6, the joint offsets are d1, 0, 0, 0, 0 and d6, the connecting rod lengths are 0, a2, a3, 0, 0 and 0, and the torsion angles are 0, 0, and 0;
[0165] The transformation matrix for six degrees of freedom is:
[0166]
[0167]
[0168]
[0169]
[0170]
[0171]
[0172] In some embodiments, when the processing unit 602 performs the step of performing inverse kinematics solution according to the transformation matrix and the given target posture, and generating the target angle value of each joint according to the solution result:
[0173] Determine a first angle calculation formula for the first degree of freedom, a fifth angle calculation formula for the fifth degree of freedom, a third angle calculation formula for the third degree of freedom, a second angle calculation formula for the second degree of freedom, a fourth angle calculation formula for the fourth degree of freedom, and a sixth angle calculation formula for the sixth degree of freedom according to each of the transformation matrices and the target posture;
[0174] According to the first angle calculation formula, the fifth angle calculation formula, the third angle calculation formula, the second angle calculation formula, the fourth angle calculation formula and the sixth angle calculation formula, the first angle value of the first degree of freedom, the fifth angle value of the fifth degree of freedom, the third angle value of the third degree of freedom, the second angle value of the second degree of freedom, the fourth angle value of the fourth degree of freedom and the sixth angle value of the sixth degree of freedom are determined in sequence.
[0175] In some embodiments, the target pose is an end pose matrix:
[0176] in, is a 3×3 matrix composed of the direction cosines of the coordinate axis vector of the end pose coordinate system of the rigid-flexible hybrid manipulator relative to the base coordinate system of the rigid-flexible hybrid manipulator, p x 、p y 、p z is the position of the origin of the terminal pose coordinate system on the coordinate axis of the base coordinate system;
[0177] The first angle calculation formula is:
[0178] θ1=atan2(p y -d6a y ,p x -d6a x );
[0179] The fifth angle calculation formula is:
[0180]
[0181] The third angle calculation formula is:
[0182]
[0183] The second angle calculation formula is:
[0184] θ2=atan2(sinθ2,cosθ2);
[0185] When the fifth angle value is not equal to 90°, the fourth angle calculation formula is:
[0186] θ2+θ3+θ4=atan2(sin(θ2+θ3+θ4),cos(θ2+θ3+θ4));
[0187] The sixth angle calculation formula is:
[0188] θ6=atan2(sinθ6,cosθ6);
[0189] When the fifth angle value is equal to 90°, the fourth angle calculation formula and the sixth angle calculation formula are:
[0190] θ4+θ6=F;
[0191] Among them, θ1 is the first angle value, θ5 is the fifth angle value, θ3 is the third angle value, m=-a2sinθ2-a3sin(θ2+θ3), n=a2cosθ2+a3cos(θ2+θ3), θ2 is the second angle value, θ3 is the third angle value, θ4 is the fourth angle value, θ6 is the sixth angle value, F=θ′4, θ′4 is the fourth angle value calculated based on the fourth angle calculation formula θ2+θ3+θ4=atan2(sin(θ2+θ3+θ4),cos(θ2+θ3+θ4)).
[0192] In some embodiments, the angle value of each degree of freedom in the six degrees of freedom includes multiple angle values; after executing the step of performing inverse kinematics solution according to the transformation matrix and the given target posture, and generating the target angle value of each joint according to the solution result, the processing unit 602 is further used to:
[0193] Determine the target angle values as a plurality of angle combinations according to the angle value calculation relationship between the target angle values; determine the target angle combination from the plurality of angle combinations;
[0194] At this time, when the processing unit 602 executes the step of adjusting the corresponding joint angle based on each of the target angle values, it is specifically configured to:
[0195] The corresponding joint angle is adjusted according to the target angle value in the target angle combination.
[0196] In some embodiments, when the processing unit 602 performs the step of determining a target angle combination from a plurality of angle combinations, it is specifically configured to:
[0197] For each angle combination, a least square method is used to determine the sum of squares of the angle values in the angle combination, and the sum of squares corresponding to each angle combination is obtained;
[0198] The angle combination with the smallest square sum among the multiple angle combinations is determined as the target angle combination.
[0199] In some embodiments, when the processing unit 602 performs the step of determining a target angle combination from a plurality of angle combinations, it is specifically configured to:
[0200] For each angle combination, determine the energy consumption value corresponding to the angle combination according to the angle value in the angle combination and the energy consumption rate corresponding to each joint, and obtain the energy consumption value corresponding to each angle combination;
[0201] The angle combination with the smallest energy consumption value among the multiple angle combinations is determined as the target angle combination.
[0202] To summarize, on the one hand, since the present application maps the physical robot arm configuration of the rigid-flexible hybrid robot arm into the desired robot arm configuration suitable for inverse kinematics solution, the control device 600 of the rigid-flexible hybrid robot arm in this scheme can directly decouple and calculate the angles of all joints of the rigid-flexible hybrid robot arm through inverse kinematics analytical solution calculation similar to traditional six- and seven-degree-of-freedom robot arm configurations; on the other hand, the present application can simultaneously perform fusion control on all joints in the rigid-flexible hybrid robot arm, so the rigid-flexible hybrid robot arm can be controlled as a whole, thereby improving the flexibility of the rigid-flexible hybrid robot arm.
[0203] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the control device and each unit of the above-mentioned rigid-flexible hybrid robotic arm can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.
[0204] The control device of the rigid-flexible hybrid robot arm can be implemented in the form of a computer program. The computer program can be used in Figure 7 The electronic device shown is running.
[0205] See also Figure 7 , Figure 7 700 is a schematic block diagram of an electronic device provided in an embodiment of the present application. The electronic device 700 may be a rigid-flexible hybrid robotic arm or a control device for controlling the rigid-flexible hybrid robotic arm.
[0206] The rigid-flexible hybrid robot arm includes a cross orthogonal movable joint, a rotation joint and / or a swing joint, and each joint is a rigid joint or a flexible joint.
[0207] See also Figure 7 The electronic device 700 includes a processor 702 , a memory and a network interface 705 connected via a system bus 701 , wherein the memory may include a non-volatile storage medium 703 and an internal memory 704 .
[0208] The non-volatile storage medium 703 can store an operating system 7031 and a computer program 7032. The computer program 7032 includes program instructions, and when the program instructions are executed, the processor 702 can execute a control method for a rigid-flexible hybrid robotic arm.
[0209] The processor 702 is used to provide computing and control capabilities to support the operation of the entire electronic device 700 .
[0210] The internal memory 704 provides an environment for the operation of the computer program 7032 in the non-volatile storage medium 703. When the computer program 7032 is executed by the processor 702, the processor 702 can execute a control method for a rigid-flexible hybrid robotic arm.
[0211] The network interface 705 is used to communicate with other devices over the network. Figure 7 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device 700 to which the scheme of the present application is applied. The specific electronic device 700 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0212] The processor 702 is used to run the computer program 7032 stored in the memory to implement the following steps:
[0213] Acquiring physical configuration information of the rigid-flexible hybrid robotic arm;
[0214] Determine the DH parameters of the rigid-flexible hybrid manipulator based on the physical configuration information of the rigid-flexible hybrid manipulator and a preset manipulator configuration mapping model, wherein the manipulator configuration mapping model is used to map the physical manipulator configuration of the rigid-flexible hybrid manipulator into a desired manipulator configuration suitable for inverse kinematics solution, and the manipulator configuration mapping model is generated based on mapping cross orthogonal active joints into mutually orthogonal rotational joints and swinging joints in physical space;
[0215] Obtaining a transformation matrix of each joint based on the DH parameter processing;
[0216] Performing inverse kinematics solution according to the transformation matrix and the given target posture, and generating target angle values of each joint according to the solution results;
[0217] The corresponding joint angle is adjusted based on each of the target angle values so that the end of the rigid-flexible hybrid robot arm moves to the target posture.
[0218] It should be understood that in the embodiment of the present application, the processor 702 may be a central processing unit (CPU), and the processor 702 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0219] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0220] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps:
[0221] Acquiring physical configuration information of the rigid-flexible hybrid robotic arm;
[0222] Determine the DH parameters of the rigid-flexible hybrid manipulator based on the physical configuration information of the rigid-flexible hybrid manipulator and a preset manipulator configuration mapping model, wherein the manipulator configuration mapping model is used to map the physical manipulator configuration of the rigid-flexible hybrid manipulator into a desired manipulator configuration suitable for inverse kinematics solution, and the manipulator configuration mapping model is generated based on mapping cross orthogonal active joints into mutually orthogonal rotational joints and swinging joints in physical space;
[0223] Obtaining a transformation matrix of each joint based on the DH parameter processing;
[0224] Performing inverse kinematics solution according to the transformation matrix and the given target posture, and generating target angle values of each joint according to the solution results;
[0225] The corresponding joint angle is adjusted based on each of the target angle values so that the end of the rigid-flexible hybrid robot arm moves to the target posture.
[0226] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0227] 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, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. 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.
[0228] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0229] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0230] 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 storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for an electronic device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0231] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A control method for a rigid-flexible hybrid robotic arm, characterized in that: The method is applied to a rigid-flexible hybrid robotic arm, which includes a cross orthogonal movable joint, a rotation joint and / or a swing joint, and each joint is a rigid joint or a flexible joint. The method includes: Acquiring physical configuration information of the rigid-flexible hybrid robotic arm; Determine the DH parameters of the rigid-flexible hybrid manipulator based on the physical configuration information of the rigid-flexible hybrid manipulator and a preset manipulator configuration mapping model, wherein the manipulator configuration mapping model is used to map the physical manipulator configuration of the rigid-flexible hybrid manipulator into a desired manipulator configuration suitable for inverse kinematics solution, and the manipulator configuration mapping model is generated based on mapping cross orthogonal active joints into mutually orthogonal rotational joints and swinging joints in physical space; Obtaining a transformation matrix of each joint based on the DH parameter processing; Performing inverse kinematics solution according to the transformation matrix and the given target posture, and generating target angle values of each joint according to the solution results; The corresponding joint angle is adjusted based on each of the target angle values so that the end of the rigid-flexible hybrid robot arm moves to the target posture.
2. The method according to claim 1, characterized in that The combination types of two adjacent joints include: a pure rigid combination joint, a rigid-flexible combination joint and a pure flexible combination joint; the pure rigid combination joint includes: a first rigid joint and a second rigid joint; the rigid-flexible combination joint includes: a first rigid joint and a first flexible joint; the pure flexible combination joint includes: a first flexible joint and a second flexible joint; wherein the terminal posture error corresponding to the pure rigid combination joint is smaller than the terminal posture error corresponding to the rigid-flexible combination joint, and the terminal posture error corresponding to the rigid-flexible combination joint is smaller than the terminal posture error corresponding to the pure flexible combination joint; Before obtaining the physical configuration information of the rigid-flexible hybrid robotic arm, the method further includes: Acquiring the desired information of the end state of the rigid-flexible hybrid manipulator, wherein the desired information of the end state is used to characterize the end accuracy and passive compliance of the manipulator; The combination type of adjacent joints of the rigid-flexible hybrid manipulator is determined according to the desired terminal state information and the terminal posture error theoretical model, and the terminal posture error theoretical model is expressed as the following formula: Among them, Δ is the theoretical error of the terminal posture, δ1, δ2, δ3…δ N are the joint errors from the first joint close to the base to the Nth joint close to the end, l1, l2, l3…l N is the length of the connecting rod corresponding to each joint from the base to the end, and i is the joint number corresponding to each joint; When the end of the robot arm is expected to have high precision, the purely rigid combined joint is set close to the base; when the end of the robot arm is expected to have high passive compliance, the rigid-flexible combined joint or the purely flexible combined joint is set close to the end.
3. The method according to claim 2, characterized in that After adjusting the corresponding joint angle based on each of the target angle values, the method further includes: Detecting the motion parameters of each joint through a sensor, and calculating the actual angle value of each joint according to the motion parameters; The terminal position error is determined by comparing the actual angle value with the target angle value.
4. The method according to claim 3, characterized in that After determining the actual error of the terminal posture by comparing the actual angle value with the target angle value, the method further includes: When the terminal posture error is greater than a preset error value, real-time feedback control is performed on the error between the actual angle value and the target angle value to reduce the terminal posture error.
5. The method according to any one of claims 1 to 4, characterized in that The mechanical arm structure The type mapping model is expressed as: 01 =T d (l1)T y (θ y )T x (θ x )T d (l1); Among them, T′ 01 is the transformation matrix of the robot arm configuration mapping model, the coordinate parameters of the base coordinate system of the cross orthogonal movable joint are (O, X, Y, Z), the coordinate parameters of the end coordinate system of the cross orthogonal movable joint are (O1, X1, Y1, Z1), T d (l1) represents the movement l1 along Z, L is the length of the arc from O to O1, T y (θ y ) represents the rotation θ around Y y Angle, T x (θ x ) represents the rotation θ around X x angle.
6. The method according to claim 5, characterized in that The rigid-flexible hybrid manipulator comprises, in sequence: a rotation joint of a first degree of freedom, a swing joint of a second degree of freedom, a swing joint of a third degree of freedom, a cross-orthogonal movable joint of a fourth and fifth degree of freedom, and a rotation joint of a sixth degree of freedom, wherein the cross-orthogonal movable joint is a flexible joint that can bend circumferentially around an axis, and the DH parameters include the link parameters corresponding to each of the first link, the second link, the third link, the fourth link, the fifth link, and the sixth link corresponding to the six degrees of freedom of the rigid-flexible hybrid manipulator, and the link parameters include a rotation angle, a joint offset, a link length, and a torsion angle, wherein: The rotation angles of the first link, the second link, the third link, the fourth link, the fifth link and the sixth link are θ1, θ2, θ3 and θ4, respectively. θ3、θ4、 and θ6, the joint offsets are d1, 0, 0, 0, 0 and d6, the connecting rod lengths are 0, a2, a3, 0, 0 and 0, and the torsion angles are 0, 0, and 0; The transformation matrix for six degrees of freedom is:
7. The method according to claim 6, characterized in that The inverse kinematics solution is performed according to the transformation matrix and the given target posture, and the target angle value of each joint is generated according to the solution result, including: Determine a first angle calculation formula for the first degree of freedom, a fifth angle calculation formula for the fifth degree of freedom, a third angle calculation formula for the third degree of freedom, a second angle calculation formula for the second degree of freedom, a fourth angle calculation formula for the fourth degree of freedom, and a sixth angle calculation formula for the sixth degree of freedom according to each of the transformation matrices and the target posture; According to the first angle calculation formula, the fifth angle calculation formula, the third angle calculation formula, the second angle calculation formula, the fourth angle calculation formula and the sixth angle calculation formula, the first angle value of the first degree of freedom, the fifth angle value of the fifth degree of freedom, the third angle value of the third degree of freedom, the second angle value of the second degree of freedom, the fourth angle value of the fourth degree of freedom and the sixth angle value of the sixth degree of freedom are determined in sequence.
8. The method according to claim 7, characterized in that The target pose is the end pose matrix: in, is a 3×3 matrix composed of the direction cosines of the coordinate axis vector of the end pose coordinate system of the rigid-flexible hybrid manipulator relative to the base coordinate system of the rigid-flexible hybrid manipulator, p x 、p y 、p z is the position of the origin of the terminal pose coordinate system on the coordinate axis of the base coordinate system; The first angle calculation formula is: θ1=atan2(p y -d6a y ,p x -d6a x ); The fifth angle calculation formula is: The third angle calculation formula is: The second angle calculation formula is: θ2=atan2(sinθ2,cosθ2); When the fifth angle value is not equal to 90°, the fourth angle calculation formula is: θ2+θ3+θ4=atan2(sin(θ2+θ3+θ4),cos(θ2+θ3+θ4)); The sixth angle calculation formula is: θ6=atan2(sinθ6,cosθ6); When the fifth angle value is equal to 90°, the fourth angle calculation formula and the sixth angle calculation formula are: θ4+θ6=F; Among them, θ1 is the first angle value, θ5 is the fifth angle value, θ3 is the third angle value, m=-a2sinθ2-a3sin(θ2+θ3), n=a2cosθ2+a3cos(θ2+θ3), θ2 is the second angle value, θ3 is the third angle value, θ4 is the fourth angle value, θ6 is the sixth angle value, F=θ′4, θ′4 is the fourth angle value calculated based on the fourth angle calculation formula θ2+θ3+θ4=atan2(sin(θ2+θ3+θ4),cos(θ2+θ3+θ4)).
9. The method according to any one of claims 2 to 4, characterized in that The angle value of each degree of freedom in the six degrees of freedom includes multiple angle values; after performing inverse kinematics solution according to the transformation matrix and the given target posture, and generating the target angle value of each joint according to the solution result, the method further includes: Determining the target angle values into a plurality of angle combinations according to an angle value calculation relationship between the target angle values; Determine a target angle combination from a plurality of angle combinations; Adjusting the corresponding joint angle based on each of the target angle values includes: The corresponding joint angle is adjusted according to the target angle value in the target angle combination.
10. The method according to claim 9, characterized in that Determining a target angle combination from a plurality of angle combinations comprises: For each angle combination, a least square method is used to determine the sum of squares of the angle values in the angle combination, and the sum of squares corresponding to each angle combination is obtained; The angle combination with the smallest square sum among the multiple angle combinations is determined as the target angle combination.
11. The method according to claim 9, characterized in that Determining a target angle combination from a plurality of angle combinations comprises: For each angle combination, determine the energy consumption value corresponding to the angle combination according to the angle value in the angle combination and the energy consumption rate corresponding to each joint, and obtain the energy consumption value corresponding to each angle combination; The angle combination with the smallest energy consumption value among the multiple angle combinations is determined as the target angle combination.
12. A rigid-flexible hybrid robotic arm, characterized in that: The rigid-flexible hybrid robotic arm includes cross orthogonal active joints, and also includes rotational joints and / or swinging joints, and each joint is a rigid joint or a flexible joint. The rigid-flexible hybrid robotic arm is controlled by the method described in any one of claims 1-11.
13. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 9 when executing the computer program.
14. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 11 can be implemented.
Citation Information
Cited By
Rigid-flexible coupled seven-degree-of-freedom mechanical arm and using method thereof
CN120023857A
Reduction of Inverse Kinematic Calculation Time
US20250144791A1
