Next Article in Journal
In-Orbit Attitude Determination of the UVSQ-SAT CubeSat Using TRIAD and MEKF Methods
Previous Article in Journal
Erratum: Jamšek et al. Gaussian Mixture Models for Control of Quasi-Passive Spinal Exoskeletons. Sensors 2020, 20, 2705
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved Weighted Gradient Projection Method for Inverse Kinematics of Redundant Surgical Manipulators

1
College of Mechanical and Electronic Engineering, Shandong University of Science and Technology, Qingdao 266590, China
2
College of Mechanical and Electric Engineering, Zaozhuang University, Zaozhuang 277160, China
3
College of Electrical and Automation Engineering, Shandong University of Science and Technology, Qingdao 266590, China
4
College of Mechanical Engineering, Shandong University, Jinan 250100, China
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(21), 7362; https://doi.org/10.3390/s21217362
Submission received: 25 September 2021 / Revised: 29 October 2021 / Accepted: 2 November 2021 / Published: 5 November 2021
(This article belongs to the Section Sensors and Robotics)

Abstract

:
Different from traditional redundant manipulators, the redundant manipulators used in the surgical environment require the end effector (EE) to have high pose (position and orientation) accuracy to ensure the smooth progress of the operation. When analyzing the inverse kinematics (IK) of traditional redundant manipulators, gradient-projection method (GPM) and weighted least-norm (WLN) method are commonly used methods to avoid joint position limits. However, for the traditional GPM and WLN method, when joints are close to their limits, they stop moving, which greatly reduces the accuracy of the IK solution. When robotic manipulators enter a singular region, although traditional damped least-squares (DLS) algorithms are used to handle singularities effectively, motion errors of the EE will be introduced. Furthermore, selecting singular region through trial and error may cause some joint velocities exceed their corresponding limits. More importantly, traditional DLS algorithms cannot guide robotic manipulators away from singular regions. Inspired by the merits of GPM, WLN, and DLS methods, an improved weighted gradient projection method (IWGPM) is proposed to solve the IK problem of redundant manipulators used in the surgical environment with avoiding joint position limits and singularities. The weighted matrix of the WLN method and the damping factor of the DLS algorithm have been improved, and a joint limit repulsive potential field function and singular repulsive potential field function belong to the null space are introduced to completely keep joints away from the damping interval and redundant manipulators away from the unsafe region. To verify the validity of the proposed IWGPM, simulations on a 7 degree of freedom (DOF) redundant manipulator used in laparoscopic surgery indicate that the proposed method can not only achieve higher accuracy IK solution but also avoid joint position limits and singularities effectively by comparing them with the results of the traditional GPM and WLN method, respectively. Furthermore, based on the proposed IWGPM, simulation tests in two cases show that joint position limits have a great impact on the orientation accuracy, and singular potential energy function has a great impact on the position accuracy.

1. Introduction

Compared with six degree of freedom (DOF) robotic manipulators, 7-DOF robotic manipulators not only ensure motion accuracy of the end-effector (EE), but also optimize other objectives due to the existence of a redundant DOF, such as avoiding obstacles and adapting to human action [1,2,3,4,5,6]. Therefore, redundant manipulators have been widely used in the medical and aerospace fields, etc.
However, 7-DOF manipulators not only improve the flexibility, but also increase the difficulty of solving the inverse kinematics (IK) solution [7]. Indeed, achieving the 6-DOF pose (position and orientation) given by the EE is equivalent to six equations and seven unknowns, and there are innumerable solutions in theory. However, only one set of the IK solution is needed in robot kinematics control. So far, many scholars have studied the IK solution of redundant manipulators. These methods include geometric method [8], gradient-projection method (GPM) [3,9], weighted least-norm (WLN) method [10], extended Jacobian matrix method [11], and analytical method [12], etc. Some artificial intelligence algorithms are also used in the IK solution of redundant manipulators, such as genetic algorithm [13], particle swarm optimization algorithm [14], neural network algorithm [15].
Geometric algorithms are not universal and their modeling and solving process is complex. The extended Jacobian matrix method can only obtain an approximate IK solution, which is not suitable for robotic manipulators with high accuracy. Analytical algorithm is only applicable to robotic manipulators with specific configurations, or robotic manipulators with some simplified processing [16,17]. It takes a long time for intelligent algorithms to solve IK, which is not conducive to real-time control.
The GPM and WLN methods are popular algorithms for solving IK of redundant manipulators, and have the effect of avoiding joint position limits. A weighted GPM [18] and a clamping WLN method [19] were proposed for IK of a 7-DOF manipulator. Due to the introduction of damping factors in the singular region, the position errors of the EE are as high as 96.3 mm and 25 mm, respectively, which are not suitable for robotic manipulators with high accuracy requirements. Hu [20] presented a gradient projection of a weighted Jacobian matrix method for IK of a planar 3-DOF manipulator. However, this method did not solve the problem of motion accuracy reduction caused by joint positions near their limits. Kelemen [21] introduced an IK algorithm to avoid joint position limits, singularities and obstacles. However, the position error of the EE is as high as 18 mm, and the orientation error is not analyzed. This is not conducive to the further operation of the EE. Jun [22] proposed an improved clamping WLN method for IK of a redundant manipulator. However, the constant value of the repulsive potential field would lead to the disadvantage of too large or too small repulsive force, which affected the motion accuracy of the EE.
When robotic manipulators move to a Jacobian singular configuration, the Jacobian inverse matrix becomes numerically unrealizable, which is not conducive to the motion control. In [23,24,25], a damped least-squares (DLS) algorithm was used to handle singularities. Although the introduction of damping factors can solve the shortcomings of singular configurations, the damping factors will lead to the decline of the motion accuracy of the EE.
The existing GPM and WLN methods do not completely keep redundant manipulators away from joint position limits and singular configurations, which can reduce the motion accuracy of the EE. Different from traditional redundant manipulator, the redundant manipulators used in the surgical environment require the EE to have high pose accuracy to ensure the smooth progress of the operation. Therefore, based on the advantages of GPM and WLN method, combined with the traditional DLS algorithm, an improved weighted GPM (IWGPM) which introduces a joint limit repulsive potential field function and singular repulsive potential field function as subtasks is proposed. A clamping weighted matrix can make joints stop at their limits, and the introduced joint limit repulsive potential field function generates virtual forces at the damping interval to make joints return to the flexible interval. In the unsafe region, virtual forces generated by the singular repulsive potential field function can make redundant manipulators move away from unsafe region and solve the singular problem thoroughly.
The remainder of this paper is organized as follows: The kinematics of redundant manipulators and the traditional GPM, WLN method, and DLS algorithm are briefly reviewed in Section 2. The IWGPM is proposed to solve the IK problem of redundant surgical manipulators with avoiding joint position limits and singularities in Section 3. In Section 4, to verify and evaluate the effectiveness of the proposed method, simulation results and discussion are performed. Finally, the conclusions are presented in Section 5.

