NUMERICAL METHOD FOR OBTAINING THE INVERSE KINEMATICS OF SIX-DEGREE-OF-FREEDOM SERIAL ROBOT WITH AN OFFSET WRIST
20190111562 ยท 2019-04-18
Assignee
- Foshan Huashu Robotics Co., Ltd. (Foshan City, CN)
- Foshan Institute of Intelligent Equipment Technology (Foshan City, CN)
Inventors
- Xing ZHOU (Foshan City, CN)
- Tongshu CHEN (Foshan City, CN)
- Shifeng HUANG (Foshan City, CN)
- Simin CHEN (Foshan City, CN)
- Lin YANG (Foshan City, CN)
- Xugao DENG (Foshan City, CN)
- Haibin YANG (Foshan City, CN)
- Qun WANG (Foshan City, CN)
Cpc classification
B25J9/1607
PERFORMING OPERATIONS; TRANSPORTING
G05B2219/39028
PHYSICS
G06F17/16
PHYSICS
International classification
Abstract
Disclosed is a method for obtaining the inverse kinematics of a six-degree-of-freedom serial robot with an offset wrist. The method uses the analytical solution of the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist as an approximate solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist and an initial point for iteration, and obtains a numerical solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist meeting the accuracy through continuously iterative approaching. The present disclosure has faster convergence and less calculation amount relative to the traditional calculation method, reduces the computation burden for a robot controller, and improves the real-time performance.
Claims
1. A numerical method for obtaining the inverse kinematics of a six-degree-of-freedom serial robot with an offset wrist, comprising the following steps: A. use the pose of the terminal coordinate frame of the six-degree-of-freedom serial robot with an offset wrist as the pose of the terminal coordinate frame of a six-degree-of-freedom serial robot with a non-offset wrist to obtain an analytical solution .sub.1.sub.6 of the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist; B. use the analytical solution .sub.1.sub.6 as an approximate solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist and an initial point for iterative calculation using an iteration method; use .sub.1.sub.6 to obtain the approximate pose of the terminal coordinate frame according to a formula for obtaining the forward kinematics of the six-degree-of-freedom serial robot with an offset wrist; C. obtain a pose increment dX of the expected pose of the terminal coordinate frame with respect to the approximate pose of the terminal coordinate frame through calculation, and obtain the synthetic error e of the pose of the terminal coordinate frame by using dX; D. judge whether the synthetic error e is within a reasonable error range or not; if the synthetic error is within the reasonable error range, stop and return the current numerical solution of the joint variable as an iterative numerical solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist; if the synthetic error e is not within the reasonable error range, obtain the joint variable through a jacobian matrix of the six-degree-of-freedom serial robot with an offset wrist, and put the new joint variable into step B and step C to conduct iterative calculation until the synthetic error e is within the reasonable error range or the maximum number of iterations is reached and then return a current numerical solution of the joint variable as the iterative numerical solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist.
2. The numerical method for obtaining the inverse kinematics of a six-degree-of-freedom serial robot with an offset wrist according to claim 1, further comprising before step A: establish a base coordinate frame by using an intersection point of a rotation axis of a first joint and a rotation axis of a second joint of the six-degree-of-freedom serial robot with a non-offset wrist as the original point, using a straight line where the rotation axis of the first joint is located as a Z axis of the base coordinate frame, and using a straight line where the rotation axis of the second joint is located as a Y axis; establish the coordinate frame {0} {1} {2} {3} {4} {5} and coordinate frame {6}, from the base coordinate frame towards the terminal coordinate frame of the robot in sequence according to the six-degree-of-freedom, wherein the coordinate frame {0} is the base coordinate frame, and the coordinate frame {6} is the terminal coordinate frame.
3. The numerical method for obtaining the inverse kinematics of a six-degree-of-freedom serial robot with an offset wrist according to claim 1, wherein step A comprises the following steps: A1. set the expected original point of the terminal coordinate frame {6} of the six-degree-of-freedom serial robot with an offset wrist as (X.sub.d, Y.sub.d, Z.sub.d), and set the expected pose matrix of the terminal coordinate frame {6} as R.sub.XYZ(.sub.d, .sub.d, .sub.d), and set the base coordinate frame {0} as a reference coordinate frame; use the pose of the terminal coordinate frame of the six-degree-of-freedom serial robot with an offset wrist as the pose of the terminal coordinate frame of the six-degree-of-freedom serial robot with a non-offset wrist, and use a method to obtain the analytical solution (.sub.1.sub.6) of the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist; calculate former three angles .sub.1, .sub.2 and .sub.3 of the inverse kinematics firstly: as the non-offset wrist meets Pieper criterion, and according to homogeneous transformation matrixes between coordinate frames:
R.sub.XYZ(.sub.d, .sub.d, .sub.d)=.sub.4.sup.0R|.sub..sub.
4. The numerical method for obtaining the inverse kinematics of a six-degree-of-freedom serial robot with an offset wrist according to claim 1, wherein step B comprises the following steps: B1. use the analytical solution obtained in step A .sub.1.sub.6 of the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist as the approximate solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist and the initial point for iteration; according to the matrix expression formula of the forward kinematics of the six-degree-of-freedom serial robot with an offset wrist:
5. The numerical method for obtaining the inverse kinematics of a six-degree-of-freedom serial robot with an offset wrist according to claim 1, wherein step C comprises the following steps: C1. obtain a position increment dP of the original point of the terminal coordinate frame {6} according to the expected position (X.sub.d, Y.sub.d, Z.sub.d) of the original point of the terminal coordinate frame {6} and the approximate position (X.sub.c, Y.sub.c, Z.sub.c) of the original point of the terminal coordinate frame {6}; C2. obtain a rotation increment dAng of the terminal coordinate frame {6} according to the rotation relation between the expected pose matrix R.sub.XYZ(.sub.d, .sub.d, .sub.d) of the terminal coordinate frame {6} and the approximate pose matrix R.sub.XYZ(.sub.c, .sub.c, .sub.c) of the terminal coordinate frame {6}; C3. combine the position increment dP of the original point of the terminal coordinate frame and the rotation increment dAng of the pose of the terminal coordinate frame into a differential motion dX of Cartesian space, which is represented as
6. The numerical method for obtaining the inverse kinematics of a six-degree-of-freedom serial robot with an offset wrist according to claim 1, wherein step D comprises the following steps: D 1. judge whether the synthetic error e is within a reasonable error range or not by the step C above, if the synthetic error e is within the reasonable error range, stop the iteration and return a current numerical value of the joint variable as the iterative numerical solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist; if the synthetic error is not within the reasonable error range, proceeding with step D2; D2.calculate d by using a jacobian matrix J of the six-degree-of-freedom serial robot with an offset wrist through dX=Jd, which is as follows:
d=J.sup.1dX, obtain the joint variable =+d, and put the new joint variable into step B1 to conduct iterative calculation until e is within the reasonable error range or the maximum number of iterations is reached, and then return the current numerical solution of the joint variable as the iterative numerical solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The present disclosure is further described hereinafter with reference to the drawings and the embodiments.
[0031]
[0032]
[0033]
[0034]
DETAILED DESCRIPTION
[0035] As shown in
[0036]
[0037] As shown in
[0038] set a point where the tail end of a wrist of the six-degree-of-freedom serial robot with an offset wrist is located as (X.sub.d, Y.sub.d, Z.sub.d), i.e., the original point of the terminal coordinate frame {6},set the base coordinate frame {0} as a reference frame, set the pose matrix as R.sub.XYZ(.sub.d, .sub.d, .sub.d), and use the pose of the terminal coordinate frame of the six-degree-of-freedom serial robot with an offset wrist as the pose of the terminal coordinate frame of the six-degree-of-freedom serial robot with a non-offset wrist, and use a method for obtaining the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist, to obtain the analytical solution (.sub.1.sub.6) of the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist. Calculate the former three angles .sub.1, .sub.2 and .sub.3 of the inverse kinematics firstly; as the non-offset wrist meets the Pieper criterion, and according to transformation matrix of the coordinate frame {1 } with respect to the coordinate frame {0}, transformation matrix of the coordinate frame {2}with respect to the coordinate frame {1}, and transformation matrix of the coordinate frame {3 } with respect to the coordinate frame {2}:
is a vector of the point where the tail end of the wrist is located; [0041] a.sub.2 is the distance between the Z axis of the coordinate frame {2} and the Z axis of the coordinate frame {3} along the X axis of the coordinate frame {2}; [0042] d.sub.2 is the distance between the X axis of the coordinate frame {1} and the X axis of the coordinate frame {2} along the Z axis of the coordinate frame {2}; [0043] d.sub.3 is the distance between the X axis of the coordinate frame {2} and the X axis of the coordinate frame {3 } along the Z axis of the coordinate frame {3}; [0044] d.sub.4 is the distance between the X axis of the coordinate frame {3 } and the X axis of the coordinate frame{4} along the Z axis of the coordinate frame {4}; use the transformation matrix R.sub.XYZ (.sub.d, .sub.d, .sub.d) with Euler angles XYZ(.sub.d, .sub.d, .sub.d) to obtain the last three angles .sub.4, .sub.5 and .sub.6 of the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist:
R.sub.XYZ(.sub.d, l.sub.d, .sub.d)=.sub.4.sup.0R|.sub..sub.
.sub.E.sup.6R.sub.XYZ(.sub.4, .sub.5, .sub.6)=.sub.6.sup.4R|.sup.1.sub..sub.
[0049] AS .sub.1, .sub.2, and .sub.3 are obtained, .sub.4.sup.0R|.sub..sub.
[0051] The analytical solution .sub.1.sub.6 of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist can be obtained from the steps above, and the analytical solution is used as the approximate solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist and the initial point for iteration.
[0052] Use the approximate solution .sub.1.sub.6 of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist obtained through the calculating steps above and according to the matrix of the forward kinematics of the six-degree-of-freedom serial robot with an offset wrist:
[0053] wherein:
[0054] d.sub.5 is the distance between the X axis of the coordinate frame {4} and the X axis of the coordinate frame {5} along the Z axis of the coordinate frame {5};
[0055] d.sub.6 is the distance between the X axis of the coordinate frame {5} and the X axis of the coordinate frame {6} along the Z axis of the coordinate frame {6}.
[0056] The approximate position (X.sub.c, Y.sub.c, Z.sub.c) of the original point of the terminal coordinate frame and the approximate pose matrix R.sub.XYZ(.sub.c, .sub.c, .sub.c) are obtained through solving the formula above.
[0057] (X.sub.d, Y.sub.d, Z.sub.d) is the expected position of the original point of the terminal coordinate frame and R.sub.XYZ(.sub.d, .sub.d, .sub.d) is the expected pose matrix of the terminal coordinate frame. (X.sub.c, Y.sub.c, Z.sub.c) is the approximate position of the original point of the terminal coordinate frame and R.sub.XYZ(.sub.c, .sub.c, .sub.c) is the approximate pose matrix of the terminal coordinate frame, which can be obtained from the steps above. Assuming that the position increment dP of the original point of the terminal coordinate frame and the rotation increment dAng of the pose of the terminal coordinate frame are replaced with a differential motion dX of Cartesian space, which can be represented as:
[0058] the position increment dP=[X.sub.dX.sub.c, Y.sub.dY.sub.c, Z.sub.dZ.sub.c], and
[0059] the rotation increment dAng is calculated as follows:
[0060] Let vector K(k.sub.x, k.sub.y, k.sub.z) be the vector respectively passing through the original point of the terminal coordinate frame; assuming that the terminal coordinate frame rotates by an angle around K axis at a constant speed, which rotates from the Euler angles XYZ(, , ) of the approximate pose to the expected pose angle XYZ(.sub.d, .sub.d, .sub.d) of the terminal coordinate frame, then:
[0061] through calculating the formula above, dAng is obtained:
[0062] In order to describe the deviation(dP, dAng) between the current approximate pose of the terminal coordinate frame and the expected pose of the terminal coordinate frame, the synthetic error of the pose of the terminal coordinate frame is defined as follows:
e=dP.sup.2+dAng.sup.2.
[0063] According to the formula above and dP, dAng obtained above, judge whether the synthetic error e is within a reasonable range or not; if e is within a reasonable range, stop the iterative calculation, and return the current numerical solution of the joint variable as an iterative numerical solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist; and if the synthetic error e is not within the reasonable range, then the iterative calculation continues.
[0064] Use the jacobian matrix dX=Jd of the six-degree-of-freedom serial robot with an offset wrist, wherein J is represented by the following formula:
[0065] wherein, .sup.0Z.sub.i is the vector representation of the i.sup.th rotation axis Z in the base coordinate frame, and .sup.0P.sub.i is the vector representation of the original point of the coordinate frame {i} with respect to the base coordinate frame.
[0066] Through reversibility of the jacobian matrix, d=J.sup.1dX is obtained, so that the new joint variable =+d can be calculated, and the new joint variable is put into the matrix expression formula for obtaining the forward kinematics of the six-degree-of-freedom serial robot with an offset wrist, and the approximate position (X.sub.c, Y.sub.c, Z.sub.c) of the original point of the terminal coordinate frame and the approximate pose matrix R.sub.XYZ(.sub.c, .sub.c, .sub.c) of the terminal coordinate frame are updated:
.sub.6.sup.0T=.sub.1.sup.0T(.sub.1).sub.2.sup.1T(.sub.2).sub.3.sup.2T(.sub.3).sub.4.sup.3T(.sub.4).sub.5.sup.4T(.sub.5).sub.6.sup.5T(.sub.6).
[0067] Execute iterative calculation by repeating the steps to obtain the approximate pose and the synthetic error e above, until e is within the reasonable error range or the maximum number of iterations is reached, then return the current numerical solution of the joint variable as the iterative numerical solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist.
[0068] The algorithm skillfully uses the analytical solution of the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist as the approximate solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist to obtain the approximate pose; the error between the approximate pose and the expected pose is obtained and an equivalent axial angle is used to represent the pose rotation increment between the approximate pose and the expected pose of the terminal coordinate frame, and the joint variable increment d is obtained according to the transformation relation between the differential motion dX of Cartesian space and the joint variable space motion d, i.e., the jacobian matrix J, so as to obtain the new joint variable =+d, which is used as a new iterative point. Through the iterative calculation of a formula for obtaining the forward kinematics of the six-degree-of-freedom serial robot with an offset wrist, the iterative point is continuously updated to approach the expected pose, so as to obtain the numerical solution of the inverse kinematics meeting the actual accuracy requirement finally. The algorithm has less calculation amount, faster convergence, higher efficiency, less burden to a robot controller and this method provides better real-time performance and can improve the efficiency.
[0069] The contents above are only preferred embodiments of the present disclosure, and the present disclosure is not limited to the embodiments. Any solution with the same technical effects by the same means shall all fall within the protection range of the present disclosure.
[0070] Without further elaboration, it is believed that one skilled in the art can, using the preceding description, utilize the present invention to its fullest extent. The preceding preferred specific embodiments are, therefore, to be construed as merely illustrative, and not limitative of the remainder of the disclosure in any way whatsoever.
[0071] In the foregoing and in the examples, all temperatures are set forth uncorrected in degrees Celsius and, all parts and percentages are by weight, unless otherwise indicated.
[0072] The entire disclosures of all applications, patents and publications, cited herein and of corresponding Chinese application No. 201710969628.6, filed Oct. 18, 2017are incorporated by reference herein.
[0073] The preceding examples can be repeated with similar success by substituting the generically or specifically described reactants and/or operating conditions of this invention for those used in the preceding examples.
[0074] From the foregoing description, one skilled in the art can easily ascertain the essential characteristics of this invention and, without departing from the spirit and scope thereof, can make various changes and modifications of the invention to adapt it to various usages and conditions.