Method and device for sensing equivalent joint angle of robotic arm segments based on external IMU
By using an external IMU sensor to replace the joint encoder on the rope-driven flexible manipulator, the joint angle is calculated, which solves the problem of the space occupied by the joint encoder and achieves flexible control and improved accuracy of the manipulator.
Patent Information
- Application Number
- CN202410796682.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In existing rope-driven flexible manipulators, the joint encoder occupies a large space, and the power lines and signal lines occupy internal gaps, making it difficult to complete tasks such as power transmission and fluid infusion, affecting the flexibility and application scenarios of the manipulator.
The equivalent joint angle sensing method of the robotic arm segment based on an external IMU is adopted. The IMU measurement device is installed on the end arm. The IMU sensor is used to replace the joint encoder to calculate the joint angle, reducing weight and occupying space.
It achieves flexible control of the robotic arm, reduces the weight of the robotic arm, and improves its control accuracy and application flexibility.
Smart Images

Figure CN118438455B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robotics technology, and in particular to a method and device for sensing equivalent joint angles of robot arm segments based on an external IMU. Background Art
[0002] The rope-driven flexible robotic arm itself has the characteristics of high degree of freedom and strong flexibility. The invention of the linkage arm segment further increases the length and rigidity of the rope-driven flexible robotic arm, making its application scenarios more extensive. At present, the shape of the arm segment of a rope-driven segmented linkage robotic arm, that is, the perception of the angles of each small joint of the linkage segment, is mainly achieved by installing angle encoders on each small joint. However, due to its own volume, the joint encoder will occupy the space of the joint, causing the overall thickness of the robotic arm to become thicker, which is contrary to the concept of the slender and flexible rope-driven flexible robotic arm. In addition, the large number of joints in the linkage segment leads to a large number of joint encoders that need to be used. The large number of power cords and signal lines of the joint encoders occupy the gaps inside the robotic arm, making it difficult to install wires or oil pipes to complete tasks such as power transmission and infusion. Summary of the invention
[0003] The present invention provides a method and device for sensing equivalent joint angles of robot arm segments based on an external IMU, aiming to solve at least one of the technical problems existing in the prior art.
[0004] The technical solution of the present invention is a method for sensing equivalent joint angles of a manipulator arm segment based on an external IMU. The method for sensing equivalent joint angles of a manipulator arm segment based on an external IMU is applied to a rope-driven flexible manipulator arm. The rope-driven flexible manipulator arm comprises at least one linkage arm segment and an IMU measuring device. Each linkage arm segment comprises a plurality of arm rods and a plurality of cross-axis universal joints. In the linkage arm segment, a single arm rod and a single cross-axis universal joint are sequentially connected at intervals. The IMU measuring device is installed on the end arm rod in the linkage arm segment at the end of the rope-driven flexible manipulator arm. The method for sensing equivalent joint angles of a manipulator arm segment based on an external IMU comprises the following steps:
[0005] S100, initializing the rope-driven flexible robotic arm and performing zero-position leveling calibration of the linkage arm segment;
[0006] S200: Establish the base coordinate system B and the gimbal coordinate system group of the entire linkage arm segment, calculate the transformation matrix between each gimbal coordinate system, and calculate the posture of the linkage arm segment. The Jacobian matrix of the end pose for the joint angles ;
[0007] S300: Establish the world coordinate system W and the self coordinate system I of the IMU measurement device, as well as the coordinate system E of the end of the linkage arm segment, and obtain the posture of the IMU measurement device at the end of all linkage arm segments of the rope-driven flexible manipulator ;
[0008] S400, calculating the posture of the linkage arm segment end coordinate system E relative to the entire linkage robot arm base coordinate system B , get the rotation matrix of the current segment's linkage arm segment end coordinate system E relative to the base coordinate system B And the rotation matrix of the previous segment's linkage arm segment end coordinate system E relative to the base coordinate system B , and then get the rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point ;
[0009] S500, the current actual posture of the linkage arm segment and the current calculated posture of the linkage arm segment The corresponding columns of the vector cross product calculation are performed to obtain the posture difference ;
[0010] S600, linkage law matrix based on linkage arm segment and , update the iteration process of all joints , expand the current calculated posture Jacobian matrix And the current posture difference matrix , get the extended posture Jacobian matrix And the extended attitude error matrix ;
[0011] S700, based on the pseudo-inverse method, calculate the joint angle increment of the current iteration , update the current calculated joint angle ;
[0012] S800, if the vector modulus of the joint angle increment of the current iteration is less than the preset first threshold flag1, the iteration converges; if it is difficult to converge, the iteration is changed to terminate when the vector modulus of the current posture difference is less than the second threshold flag2;
[0013] S900: If the iteration termination condition is not reached, the updated current calculated joint angle value is used. , return to step S200 to perform the next iteration. If the iteration termination condition is met, the joint angle is output. It is the current joint angle of the linkage arm segment.
[0014] Further, the step S100 includes:
[0015] S110, adjusting each linkage arm segment of the rope-driven flexible mechanical arm to a linkage arm segment zero position, wherein the linkage arm segment zero position is that each linkage arm segment is in a vertical state;
[0016] S120, calibrating an IMU measuring device, wherein the calibrating the IMU measuring device at least includes calibrating a gyroscope, an accelerometer, and a magnetometer of the IMU measuring device, and setting a current angle of an IMU sensor of the IMU measuring device to 0;
[0017] S130, setting the joint angles of all cross-axis universal joints of the linkage arm segment to 0, and the iteration process quantities of all joints to 0.
[0018] Further, the step S200 includes:
[0019] S210, establishing a base coordinate system B, wherein the z-axis direction of the base coordinate system B coincides with the direction of the first joint axis of the linkage arm segment, the x-axis direction of the base coordinate system B is selected as the extension direction of the connecting rod when the robot arm is in the zero position state, that is, the vertical upward direction, and the y-axis direction of the base coordinate system B is determined by the right-hand rule;
[0020] S220, establishing a gimbal coordinate system group based on the DH method, wherein the gimbal coordinate system group includes a starting zeroth coordinate system based on the first degree of freedom of the first gimbal of the linkage arm segment, a first coordinate system based on the second degree of freedom of the first gimbal of the linkage arm segment, a second coordinate system based on the first degree of freedom of the second gimbal of the linkage arm segment, a third coordinate system based on the second degree of freedom of the second gimbal of the linkage arm segment, a fourth coordinate system based on the first degree of freedom of the third gimbal of the linkage arm segment, a fifth coordinate system based on the second degree of freedom of the third gimbal of the linkage arm segment, a sixth coordinate system based on the first degree of freedom of the fourth gimbal of the linkage arm segment, a seventh coordinate system based on the second degree of freedom of the fourth gimbal of the linkage arm segment, and an end eighth coordinate system based on the next linkage arm segment or the end;
[0021] S230, according to the current joint angle Value, based on the DH method, construct the transformation matrix between each universal joint coordinate system;
[0022] S240, by cumulative multiplication, obtain the calculated posture of the eighth coordinate system at the end relative to the zeroth coordinate system at the start , the calculated posture Represented in the form of a rotation matrix;
[0023] S250, based on the transformation matrix between the DH coordinate systems, use the construction method to obtain the calculation posture Jacobian matrix of the end posture for the 8 joint angles .
[0024] Further, the step S300 includes:
[0025] S310, establish the world coordinate system W, the self coordinate system I and the linkage arm segment end coordinate system E of the IMU measuring device, wherein the z-axis of the world coordinate system W coincides with the vertical upward direction of the z-axis of the IMU measuring device when it is placed horizontally, the x-direction of the world coordinate system W is the geomagnetic direction, and the angle between the x-direction of the world coordinate system W and the x-axis direction of the IMU measuring device when it is placed horizontally is is the yaw angle output by the IMU measuring device, the self coordinate system I is constantly changing with the movement of the IMU measuring device, and the end coordinate system E of the linkage arm segment coincides with the eighth coordinate system at the end of the last linkage arm segment;
[0026] S320, obtaining the posture data of the IMU measuring device at the end of all the linkage arm segments of the rope-driven flexible manipulator, wherein the posture data of the IMU measuring device is the posture of the IMU measuring device at the end of arm segment i in its own coordinate system I relative to the IMU measuring device in the world coordinate system W If the rope-driven flexible manipulator has multiple linkage arm segments, the posture of the previous arm segment i-1 relative to the world coordinate system W is obtained .
[0027] Further, in step S400,
[0028] ,
[0029] in, is the rotation matrix from the robot base coordinate system B to the IMU world coordinate system W, Related to the installation direction of the IMU measurement device, is the rotation matrix of the IMU measurement device from its own coordinate system I to the coordinate system E of the end of the linkage arm segment, Related to the installation direction of the IMU measurement device,
[0030] ,
[0031] in, The initial angle of the yaw axis of the IMU measurement device when the robot arm is at zero position;
[0032] ,
[0033] in, is the rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point, is the rotation matrix of the previous segment’s linkage arm end coordinate system E relative to the base coordinate system B, is the rotation matrix of the linkage arm segment end coordinate system E of the current segment relative to the base coordinate system B, where:
[0034] .
[0035] Further, in step S500, the posture difference for:
[0036] ,
[0037] in, is the calculated attitude matrix of the eighth coordinate system at the end relative to the zeroth coordinate system at the start, For the matrix The vector consisting of the first columns of rows 1 to 3, and so on. The rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point calculated by IMU data, is the attitude difference between the above two matrices, in the formula is the vector cross product symbol.
[0038] Furthermore, in step S600, the iterative process quantity of the joint ,satisfy,
[0039] ,
[0040] Among them, the linkage law matrix for:
[0041] ,
[0042] Linkage Law Matrix for:
[0043] ,
[0044] The iterative process amount of each joint iterated Need to meet:
[0045] The 1st, 4th, 5th and 8th joints in the linkage section are joints in the same direction, and the 2nd, 3rd, 6th and 7th joints are joints in the same direction. During the movement, due to the linkage effect, the change angles of the small joints in the same direction are approximately equal and meet a certain linear relationship, that is:
[0046] ,
[0047] Among them, each and It is a set of linkage proportional coefficients obtained through experiments and other methods, which belongs to the characteristics of the rope-driven flexible manipulator itself;
[0048] For each iteration, the joint angle increment Satisfy the linkage law of the linkage arm segment, add constraints during the iteration process, and calculate the Jacobian matrix of the current posture and S current posture difference matrix Expand and get the expanded posture Jacobian matrix And the extended attitude error matrix :
[0049] ,
[0050] ,
[0051] Among them, the matrix and matrix is the linkage rule matrix, is the attitude error, To expand the attitude error, is the attitude Jacobian matrix, is the extended pose Jacobian matrix.
[0052] Further, in step S700,
[0053] The joint angle increment for the current iteration for:
[0054] ,
[0055] in, is the joint angle increment of the current iteration, To expand the attitude error, is the extended attitude Jacobian matrix, To obtain the pseudo-inverse operation.
[0056] The current calculated joint angle for:
[0057] ,
[0058] in, is the joint angle increment of the current iteration, Calculate the joint angle for the current position.
[0059] Further, in step S800,
[0060] The vector modulus of the joint angle increment of the current iteration is less than the preset first threshold flag1, which is expressed as:
[0061] ,
[0062] If it is difficult to converge, the iteration termination is changed to the vector modulus length of the current posture difference is less than the second threshold flag2, which is expressed as:
[0063] ,
[0064] Due to the sensor accuracy and zero drift of the IMU measurement device, there is a certain error between the posture obtained by the IMU measurement device and the actual posture, which makes it difficult to converge.
[0065] Furthermore, the present invention also proposes a robot arm segment equivalent joint angle sensing device based on an external IMU, which is used to implement a robot arm segment equivalent joint angle sensing method based on an external IMU. The robot arm segment equivalent joint angle sensing device based on an external IMU includes:
[0066] At least one linkage arm segment, each linkage arm segment includes four arm rods and four cross-axis universal joints, within the linkage arm segment, a single arm rod and a single cross-axis universal joint are sequentially connected at intervals, and the linkage arm segment is driven by a rope, and the rope passes through each arm rod and each cross-axis universal joint;
[0067] An IMU measuring device is installed on the end arm rod in the linkage arm section at the end of the rope-driven flexible manipulator. The IMU measuring device includes an IMU circuit board, a tooling, and a gasket. The tooling is provided with a fixing hole. The IMU circuit board is installed on the tooling by passing bolts through the fixing holes. The gasket is arranged between the IMU circuit board and the tooling.
[0068] The beneficial effects of the present invention are:
[0069] The present invention proposes a method and device for sensing the joint angles of arm segments of a rope-driven segmented linkage robotic arm by using an IMU sensor instead of a joint encoder, which can reduce the weight of the robotic arm and make the control of the robotic arm more flexible. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 This is a flow chart of the equivalent joint angle perception method of the robotic arm segment based on the external IMU.
[0071] Figure 2 The figure is a flow chart of the algorithm flow of the joint angle perception of the arm segments of the IMU-based rope-driven segmented linkage robotic arm, which is a method for sensing the equivalent joint angles of the arm segments of the robotic arm based on an external IMU.
[0072] Figure 3 This is a schematic diagram of the transformation relationship between the DH coordinate system of the linkage arm segment and the IMU related coordinate system of the robotic arm segment equivalent joint angle perception method based on the external IMU.
[0073] Figure 4 The overall structure of the robotic arm segment equivalent joint angle sensing device based on an external IMU and a schematic diagram of the IMU sensor position.
[0074] Figure 5 This is a schematic diagram of the overall structure of the arm segment and the position of the IMU sensor of the robotic arm segment equivalent joint angle sensing device based on the external IMU.
[0075] In the above figure, 100, arm; 200, cross-axis universal joint; 300, rope; 400, IMU measuring device; 410, IMU circuit board; 420, tooling; 430, fixing hole; 440, bolt; 450, gasket. DETAILED DESCRIPTION
[0076] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of the present invention, so as to fully understand the purpose, scheme and effect of the present invention. It should be noted that the embodiments and features in the embodiments of this application can be combined with each other without conflict.
[0077] It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature, or it may be indirectly fixed or connected to the other feature. In addition, the descriptions of up, down, left, right, top, bottom, etc. used in the present invention are only relative to the relative positional relationship of the components of the present invention in the drawings.
[0078] In addition, unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art. The terms used in this specification are only for describing specific embodiments, not for limiting the present invention. The term "and / or" used herein includes any combination of one or more related listed items.
[0079] It should be understood that, although the terms first, second, third, etc. may be used to describe various elements in the present disclosure, these elements should not be limited to these terms. These terms are only used to distinguish elements of the same type from each other. For example, without departing from the scope of the present disclosure, the first element may also be referred to as the second element, and similarly, the second element may also be referred to as the first element.
[0080] Reference Figures 1 to 5 In some embodiments, the technical solution of the present invention is a method and device for sensing equivalent joint angles of a robotic arm segment based on an external IMU, referring to Figures 1 to 3 The method for sensing equivalent joint angles of a manipulator arm segment based on an external IMU is applied to a rope-driven flexible manipulator arm. The rope-driven flexible manipulator arm includes at least one linkage arm segment and an IMU measuring device 400. Each linkage arm segment includes a plurality of arm rods 100 and a plurality of cross-axis universal joints 200. In the linkage arm segment, a single arm rod 100 and a single cross-axis universal joint 200 are sequentially connected at intervals. The IMU measuring device 400 is installed on the end arm rod 100 in the linkage arm segment at the end of the rope-driven flexible manipulator arm. The method for sensing equivalent joint angles of a manipulator arm segment based on an external IMU includes the following steps:
[0081] S100, initializing the rope-driven flexible robotic arm and performing zero-position leveling calibration of the linkage arm segment;
[0082] S200: Establish the base coordinate system B and the gimbal coordinate system group of the entire linkage arm segment, calculate the transformation matrix between each gimbal coordinate system, and calculate the posture of the linkage arm segment. The Jacobian matrix of the end pose for the joint angles ;
[0083] S300: Establish the world coordinate system W and the self coordinate system I of the IMU measuring device 400, as well as the linkage arm segment end coordinate system E, and obtain the posture of the IMU measuring device 400 at the end of all linkage arm segments of the rope-driven flexible manipulator ;
[0084] S400, calculating the posture of the linkage arm segment end coordinate system E relative to the entire linkage robot arm base coordinate system B , get the rotation matrix of the current segment's linkage arm segment end coordinate system E relative to the base coordinate system B And the rotation matrix of the previous segment's linkage arm segment end coordinate system E relative to the base coordinate system B , and then get the rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point ;
[0085] S500, the current actual posture of the linkage arm segment and the current calculated posture of the linkage arm segment The corresponding columns of the vector cross product calculation are performed to obtain the posture difference ;
[0086] S600, linkage law matrix based on linkage arm segment and , update the iteration process of all joints , expand the current calculated posture Jacobian matrix And the current posture difference matrix , get the extended posture Jacobian matrix And the extended attitude error matrix ;
[0087] S700, based on the pseudo-inverse method, calculate the joint angle increment of the current iteration , update the current calculated joint angle ;
[0088] S800, if the vector modulus of the joint angle increment of the current iteration is less than the preset first threshold flag1, the iteration converges; if it is difficult to converge, the iteration is changed to terminate when the vector modulus of the current posture difference is less than the second threshold flag2;
[0089] S900: If the iteration termination condition is not reached, the updated current calculated joint angle value is used. , return to step S200 to perform the next iteration. If the iteration termination condition is met, the joint angle is output. It is the current joint angle of the linkage arm segment.
[0090] The beneficial effects of the present invention are:
[0091] The present invention proposes a method and device for sensing the joint angles of arm segments of a rope-driven segmented linkage robotic arm by using an IMU sensor instead of a joint encoder, which can reduce the weight of the robotic arm and make the control of the robotic arm more flexible.
[0092] Reference Figure 3 The movement of each cross-axis joint can be expressed as the rotation angle around its two axes. The entire arm segment has 4 cross-axis joints, so the entire arm segment has 8 joint angles.
[0093] Reference Figure 3 Regarding each coordinate system, the base coordinate system B can be selected arbitrarily in theory, but in order to make it physically meaningful, its z-axis coincides with the direction of the first joint axis, the x-axis selects the extension direction of the connecting rod when the robot arm is in zero position (i.e. vertically upward), and the y-axis is determined by the right-hand rule.
[0094] Coordinate systems 0-8 (i.e., the starting zero coordinate system based on the first degree of freedom of the first universal joint of the linkage arm segment, the first coordinate system based on the second degree of freedom of the first universal joint of the linkage arm segment, the second coordinate system based on the first degree of freedom of the second universal joint of the linkage arm segment, the third coordinate system based on the second degree of freedom of the second universal joint of the linkage arm segment, the fourth coordinate system based on the first degree of freedom of the third universal joint of the linkage arm segment, the fifth coordinate system based on the second degree of freedom of the third universal joint of the linkage arm segment, the sixth coordinate system based on the first degree of freedom of the fourth universal joint of the linkage arm segment, The seventh coordinate system based on the second degree of freedom of the fourth universal joint of the linkage arm segment and the eighth coordinate system based on the next linkage arm segment or the end) are established according to the DH method commonly used for articulated robotic arms. The principles are: each cross axis can be regarded as two joints, whose axes are coplanar and perpendicular; the z-axis direction of each coordinate system coincides with the direction of the joint rotation axis, except for the x-axis reference base coordinate system of the 0 system, the x-axis direction of the remaining coordinate systems is the direction of the normal vector of the plane where the z-axis of the z-axis of the previous coordinate system is located, the origin is the intersection of the x-axis and the z-axis, and the y-axis direction is determined by the right-hand rule.
[0095] W is the IMU world coordinate system, which is characterized by: the z-axis coincides with the z-axis (vertically upward) when the IMU is powered on, the x-direction is the geomagnetic direction, and the angle between it and the x-axis direction when the IMU is powered on is the yaw angle output by the IMU at this time, which can be recorded from the IMU data.
[0096] Coordinate system I is the current IMU's own coordinate system, which changes with the movement of the IMU. The direction of the own coordinate system can be found in the IMU manufacturer's documentation. Coordinate system E is the coordinate system at the end of the linkage segment, which coincides with coordinate system 8 in this example.
[0097] Each 4-axis 8-joint linkage segment has only one , and the subscript i-1 refers to the previous linkage segment. Since this algorithm mainly solves a single linkage segment, the previous linkage segment is not shown in the figure. However, since the linkage segment in question may be connected to the base at the root or to other linkage segments in the middle, the data of the previous linkage segment may be used when solving. and The acquisition methods are exactly the same. They are all attitude data output by IMU, which are transformed from quaternion form to rotation matrix form. The difference is that the former uses the IMU in this section, and the latter uses the IMU in the previous section.
[0098] Further, refer to Figures 1 to 3 , the step S100 comprises:
[0099] S110, adjusting each linkage arm segment of the rope-driven flexible mechanical arm to a linkage arm segment zero position, wherein the linkage arm segment zero position is that each linkage arm segment is in a vertical state;
[0100] S120, calibrating the IMU measuring device 400, wherein the calibrating the IMU measuring device 400 at least includes calibrating the gyroscope, accelerometer, and magnetometer of the IMU measuring device 400, and setting the current angle of the IMU sensor of the IMU measuring device 400 to 0;
[0101] S130, setting the joint angles of all cross-axis universal joints 200 of the linkage arm segment to 0, and the iteration process quantities of all joints to 0.
[0102] Specifically, in step S130, the linkage rope 300 inside a single linkage arm segment enables the entire arm segment to have only two degrees of freedom of rotation around the yaw direction and the pitch direction. The movement of each cross-axis universal joint is expressed as the rotation angle around its two axes. Each linkage arm segment has 4 cross-axis universal joints, and a single linkage arm segment has 8 joint angles. Therefore,
[0103] Joint angle of cross-axis universal joint 200 A value of 0 is represented by:
[0104] ,
[0105] in, There are 8 joint angles.
[0106] Iteration process volume for all joints A value of 0 is represented by:
[0107] ,
[0108] in, The 8 joint angle increments for the current iteration.
[0109] Further, refer to Figures 1 to 3 , the step S200 comprises:
[0110] S210, establishing a base coordinate system B, wherein the z-axis direction of the base coordinate system B coincides with the direction of the first joint axis of the linkage arm segment, the x-axis direction of the base coordinate system B is selected as the extension direction of the connecting rod when the robot arm is in the zero position state, that is, the vertical upward direction, and the y-axis direction of the base coordinate system B is determined by the right-hand rule;
[0111] S220, establishing a gimbal coordinate system group based on the DH method, wherein the gimbal coordinate system group includes a starting zeroth coordinate system based on the first degree of freedom of the first gimbal of the linkage arm segment, a first coordinate system based on the second degree of freedom of the first gimbal of the linkage arm segment, a second coordinate system based on the first degree of freedom of the second gimbal of the linkage arm segment, a third coordinate system based on the second degree of freedom of the second gimbal of the linkage arm segment, a fourth coordinate system based on the first degree of freedom of the third gimbal of the linkage arm segment, a fifth coordinate system based on the second degree of freedom of the third gimbal of the linkage arm segment, a sixth coordinate system based on the first degree of freedom of the fourth gimbal of the linkage arm segment, a seventh coordinate system based on the second degree of freedom of the fourth gimbal of the linkage arm segment, and an end eighth coordinate system based on the next linkage arm segment or the end;
[0112] S230, according to the current joint angle Value, based on the DH method, construct the transformation matrix between each universal joint coordinate system;
[0113] S240, by cumulative multiplication, obtain the calculated posture of the eighth coordinate system at the end relative to the zeroth coordinate system at the start , the calculated posture Represented in the form of a rotation matrix;
[0114] S250, based on the transformation matrix between the DH coordinate systems, use the construction method to obtain the calculation posture Jacobian matrix of the end posture for the 8 joint angles .
[0115] Further, refer to Figures 1 to 3 , the step S300 comprises:
[0116] S310, establish the world coordinate system W, the self coordinate system I and the linkage arm segment end coordinate system E of the IMU measuring device 400, wherein the z-axis of the world coordinate system W coincides with the vertical upward direction of the z-axis of the IMU measuring device 400 when it is placed horizontally, the x-direction of the world coordinate system W is the geomagnetic direction, and the angle between the x-direction of the world coordinate system W and the x-axis direction of the IMU measuring device 400 when it is placed horizontally is is the yaw angle output by the IMU measuring device 400, the own coordinate system I is constantly changing with the movement of the IMU measuring device 400, and the linkage arm segment end coordinate system E coincides with the eighth coordinate system at the end of the last linkage arm segment;
[0117] S320, obtaining the posture data of the IMU measuring device 400 at the end of all linkage arm segments of the rope-driven flexible manipulator, wherein the posture data of the IMU measuring device 400 is the posture data of the IMU measuring device 400 at the end of arm segment i in its own coordinate system I relative to the IMU measuring device 400 in the world coordinate system W If the rope-driven flexible manipulator has multiple linkage arm segments, the posture of the previous arm segment i-1 relative to the world coordinate system W is obtained .
[0118] Further, refer to Figures 1 to 3 In the step S400,
[0119] ,
[0120] in, is the rotation matrix from the robot base coordinate system B to the IMU world coordinate system W, Related to the installation direction of the IMU measurement device 400, is the rotation matrix of the IMU measuring device 400 from its own coordinate system I to the linkage arm segment end coordinate system E, Related to the installation direction of the IMU measurement device,
[0121] ,
[0122] in, is the initial angle of the yaw axis of the IMU measuring device 400 when the robot arm is at zero position;
[0123] ,
[0124] in, is the rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point, is the rotation matrix of the previous segment’s linkage arm end coordinate system E relative to the base coordinate system B, is the rotation matrix of the linkage arm segment end coordinate system E of the current segment relative to the base coordinate system B, where:
[0125] .
[0126] Further, refer to Figures 1 to 3 In step S500, the posture difference for:
[0127] ,
[0128] in, is the calculated attitude matrix of the eighth coordinate system at the end relative to the zeroth coordinate system at the start, For the matrix The vector consisting of the first columns of rows 1 to 3, and so on. The rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point calculated by IMU data, is the attitude difference between the above two matrices, in the formula is the vector cross product symbol.
[0129] Further, refer to Figures 1 to 3 In step S600, the iterative process of the joint ,satisfy,
[0130] ,
[0131] Among them, the linkage law matrix for:
[0132] ,
[0133] Linkage Law Matrix for:
[0134] ,
[0135] The iterative process amount of each joint iterated Need to meet:
[0136] The 1st, 4th, 5th and 8th joints in the linkage section are joints in the same direction, and the 2nd, 3rd, 6th and 7th joints are joints in the same direction. During the movement, due to the linkage effect, the change angles of the small joints in the same direction are approximately equal and meet a certain linear relationship, that is:
[0137] ,
[0138] Among them, each and It is a set of linkage proportional coefficients obtained through experiments and other methods, which belongs to the characteristics of the rope-driven flexible manipulator itself;
[0139] For each iteration, the joint angle increment Satisfy the linkage law of the linkage arm segment, add constraints during the iteration process, and calculate the Jacobian matrix of the current posture and S current posture difference matrix Expand and get the expanded posture Jacobian matrix And the extended attitude error matrix :
[0140] ,
[0141] ,
[0142] Among them, the matrix and matrix is the linkage rule matrix, is the attitude error, To expand the attitude error, is the attitude Jacobian matrix, is the extended pose Jacobian matrix.
[0143] Further, refer to Figures 1 to 3 In the step S700,
[0144] The joint angle increment for the current iteration for:
[0145] ,
[0146] in, is the joint angle increment of the current iteration, To expand the attitude error, is the extended attitude Jacobian matrix, To obtain the pseudo-inverse operation.
[0147] The current calculated joint angle for:
[0148] ,
[0149] in, is the joint angle increment of the current iteration, Calculate the joint angle for the current position.
[0150] Further, refer to Figures 1 to 3 In step S800, the vector modulus of the joint angle increment of the current iteration is less than the preset first threshold flag1, which is represented by:
[0151] ,
[0152] If it is difficult to converge, the iteration termination is changed to the vector modulus length of the current posture difference is less than the second threshold flag2, which is expressed as:
[0153] ,
[0154] Due to reasons such as the sensor accuracy and zero drift of the IMU measuring device 400 , there is a certain error between the posture obtained by the IMU measuring device 400 and the actual posture, which makes it difficult to converge.
[0155] Further, refer to Figures 4 to 5 The present invention also proposes a robot arm segment equivalent joint angle sensing device based on an external IMU, which is used to implement a robot arm segment equivalent joint angle sensing method based on an external IMU. The robot arm segment equivalent joint angle sensing device based on an external IMU includes:
[0156] At least one linkage arm segment, each linkage arm segment includes four arm rods 100 and four cross-axis universal joints 200, within the linkage arm segment, a single arm rod 100 and a single cross-axis universal joint 200 are sequentially connected at intervals, and the linkage arm segment is driven by a rope 300, and the rope 300 passes through each arm rod 100 and each cross-axis universal joint 200;
[0157] An IMU measuring device 400 is installed on the end arm rod 100 in the linkage arm section at the end of the rope-driven flexible manipulator. The IMU measuring device 400 includes an IMU circuit board 410, a tooling 420, and a gasket 450. The tooling 420 is provided with a fixing hole 430. The IMU circuit board 410 is installed on the tooling 420 by means of a bolt 440 passing through the fixing hole 430. The gasket 450 is arranged between the IMU circuit board 410 and the tooling 420.
[0158] In a specific embodiment, the present invention is applied to a linkage arm segment of a rope-driven segmented linkage robot arm, whose mechanical structure is mainly composed of an arm 100 and a cross axis, and one segment includes four arm 100 and four cross axes. The linkage arm segment is driven by a rope 300, and the linkage rope 300 inside the arm segment enables the entire arm segment to have only two degrees of freedom of rotation around the yaw direction and the pitch direction, and the rotation angles of each small joint inside are almost equal. The IMU circuit board 410 is connected to the threaded hole on the arm 100 through the tooling 420 through the fixing hole 430 on the tooling 420. The circuit board is fixed to the tooling 420 by bolts 440 through the through holes on the board, and a gasket 450 is placed between the circuit board and the tooling 420 to ensure that the IMU is installed smoothly. After installation, the IMU sensor needs to be calibrated and adjusted at the zero position of the linkage arm segment.
[0159] Specifically, refer to Figures 4 to 5This embodiment is applied to a linkage arm segment of a rope-driven segmented linkage robot arm. The mechanical structure of the linkage arm segment is mainly composed of an arm rod 100 and a cross-axis universal joint 200. One segment includes four arm rods 100 and four cross-axis universal joints 200. Figure 4 The lowest arm 100 is used to indicate the base or the end of the previous linkage segment, and the upper four arm 100 and the cross-axis universal joint 200 constitute a linkage arm segment. The linkage arm segment is driven by a rope 300. The linkage rope 300 inside the arm segment enables the entire arm segment to have only two degrees of freedom of rotation around the yaw direction and the pitch direction, and the rotation angles of the small joints in all directions inside are almost equal. The movement of each cross-axis joint can be expressed as the rotation angle around its two axes. The entire arm segment has 4 cross-axis joints, so the entire arm segment has 8 joint angles. For the remaining details of this linkage arm segment, please refer to the invention disclosure document of the applicant's previous title "A rope-driven segmented linkage flexible mechanical arm with joint sensing and double closed-loop functions" with publication number CN116408781A, which is hereby incorporated by reference in its entirety.
[0160] Reference Figure 5 , which is the fixing method of the IMU sensor to the end of the linkage arm segment. The IMU circuit board 410 passes through the fixture 420, and the fixing hole 430 on the fixture 420 is connected to the threaded hole on the arm 100. The circuit board is fixed to the fixture 420 by bolts 440 through the through holes on the board. A gasket 450 is placed between the IMU circuit board 410 and the fixture 420 to separate the pins and components on the lower layer of the circuit board, etc., to ensure that the IMU is installed flat. There is only one IMU in the entire robotic arm. After installation, the IMU sensor needs to be calibrated and leveled at the zero position of the linkage arm segment (i.e., the straight position): calibrate its gyroscope, accelerometer and magnetometer according to the guidance method of the IMU sensor manufacturer, then keep the robotic arm at zero position (vertical), and set the current angle of the IMU sensor to 0.
[0161] The above is only a preferred embodiment of the present invention. The present invention is not limited to the above implementation. As long as the technical effect of the present invention is achieved by the same means, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of protection of the present disclosure. All should belong to the protection scope of the present invention. Within the protection scope of the present invention, its technical scheme and / or implementation method can have various modifications and changes.
Claims
1. A method for sensing equivalent joint angles of a manipulator arm segment based on an external IMU, applied to a rope-driven flexible manipulator arm, the rope-driven flexible manipulator arm comprising at least one linkage arm segment and an IMU measuring device (400), each linkage arm segment comprising a plurality of arm rods (100) and a plurality of cross-axis universal joints (200), wherein within the linkage arm segment, a single arm rod (100) and a single cross-axis universal joint (200) are sequentially connected in intervals, and the IMU measuring device (400) is mounted on the end arm rod (100) in the linkage arm segment at the end of the rope-driven flexible manipulator arm, characterized in that: The method for sensing equivalent joint angles of a robotic arm segment based on an external IMU comprises the following steps: S100, initializing the rope-driven flexible robotic arm and performing zero-position leveling calibration of the linkage arm segment; S200: Establish the base coordinate system B and the universal joint coordinate system group of the entire linkage arm segment, calculate the transformation matrix between each universal joint coordinate system, and calculate the posture of the linkage arm segment. The Jacobian matrix of the end pose for the joint angles ; S300, establishing the world coordinate system W and the self coordinate system I of the IMU measuring device (400), as well as the linkage arm segment end coordinate system E, and obtaining the posture of the IMU measuring device (400) at the end of all linkage arm segments of the rope-driven flexible manipulator ; S400, calculating the posture of the linkage arm segment end coordinate system E relative to the entire linkage robot arm base coordinate system B , get the rotation matrix of the current segment's linkage arm segment end coordinate system E relative to the base coordinate system B And the rotation matrix of the previous segment's linkage arm segment end coordinate system E relative to the base coordinate system B , and then get the rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point ; S500, the current actual posture of the linkage arm segment and the current calculated posture of the linkage arm segment The corresponding columns of the vector cross product are calculated to obtain the attitude error ; S600, linkage law matrix based on linkage arm segment and , update the iteration process of all joints , expand the current calculated posture Jacobian matrix And the current posture error matrix , get the extended posture Jacobian matrix And the extended attitude error matrix ; S700, based on the pseudo-inverse method, calculate the iterative process quantity of the current iteration , update the current calculated joint angle ; S800, if the vector modulus of the iterative process quantity of the current iteration is less than the preset first threshold flag1, the iteration converges; if it is difficult to converge, the iteration is changed to terminate when the vector modulus of the current posture error is less than the second threshold flag2; S900: If the iteration termination condition is not reached, the updated current calculated joint angle is used. , return to step S200 to perform the next iteration. If the iteration termination condition is met, the calculated joint angle is output. It is the current joint angle of the linkage arm segment.
2. The method for sensing equivalent joint angles of a robotic arm segment based on an external IMU according to claim 1, characterized in that: The step S100 includes: S110, adjusting each linkage arm segment of the rope-driven flexible mechanical arm to a linkage arm segment zero position, wherein the linkage arm segment zero position is that each linkage arm segment is in a vertical state; S120, calibrating the IMU measurement device (400), wherein the calibrated IMU measurement device (400) at least comprises a gyroscope, an accelerometer and a magnetometer of the calibrated IMU measurement device (400), and setting the current angle of the IMU sensor of the IMU measurement device (400) to 0; S130, setting the joint angles of all cross-axis universal joints (200) of the linkage arm segment to 0, and the iteration process quantities of all joints to 0.
3. The method for sensing equivalent joint angles of a robotic arm segment based on an external IMU according to claim 2, characterized in that: The step S200 includes: S210, establishing a base coordinate system B, wherein the z-axis direction of the base coordinate system B coincides with the direction of the first joint axis of the linkage arm segment, the x-axis direction of the base coordinate system B is selected as the extension direction of the connecting rod when the robot arm is in the zero position state, that is, the vertical upward direction, and the y-axis direction of the base coordinate system B is determined by the right-hand rule; S220, establishing a gimbal coordinate system group based on the DH method, wherein the gimbal coordinate system group includes a starting zeroth coordinate system based on the first degree of freedom of the first gimbal of the linkage arm segment, a first coordinate system based on the second degree of freedom of the first gimbal of the linkage arm segment, a second coordinate system based on the first degree of freedom of the second gimbal of the linkage arm segment, a third coordinate system based on the second degree of freedom of the second gimbal of the linkage arm segment, a fourth coordinate system based on the first degree of freedom of the third gimbal of the linkage arm segment, a fifth coordinate system based on the second degree of freedom of the third gimbal of the linkage arm segment, a sixth coordinate system based on the first degree of freedom of the fourth gimbal of the linkage arm segment, a seventh coordinate system based on the second degree of freedom of the fourth gimbal of the linkage arm segment, and an end eighth coordinate system based on the next linkage arm segment or the end; S230, based on the current calculated joint angle Value, based on the DH method, construct the transformation matrix between each universal joint coordinate system; S240, by cumulative multiplication, obtain the calculated posture of the eighth coordinate system at the end relative to the zeroth coordinate system at the start , the calculated posture Represented in the form of a rotation matrix; S250, based on the transformation matrix between the DH coordinate systems, use the construction method to obtain the calculation posture Jacobian matrix of the end posture for the 8 joint angles .
4. The method for sensing equivalent joint angles of a robotic arm segment based on an external IMU according to claim 3, characterized in that: The step S300 includes: S310, establishing a world coordinate system W, a self coordinate system I, and a linkage arm segment end coordinate system E of the IMU measuring device (400), wherein the z-axis of the world coordinate system W coincides with the vertical upward direction of the z-axis of the IMU measuring device (400) when it is placed horizontally, the x-direction of the world coordinate system W is the geomagnetic direction, and the angle between the x-direction of the world coordinate system W and the x-axis direction of the IMU measuring device (400) when it is placed horizontally is is the yaw angle output by the IMU measuring device (400), the own coordinate system I is constantly changing with the movement of the IMU measuring device (400), and the linkage arm segment end coordinate system E coincides with the eighth coordinate system at the end of the last linkage arm segment; S320, obtaining the posture data of the IMU measuring devices (400) at the ends of all linkage arm segments of the rope-driven flexible manipulator, wherein the posture data of the IMU measuring devices (400) are the posture data of the IMU measuring devices (400) at the ends of the i-th linkage arm segment in its own coordinate system I relative to the posture data of the IMU measuring devices (400) in the world coordinate system W. If the rope-driven flexible manipulator has multiple linkage arm segments, the posture of the previous linkage arm segment i-1 relative to the world coordinate system W is obtained .
5. The method for sensing equivalent joint angles of a robotic arm segment based on an external IMU according to claim 4, characterized in that: In the step S400, , in, is the rotation matrix from the linkage arm base coordinate system B to the IMU world coordinate system W, Related to the installation direction of the IMU measurement device (400), is the rotation matrix of the IMU measuring device (400) from its own coordinate system I to the linkage arm segment end coordinate system E, Related to the installation direction of the IMU measurement device, , in, is the initial angle of the yaw axis of the IMU measuring device (400) when the robot arm is at zero position; , in, is the rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point, is the rotation matrix of the previous linkage arm segment end coordinate system E relative to the base coordinate system B, is the rotation matrix of the linkage arm segment end coordinate system E of the current segment relative to the base coordinate system B, where: 。 6. The method for sensing equivalent joint angles of a robotic arm segment based on an external IMU according to claim 5, characterized in that: In step S500, the posture error for: , in, is the calculated attitude matrix of the eighth coordinate system at the end relative to the zeroth coordinate system at the start, For the matrix The first column of rows 1 to 3 of the vector, Representation Matrix The second column of rows 1 to 3 of the vector is composed of Representation Matrix The vector consisting of the third column of rows 1 to 3, The rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point calculated by IMU data, Representation Matrix The first column of rows 1 to 3 of the vector, Representation Matrix The second column of rows 1 to 3 of the vector is composed of Representation Matrix The vector consisting of the third column of rows 1 to 3, is the calculated attitude matrix of the linkage arm segment end coordinate system E relative to the starting zeroth coordinate system The rotation matrix of the end of the linkage arm segment of the current segment relative to the starting point calculated with IMU data The attitude error is is the vector cross product symbol.
7. The method for sensing equivalent joint angles of a robotic arm segment based on an external IMU according to claim 6, characterized in that: In step S600, the iterative process of the joint ,satisfy, , Among them, the linkage law matrix for: , Linkage Law Matrix for: , The iterative process amount of each joint iterated Need to meet: The 1st, 4th, 5th and 8th joints in the linkage arm segment are joints in the same direction, and the 2nd, 3rd, 6th and 7th joints are joints in the same direction. During the movement, due to the linkage effect, the change angles of the joints in the same direction are approximately equal and meet a certain linear relationship, that is: , in, , , , , and It is a set of linkage proportional coefficients obtained by experimental method, which belongs to the inherent characteristics of the rope-driven flexible manipulator; is the iterative process quantity of the first joint angle, is the iterative process quantity of the second joint angle, is the iterative process quantity of the third joint angle, is the iterative process quantity of the fourth joint angle, is the iterative process quantity of the fifth joint angle, is the iterative process quantity of the sixth joint angle, is the iterative process quantity of the seventh joint angle, is the iterative process quantity of the eighth joint angle; In order to obtain the iterative process quantity for each iteration Satisfy the linkage law of the linkage arm segment, add constraints during the iteration process, and calculate the Jacobian matrix of the current posture And the current posture error matrix Expand and get the expanded posture Jacobian matrix And the extended attitude error matrix : , , Among them, the matrix and matrix is the linkage rule matrix, is the attitude error, To expand the attitude error, is the attitude Jacobian matrix, is the extended pose Jacobian matrix.
8. The method for sensing equivalent joint angles of a robotic arm segment based on an external IMU according to claim 7, characterized in that: In the step S700, The iteration process of the current iteration for: , in, is the iteration process quantity of the current iteration, To expand the attitude error, is the extended attitude Jacobian matrix, To obtain the pseudo-inverse operation; The current calculated joint angle for: , in, is the iteration process quantity of the current iteration, Calculate the joint angle for the current position.
9. The method for sensing equivalent joint angles of a robotic arm segment based on an external IMU according to claim 8, characterized in that: In step S800, The vector modulus of the iterative process quantity of the current iteration is less than the preset first threshold flag1, which is expressed as: , If it is difficult to converge, the iteration termination is changed to the vector modulus length of the current posture error is less than the second threshold flag2, which is expressed as: , Due to the sensor accuracy and zero-point drift of the IMU measuring device (400), a certain error occurs between the posture obtained by the IMU measuring device (400) and the actual posture, making it difficult to converge.
10. A robot arm segment equivalent joint angle sensing device based on an external IMU, used to implement the robot arm segment equivalent joint angle sensing method based on an external IMU as claimed in any one of claims 1 to 9, characterized in that: The robot arm segment equivalent joint angle sensing device based on the external IMU includes: At least one linkage arm segment, each linkage arm segment comprising four arm rods (100) and four cross-axis universal joints (200), wherein within the linkage arm segment, a single arm rod (100) and a single cross-axis universal joint (200) are sequentially connected at intervals, and the linkage arm segment is driven by a rope (300), wherein the rope (300) passes through each arm rod (100) and each cross-axis universal joint (200); An IMU measuring device (400) is installed on an end arm rod (100) in a linkage arm section at the end of a rope-driven flexible mechanical arm. The IMU measuring device (400) comprises an IMU circuit board (410), a tool (420), and a gasket (450). The tool (420) is provided with a fixing hole (430). The IMU circuit board (410) is installed on the tool (420) by passing a bolt (440) through the fixing hole (430). The gasket (450) is arranged between the IMU circuit board (410) and the tool (420).
