49
Inverse Kinematics Given a desired position (p) & orientation (R) of the end-effector Find the joint variables which can bring the robot the desired configuration 1 ) , , ( 2 1 n q q q q x y z

02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Inverse Kinematics

Given a desired position (p) & orientation (R) of the end-effector

Find the joint variables which can bring the robot the desired configuration

1

),,( 21 nqqqq

x

y

z

Page 2: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The Inverse Kinematics Problem

Direct Kinematics

x = f(q)

Inverse Kinematics

q = f −1(x)

2

Page 3: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The Inverse Kinematics Problem

3

• The problem is not simple!

• A general approach for the solution of this problem does not

exist

• On the other hand, for the most common kinematic structures, a

scheme for obtaining the solution has been found.

Unfortunately…

• …The solution is not unique

• In general we may have: No solution (e.g. starting with a position x not in the workspace)

A finite set of solutions (one or more)

Infinite solutions

• We seek for closed form solutions not based on numerical

techniques:• The analytic solution is more efficient from the computational point of view

• If the solutions are known analytically, it is possible to select one of them on the

basis of proper criteria.

Page 4: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The Inverse Kinematics ProblemDifficulties

Possible Problems of Inverse Kinematics

Nonlinear (Revolute joints → inverse trigonometry)

Discontinuities and singularities

Can lose one or more DOFs in some configurations

Multiple solutions for a single Cartesian pose

Infinitely many solutions

Possibly no solutions

No closed-form (analytical) solutions

Not enough!! [Dynamics: in reality, we want to apply

forces and torques (while respecting physical constraints),

not just move arm!]

4

Page 5: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The Inverse Kinematics ProblemWhat have we swept under the rug?

SensingShape, pose of target object, accessibility of surfaces

Classification of material type from sensor data

Freespace through which grasping action will occur

Prior knowledgeEstimate of mass, moments given material type

Internal, articulated, even active degrees of freedom

Uncertainty & complianceTolerate noise inherent in sensing and actuation

Ensure that slight sensing, actuation errors won’t cause damage

Handle soft fingers making contact over a finite area (not a point)

DynamicsAll of the above factors may be changing in real time

5

Page 6: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Algebraic ApproachFor a 6 DOF manipulator, the kinematic model is described by the equation

equivalent to 12 equations in the 6 unknowns qi , i = 1, . . . , 6.

Example: spherical manipulator (only 3 DOF)

Since both the numerical values and the structure of the intermediate matrices are known, then by suitable pre- / post-multiplications it is possible to obtain equations

There will be 12 new equations for each i, covering the range 1 to n.

Then, by selecting the most simple equations among all those obtained, it might be possible to obtain a solution to the problem. 8

1 2

0 0 1 1 2 1

6 6

5 6

n n

n nT T q T q T q

1

1 2 1 2

0 1 1 2 1 0 1 1 2 1

i n i i n

i i i i i i n nT q T q T q T T q T q T q

Page 7: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The other way: use geometry

It may be possible to exploit considerations related to the geometrical structure of the manipulator

Example 1: the 2 DOF arm

9

Page 8: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF ArmGeometric approach

10

Page 9: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF Arm

11

Page 10: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF Arm

12

Page 11: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF Arm

13

Page 12: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF Arm

14

Page 13: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF Arm

15

Page 14: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF ArmPartial results

16

Page 15: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF ArmSolution for positive angle q2

17

Not independent!

Page 16: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

18

Analytical Inverse Kinematics of a 2 DOF ArmCase of negative angle q2

Page 17: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

19

Analytical Inverse Kinematics of a 2 DOF ArmSolve for q1

Page 18: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF ArmSolution for negative angle q2

20

Page 19: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Analytical Inverse Kinematics of a 2 DOF Arm

21

Page 20: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The other way: use geometry

It may be possible to exploit considerations related to the geometrical structure of the manipulator

Example 2: the 3 DOF planar arm

22

Page 21: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Inverse Kinematics of a 3 DOFPlanar Articulated Robot

23

Page 22: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Inverse Kinematics of a 3 DOFPlanar Articulated Robot

24

Apply DH algorithm:

a1 d3

a2

Page 23: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Inverse Kinematics of a 3 DOFPlanar Articulated Robot

25

Kinematic parameters from DH algorithm:

Articulated robot → q = θ

Page 24: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Inverse Kinematics of a 3 DOFPlanar Articulated Robot

26

Page 25: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Inverse Kinematics of a 3 DOFPlanar Articulated Robot

27

Page 26: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Inverse Kinematics of a 3 DOFPlanar Articulated Robot

28

Combine tool-tip position and tool orientation into a

tool-configuration vector w

Page 27: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

(tool-configuration)

29

Tool roll angle qn:

Describing the orientation with a matrix is redundant

r3 is the third column of R

Page 28: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Inverse Kinematics of a 3 DOFPlanar Articulated Robot

30

Page 29: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Is a generalization possible?

Yes! The PIEPER APPROACH (1968)

Many industrial manipulators have a kinematicallydecoupled structure, for which it is possible to decompose the problem into two (simpler) sub-problems:

1) Inverse kinematics for the position

