scieee AI-readable full text Open interactive document viewer

Kinematic Control of Redundant Manipulators

Subedi, Dipendra

Abstract

While most manipulators have enough degrees of freedom (DOFs) to perform tasks in their end-effector task space (desired position and orientation), their workspace is limited due to mechanical joint constraints and obstacles that may be present in the work space. Redundant manipulators have extra DOFs than required for reaching the desired position and orientation of the end-effector. This allows the redundant manipulators to use the extra DOFs to avoid their joint limits and obstacles in the workspace, while still reaching a desired end-effector pose in the task space. The objective of the thesis is to implement and analyze the performance of most common methods for redundancy resolution with respect to algorithmic and kinematic singularity, and incorporation of different additional desired tasks, e.g., joint limit avoidance, singularity avoidance. Moreover, wrist mounted force/torque sensor is calibrated and used to detect the contact with the objects in the environment and for the robust extraction of the object during picking and stowing operations. The thesis is a part of work done for Amazon Robotics Challenge 2017.

Full text

JAUME I UNIVERSITY MASTER’STHESIS Kinematic Control of Redundant Manipulators Author: Dipendra SUBEDI Supervisors: Dr. Enric CERVERA Prof. Giuseppe CASALINO A thesis submitted in fulfillment of the requirements for the degree of European Master on Advanced Robotics Plus (EMARO+) in the Robotic Intelligence Laboratory Department of Computer Science and Engineering July 7, 2017 iii Declaration of Authorship I, Dipendra SUBEDI, declare that this thesis titled, “Kinematic Control of Redundant Manipulators” and the work presented in it are my own. I confirm that: •This work was done wholly or mainly while in candidature for a research degree at this University. •Where any part of this thesis has previously been submitted for a degree or any other qualification at this University or any other institution, this has been clearly stated. •Where I have consulted the published work of others, this is always clearly attributed. •Where I have quoted from the work of others, the source is always given. With the exception of such quotations, this thesis is entirely my own work. •I have acknowledged all main sources of help. •Where the thesis is based on work done by myself jointly with others, I have made clear exactly what was done by others and what I have contributed myself. Signed: Date: v “A robot may not injure a human being, or, through inaction, allow a human being to come to harm.” Isaac Asimov vii Jaume I University Abstract School of Technology and Experimental Sciences Department of Computer Science and Engineering European Master on Advanced Robotics Plus (EMARO+) Kinematic Control of Redundant Manipulators by Dipendra SUBEDI While most manipulators have enough degrees of freedom (DOFs) to perform tasks in their end-effector task space (desired position and orientation), their workspace is limited due to mechanical joint constraints and obstacles that may be present in the work space. Redundant manipulators have extra DOFs than required for reaching the desired position and orientation of the end-effector. This allows the redundant manipulators to use the extra DOFs to avoid their joint limits and obstacles in the workspace, while still reaching a desired end-effector pose in the task space. The objective of the thesis is to implement and analyze the performance of most common methods for redundancy resolution with respect to algorithmic and kinematic singularity, and incorporation of different additional desired tasks, e.g., joint limit avoidance, singularity avoidance. Moreover, wrist mounted force/torque sensor is calibrated and used to detect the contact with the objects in the environment and for the robust extraction of the object during picking and stowing operations. The thesis is a part of work done for Amazon Robotics Challenge 2017. ix Acknowledgements I would first like to thank my thesis supervisor Dr. Enric Cervera of the Department of Computer Science and Engineering at Jaume I University. The door to Dr. Cervera’s office was always open whenever I ran into a trouble spot or had a question about my research or writing. He consistently allowed this thesis to be my own work, but steered me in the right direction whenever he thought I needed it. I would also like to acknowledge Prof. Giuseppe Casalino of Department of Informatics, Bioengineering, Robotics, and System Engineering at University of Genoa, as the co-supervisor of this thesis, and I am gratefully indebted to him for his very valuable comments on this thesis. I would also like to thank Prof. Angel P. del Pobil of Department of Computer Science and Engineering as the director of the Robotics Intelligence Laboratory at Jaume I University for providing me an opportunity to join his team for Amazon Robotics Challenge 2017, and who gave access to the laboratory and research facilities. Without his precious support it would not be possible to conduct this research. Finally, I must express my very profound gratitude to my parents and to my friends for providing me with unfailing support and continuous encouragement throughout my years of study and through the process of researching and writing this thesis. This accomplishment would not have been possible without them. In particular, I am grateful to my fellow lab-mates Mr. Angel J. Durán for enlightening me the first glance of research and providing me useful suggestions throughout my research. Thank you. xvii List of Abbreviations APC Amazon Picking Challenge ARC Amazon Robotics Challenge CAN Controller Area Network CLIK Closed Loop Inverse Kinematics DH Denavit-Hartenberg DOF Degree OfFreedom EE End-Effector F/T Force/Torque (Sensor) IK Inverse Kinematics IP Internet Protocol JLA Joint Limit Avoidance KDL Kinematics and Dynamics Library PD Proportional-Derivative PyKDL Python Kinematics and Dynamics Library RoboCup Robot (Soccer World) Cup ROS Robot Operating System SVD Singular Value Decomposition xix List of Symbols evector of position and orientation error in 3-D space ˙evector of derivative of position and orientation error in 3-D space Fxforce corresponding to x-axis Fyforce corresponding to y-axis Fzforce corresponding to z-axis Iidentity matrix n×n JeJacobian of end-effector J† epseudo-inverse of Jacobian matrix Je JT etranspose of Jacobian matrix Je Kdiagonal weighting matrix (n×n) k0positive scalar Kpproportional gain mCartesian degrees of freedom (degrees of freedom in task space) nnumber of joints (degrees of freedom in joint space) Nnull space qvector of joint positions ˙qvector of joint variables (velocities) ˙qdvector of desired joint velocities q0vector of initial joint configuration qiposition of ith joint qimiddle value of joint range of ith joint qim minimum joint limit of ith joint qiM maximum joint limit of ith joint ˙qNvector of joint variables (velocities) belonging to null space ˙qpvector of joint velocities corresponding to main (primary) task rdegree of redundancy Rrevolute joint Rrange RmCartesian (task) space Rnjoint space Sspherical joint Txtorque corresponding to x-axis Tytorque corresponding to y-axis Tztorque corresponding to z-axis Uuniversal joint xvector of position and orientation in 3-D space xdvector of desired end-effector position and orientation in 3-D space ˙xvector of end-effector linear and angular velocities ˙xdvector of desired end-effector linear and angular velocities αscalar multiplier ˙ϕarbitrary n-dimensional vector Φ(q)scalar objective function of the joint variable q xx λdamping or singularity robustness factor (number) xxi Dedicated to my parents 1 Chapter 1 Introduction At present, robots play an active role in many fields like industrial use, use in hazardous environments, use for collaboration in human society and so on. Robotic manipulator based automation has gained increasing deployment in the industry. Industrial robots are used but not limited to material handling, machine tending, arc welding, spot welding, cutting, painting and gluing. They are capable of lifting massive objects, moving with high speed and repeating complex performances with very high precision. Typically, in industrial application, a robotic manipulator performs a repetitive sequence of movements. A robot task generally consists of a sequence of end-effector movements. It can be defined by a path consisting of a set of robot positions either in joint positions or end effector position and the corresponding set of motion definitions between adjacent robot positions. The position and orientation of the robot’s end-effector are not directly measured but instead computed using the individual joint position readings and kinematics of the robot. On the contrary, inverse kinematics of the robot is used to obtain the joint positions required for desired end-effector position and orientation. Generally, robot manipulators can be categorized into two, one that is designed for general purpose and and the other for exclusive (specific) work. General purpose manipulator is generally designed with more than 6 degrees of freedom (DOF) to allow free positioning and posturing of end-effector and to provide capabilities to handle more real-time applications. More the DOF, the manipulator can handle tasks that are more complicated. However, their structures and control problem become more complicated with the difficulty of the task. Kinematic redundancy occurs if a manipulator has more DOF than the minimum required to execute a given task. Although it was once claimed that a 6-DOF nonredundant manipulator is a general purpose manipulator, since it can freely position and orient its end-effector in the Cartesian workspace, it can no longer be considered a general purpose manipulator [47]. This is because, the geometry of 6-DOF manipulator has a number of kinematic flaws such as limited joint ranges, workspace obstruction and kinematic singularities which prevent it from attaining arbitrarily assigned end-effector position and orientation in its workspace. 7-DOF human arm posses an excellent model of a dexterous redundant structure to overcome the limitations discussed above with its additional degrees of freedom.The exclusive use manipulators are designed specifically with structures for tasks that can be accomplished even in the presence of restrictions on the posture and working range like 5-DOF robotic arm used for welding applications. Robot redundancy occurs with respect to the given task when the number of active joints exceeds the number of variables which define the task. For example, 6 DOF manipulator becomes redundant with respect to all the five-dimensional tasks, 2Chapter 1. Introduction such as, arc welding, laser cutting, which do not require sixth roll angle specifications. Recently, the scientific and technological perspective have been greatly enhanced by considering the redundancy of manipulator which provide greater flexibility,versatility, and dexterity. 1.1 Redundancy Resolution for Redundant Manipulator There are infinite solution for the inverse kinematic problem of a redundant manipulator. Redundancy resolution means selecting particular solution out of many to accomplish the desired end-effector task. The solution can be selected in such a way that the assigned task requirements can be satisfied with the best posture of the manipulator. This can be done by inducing a self-motion of the structure without changing the position and orientation of the end-effector. In principle, if a desired task trajectory is given to the end-effector, it is possible to assign the joint motion in such a way that both the end-effector task and a suitable constraint task are accomplished at the best. Researchers have suggested a number of solution for solving the inverse kinematic problem for redundant manipulators. Redundant manipulators have been more exploited for avoiding joint limits [1] and obstacles [60, 39]. However, extra- DOF of the redundant manipulators can also be used to satisfy any desired kinematic or dynamic characteristics [36, 24]. The objective of this thesis is to implement and analyze the performance of exact and approximate redundancy resolution techniques to satisfy the additional desired tasks (singularity avoidance and joint limit avoidance) for the specific application. 1.1.1 Baxter The Baxter Robot System is human-sized humanoid robot with two 7-DOF arms manufactured by Rethink Robotics.1It also contains stationary pedestal, torso, 2- DOF head, vision system, robot control system, safety system, gravity-offload controller and collision detection routine where last two are optional. The Baxter arms are kinematically redundant, i.e. possessing more joint freedoms than necessary to operate fully in the desired Cartesian space. More specifically, Baxter has n= 7 single-DOF revolute (R) joints which means that it has one-DOF greater than m= 6 Cartesian DOF (3 translations and 3 rotations) required for general trajectories in the task space. As n>m, the Baxter qualifies as a kinematically-redundant robot, and thus in addition to following the desired trajectories in the task space, the 7-DOF arm can be used for optimizing the performance by using some constraints in the robot arm. Each Baxter arm has a 2-DOF (offset-U- joint) shoulder joint, a 2-DOF (offset-U-joint) elbow joint and a 3-DOF (offset-S-joint) wrist joint as shown in Figure 1.1. Associated Denavit-Hartenberg (DH) parameters for the 7-DOF left and right arms are summarized in Appendix A. Joint motions corresponding to the individual joints of each Baxter arms are summarized in Table 1.1 and the range of joint motion (joint limits) for each joint is presented in Table 1.2. According to Pieper [40], if three adjacent joint axes are parallel to one another or they intersect at a single point, a closed-form joint solution to a robot manipulator is guaranteed to exist for coupled nonlinear inverse kinematics problem. This does not occur for Baxter, i.e. there are no parallel Rjoint axes anywhere in each arm nor a 1More details and technical specifications can be found in http://www.rethinkrobotics. com/baxter/ 1.1. Redundancy Resolution for Redundant Manipulator 3 TABLE 1.1: Baxter Joint Motions Joint Name Joint Motion Soshoulder roll S1shoulder pitch Eoelbow roll E1elbow pitch Wowrist roll W1wrist pitch W2wrist roll TABLE 1.2: Baxter Joint Range Joint Name Min Limit(Radians) Max Limit(Radians) Range(Radians) So-1.7016 +1.7016 3.4033 S1-2.147 +1.047 3.194 Eo-3.0541 +3.0541 6.1083 E1-0.05 +2.618 2.67 Wo-3.059 +3.059 6.117 W1-1.5707 +2.094 3.6647 W2-3.059 +3.059 6.117 FIGURE 1.1: Baxter Left Arm Joints2(S=Shoulder, E=Elbow, W=Wrist) 11 Chapter 3 Methodologies 3.1 Kinematics of Redundant Manipulators For a manipulator, the task space is the space that defines the position and orientation of the end-effector whereas the joint space for a manipulator is comprised of all the variables that define the configuration of the joints. In the case of a redundant manipulator, number of joint variables are more than the DOFs of the end-effector. In other words, the dimension of the joint space nexceeds the dimension of the task space min the redundant systems. The difference between nand mis denoted as the degree of redundancy r. In this definition, the redundancy is not only a characteristic of the manipulator itself but also of the task which means that a non redundant manipulator may also become a redundant manipulator for certain task. Let the end-effector pose (position and orientation) be represented by the mdimensional vector xand the configuration of the manipulator by the n-dimensional vector qof joint positions. The degree of redundancy ris given by Equation 3.1. r=n−m, where (r≥1) (3.1) The pose of the end-effector depends on the configuration of the joints which can be mathematically represented as a functional relation between the end-effector pose vector xand the joint variables vector qas x=f(q)(3.2) where f is a m-dimensional vector function representing the manipulator’s forward kinematics. Similarly, the linear and angular velocity components for an end-effector can be related to the rate of change of the joint variables which can be expressed mathematically as ˙x=Je(q) ˙q(3.3) where ˙xcontains the linear and angular velocity components of the end-effector, and Jeis the (m×n)Jacobian of the end-effector. Equation 3.3 is known as the differential kinematics of the manipulator. The differential kinematics equation (equation 3.3), in terms of either the geometric or the analytical Jacobian, establishes a linear mapping between joint space velocities and task space velocities, and it can be utilized to solve for joint velocities using kinematic equation. 3.1.1 Mathematical Interpretation of Differential Kinematics Equation Equation 3.3 has an interesting mathematical interpretation. n×1- dimensional mathematical space is formed by all possible joint variable (velocities) ˙qthat is a subset of Rn. Also, m×1-dimensional mathematical space is formed by all possible 12 Chapter 3. Methodologies end-effector velocity vectors ˙xthat is a subset of Rm. From these definitions, at any fixed manipulator configuration q, the Jacobian matrix Je(q)can be interpreted as a linear transformation that maps vectors from the space Rninto the space Rm. Like any other linear transformation, the input space Rnof the Jacobian matrix has two important associated subspaces: the range and the null space(Figure 3.1). The range of the Jacobian matrix is the subspace of Rnthat is covered by the transformation and physically, these are joint velocities that are mechanically possible to be generated by the manipulator’s drive mechanism. The range denoted by R(Je) can be mathematically defined as R(Je) = {Je˙q|˙q∈Rn}(3.4) A subset of the input space Rnthat is mapped to a zero vector in the output space Rmby the Jacobian matrix is the null space of the Jacobian matrix and physically, these are the joint velocities that do not generate any velocity at the end-effector. The null space of the Jacobian matrix is denoted by N(Je)and can be mathematically defined as N(Je) = {˙q∈Rn|Je˙q= 0}(3.5) FIGURE 3.1: The Jacobian matrix Jemaps the joint velocity space onto the end-effector velocity space. The null space of the Jacobian matrix N(Je)maps a portion of the joint velocity space ˙qNonto zero endeffector velocity, adopted from Fahimi [13, p. 17] 3.1.2 Mathematical and Physical Basis for Redundant Manipulators The mathematical basis for redundant manipulators is the existence of the null space for the Jacobian matrix as defined in Equation 3.5. Intuitively, Equation 3.5 implies that the velocities ˙qNbelonging to the null space N(Je)do not generate any velocity ˙xat the task space (end-effector), i.e., Je˙qN= 0 (3.6) Although the joint velocities ˙qNdo not generate any motion at the end-effector, they generate internal joint motions of the manipulator which can be used to satisfy 3.2. Redundancy Resolution at the Velocity Level 13 some desired criteria that the redundant manipulator must meet, for example, joint limit avoidance, while the end effector is performing its main task. Mathematically, a desired end-effector velocity ˙xdthat can be generated by applying the joint rates ˙qdcan be represented as ˙xd=Je˙qd(3.7) If the joint velocities ˙qNare selected from the null space N(Je)by an algorithm, the joint velocities ˙qd+α˙qN, where αis a scalar multiplier, still generate the desired end-effector velocity because Je( ˙qd+α˙qN) = Je˙qd= ˙xd(3.8) The rank of the Jacobian matrix determines the dimension of the null space from which ˙qN’s can be selected. If the Jacobian matrix Je(q)has full column rank at a given joint position q, then the dimension of the null space N(Je)is equal to the degree of redundancy. If the Jacobian matrix has a rank of m0< m, the dimension of N(Je)is equal to (n−m0). Since the choice of velocities that belong to the null space is not unique, there are several ways in which the desired main task ˙xdcan be achieved, that is to say, there are an infinite number of solutions to the inverse kinematics problem for a redundant manipulator. This is the major advantage of redundant manipulators. Additional useful constraints can be satisfied by wisely using these multiple solutions while executing the main task specified via positions and orientations of the end-effector. Additional constraints can be defined and incorporated using two different approaches: global and local. Global approaches achieve optimal behavior along the whole trajectory which ensures superior performance over local methods [18, 34, 49]. However, their computational burden makes them unsuitable for realtime sensor-based manipulator control applications. 3.2 Redundancy Resolution at the Velocity Level In most real world applications of manipulators, the main task is the desired trajectory of the end effector, i.e., timed position and orientation. For controlling the manipulator, these control inputs should be projected into joint space. In other words, the trajectory of joint variables is required. Therefore, the solution to the inverse kinematics problem (redundancy resolution for redundant manipulators) is necessary. That is, the desired joint rates that generate a desired end effector velocity should be calculated which is called redundancy resolution at the velocity level. Because of the kinematic redundancy in redundant manipulators, there are always more unknown joint velocities than there are equations which make the redundancy resolution for a redundant manipulator little challenging. In this project, different mathematical methods that allow the solution for redundant manipulators at velocity levels are implemented and analyzed. 3.2.1 Pseudo-Inverse (Exact Solution) Method In this method, for a given desired instantaneous velocity ˙xat the end-effector of a redundant manipulator, a solution ˙qis selected which exactly satisfies Equation 3.3. One of the mostly used methods for obtaining this exact solution is based on the 14 Chapter 3. Methodologies pseudo-inverse of the matrix Je, denoted by J† e: ˙qp=J† e˙x(3.9) where the subscript pindicates the primary solution (corresponding to the main task) to Equation 3.3. This solution can be later enhanced by adding solutions ˙qN from the null space of the Jacobian matrix Je. The pseudo inverse of Jecan be expressed as J† e=vσ∗uT(3.10) where σ,v, and uare obtained from the singular-value decomposition (SVD) of Je [14], and σ∗is the transpose of σwith all the non-zero values reciprocated. Equation 3.10 can also be written as J† e= m0 X i=1 1 σi ˆviˆuT i(3.11) where m0is the number of nonzero diagonal components of the matrix σ, and σiis the i-th nonzero diagonal element of the matrix σ, and ˆviand ˆuiare the i-th column of the matrices vand u, respectively. If Jehas full row rank, then its pseudo inverse is given by: J† e=JT e(JeJT e)−1(3.12) Equation 3.9 represents the general form of a minimum 2-norm solution to the following least-square problem: min ˙q{kJe˙q−˙xk} (3.13) The main advantage of the pseudo-inverse method of redundancy resolution is its ability to provide a meaningful solution in the least-squares sense regardless of whether the forward kinematics equation, i.e., Equation 3.3 is under-specified, square, or over-specified. However, there are some drawbacks associated with this solution like the solution given by Equation 3.9 does not guarantee generation of joint motions which avoid singular configurations - configurations at which the Jacobian matrix Jedoes not have full rank [31]. At singular positions, end-effector cannot generate velocity components in certain directions, whereas close to singular position, very large joint rates are required to generate an end-effector velocity in certain directions which is not desirable. This can be seen mathematically by Equation 3.10 or Equation 3.11, in which even the largest element of matrix σis very close to zero at a singular posture. Therefore, there are some velocities in task space which require very large joint rates resulting from Equation 3.9. Another problem with the pseudo-inverse method of redundancy resolution is that repeatability and cyclicity condition are not preserved (a closed path in Cartesian space may not result in a closed path in joint space) by the joint motions generated by this approach [22]. Another difficulty with this method is that the extra DOFs (when dim(q)> dim(x)) are not exploited for any useful purpose to satisfy user-defined additional tasks because Equation 3.9 only provides the primary solution, which is not in the null space of the Jacobian Je. To overcome this problem, a joint velocity vector ˙qNthat belongs to the null space of the Jacobian matrix Jecan be added to the primary solution (Equation 3.9) as [11] 3.2. Redundancy Resolution at the Velocity Level 15 ˙q= ˙qp+ ˙qN(3.14) As shown in Equation 3.8, the new joint velocity ˙qstill satisfies Equation 3.3. The term ˙qNcan be obtained by projection of arbitrary n-dimensional vector ˙ϕto the null space of the Jacobian Jeas ˙qN= (I−J† eJe) ˙ϕ(3.15) where ˙ϕcan be chosen as [58, 27] ˙ϕ=−k0∇Φ(q) = −k0(∂Φ(q) ∂q )T(3.16) with k0>0,Φ(q)is a cost function (scalar objective function of the joint variables) that can be selected to satisfy different objectives whose optimal value would ensure the desired additional task and (∂Φ(q) ∂q )Tis the vector function representing the gradient of Φ. The desired additional task can be torque and acceleration minimization [45], singularity avoidance [33], or obstacle avoidance [8, 2]. 3.2.2 Singularity Avoidance (Approximate Solution) Method The exact solution method as discussed in section 3.2.1 like the solution given by Equation 3.9 does not guarantee the generation of joint motions which avoid singular configurations. An alternative method to deal with this type of problems of artificial/kinematic singularities and large joint rates is to solve the problem for an approximate solution. For a redundant manipulator, singularity avoidance can be achieved by exploiting its extra DOFs than that required to perform the primary task. In this method, the exact solution of a linear equation (Equation 3.3) is replaced by a solution that takes into account both the accuracy and the norm of the solution at the same time which is often referred as the damped least-squares solution. The least-squares criterion that is used in different forms for redundancy resolution [53, 33] can be used for solving Equation 3.3 for avoiding singularities. Considering ˙xdas a desired main task (end-effector tracking), the joint rate ˙q can be determined that approximately satisfies Equation 3.3 by minimizing the cost function. F=kJe˙q−˙xdk2(3.17) For avoiding the singularities, the weighted norm of the joint rates can be added to the cost function above because of which the high joint rates are penalized causing the manipulator to avoid the singular posture. So the cost function can be rewritten as F=kJe˙q−˙xdk2+kλ˙qk2(3.18) where λ, the damping or singularity robustness factor, is used to specify the relative importance of the norms of joint rates and the tracking accuracy. This can be equivalently represented by replacing Equation 3.3 by a new augmented system of equations as Je λI˙q=˙xd 0(3.19) 16 Chapter 3. Methodologies The least-squares solution for the new system of equations (Equation 3.19) can be determined by solving the following consistent set of equations: (JT eJe+λ2I) ˙q=JT e˙xd(3.20) The least square solution can be thus written as ˙qλ= (JT eJe+λ2I)−1JT e˙xd(3.21) The Equation 3.21 gives a unique solution which most closely approximates the desired task velocity (exact solution) while avoiding high joint rates. The singular value decomposition (SVD) of the matrix (JT eJe+λ2I)−1JT ein Equation 3.21 is given by (JT eJe+λ2I)−1JT e= m0 X i=1 σi σ2 i+λ2ˆviˆuT i(3.22) where m0,σi,ˆviand ˆuiare as in Equation 3.11. By comparing Equations 3.22 and 3.11, it can be seen that the weight λis what makes the actual difference between the singular values of the two solutions. That is to say the singular values of the exact and the approximate solutions are 1 σiand σi σ2 i+λ2respectively. Assigning λ= 0, we can obtain the pseudo-inverse soution from Equation 3.22 When manipulator is far from singular configuration and singular values are much larger than λthen there is little difference between the two solutions that is to say the singular values of the exact and approximate solutions are very close, causing close solutions for ˙q,i.e., σi σ2 i+λ2≈1 σi Moreover, when the manipulator is close to singular configuration, i.e., if the singular values are of the order of λor smaller, then the weight λ2in the denominator tends to reduce the potentially high norm joint rates. In all the cases discussed above, the norm of joint rates will be bounded by k˙qλk ≤ 1 2λk˙xdk(3.23) The solutions obtained by exact solution (pseudo-inverse) method and approximate solution (damped least-squares) method can be compared diagrammatically in Figure 3.2. From Figure 3.2 it can be clearly seen that, the problems of discontinuity at singular configurations and large solution norms near singularities associated with exact solution (pseudo-inverse) method are changed in the approximate solution(damped least-squares) method. 3.3 Joint Limit Avoidance (JLA) by Kinematic Optimization Joint Limit Avoidance (JLA) is an important issue that needs to be addressed while planning the trajectory of the manipulator joints to perform certain tasks. This is done by defining a kinematic objective function and minimizing it to prevent the joints from reaching their limits by taking the advantage of the null space of the Jacobian matrix Jeof the redundant manipulator. 3.3. Joint Limit Avoidance (JLA) by Kinematic Optimization 17 FIGURE 3.2: Damped versus undamped least-square solution, adopted from Patel and Shadpey [38, p. 15] At first, an exact or approximate solution to the redundancy resolution problem is determined from Equation 3.9 or Equation 3.21. Then the final joint velocities are calculated by adding joint velocities solution belonging to the null space of the manipulator Jacobian matrix Jeas in Equation 3.14. Null space solution is found from Equations 3.15 and 3.16. There are many objective functions that have been proposed for joint limit avoidance, i.e., to keep the joint far from their limits. Taking distance from the mechanical joint limits as the objective function [58, 27], a quadratic cost function that is to be minimized can be written as, Φ(q) = 1 n n X i=1 (qi−qi qiM −qim )2(3.24) where qiM denotes the maximum limit, qim denotes the minimum limit and qi denotes the middle value of the joint range for joint i. Thus, Joint limit avoidance can be achieved by finding ˙ϕthat optimizes Equation 3.24 and using Equations 3.14 and 3.15, redundancy can be exploited to keep the manipulator joints away from their mechanical limits. Another approach of optimization which reflects the joint limit avoidance objective has been proposed using p-norm [54, 20], where the p-norm of a vector can be defined as kxkp=n X i=1 |xi|p1/p (3.25) Using the p-norm, the cost function for joint limit avoidance can be defined as Φ(q) = max |qi−qi| qiM −qim =kq−q qM−qm kp(3.26) 18 Chapter 3. Methodologies where p≥2and in most practical applications p= 6 gives good results. As it is visible from Equation 3.26 that all the joints have the same importance in the objective function. In some practical applications, it might be more important for certain joints to avoid joint limits. In such case, a n×ndiagonal weighting matrix K can be introduced to form a new objective function for kinematic optimization as Φ(q) = kKq−q qM−qmkp(3.27) ˙ϕthat optimizes Equation 3.27 is calculated using Equations 3.16 and 3.27, and using Equations 3.14 and 3.15, the joint velocities are determined which tends to keep the trajectory for the joints around the center of their ranges at all times by exploiting the redundancy of the manipulator. 3.4 Closed Loop Inverse Kinematics (CLIK) Algorithm FIGURE 3.3: CLIK scheme with redundancy resolution at the velocity level, adopted from Wang, Li, and Zhao [55, p. 3] Figure 3.3 shows the CLIK algorithm with redundancy resolution at the velocity level where the Proportional Derivative (PD) feedback loop takes the desired trajectory and current position and orientation of end-effector as input and regulates the input of the redundancy resolution. Considering vectors xand xdrepresent the current and desired position (and orientation) of end-effector and ˙xand ˙xdare their derivatives respectively, then the position (and orientation) error and its derivative can be given by e=xd−x, ˙e= ˙xd−˙x, (3.28) The exact or approximate solutions as discussed in previous sections resolves the redundancy at velocity level along with null-space optimization for joint limit avoidance. Thus, the general inverse solution of a kinematically redundant manipulator at a velocity level based on CLIK algorithms can be written as ˙q=J†(q)( ˙xd+Kp(xd−x)) + (I−J†(q)J(q)) ˙qN(3.29) For using exact solution (pseudo-inverse) method J†can be calculated using Equations discussed in Section 3.2.1 and for using the singularity avoidance (approximate solution) method, J†can be replace by (JTJ+λ2I)−1JTin Equation 3.29 as discussed in Section 3.2.2. Using Equation 3.29, joint velocity vector can be obtained for any task and the tracking error along the given trajectory converges to zero with a rate depending on the eigenvalues of Kp, that is, 3.5. Force/Torque Sensor for Contact (Collision) Detection 19 ˙e+Kpe= 0 (3.30) where Kpis a symmetric positive definite matrix, and the choice of Kpguarantees that the error uniformly converges to zero. 3.5 Force/Torque Sensor for Contact (Collision) Detection While the end-effector is following the desired trajectory, the contact (collision) of the end-effector with any object (obstacle) can be detected using the wrist mounted force/torque (F/T) sensor [28]. It can be also used to control the forces at the endeffector of a manipulator if the F/T sensor is calibrated [51]. Wrist mounted F/T sensor parameters can be calibrated through least squares estimation using the F/T sensor and accelerometer signals by moving the manipulator into a number of different poses [23]. If the parameters (bias of the F/T sensor, mass of the gripper location of the center of mass of the attached gripper) related to F/T Sensor are known, the gravity forces measured by a F/T sensor can be compensated and hence the filtered readings of the sensor can be used for contact (collision) detection, end-effector force control [43, 41, 50]. 26 Chapter 4. Experimentation and Results FIGURE 4.6: End-effector orientation error (Exact solution method) FIGURE 4.7: End-effector position trajectory (Exact solution method) 4.3. Results 27 FIGURE 4.8: End-effector orientation trajectory (Exact solution method) FIGURE 4.9: Joint trajectories (Exact solution method) 28 Chapter 4. Experimentation and Results 4.3.2 Redundancy Resolution at Velocity level with Singularity Avoidance using Approximate Solution Method The joint velocities required to move the end-effector from current position xto desired position xdis given by (see Chapter 3): ˙qλ= (JT eJe+λ2I)−1JT e˙x(4.4) where λ= 0.1is the damping or singularity robustness factor and ˙xis same as in Equation 4.3 Here, an approximate solution is considered with no kinematic optimization. Application of this algorithm with Kp= 2 results in the joint trajectories shown in Figure 4.14. As can be seen in Figures 4.12 and 4.13, these joint trajectories cause the end-effector of the manipulator to move from the current pose xto the desired pose xd. The end-effector position and orientation error converges to zero as shown in Figures 4.10 and 4.11. FIGURE 4.10: End-effector position error (Approximate solution method) 4.3. Results 29 FIGURE 4.11: End-effector orientation error (Approximate solution method) FIGURE 4.12: End-effector position trajectory (Approximate solution method) 30 Chapter 4. Experimentation and Results FIGURE 4.13: End-effector orientation trajectory (Approximate solution method) FIGURE 4.14: Joint trajectories (Approximate solution method) 4.3. Results 31 4.3.3 Redundancy Resolution at Velocity level with Joint Limit Avoidance using Pseudo-Inverse Method Method In the above two cases, joint limit avoidance task is not considered. In this case, the joint limit avoidance task is considered along with the primary task of the end effector to reach the desired position. The joint rates required to move the end-effector from current position xto desired position xdand avoid joint limits during the motion can be given by (see Chapter 3 for more details): ˙q=J† e˙x+ (I−J† eJe) ˙ϕ(4.5) where J† eand ˙xare same as in Equation 4.2, and ˙ϕis determined by Equation 3.16 with k0= 1 and Equation 3.27 with p= 2 and Kas, K=           1 0 0 0 0 0 0 010000000 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1           (4.6) In Equation 4.5, the first part of the solution, i.e., J† e˙xgenerates the desired motion at the end effector and the second part of the solution, i.e., (I−J† eJe) ˙ϕ, belonging to the null space of the manipulator’s Jacobian, keep the joints far from their limits. Application of this algorithm with Kp= 2 results in the joint trajectories shown in Figure 4.19. The joint limits are avoided and specially visible for S0joint in Figure 4.19, because the joint limit avoidance for S0joint is intensionally given greater importance (higher weight) than the other (it has an application specific advantage). One can change the weights for individual joints to avoid joint limits based on the requirements. As can be seen in Figures 4.17 and 4.18, these joint trajectories cause the endeffector of the manipulator to move from the current pose xto the desired pose xdwhile avoiding the joint limits. The end-effector position and orientation error converges to zero as shown in Figures 4.15 and 4.16. 32 Chapter 4. Experimentation and Results FIGURE 4.15: End-effector position error (Exact solution method with joint limit avoidance) FIGURE 4.16: End-effector orientation error (Exact solution method with joint limit avoidance) 4.3. Results 33 FIGURE 4.17: End-effector position trajectory (Exact solution method with joint limit avoidance) FIGURE 4.18: End-effector orientation trajectory (Exact solution method with joint limit avoidance) 34 Chapter 4. Experimentation and Results FIGURE 4.19: Joint trajectories (Exact solution method with joint limit avoidance) 4.3.4 Redundancy Resolution at Velocity level with Joint Limit Avoidance using Approximate Solution Method In section 4.3.3, joint limit avoidance task is considered by adding it to the exact solution, where the joint limit avoidance task is achieved but without avoiding the singularity. In this case, the joint limits are avoided, while the end effector moves from current position to the desired position. In addition, the approximate solution is used for the redundancy resolution which includes singularity avoidance. The joint rates required to move the end-effector from current position xto desired position xdand avoid joint limits during the motion can be given by (see Chapter 3 for more details): ˙q= (JT eJe+λ2I)−1JT e˙x+ (I−(JT eJe+λ2I)−1JT eJe) ˙ϕ(4.7) where λand ˙xare same as in Equations 4.4, and ˙ϕis determined as in Equation 4.5. In Equation 4.7, the first part of the solution, i.e., (JT eJe+λ2I)−1JT e˙xgenerates the desired motion at the end effector with singularity avoidance and the second part of the solution, i.e., (I−(JT eJe+λ2I)−1JT eJe) ˙ϕ, belonging to the null space of the manipulator’s Jacobian, keep the joints far from their limits. Application of this algorithm with Kp= 2 results in the joint trajectories shown in Figure 4.24. The joint limits are avoided and specially visible for S0joint in Figure 4.24, because the joint limit avoidance for S0joint is intensionally given greater importance (higher weight) than the other (it has an application specific advantage). One can change the weights for individual joints to avoid joint limits based on the requirements. 4.3. Results 35 As can be seen in Figures 4.22 and 4.23, these joint trajectories cause the endeffector of the manipulator to move from the current pose xto the desired pose xdwhile avoiding the joint limits. The end-effector position and orientation error converges to zero as shown in Figures 4.20 and 4.21. FIGURE 4.20: End-effector position error (Approximate solution method with joint limit avoidance) 42 Chapter 4. Experimentation and Results (A) Exact Solution Method (B) Approximate solution method FIGURE 4.31: Comparison of joint trajectories 4.4. Comparisons and Discussions 43 (A) Exact Solution Method (B) Approximate solution method FIGURE 4.32: Comparison of end-effector position errors with joint limit avoidance (A) Exact Solution Method (B) Approximate solution method FIGURE 4.33: Comparison of end-effector orientation errors with joint limit avoidance (A) Exact Solution Method (B) Approximate solution method FIGURE 4.34: Comparison of end-effector position trajectories with joint limit avoidance 44 Chapter 4. Experimentation and Results (A) Exact Solution Method (B) Approximate solution method FIGURE 4.35: Comparison of joint trajectories with joint limit avoidance 4.4. Comparisons and Discussions 45 (A) Exact Solution Method (B) Approximate solution method FIGURE 4.36: Comparison of end-effector orientation trajectories with joint limit avoidance 47 Chapter 5 Conclusions and Future Works 5.1 Conclusions Different techniques of redundancy resolution at velocity level for the inverse kinematic control of the redundant manipulators are reviewed and most common (exact and approximate solutions) methods are implemented and analyzed with respect to the specific use in the Amazon Robotics Challenge 2017. The approximate solution method of redundancy resolution is selected to avoid singularities and joint limit avoidance is achieved via kinematic optimization. A kinematic controller for redundant manipulator is implemented with the feature of singularity avoidance and joint limit avoidance. The wrist mounted force/torque (F/T) sensor has been calibrated and used for contact detection with objects in the environment and for the robust extraction of the object during picking and stowing operations. The implemented kinematic controller is successful in reaching the grasp pose and able to perform picking and stowing operations in the scenario similar to ARC 2017. The joint limits and singularities are avoided successfully by the controller during the motion. Contact detection of the gripper with the object (and the environment) is successful using the force feedback from the F/T sensor, resulting in the robust grasping and placing of items. The time taken by the robot to perform picking and stowing operations is acceptable for use in the ARC 2017. More specifically, the implemented kinematic controller is able to perform picking and stowing tasks within the fixed time frame similar to ARC 2017. 5.2 Future Works In this work, only the redundancy resolution at velocity level is considered. This can be extended to the acceleration level to meet some applications that require joint accelerations. The task of obstacle avoidance can be included in the control loop for kinematically redundant manipulators for use in complex working environments, where obstacle avoidance emerges as an important issue to be addressed in robot motion planning. The calibrated force torque sensor can be used for the force/contact control of robot end-effector in many applications like robot assembly. 49 Appendix A Baxter Denavit-Hartenberg (DH) Parameters The Cartesian reference frame definitions for Baxter’s 7-DOF left and right arms are shown in Figure A.1 and Figure A.2 respectively. Table A.1 and Table A.2 give the associated DH parameters according to Craig [10] convention, known as ‘modified DH parameters’ for the 7-DOF left and right arms respectively. It can be seen from Tables A.1 and A.2 that the Baxter was designed so that the DH Parameters are identical for both left and right arms so that all kinematics and dynamics equations for one arm apply equally to the other. TABLE A.1: 7-DOF Left Arm DH Parameters i αi−1ai−1diθi 1 0 0 0 θ1 2 -90◦L10θ2+ 90◦ 3 90◦0 L2θ3 4 -90◦L30θ4 5 90◦0 L4θ5 6 -90◦L50θ6 7 90◦0 0 θ7 TABLE A.2: 7-DOF Right Arm DH Parameters i αi−1ai−1diθi 1 0 0 0 θ1 2 -90◦L10θ2+ 90◦ 3 90◦0 L2θ3 4 -90◦L30θ4 5 90◦0 L4θ5 6 -90◦L50θ6 7 90◦0 0 θ7 50 Appendix A. Baxter Denavit-Hartenberg (DH) Parameters FIGURE A.1: Baxter Left Arm Kinematic Diagram with Coordinate Frames1 FIGURE A.2: Baxter Right Arm Kinematic Diagram with Coordinate Frames1 1Source: [57] 51 Bibliography [1] Abdelrahem Atawnih, Dimitrios Papageorgiou, and Zoe Doulgeri. “Kinematic control of redundant robots with guaranteed joint limit avoidance”. In: Robotics and Autonomous Systems 79 (2016), pp. 122–131. [2] John Baillieul. “Avoiding obstacles and resolving kinematic redundancy”. In: Robotics and Automation. Proceedings. 1986 IEEE International Conference on. Vol. 3. IEEE. 1986, pp. 1698–1704. [3] John Baillieul. “Kinematic programming alternatives for redundant manipulators”. In: Robotics and Automation. Proceedings. 1985 IEEE International Conference on. Vol. 2. IEEE. 1985, pp. 722–728. [4] John Baillieul, John Hollerbach, and Roger Brockett. “Programming and control of kinematically redundant manipulators”. In: Decision and Control, 1984. The 23rd IEEE Conference on. Vol. 23. IEEE. 1984, pp. 768–774. [5] Daniel R Baker and Charles W Wampler. “On the inverse kinematics of redundant manipulators”. In: The International Journal of Robotics Research 7.2 (1988), pp. 3–21. [6] Pyung Chang. “A closed-form solution for inverse kinematics of robot manipulators with redundancy”. In: IEEE Journal on Robotics and Automation 3.5 (1987), pp. 393–403. [7] Stephen L Chiu. “Task compatibility of manipulator postures”. In: The International Journal of Robotics Research 7.5 (1988), pp. 13–21. [8] Richard Colbaugh, Homayoun Seraji, and KL Glass. “Obstacle avoidance for redundant robots using configuration control”. In: Journal of Field Robotics 6.6 (1989), pp. 721–744. [9] Nikolaus Correll et al. “Analysis and Observations From the First Amazon Picking Challenge”. In: IEEE Transactions on Automation Science and Engineering (2016). [10] John J Craig. Introduction to robotics: mechanics and control. Vol. 3. Pearson Prentice Hall Upper Saddle River, 2005. [11] RV Dubey, JA Euler, and SM Babcock. “An efficient gradient projection optimization scheme for a seven-degree-of-freedom redundant robot with spherical wrist”. In: Robotics and Automation, 1988. Proceedings., 1988 IEEE International Conference on. IEEE. 1988, pp. 28–36. [12] Olav Egeland. “Task-space tracking with redundant manipulators”. In: IEEE Journal on Robotics and Automation 3.5 (1987), pp. 471–475. [13] Farbod Fahimi. Autonomous robots: modeling, path planning, and control. Vol. 107. Springer Science & Business Media, 2008. [14] Gene H Golub and Charles F Van Loan. Matrix computations. Vol. 3. JHU Press, 2012.