Beruflich Dokumente
Kultur Dokumente
)
x
y
( 2 atan =
) y (x
2 2
+ = L
1
(x , y)
l
2
l
1
Given: l
1
, l
2
, x , y
Find:
1
,
2
(x , y)
Inverse Kinematics of a Two Link Manipulator
Redundancy: A unique solution to this problem does
not exist. Notice, that using the givens two solutions are
possible. Sometimes no solution is possible.
The Geometric Solution
l
1
l
2
o
(x , y)
2
u
1
u
Using the Law of Cosines:
|
|
.
|
\
|
+
=
+
=
=
+ = +
+ =
2 1
2
2
2
1
2 2
1
2
2 1
2
2
2
1
2 2
2 1
2
2
2
1
2 2
2 2 2
2
cos
2
) cos(
) cos( ) 180 cos(
) 180 cos( 2 ) (
cos 2
l l
l l y x
l l
l l y x
l l l l y x
C ab b a c
2
2 2
2
Redundant since u
2
could be in the first or
fourth quadrant.
|
.
|
\
|
+
|
|
.
|
\
|
+
=
|
.
|
\
|
=
+ =
+
=
+
=
+ = = = = =
x
y
y x
l
l
c C l b B
c
C
b
B
1
2 2
2 2 1
1
1
1 1
2 2
2
2 2
2
2
1
2 2
2 2 1
tan
) sin(
sin ;
x
y
tan
;
y x
) sin(
y x
) sin(180 sin
y x ; 180 ; ; ;
sin sin
u
u u
Redundancy caused since u
2
has two
possible values
Using the Law of Cosines:
12
( ) ( )
( )
|
|
.
|
\
|
+
=
+ + =
+ + + =
+ + + + + =
+ = +
+ +
+ + + +
2 1
2
2
2
1
2 2
1
2
2 2 1
2
2
2
1
2 1 1 2 1 1 2 1
2
2
2
1
2 1 1 2 1
2
2 1
2
2
2
1
2
1 2 1 1 2 1
2
2 1
2
2
2
1
2
1
2 2 2 2
2
y x
cos
c 2
) (s s ) (c c 2
) (s s 2 ) (s s ) (c c 2 ) (c c
y x ) ( ) (
l l
l l
l l l l
l l l l
l l l l l l l l
ii i
The Algebraic Solution
2 1
2 1 2 1 1
2 1 2 1 1
2 1 2 1
1 1
) (
s s y ) (
c c x ) (
) cos( c
cos c
+ =
+ =
+ =
+ =
=
+
+
+
iii
l l ii
l l i
) )(sin (cos ) )(sin (cos ) sin(
) )(sin (sin ) )(cos (cos ) cos(
:
a b b a b a
b a b a b a
Note
=
=
l
1
l
2
(x , y)
1
u
2
u
u
Only unknown
) c ( s ) s ( c
c s c s s
sin s y
) ( ) c ( c
c c c
c c x
2 2 1 1 2 2 1
1 2 2 2 1 2 1 1
2 1 2 1 1
2 2 1 2 2 1 1
2 1 2 2 1 2 1 1
2 1 2 1 1
l l l
l l l
l l
s l s l l
s s l l l
l l
+ + =
+ + =
+ =
+ =
+ =
+ =
+
+
We know what u
2
is from the previous slide. We
need to solve for u
1
. Now we have two equations
and two unknowns (sin u
1
and cos u
1
)
( )
2 2
2 2 2 2 1
1
2 2 1
2
2
2
1 1 2 2
2 2 1
2 2 1 1 2 2
2 2 1
2 2 1
2 2 1
2 2 1
1
y x
x ) c ( y
s
) c 2 ( s x
) c (
1
) c ( s ) s (
) c (
) ( x
y
) c (
) ( x
c
+
+
=
+ + +
+
=
+ +
+
+
=
+
+
=
s l l l
l l l l s l
l l
l l l
l l
s l s
l l
s l s
Substituting for c
1
and simplifying
many times
Notice this is the law of cosines
and can be replaced by x
2
+ y
2
|
|
.
|
\
|
+
+
=
2 2
2 2 2 2 1
1
y x
x ) c ( y
arcsin
s l l l
) )(sin (cos ) )(sin (cos ) sin(
) )(sin (sin ) )(cos (cos ) cos(
:
a b b a b a
b a b a b a
Note
=
=