Vous êtes sur la page 1sur 38

Industrial Robotics

Spatial descriptions and


transformations

1
Spatial Descriptions and
Transformations
• Space
– Type – Physical, Geometry, Functional
http://en.wikipedia.org/wiki/Space

– Dimension & Direction


• Basis vectors
Industrial Robotics

– Distance
• Norm
– Description – Coordinate System
• Matrix
– Robots live in 3D Euclidean space

2
Spatial Descriptions and
Transformations
Industrial Robotics

3
Generalized Coordinates
Industrial Robotics

4
End-Effector Configuration Parameters
Industrial Robotics

5
Industrial Robotics

http://en.wikipedia.org/wiki/Configuration_space 6
A review of vectors and matrix
• Vectors
– Column vector and row vector
 v1 
v 
Industrial Robotics

v   2 v  v1 v2  vn 

 
 vn 

– Norm of a vector

| v | v12  v22  ...  vn2


7
Dot product of two vectors
• Vector v and w
v  w | v || w | cos 
Industrial Robotics

• If v  w 1
v


v  w  cos  w

8
Position Description
• Coordinate System A
Ẑ A

 x A
Industrial Robotics

P
A 
P   y 
 z 

YˆA

X̂ A 9
Orientation Description
• Coordinate System A
A
Ẑ A P
Industrial Robotics

 x
A
P   y 
 z 
YˆA

X̂ A 10
Orientation Description
• Coordinate System A
• Attach Frame B A
P
Ẑ A
(Coordinate System Ẑ B
B)
Industrial Robotics

 x
P   y 
A
X̂ B
YˆB
 z 
YˆA

X̂ A 11
Orientation Description
• Coordinate System A
• Attach Frame
Ẑ A
Coordinate System B A Ẑ B
P
• Rotation matrix
Industrial Robotics

A
B R  A
Xˆ B YˆB
A A
Zˆ B  X̂ B
YˆB
 r11 r12 r13  r31  Xˆ B  Zˆ A
r21  Xˆ B  YˆA
 r21 r22 r23 
  YˆA
 r31 r32 r33 
r11  Xˆ B  Xˆ A
X̂ A 12
Rotation matrix
Directional
A
B R  Xˆ
A
B YˆB
A A
Zˆ B  Cosines

B T
 Xˆ B  Xˆ A YˆB  Xˆ A Zˆ B  Xˆ A  X̂ A
 ˆ 
  X B  YˆA YˆB  YˆA ˆ ˆ
Z B  YA 
Industrial Robotics

 Xˆ B  Zˆ A YˆB  Zˆ A Zˆ B  Zˆ A 

Directional
Cosines
 B Xˆ AT 
BˆT B ˆ
 
A
X̂ B
YˆA Zˆ A  ABRT
T
  YA   X A B B

 B Zˆ AT 
 
13
Rotation matrix
A B
B R A RT
A
B
B
RA R  I BAR  A
B
R 1
1
B
A R  R
T B
A
Industrial Robotics

• For matrix M,
– If M-1 = MT , M is orthogonal matrix
– BA R is orthogonal!!

14
Orthogonal Matrix
A
B R  A
Xˆ B YˆB
A A
Zˆ B 
 Xˆ B  Xˆ A YˆB  Xˆ A Zˆ B  Xˆ A 
 ˆ 
  X B  YˆA YˆB  YˆA ˆ ˆ
Z B  YA 
Industrial Robotics

 Xˆ B  Zˆ A YˆB  Zˆ A Zˆ B  Zˆ A 

9 Parameters to describe orientation!

15
Description of a frame
• Position + orientation
Ẑ A
Ẑ B
Industrial Robotics

{B} { R, PBORG}
A
B
A X̂ B
A
PBORG YˆB

YˆA

X̂ A 16
Mapping: Change Coordinates
– Translation Difference
Ẑ A
Ẑ B B
A
PBORG P
A
P
Industrial Robotics

X̂ B
YˆB

YˆA
A
P  PBORG  P
A B
 
 I A
PBORG 
X̂ A  A P A  B P BT 
A  
   BT   



1 1 0 0 0 1 17
Mapping – rotation difference
B
 Px 
A
P  Px A Xˆ B  Py AYˆB  Pz A Zˆ B
B
P   Py   Px Xˆ B  PyYˆB  Pz Zˆ B B
 Px 
 
Ẑ A  Pz   [ A Xˆ B A
YˆB Z B ]  Py 
A ˆ
 
 Pz 
Ẑ B  BAR BP
B
P A
P R P A B
Industrial Robotics

YˆB B

 A P A  B P
   BT  
1 1
YˆA  
 A
R 0 
X̂ A BT 
A  B 
X̂ B  
 