p = (x, y, z) → q1, q2, q3

2) Inverse kinematics for the orientation

R → q4, q5, q6.

31

Page 30: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The Pieper ApproachGiven a 6 DOF manipulator, a sufficient condition to find a closed form solution for the IK problem is that the kinematic structure presents:

1. three consecutive rotational joints with axes intersecting in a single point, or

2. three consecutive rotational joints with parallel axes.

32

Page 31: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The Pieper Approach

In many 6 DOF industrial manipulators, the first 3 DOFare usually devoted to position the wrist, that has 3 additional DOF give the correct orientation to the

end-effector.

In these cases, it is quite simple to decompose the IKproblem in the two subproblems (position and orientation).

33

Page 32: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The Pieper Approach

In case of a manipulator with a spherical wrist, a natural choice is to decompose the problem in

A. IK for the point pp (center of the spherical wrist)

B. solution of the orientation IK problem

Therefore:

1) The point pp is computed since is known (submatrices R and p): pp = p − d6a

pp depends only on the joint variables ;

2) The IK problem is solved for ;

3) The rotation matrix related to the first three joints is computed;

4) The matrix is computed;

5) The IK problem for the rotational part is solved (Euler)34

6

0T

1 2 3( , , )q q q

1 2 3( , , )q q q3

0R

6 3

3 0

T

R R R

Page 33: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical manipulator [1]

35

3

0T

Direct kinematic model:

If the whole matrix

is known, it is possible

to compute:

3

0T

Unfortunately, according to the Pieper approach, only p is known!

Page 34: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical manipulator [2]

36

2 3

1 2T T

We know only the position vector p

We have

11 3

0 0T T

Page 35: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical manipulator [3]

37

By equating the position vectors

The vector depends only on θ2 and d3. Let’s define

Then

By substitution in the last element of

Two possible solutions!

of course:

Then

Page 36: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical manipulator [4]

38

Since

From the first two elements

from which

Finally, if the first two elements are squared and added together

Page 37: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical manipulator [5]

39

Note that two possible solutions exist considering the position of

the end-effector (wrist) only. If also the orientation is considered,

the solution (if it exists) is unique.

We have seen that the relation must hold:

Page 38: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical manipulator [5]

40

Note that two possible solutions exist considering the position of

the end-effector (wrist) only. If also the orientation is considered,

the solution (if it exists) is unique.

We have seen that the relation must hold:

Page 39: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical manipulator [6]

41

Numerical example: Given a spherical manipulator with d2 = 0.8 m

in the pose

We have:

The solution based on the whole matrix is:

The solution based on the vector p gives:

3

0T

3

0T

Page 40: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical manipulator [7]

42

Page 41: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the 3 DOF anthropomorphic arm [1]

43

From the kinematic structure, one obtains

Concerning θ2 and θ3, note that the arm

moves in a plane defined by θ1 only

We obtain

Moreover, by geometrical arguments, it is possible to state that:

Page 42: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the 3 DOF anthropomorphic arm [2]

44

Note that also the following solution is valid

Then, FOUR possible solutions exist:

shoulder right - elbow up; shoulder right - elbow down;

shoulder left - elbow up; shoulder left - elbow down;

Same position, but different orientation!

Note that the conditions px ≠ 0, py ≠ 0 must hold (o.w. singular configuration)

Page 43: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical wrist [1]

45

Let us consider the matrix

From the direct kinematic equations one obtains

Page 44: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical wrist [2]

46

The solution is then computed as (ZYZ Euler angles):

Page 45: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Solution of the spherical wrist [3]

47

Numerical example: Let us consider a spherical wrist in the pose

Then

Therefore, if

• Note that the PUMA has an anthropomorphic structure (4 solutions)

and a spherical wrist (2 solutions):

⇒ 8 different configurations are possible!

Page 46: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

STANFORD MANIPULATOR

48

Page 47: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Stanford manipulator IK [1]

49

We need the forward kinematics:

Page 48: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

Stanford manipulator IK [2]

50

2015

Page 49: 02/11 11.53.53 AM 213 7405687 · Example 1: the 2 DOF arm 9. Analytical Inverse Kinematics of a 2 DOFArm Geometric approach 10. Analytical Inverse Kinematics of a 2 DOFArm 11. Analytical

The Inverse Kinematics Problem

51

Search “around” for your robot of interest!!

(or part of robot)

The secret: Use well known robots!! (it was mentioned in the introduction: “…for the most common

kinematic structures, a scheme for obtaining the solution has been found”)