The present disclosure relates to an inverse kinematics calculation method of an industrial robot, and more particularly, to an inverse kinematics calculation method of a six-degree-of-freedom serial robot with an offset wrist.
The inverse kinematics of a robot is the premise and basis of trajectory planning, controlling and other aspects. Generally, a non-offset wrist is usually used for a six-degree-of-freedom serial robot to obtain an analytical solution, but it cannot realize the 360-degree rotation of a middle joint, and has low structure rigidity. Therefore, during actual production process, it is often replaced by a six-degree-of-freedom serial robot with an offset wrist. However, the inverse kinematics of six-degree-of-freedom serial robot with an offset wrist above usually has numerical solution without any analytical solution. The geometric method and algebraic elimination method, as well as optimization methods such as tabu searching method or hill-climbing method are used in the existing solution algorithm for the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist, but the algorithms above need a large amount of calculation, which causes great burden to a robot controller and poor real-time performance.
In order to solve the problem above, the present disclosure provides a numerical method for obtaining the inverse kinematics of a six-degree-of-freedom serial robot with an offset wrist, which can quickly obtain the numerical solution of the inverse kinematics, reduce the computation amount for the robot controller, and improve the real-time performance.
The solution of the present disclosure to solve the technical problem thereof is as follows:
A numerical method for obtaining the inverse kinematics of a six-degree-of-freedom serial robot with an offset wrist, comprising the following steps:
Further, in addition, before step A:establish a base coordinate frame by using an intersection point of the rotation axis of the first joint and the rotation axis of the second joint of the six-degree-of-freedom serial robot with a non-offset wrist as an original point, using a straight line where the rotation axis of the first joint is located as a Z axis of the coordinate frame, and use a straight line where the rotation axis of the second joint is located as a Y axis; establish the coordinate frames, such as coordinate systems{0} {1} {2} {3} {4} { 5 }and coordinate frame{6}, from the base 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.
Further, the step A comprises the following steps:
obtain the analytical solution of θk′, θ2′ and θ3′ through solving the equations above,
wherein
is a position vector of the non-offset wrist point, a2 is the distance from the Z axis of the coordinate frame{2} to the Z axis of the coordinate frame {3} along the X axis of the coordinate frame {2}, d2 is the distance from the X axis of the coordinate frame {1} to the X axis of the coordinate frame {2} along the Z axis of the coordinate frame {2}, d3is the distance from the X axis of the coordinate frame {2} to the X axis of the coordinate frame {3} along the Z axis of the coordinate frame {3}, and d4is the distance from the X axis of the coordinate frame {3} to the X axis of the coordinate frame {4} along the Z axis of the coordinate frame {4};
Further, the step B comprises the following steps:
Further, the step C comprises the following steps:
and define the synthetic error of the pose of the terminal coordinate frame as e=∥dP∥2+∥dAng∥2.
Further, the step D comprises the following steps:
The present disclosure has the beneficial effects that: 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 calculated and use an equivalent axial angle to represent the pose rotation increment between the approximate pose of the terminal coordinate frame and the expected pose. Use the jacobian matrix J to obtain the joint variable increment dθ′, so as to obtain the new iteration point. The iterative calculation continues after obtaining the forward kinematics of the six-degree-of-freedom serial robot with an offset wrist so that the iteration point is continuously updated and obtain the numerical solution of the inverse kinematics meeting the actual accuracy requirement finally. The algorithm has less calculation amount, faster convergence, and higher efficiency, and has less burden for a robot controller. This method can increase the response speed, and has better real-time performance.
When the algorithm selects the initial point for the iterative method, the initial iterative point is specifically selected around the expected numerical solution of the inverse kinematics of the six-degree-of-freedom serial robot with an offset wrist on the basis of the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist, which has the advantages as follows: Firstly, it can be guaranteed that the iteration is converged to adjacent expected numerical solution so as to effectively avoid the iteration from converging to other unreasonable inverse kinematics. Secondly, the algorithm has less calculation amount, faster iteration convergence, higher efficiency, less computation burden for the robot controller. This method provides quick real-time computation response, and can increase the efficiency. Thirdly, both the robot with an offset wrist in the drawings and other six-degree-of-freedom serial robots not meeting the Pieper criterion can make use of this method to obtain numerical solutions of inverse kinematics. Therefore, the algorithm can also be used for obtaining numerical solutions of the inverse kinematics of other six-degree-of-freedom serial robot with an offset wrist.
The present disclosure is further described hereinafter with reference to the drawings and the embodiments.
As shown in
As shown in
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 (Xd, Yd, Zd), 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 RXYZ(αd, βd, γ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 (θ1′˜θ6′) of the inverse kinematics of the six-degree-of-freedom serial robot with a non-offset wrist. Calculate the former three angles θ1′, θ2′ and θ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;
AS θ1′, θ2′, and θ3′ are obtained, 40R|θ
The analytical solution θ1′˜θ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.
Use the approximate solution θ1′≠θ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:
wherein:
d5 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};
d6 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}.
The approximate position (Xc, Yc, Zc) of the original point of the terminal coordinate frame and the approximate pose matrix RXYZ(αc, βc, γc) are obtained through solving the formula above.
(Xd, Yd, Zd) is the expected position of the original point of the terminal coordinate frame and RXYZ(αd, βd′, γd) is the expected pose matrix of the terminal coordinate frame. (Xc, Yc, Zc) is the approximate position of the original point of the terminal coordinate frame and RXYZ(αc, βc, γ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:
the position increment dP=[Xd−Xc, Yd−Yc, Zd−Zc], and
the rotation increment dAng is calculated as follows:
Let vector K(kx, ky, kz) 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(αd, βd, γd) of the terminal coordinate frame, then:
through calculating the formula above, dAng is obtained:
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∥2+∥dAng∥2.
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.
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:
wherein, 0Zi is the vector representation of the ith rotation axis Z in the base coordinate frame, and 0Pi is the vector representation of the original point of the coordinate frame {i} with respect to the base coordinate frame.
Through reversibility of the jacobian matrix, dθ=J−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 (Xc, Yc, Zc) of the original point of the terminal coordinate frame and the approximate pose matrix RXYZ(αc, βc, γc) of the terminal coordinate frame are updated:
60T=10T(θ1′)21T(θ2′)32T(θ3′)43T(θ4′)54T(θ5′)65T(θ6′).
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.
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.
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.
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.
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.
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.
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.
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.
Number | Date | Country | Kind |
---|---|---|---|
2017 1 0969628 | Oct 2017 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
4604716 | Kato | Aug 1986 | A |
5294873 | Seraji | Mar 1994 | A |
5737500 | Seraji | Apr 1998 | A |
5831875 | Hirata | Nov 1998 | A |
7756606 | Nakajima | Jul 2010 | B2 |
9868209 | Gomi | Jan 2018 | B2 |
9878447 | Thibodeau | Jan 2018 | B2 |
10022868 | Hida | Jul 2018 | B2 |
Number | Date | Country | |
---|---|---|---|
20190111562 A1 | Apr 2019 | US |