0 0 0 1 18
Example
1 YˆB B
P
B
P   2  AP ? YˆA X̂ A
 
 1 30

30
Industrial Robotics

Zˆ B  Zˆ A X̂ B
A
B R  Xˆ
A
B YˆB
A A
Zˆ B 
 Xˆ B  Xˆ A YˆB  Xˆ A Zˆ B  Xˆ A   cos 30 cos 60 cos 90 
   
  Xˆ B  YˆA YˆB  YˆA Zˆ B  YˆA   cos 120 cos 30 cos 90 
 Xˆ B  Zˆ A YˆB  Zˆ A Zˆ B  Zˆ A   cos 90 cos 90 cos 0 

19
Mapping: Rotation + Translation
Difference
Ẑ A
Ẑ B B
P
A
P
Industrial Robotics

YˆB
X̂ B

YˆA

A
P  PBORG 
A A
B R BP
X̂ A
20
Homogeneous
Transformation for Mapping
A
P APBORG  BAR BP

 A Px   A
PBORG _ x   B Px 
A   A A  
 Py    R PBORG _ y   B Py 
Industrial Robotics

B
 A Pz   A
PBORG _ z   B Pz 
    
 1  0 0 0 1  1 

A
B T

21
Compound transformations
{A} {Au R,uPAORG } {B} {Bu R,u PBORG } {Au R BAR, BAR APBORG  uPAORG }
A
P  ABT BP
 u
R u
PAORG   BA R A
PBORG  B
u
P  uAT AP  uAT ABT BP   A   P
0 1  0 1 
Industrial Robotics

Ẑ A
Ẑ B
u
Ẑ u PBORG {B}
X̂ B
A
PBORG YˆB
{U}
Yˆu YˆA
{A}
X̂ u
22
X̂ A
Industrial Robotics

23
Industrial Robotics

Operators

24
Rotational Operators
Industrial Robotics

25
Translation Operator

• Translation operator
A
Ẑ A P2
A
P1
Industrial Robotics

A
Q A
P2  P1  Q
A A

A
P2  DQ ( q) AP1
YˆA
1 0 0 qx 
0 1 0 qy  q  q x  q y  qz
2 2 2

X̂ A DQ ( q)   
0 0 1 qz 
 
0 0 0 1 26
Recall: Mapping – rotation
difference
Ẑ A
A
P  BAR AP

Ẑ B  A P A  B P
B
P    BT  
Industrial Robotics

YˆB 1 1

 
 A
R 0 
YˆA BT 
A  B 
 
 
X̂ A 0 0 0 1
X̂ B
27
Relationship between Mapping with only
Rotational Difference and Rotation Operator
𝐴
𝑃1 = 𝐵𝐴𝑅 𝐵𝑃1 = 𝑅𝑍 (𝜃) 𝐴𝑃2
YˆA
YˆB P1  AP2 𝐴
𝐵𝑅 = 𝑅𝑍 (𝜃)
A B
P1
R  Xˆ B YˆB Zˆ B 
Industrial Robotics

A A A A
B
A
 P2  Xˆ B  Xˆ A YˆB  Xˆ A Zˆ B  Xˆ A 
 
  Xˆ B  YˆA YˆB  YˆA Zˆ B  YˆA 
 X̂ B  Xˆ B  Zˆ A Yˆ  Zˆ Zˆ B  Zˆ A 
 B A

  cos  cos(90   ) cos 90 


X̂ A  
 cos(90   ) cos  cos 90 
 cos 90 cos 90 cos 0 

cos   sin  0
  sin  cos  0
 
Ẑ A  0 0 1
28
Relationship between Mapping with only
Rotational Difference and Rotation Operator

𝐴
𝐵𝑅 = 𝑅𝑍 (𝜃)

• The rotation matrix that rotates vectors


Industrial Robotics

through some rotation, R, is the same


as the rotation matrix that describes a
frame rotated by R relative to the
reference frame.

29
Homogeneous Transformation for
Mapping
Industrial Robotics

30
General Operators
Industrial Robotics

31
Inverse Transform
Tu ABT Xac dinh B
T
A
B
A R  BAR T  BAR 1
B A
( PBORG )  ABR APBORG  BPAORG  0
B
PAORG  BAR T A PBORG
Industrial Robotics

32
Homogeneous Transform Interpretations
Industrial Robotics

33
Transform Equation
Industrial Robotics

34
Compound Transformations
Industrial Robotics

T  ABT CBT
A
C

35
Industrial Robotics

36
Transform Equation
Industrial Robotics

T 1
A
B

37
Industrial Robotics

http://en.wikipedia.org/wiki/Invertible_matrix
38

Vous aimerez peut-être aussi