2. Kinematics Formulations

The forward kinematics is a nonlinear function that describes the relation between the pose of the EE x R m and joint position q R n as follows:
x   = f ( q )
The first-order derivation of the function:
x ˙ = J q ˙
describes the velocities from the joint to the EE, where x ˙ R m represents the velocity vector of the EE, q ˙ R n is the velocity vector of joints, and J R m × n is a Jacobian matrix.
To obtain a unique solution q ˙ , the Jacobian inverse J 1 or pseudo inverse J + for non-redundant or redundant manipulators, respectively, is used, as follows [26]:
q ˙ = J 1 x ˙
for non-redundant manipulators (m = n) and:
q ˙ = J + x ˙ = J T ( JJ T ) 1 x ˙
for redundant manipulators (m < n).
It is not difficult to conclude that Equations (3) and (4) hold when J 1 and J + exists, and Equation (4) provides a least-norm solution. When robotic manipulators approach a singular configuration, J 1 or J + of the manipulators becomes numerically ill conditioned. Furthermore, the vicinity of singular configurations may also cause joint velocities to exceed the corresponding limits. To overcome this drawback, a DLS algorithm [23,25] is a widely used approach that sacrifices accuracy of the IK solution to generate an improved Jacobian matrix in the singular region. The DLS algorithm is expressed as:
J T x ˙ = ( J T J + λ 2 I m ) q ˙
where I m R n is an identity matrix, and λ is a damping factor.
For redundant manipulators, the self-motion can be realized with some subtasks, with not affecting the main task, which can be expressed by GPM [3]:
q ˙ = J + x ˙ + ( I n J + J ) z
where I n J + J is the projection operator onto the null space of the matrix J , and z is a gradient vector of performance criterion as a subtask. The ( I n J + J ) z is the homogeneous solution for self-motion.
Avoidance for joint position limits as a subtask were presented as:
H ( q ) = 1 n i = 1 n ( 2 q i q imax q imin q imax q imin ) 2
where q imin and q imax are the lower and upper limits of the i-th joint position, and q i is the i-th joint position.
As a result, replace z with H ( q ) , Equation (6) can be derived further as follows:
q ˙ = J + x ˙ + k ( I n J + J ) H ( q )
where k is a positive scalar coefficient to make the gradient rate of H ( q ) to be minimized, and H ( q ) is the gradient vector of H ( q ) , which is described as:
H ( q ) = [ H ( q ) q 1 H ( q ) q 2 H ( q ) q n ]
The WLN method [10] is also used to avoid joint position limits through weighted factors, and the transformations are introduced as follows:
J w = J W 1 2
q ˙ w = W 1 2 q ˙
q ˙ = W 1 2 J w + x ˙ = W 1 J T ( JW 1 J T ) 1 x ˙
where J w and q ˙ w are a weighted Jacobian matrix and a weighted joint velocity, respectively. The W R n × n is a diagonal and positive weighted matrix, and the i-th diagonal element is expressed as:
w i ( q i ) = { 1 + | H ( q ) q i | Δ | H ( q ) q i | 0 1 Δ | H ( q ) q i | < 0
where Δ | H ( q ) q i | is the change rate of H ( q ) q i , and H ( q ) is defined as follows:
H ( q ) = i = 1 n ( q imax q imin ) 2 4 ( q imax q i ) ( q i q imin )
where q imin and q imax  are the lower and upper limits of the i-th joint position, and qi is the i-th joint position.
Figure 1 shows the distributions of w i ( q ) with q i . When q i is close to q imin and q imax , | H ( q ) q i | , this is w i ( q ) . From Equation (12), q i tends to zero, the corresponding joint stops at its limit position, but it is not far away from its limit.
Both GPM and WLN method can deal with singular problems, therefore, combining Equations (5) and (8) can be redefined by:
q ˙ = J G + x ˙ + k ( I n J G + J ) H ( q )
J G + = J T ( JJ T + λ 2 I m ) 1
Equation (12) can be rewritten as:
q ˙ = W 1 2 J w + x ˙ = W 1 J T ( JW 1 J T + λ 2 I m ) 1 x ˙

3. Improved Weighted Gradient Projection Method

The WLN method is much more efficient than the GPM one in avoiding joint position limits [20]. Due to the weighted matrix W , some joints stop at their limits, but this does not keep them away from their limits. Furthermore, on solving singular problems, DLS algorithms can prevent the problem of joint velocities exceeding the corresponding limits, but motion errors will be introduced. More importantly, DLS algorithms cannot guide redundant manipulators away from singular region. These conditions occur suddenly during the operation, which is very unfavorable to patients. Therefore, based on GPM, a joint limit repulsive potential field function and a singular repulsive potential field function are introduced in the null space to solve the shortages of GPM, WLN, and DLS methods.

3.1. Clamping Weighted Matrix and Joint Limit Repulsive Potential Field Function

From Figure 1, it is easy to find that the starting and ending positions of W are difficult to determine, which sometimes affects the validity of the weighted matrix. Therefore, a buffer is added before the joint position limits, and the whole joint motion interval is divided into damping interval and flexible interval, as shown in Figure 2. That is a progressive clamping weighted matrix designed as follows:
W c = diag ( w c ( q i ) )
w c ( q i ) = { f ( q itmin q i q itmin q imin ) q imin q i q itmin 1 q itmin < q i < q itmax f ( q i q itmax q imax q itmax ) q itmax q i q imax
where f ( · ) is a smooth function varying from 0 to 1. The q itmin and q itmax are the lower and upper damping thresholds before q imin and q imax , respectively:
f ( x )   =   ( 2 x 3 + 3 x 2 ) 2
q itmin = q imin + ξ ( q imax q imin )
q itmax = q imax ξ ( q imax q imin )
where ξ is a positive constant scalar to determine the width of damping interval.
Then, Equation (17) can be rewritten as:
q ˙ = W c J T ( JW c J T + λ 2 I m ) 1 x ˙
When q i run in the flexible interval, w c ( q i ) = 1 . While q i runs in the damping interval, the weighting matrix w c ( q i ) prevents q i from approaching its limit. When w c ( q i ) 0 , the corresponding joints stop moving forever, which will affect motion control and reduce pose accuracy of the EE.
A joint limit repulsive potential field function ( I n W c ) R i ( q ) is introduced to solve the drawback of Equation (23), and I n W c is also a smooth weighted matrix, when q i runs in the flexible interval, the joint limit repulsive potential field function is invalid. On the contrary, when q i starts to enter the damping interval, the joint limit repulsive potential field function R i ( q ) = diag ( r ( q i ) ) comes into play to force the corresponding joints back the flexible interval as far as possible. The r ( q i ) is defined as:
r ( q i ) = { q i q itmin q itmin q imin r max q imin q i q itmin 0 q itmin < q i < q itmax q i q itmax q imax q itmax r max q itmax q i q imax
where r max is the maximum potential field force, the closer the limit is, the bigger the potential field force. When q i goes towards q imin , r ( q i ) is negative, and r ( q i ) is positive when q i goes towards q imax .
Considering the joint limit repulsive potential field function and combining with GPM, Equation (23) becomes:
q ˙ = W c J T ( J W c J T + λ 2 I m ) 1 x ˙ ( I n W c J T ( J W c J T + λ 2 I m ) 1 J ) ( I n W c ) R i ( q )
where the second part on the right-hand side is a homogeneous solution, which does not affect the main task.

3.2. A Novel DLS Method and Singular Repulsive Potential Field Function

In the traditional DLS algorithm, the damping factor function [27] is:
λ traditional 2 = { λ max 2 ( 1 ( σ σ b ) 2 ) 0 σ σ b 0 σ > σ b
The ε [ 0 , σ b ] is the singular region, and the selection of σ b through trial and error may result in joint velocities exceeding the corresponding limits, so a novel damping function which includes a micro-buffer region ε ¯ ( σ b , σ ¯ b ] is presented to avoid the joint maximum velocities being exceeded owing to the small selection of σ b . The novel damping function is defined as:
λ noval 2 = { λ max 2 ( 1   0.874 · ( σ σ b ) 2 ) 0 σ σ b λ max 2 ( 0.5 + 0.5 cos ( π σ σ ¯ b ) ) σ b < σ σ ¯ b 0 σ > σ ¯ b
σ ¯ b = γ σ b
where γ is a positive constant scalar to determine the width of micro-buffer region. In this paper, the single region and micro-buffer region are called unsafe region.
The distributions of λ 2 and damped inverse σ σ 2 + λ 2 with singular value is depicted in Figure 3a,b, respectively. Through Figure 3b, it can be seen that in the case of no damping, infinite damping inverse will occur at a singular configuration which will result in very high joint velocities. Figure 3a,b show that the fixed damping value has the same effect in the unsafe region, which is unfair to the micro-buffer region, while the traditional damping function has an effect only in the singular region. However, except for the singular region, the new damping function still has a micro-damping factor in the micro-buffer to prevent the disadvantage that the joint speed exceeds the limit due to the small selection of σ b . Furthermore, the damping continuity in the singular and micro-buffer regions ensures the continuity of joint velocities.
When solving singular problems, traditional DLS algorithms generate motion errors due to the introduction of damping factor in unsafe region, and it cannot guide robotic manipulators away from unsafe region. It is suitable for the manipulator with low accuracy requirements. However, this paper studies a surgical manipulator, which has very high requirements for pose. Therefore, a singular repulsive potential field function F ( q ) [28] is introduced to address the two deficiencies:
F ( q ) = K [ J d ( q ) | J d ( q ) | ] f ( d ( σ ) | σ b , σ ¯ b )
f ( d ( σ ) | σ b , σ ¯ b ) = { 1 d ( σ ) < σ b 1 1 + e δ ( d ( σ ) σ b + σ ¯ b 2 ) σ b d ( σ ) σ ¯ b 0 d ( σ ) > σ ¯ b
where K is a diagonal matrix that contains the maximum torque or force that we allow to be applied to the operator in each spatial dimension. The matrix d ( q ) is used to direct the wrench away from unsafe region. The f ( d ( σ ) | σ b , σ ¯ b ) is given as [29], and d ( σ ) is the distance to σ min = 0 , the δ = 12 / ( σ ¯ b σ b ) is recommended. It can be observed from Figure 4 that the change of f ( d ( σ ) ) in [ 0 , σ ¯ b ] is smooth and continuous.

3.3. Resolution IWGPM

Considering 3.1 and 3.2, and combining with GPM, a novel method called IWGPM is defined as:
q ˙ = W c J T ( J W c J T + λ noval 2 I m ) 1 x ˙ ( q ) ( I n W c J T ( J W c J T + λ noval 2 I m ) 1 J ) ( I n W c ) R i ( q ) ( I n W c J T ( JW c J T + λ noval 2 I m ) 1 J ) F ( q )
We define J c + = W c J T ( JW c J T + λ noval 2 I m ) 1 , the Equation (30) is represented as:
q ˙ = J c + x ˙ ( q ) ( I n J c + J ) ( I n W c ) R i ( q ) ( I n J c + J ) F ( q )
In Equation (31), when W c = I n , Equation (25) becomes Equation (23). On the contrary, when q i is in the damping interval, w c ( q i ) decreases gradually from 1 to 0, and the corresponding joint velocity also gradually decreases to 0. Meanwhile, r ( q i ) increases gradually from 0 to make q i return to flexible interval. In the safe region, all elements in F ( q ) are zero, indicating that the singular repulsive potential field function does not work. When redundant manipulators are gradually entering the micro-buffer region from the safe region, some elements that cause singularities in F ( q ) increase gradually from 0 to F max . In the singular region, the function F ( q ) is always F max . The function F ( q ) has pushed redundant manipulators away from the unsafe region. From Equation (32), it is found that ( I n J c + J ) ( I n W c ) R i ( q ) and ( I n J c + J ) F ( q ) pick from the null space of J c do not generate any motion at the EE.

4. Simulation Results and Discussion

In this section, simulations in the paper are implemented with the aid of the MATLAB R2015a tool, and a computer equipped with an Intel Core™ i5-2450M CPU @ 2.50 GHz and 2 GB RAM as the control platform.
A path starts from an initial pose of the EE, x initial , to a desired pose, x desired . The path is divided into M smaller line segments for numerical integration. At any integration step, the joint rates required to move the EE are calculated. Joint velocities are integrated sequentially until the EE reaches the desired pose. Equations (8), (23), (25) and (32) can be realized by an iterative algorithm and further applied to IK solution of redundant manipulators. The iterative algorithm steps are as follows:
Step (1): Assume an initial pose expressed as Euler angles of the EE, x initial R 6 × 1 .
Step (2): Plan a trajectory from x initial to x M + 1 = x desired R 6 × 1 with M intervals, and assume the running time of the motion, T.
Step (3): Calculate a planned velocity at the interval k that moves the EE toward x desired as
x ˙ ( k ) = β ( x desired x ( k ) ) M ( M + 1 k ) T
where β > 1 is a deceleration factor.
Step (4): Compute general equation q ˙ ( k ) = J + ( q ( k ) ) x ˙ ( k ) . Equations (8), (23), (25) and (32) can be substituted the general equation.
Step (5): Calculate q ( k + 1 ) through the following equation:
q ( k + 1 ) = q ( k ) + q ˙ ( k ) T M
Step (6): Through Equation (1), the new pose of the EE is obtained.
x ( k + 1 ) = f ( q ( k + 1 ) )
Step (7): Letting q ( k ) = q ( k + 1 )
Step (8): If x desired x ( k ) ρ , where ρ is the accuracy of the actual pose and desired pose of the EE specified by the user.
Return;
Else;
Repeat steps 3 to 6 for k = 1 M .
End.
To make the actual pose of the EE as close to the desired pose as possible, the closed-loop algorithm is used in the IK solution process [30]. Therefore, Equations (8), (23) and (32) can be represented as:
GPM:
q ˙ ( k ) = J + ( k ) ( x ˙ ( k ) + Λ E e ) + k ( I n J + ( k ) J ( k ) ) H ( q ( k ) )
WLN:
q ˙ ( k ) = W c ( k ) J T ( k ) ( J ( k ) W c ( k ) J T ( k ) + λ 2 I m ) 1 ( x ˙ ( k ) + Λ E e )
IWGPM:
q ˙ ( k ) = J c + ( k ) ( x ˙ ( k ) + Λ E e ) ( I n J c + ( k ) J ( k ) ) ( I n W c ( k ) ) R i ( q ( k ) ) ( I n J c + ( k ) J ( k ) ) F ( q ( k ) )
where Λ is positive feedback gain, The E e R 6 × 1 is tracking error between the desired pose and the actual pose of the EE, which is defined as follows:
E e = [ E x , E y , E z , E ϕ , E θ , E ψ ] T
where E x = p xdesired p xactual , E y = p ydesired p yactual , E z = p zdesired p zactual , E ϕ = ϕ desired ϕ actual , E θ = θ desired θ actual , E ψ = ψ desired ψ actual . The ( p xdesired , p ydesired , p zdesired ) and ( p xactual , p yactual , p zactual ) are desired position and actual position, respectively. The ( ϕ desired , θ desired , ψ desired ) and ( ϕ actual , θ actual , ψ actual ) are desired orientation and actual orientation expressed as Euler angles of the EE, respectively.

4.1. Case Study 1

Simulations are provided to demonstrate the validity and practicability of the proposed IWGPM method for IK solutions of the redundant manipulators. The self-developed 7-DOF surgical manipulator with a diameter of 10 mm is taken as the research object. Its structure diagram and coordinate system are shown in Figure 5a,b.
The DH parameters of manipulator with joint position limit range are shown in Table 1.
To illustrate the effect of the joint limit repulsive potential field function and singular repulsive potential field function, a straight-line path is selected as the trajectory. Moreover, the manipulator will enter a singular region, and some joints will be near their limit positions. The initial joint position q initial = [ 44 , π 3 , π 6 , π 10 , 1.4349 , π 4 , π 3 ] T and final joint position q desired = [ 50 , π 5 , π 3 , π 6 , π 4 , π 3 , π 6 ] T of the manipulator is set (Note: The final joint position is used to calculate the desired pose of EE, which is to clarify that the joint position is different from that obtained by the proposed IWGPM.), respectively, which determines the initial pose and desired pose expressed as Euler angles of the EE:
p initial = [ 39.9883 ,   117.4741 ,   175.0739 ] T ( mm )
o initial = [ 0.7865 , 1.4431 , 0.8411 ] T ( rad )
and the desired pose is:
p desired = [ 71.4062 ,   106.7273 ,   191.9349 ] T ( mm )
o desired = [ 0.9057 , 1.2209 , 0.0824 ] T ( rad )
For comparison, simulations with traditional GPM and WLN method are also presented. To reflect the coincidence degree of IK solution x and x desired , the pose accuracy is defined as follows:
E = x desired x final = [ E x , E y , E z , E ϕ , E θ , E ψ ] T
where the E x , E y , and E z are the position errors in the x, y, and z directions between the final position and the desired position, respectively. The E ϕ , E θ , and E ψ is orientation error in ϕ , θ , and ψ directions between the final orientation and the desired orientation, respectively. The average deviation E p between the final position and the desired position, and the average deviation E o between the final orientation and the desired orientation are defined as follows:
E p = | E x | + | E y | + | E z | 3
E o = | E ϕ | + | E θ | + | E ψ | 3
To make simulations more convincing, in IWGPM, GPM, and WLN methods, we set λ max = 0.86 , ε = 0.038 , ξ = 0.03 , r max = 8 , β = 2 , K = [ 0 , 0.08 , 0.08 , 0.08 , 0.08 , 0.08 , 0 ] T , T = 10 s, M = 100, Λ = 0.005 .

4.1.1. Simulation Analysis of the Proposed IWGPM

Figure 6 shows the results obtained with the proposed IWGPM, in which the IK solution is: q IWGPM = [ 43.955 , 1.7786 , 0.8667 , 0.5413 , 0.2849 , 1.2034 , 0.9499 ] T . The corresponding pose of the EE is p IWGPM = [ 71.3652 ,   106.7190 ,   191.6448 ] T ( mm ) and o IWGPM = [ 0.9381 , 1.2661 , 0.0038 ] T ( rad ) , which are very close to p desired = [ 71.4062 ,   106.7273 ,   191.9349 ] T ( mm ) and o desired = [ 0.9057 , 1.2209 , 0.0824 ] T ( rad ) . The average position deviation E p is 0.113mm and the average orientation deviation E o is 0.0387 rad. The pose accuracy of the EE is very high and meets the needs of surgery.
During the operation of the EE of the manipulator from the initial pose to the desired pose, Figure 6a shows the change curve of joint position. It is indicated that all joints operate within their position limits, and the position change curve of each joint shows continuity and small fluctuation. Figure 6b,c describe the deviation between the actual pose and the desired pose of the EE. In the initial stage, the actual pose is far from the desired pose. With the operation of time, it is more and more close to the desired pose. Figure 6d shows that q 7 is in the damping interval when t = 1   s and t = 1.8   s . Figure 6e indicates that the limit repulsive potential energy function of q 7 produces virtual forces r ( q 7 ) = 4.7111 and r ( q 7 ) = 7.9569 at the same time point, which makes q 7 enter the flexible interval. The joint q 3 is also in the damping interval when t = 8.7   s . Figure 6e also indicates that the limit repulsive potential energy function of q 3 produces virtual forces r ( q 3 ) = 6.066 at the same time point, which makes q 3 enter the flexible interval. Figure 6f shows that the manipulator runs in the unsafe region from t = 0.3   s to t = 8.6   s , and the damping factor is generated during this time period to ensure that joint velocities operate within their limit, as shown in Figure 6g,i. Meanwhile, the singular potential energy repulsion function generates a virtual force F ( q 2 ) = F ( q 3 ) = F ( q 4 ) = F ( q 5 ) = F ( q 6 ) = 0.08 to make the manipulator enter the safe region at t = 8.7   s , as shown in Figure 6h.

4.1.2. Simulation Analysis of the GPM and WLN Algorithm

Figure 7 and Figure 8 show the results of the traditional GPM and WLN method. In the two methods, q 7 exceeded its limit at t = 2.1   s and t = 1.8   s , respectively. It can also be clearly seen from Figure 8d that q 7 is in the damping interval from t = 1 s to t = 1.8   s and exceeds q 7 max from t = 1.8   s to the end of operation. When a joint exceeds its position limit, the corresponding joint will stop moving. Furthermore, there is no virtual force to push the joint away from its limit position, so when q 7 exceeds its limit, it remains unchanged, as shown in Figure 7a and Figure 8a. It is known that the orientation of the manipulator is mainly controlled by the rear three joints. Therefore, the stop motion of q 7 seriously affects the orientation accuracy of the EE, as shown in Figure 7c and Figure 8c. Figure 7b and Figure 8b describe the deviation between the actual position and the desired position of the EE. In the initial stage, the actual position is far from the desired position. With the operation of time, it is more and more close to the desired position. According to Equations (41) and (42), for GPM, the average position deviation E p is 1.0452 mm and the average orientation deviation E o is 0.6058 rad. For WLN method, the average position deviation E p is 1.46 mm and the average orientation deviation E o is 0.6144 rad. It also shows that the position accuracy of the EE is acceptable, but the orientation accuracy is very low. Figure 7d and Figure 8e show that the manipulator runs in the unsafe region from t = 0.5   s to t = 10   s , and the damping value is generated during this time period to ensure that joint velocities operate within their limit, as shown in Figure 7e,f and Figure 8f,g, respectively.
In addition, Figure 7d and Figure 8e show that the manipulator is always in the unsafe region because of no singular potential energy function, while Figure 6f shows that the existence of singular potential energy function urges the manipulator to stay away from the unsafe region. i.e., the singular potential energy function introduced in this paper is very effective in solving singular problems.
Table 2 shows that the IK solution obtained by the proposed IWGPM. Compared with the proposed IWGPM, the position accuracy of the traditional GPM in x, y and z directions is reduced by 95.5%, 98.4%, and 82.9%, respectively. The orientation accuracy in ϕ , θ and ψ directions decreased by 94.3%, 97.7%, and 92.3%, respectively. The position accuracy of the traditional WLN in x, y and z directions is reduced by 96.0%, 98.8%, and 89.1%, respectively. The orientation accuracy in ϕ , θ and ψ directions decreased by 93.7%, 98.0%, and 92.6%, respectively. It can be seen that the proposed IWGPM can obtain very high pose accuracy, which fully meets the requirements of surgical accuracy.

4.2. Case Study 2

To observe the influence of joint position limits and singular potential energy function on the motion of the redundant manipulators. In this section, only the pose accuracy of the EE is considered for the simulation test in the following two cases. In case 1, based on the proposed IWGPM, joint position limit is removed and singular repulsive potential energy function is retained, Equation (38) is expressed as:
q ˙ ( k ) = J c + ( k ) ( x ˙ ( k ) + Λ E e ) ( I n J c + ( k ) J ( k ) ) F ( q ( k ) )
In case 2, based on the proposed IWGPM, singular repulsive potential energy function is removed and joint position limit is retained, Equation (38) is presented as:
q ˙ ( k ) = J c + ( k ) ( x ˙ ( k ) + Λ E e ) ( I n J c + ( k ) J ( k ) ) ( I n W c ( k ) ) R i ( q ( k ) )
The initial pose, desired pose of the EE and other parameter settings are the same as those in the previous section. The simulations are shown in Figure 9 and Figure 10. In the first case, the average position deviation of the EE is 0.6553 mm and the average orientation deviation is 0.3353 rad. Compared with the proposed IWGPM, the average position deviation is reduced by 82.8% and the average orientation deviation is reduced by 88.4%. In the second case, the average position deviation of the EE is 2.5319mm and the average orientation deviation is 0.2547 rad. Compared with the proposed IWGPM, the average position deviation is reduced by 95.5% and the average orientation deviation is reduced by 84.8%. It is not difficult to find that the position and orientation of the EE are affected differently in the two cases. The first case has a great impact on the orientation accuracy, and the second case has a great impact on the position accuracy.
In addition, Figure 9a shows that q 7 exceeds q 7 max from t = 1.1   s to t = 10   s . However, Figure 10d shows that q 7 is in the damping interval at t = 1.3   s ,   1.6   s ,   2.85   s . Meanwhile, the virtual force generated by the joint position potential energy function urges q 7 to enter the flexible interval, as shown in Figure 10a, which shows that the joint position potential energy function is very effective. Figure 10e,f show that the manipulator is always in the unsafe region from t = 0.7   s to t = 10   s . However, Figure 9d,e show that the manipulator after t = 3   s is in the safe region, which shows that the singular potential energy function is very effective. From another point of view, this section verifies that the proposed IWGPM is very effective in solving joint position limits and singularity problems.

5. Conclusions

In this paper, the proposed IWGPM for the IK solution of redundant surgical manipulators is proposed to avoid joint position limits and singularities. The IWGPM introdues a clamping weighted matrix and joint limit repulsive potential field function. The clamping weighting matrix prevents approaching joint position limits, and the joint limit repulsive potential field function belong to the null space of weighted matrix only generates virtual force in the damping interval to make joints return to the flexible interval. Furthermore, a singular repulsive potential field function of belong to the null space of weighted matrix is introduced. When robotic manipulators enter an unsafe region, the singular repulsive potential field function produces an elastic force to drive manipulators back to the safe region. The proposed IWGPM is applied to the 7-DOF redundant surgical manipulator and compared with the traditional GPM and WLN methods. Simulations show that the proposed IWGPM is effective in avoiding joint position limits and singularities, and the pose accuracy is higher than achievable with the traditional GPM and WLN methods.
Furthermore, based on the proposed IWGPM, simulation tests in two cases are carried out. The results show that joint position limits have a great impact on the orientation accuracy, and singular potential energy function has a great impact on the position accuracy. Future work will focus on obstacle avoidance and optimal path planning of redundant surgical manipulators.

Author Contributions

X.Z.: Methodology, Formal analysis, Validation. B.F.: Review, editing, Supervision. C.W.: Writing original draft. X.C.: Editing the final draft. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Major Science and Technology Innovation Projects in Shandong Province, China (under Project No. 2017CXGC0919), the National Natural Science Foundation of China Youth Fund (under Project No. 61803235) and Natural Science Foundation of Shandong Province (under Project No. ZR2020ME252).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors are so thankful for the anonymous reviewers for their time and value comments.

Conflicts of Interest

The authors declare that they have no known competing financial interest or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. Faria, C.; Ferreira, F.; Erlhagen, W.; Monteiro, S.; Bicho, E. Position-based kinematics for 7-DoF serial manipulators with global configuration control, joint limit and singularity avoidance. Mech. Mach. Theory. 2018, 121, 317–334. [Google Scholar] [CrossRef] [Green Version]
  2. Zhang, H.; Jin, H.; Liu, Z.; Liu, Y.; Zhu, Y.; Zhao, J. Real-time kinematic control for redundant manipulators in a time-varying environment: Multiple-dynamic obstacle avoidance and fast tracking of a moving object. IEEE Trans. Industr. Inform. 2020, 99, 1–13. [Google Scholar] [CrossRef]
  3. Liegois, A. Automatic Supervisory Control of the Configuration and Behavior of Multibody Mechanisms. IEEE Trans. Syst. Man. Cybern. 1977, 7, 868–871. [Google Scholar]
  4. Maciejewski, A.A.; Klein, C.A. Obstacle Avoidance for Kinematically Redundant Manipulators in Dynamically Varying Environments. Intl. J. Rob. Res. 1985, 4, 109–117. [Google Scholar] [CrossRef] [Green Version]
  5. Kim, H.; Rosen, J. Predicting redundancy of a 7 DOF upper limb exoskeleton toward improved transparency between human and robot. J. Intell. Robot. Syst Theory Appl. 2015, 80, 99–119. [Google Scholar] [CrossRef] [Green Version]
  6. Mu, Z.; Liu, T.; Xu, W.; Lou, Y.; Liang, B. A Hybrid Obstacle-Avoidance Method of Spatial Hyper-Redundant Manipulators for Servicing in Confined Space. Robotica 2019, 37, 998–1019. [Google Scholar] [CrossRef]
  7. Duan, J.; Gan, Y.; Dai, X.; Xu, X.; Cao, P. Method of inverse kinematics solution for a redundant manipulator based on manipulability. J. Huazhong. Univ. Sci. Technol. 2015, 43, 45–49. [Google Scholar]
  8. Hildenbrand, D.; Zamora, J.; Bayro-Corrochano, E. Inverse Kinematics Computation in Computer Graphics and Robotics Using Conformal Geometric Algebra. Adv. Appl. Clifford Algebras 2008, 18, 699–713. [Google Scholar] [CrossRef]
  9. Colome, A.; Torras, C. Closed-loop inverse kinematics for redundant robots: Comparative assessment and two enhancements. IEEE ASME Mechatron. 2015, 20, 944–955. [Google Scholar] [CrossRef] [Green Version]
  10. Chan, T.F.; Dubey, R.V. A weighted least-norm solution based scheme for avoid joint limits for redundant joint manipulators. IEEE Trans. Robotic. Autom. 1995, 11, 286–292. [Google Scholar] [CrossRef]
  11. Ratajczak, J. Design of inverse kinematics algorithms: Extended Jacobian approximation of the dynamically consistent Jacobian inverse. Arch. Control. Sci. 2015, 25, 35–50. [Google Scholar] [CrossRef] [Green Version]
  12. Xu, W.; Yan, L.; Mu, Z.; Wang, Z. Dual arm-angle parameterisation and its applications for analytical inverse kinematics of redundant manipulators. Robotica 2016, 34, 2669–2688. [Google Scholar] [CrossRef]
  13. Lin, Y.; Zhao, H.; Ding, H. Solution of inverse kinematics for general robot manipulators based on multiple population genetic algorithm. J. Mech. Eng. 2017, 53, 1–8. [Google Scholar] [CrossRef]
  14. Huang, H.C.; Chen, C.P.; Wang, P.R. Particle swarm optimization for solving the inverse kinematics of 7-DOF robotic manipulators. In 2012 IEEE International Conference on Systems, Man, and Cybernetics; IEEE: Piscataway, NJ, USA, 2012; pp. 3105–3110. [Google Scholar]
  15. Liu, S.P.; Cao, J.F.; Sun, T.; Hu, J.B.; Fu, Y.; Zhang, S.; Li, S.Q. Inverse kinematics analysis of redundant manipulator based on BP neural network. China. Mech. Eng. 2019, 30, 2974–2978. [Google Scholar]
  16. Xu, W.; Yu, S.; Xu, Y. Analytical and semi-analytical inverse kinematics of SSRMS-type manipulators with single joint locked failure. Acta. Astronaut. 2014, 105, 201–217. [Google Scholar] [CrossRef]
  17. Gao, C.Y.; Tang, J.H.; Lv, X.L.; Zhang, M.L. A simplified kinematics solution method of redundant manipulator. Mech. Sci. Tech. Aero. Eng. 2021, 6, 1–6. [Google Scholar]
  18. Wan, J.; Yao, J.; Zhang, L.; Wu, H. A Weighted Gradient Projection Method for Inverse Kinematics of Redundant Manipulators Considering Multiple Performance Criteria. J. Mech. Eng. 2018, 64, 475–487. [Google Scholar]
  19. Huang, S.; Peng, Y.; Wei, W.; Xiang, J. Clamping weighted least-norm method for the manipulator kinematic control with constraints. Int. J. Control. 2016, 89, 2240–2249. [Google Scholar] [CrossRef]
  20. Hu, T.; Wang, T.; Li, J.; Qian, W. Gradient projection of weighted Jacobian matrix method for inverse kinematics of a space robot with a controlled-floating base. J. Dyn. Sys. Meas. Control. 2017, 139, 051013. [Google Scholar] [CrossRef]
  21. Kelemen, M.; Virgala, I.; Lipták, T.; Miková, Ľ.; Filakovský, F.; Bulej, V. A Novel Approach for a Inverse Kinematics Solution of a Redundant Manipulator. Appl. Sci. 2018, 8, 2229. [Google Scholar] [CrossRef] [Green Version]
  22. Wan, J.; Wu, H.T.; Ma, R.; Zhang, L.A. A study on avoiding joint limits for inverse kinematics of redundant manipulators using improved clamping weighted least-norm method. J. Mech. Sci. Technol. 2018, 32, 1367–1378. [Google Scholar] [CrossRef]
  23. Wampler, C.W. Manipulator Inverse Kinematic Solutions Based on Vector Formulations and Damped Least-Squares Methods. Sys. Man. Cybern. IEEE Tran. 1986, 16, 93–101. [Google Scholar] [CrossRef]
  24. Nakamura, Y.; Hanafusa, H.; Yoshikawa, T. Task-priority based redundancy control of a robot manipulator. Int. J. Rob. Res. 1987, 6, 3–15. [Google Scholar] [CrossRef]
  25. Nakamura, Y.; Hanafusa, H. Inverse kinematic solutions with singularity robustness for robot manipulator control. J. Dyn. Syst. Meas. Control. 1986, 108, 163–171. [Google Scholar] [CrossRef]
  26. Whitney, D.E. Resolved motion rate control of manipulators and human prostheses. IEEE T. Hum-Mach. Syst. 1969, 10, 47–53. [Google Scholar] [CrossRef]
  27. Chiaverini, S.; Siciliano, B.; Egeland, O. Review of the damped least-squares inverse kinematics with experiments on a industrial robot manipulator. IEEE. Trans. Control. Syst. Technol. 1994, 2, 123–134. [Google Scholar] [CrossRef] [Green Version]
  28. Turro, N.; Khatib, O. Haptically augmented teleoperation. In Experimental Robotics VII. Lecture Notes in Control and Information Sciences; Rus, D., Singh, S., Eds.; Springer: Berlin/Heidelberg, Germany, 2002; Volume 271, pp. 1–10. [Google Scholar]
  29. Chotiprayanakul, P.; Liu, D.K.; Wang, D.; Dissanayake, G. A 3-dimensional force field method for robot collision avoidance in complex environments. In Proceedings of the 24th International Symposium on Automation and Robotics in Construction (ISARC 2007), Kochi, India, 19–21 September 2007; Indian Institute of Technology Madras: Madras, India; pp. 139–145. [Google Scholar]
  30. Antonelli, G. Stability analysis for prioritized closed-loop inverse kinematic algorithms for redundant robotic systems. IEEE Trans. Robot. 2009, 25, 985–994. [Google Scholar] [CrossRef]
Figure 1. The change of w i ( q ) for the i-th joint position in WLN method.
Figure 1. The change of w i ( q ) for the i-th joint position in WLN method.
Sensors 21 07362 g001
Figure 2. The change of w c ( q i ) for i-th joint position in clamping WLN method.
Figure 2. The change of w c ( q i ) for i-th joint position in clamping WLN method.
Sensors 21 07362 g002
Figure 3. Distributions of damping factor (a) and damped inverse (b) with singular value, the example shows λ max = 0.86 , σ b = 0.038 , γ = 1.3 .
Figure 3. Distributions of damping factor (a) and damped inverse (b) with singular value, the example shows λ max = 0.86 , σ b = 0.038 , γ = 1.3 .
Sensors 21 07362 g003
Figure 4. The shape of the function f ( d ( σ ) ) is set using two parameters: σ b and σ ¯ b . The example shows σ b = 0.2 .
Figure 4. The shape of the function f ( d ( σ ) ) is set using two parameters: σ b and σ ¯ b . The example shows σ b = 0.2 .
Sensors 21 07362 g004
Figure 5. (a) The structure diagram of the 7-DOF manipulator; (b). The coordinate system of the 7-DOF manipulator.
Figure 5. (a) The structure diagram of the 7-DOF manipulator; (b). The coordinate system of the 7-DOF manipulator.
Sensors 21 07362 g005aSensors 21 07362 g005b
Figure 6. Simulations results of the proposed IWGPM. (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of w c ( q i ) ; (e) the change curve of r i ; (f) the change curve of σ min ; (g) the change curve of λ 2 ; (h) the change curve of F i ; (i) the change curve of joint velocity.
Figure 6. Simulations results of the proposed IWGPM. (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of w c ( q i ) ; (e) the change curve of r i ; (f) the change curve of σ min ; (g) the change curve of λ 2 ; (h) the change curve of F i ; (i) the change curve of joint velocity.
Sensors 21 07362 g006aSensors 21 07362 g006b
Figure 7. Simulation results obtained with the GPM. (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of σ min ; (e) the change curve of λ 2 ; (f) the change curve of joint velocity.
Figure 7. Simulation results obtained with the GPM. (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of σ min ; (e) the change curve of λ 2 ; (f) the change curve of joint velocity.
Sensors 21 07362 g007
Figure 8. Simulation results obtained with the WLN method. (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of w c ( q i ) ; (e) the change curve of σ min ; (f) the change curve of λ 2 ; (g) the change curve of joint velocity.
Figure 8. Simulation results obtained with the WLN method. (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of w c ( q i ) ; (e) the change curve of σ min ; (f) the change curve of λ 2 ; (g) the change curve of joint velocity.
Sensors 21 07362 g008
Figure 9. Simulation results of the proposed IWGPM (no joint position limits). (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of σ min ; (e) the change curve of λ 2 .
Figure 9. Simulation results of the proposed IWGPM (no joint position limits). (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of σ min ; (e) the change curve of λ 2 .
Sensors 21 07362 g009
Figure 10. Simulation results of the proposed IWGPM (no singular potential energy function). (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of w c ( q i ) ; (e) the change curve of σ min ; (f) the change curve of λ 2 .
Figure 10. Simulation results of the proposed IWGPM (no singular potential energy function). (a) the change curve of joint position; (b) the change curve of position deviation; (c) the change curve of orientation deviation; (d) the change curve of w c ( q i ) ; (e) the change curve of σ min ; (f) the change curve of λ 2 .
Sensors 21 07362 g010
Table 1. Modified DH parameters and joint position limits of the 7-DOF manipulator.
Table 1. Modified DH parameters and joint position limits of the 7-DOF manipulator.
i α i 1   ( rad ) a i 1   ( mm ) d i   ( mm ) q i   ( rad ) [ q imin , q imax ]
100 d 1 0[−100,100] (mm)
2 π / 2 200 q 2 [ 0 , π ] (rad)
30680 q 3 [ π / 2 , π / 2 ] (rad)
4 π / 2 320 q 4 [ 0 , π ] (rad)
5 π / 2 086 q 5 [ π , π ] (rad)
6 π / 2 00 q 6 [ 0 , π ] (rad)
7 π / 2 200 q 7 [ π / 2 , π / 2 ] (rad)
Table 2. The deviation of the EE between the actual pose and the desired pose at t = 10   s .
Table 2. The deviation of the EE between the actual pose and the desired pose at t = 10   s .
Method E x   ( mm )   E y   ( mm ) E z   ( mm )
E ϕ   ( rad )
E θ   ( rad ) E ψ   ( rad )
IWGPM0.0410.00830.29010.0324−0.0052−0.0786
GPM0.9143−0.52021.70110.5647−0.2269−1.0259
WLN1.0137−0.71372.65130.51590.259−1.0682
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhang, X.; Fan, B.; Wang, C.; Cheng, X. An Improved Weighted Gradient Projection Method for Inverse Kinematics of Redundant Surgical Manipulators. Sensors 2021, 21, 7362. https://doi.org/10.3390/s21217362

AMA Style

Zhang X, Fan B, Wang C, Cheng X. An Improved Weighted Gradient Projection Method for Inverse Kinematics of Redundant Surgical Manipulators. Sensors. 2021; 21(21):7362. https://doi.org/10.3390/s21217362

Chicago/Turabian Style

Zhang, Xinglei, Binghui Fan, Chuanjiang Wang, and Xiaolin Cheng. 2021. "An Improved Weighted Gradient Projection Method for Inverse Kinematics of Redundant Surgical Manipulators" Sensors 21, no. 21: 7362. https://doi.org/10.3390/s21217362

APA Style

Zhang, X., Fan, B., Wang, C., & Cheng, X. (2021). An Improved Weighted Gradient Projection Method for Inverse Kinematics of Redundant Surgical Manipulators. Sensors, 21(21), 7362. https://doi.org/10.3390/s21217362

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop