SlideShare a Scribd company logo
CL-7004 – Robotics and Control
- Robotics Position and
Orientation
Dr.B.Arunadevi
Associate Professor /ECE
Dr.N.G.P Institute of Technology
Coimbatore
Objectives of the Lecture
• Learn to represent position and orientation
• Be able to transform between coordinate
systems.
• Use frames and homogeneous coordinates
• Describe Euler angles
A robot may not injure a human being, or, through inaction, allow a
human being to come to harm.
A robot must obey the orders given it by human beings except where
such orders would conflict with the First Law.
A robot must protect its own existence as long as such protection
Three Laws of Robotics
Description of a Position
• point = position vector
YA
XA
ZA
}A{
A
P










=
z
y
x
A
p
p
p
P
a c o o r d i na t e s y s t e m
Description of an Orientation
• In the example, a
description of {B} with
respect to {A} suffices to
give orientation
• Orientation = System of
Coordinates
• Directions of {B}: XB, YB
and ZB
• In {A} coord. system: A
XB,
A
YB and A
ZB
x0
x1
z0
y0
z1
y1
θ
}A{
}B{
Often a point is not enough:
need orientation
From {A} to {B{
}A{
XB
aX
aY
aZ( ) BAX XX ⋅=αcos
( ) BAY XY ⋅=αcos
( ) BAZ XZ ⋅=αcos
We conclude:










⋅
⋅
⋅
=
BA
BA
BA
B
A
XZ
XY
XX
X
Rotation Matrix
• Stack three unit vectors to form Rotation Matrix
• describes {B} with respect to {A}
• Each vector in can be written as dot product
of pair of unit vectors: cosine matrixcosine matrix
• Rows of : unit vectors of {A} with respect to
{B}
• What is ? What is det( )?
• Position + orientation = Frame
RA
B
[ ]B
A
B
A
B
AA
B ZYXR ˆˆˆ=
RA
B
RA
B
1−
RA
B RA
B
Description of a Frame
• Frame: set of four
vectors giving position +
orientation
• Description of a frame:
position + rotation matrix
• Ex.:
x0
x1
z0
y0
z1
y1
θ
}A{
}B{
{ }BORG
AA
B PRB ,}{ =
• position: frame with
identity as rotation
• orientation: frame with
zero position
Mapping: from frame 2 frame
• If {A} has same orientation as {B}, then {B}
differs from {A} in a translation: A
PBORG
A
P = B
P + A
PBORG
• Mapping: change of description from one frame to
another. The vector A
PBORGdefines the mapping.
XA
ZA
YA
{A}
ZB
YB
{B}
XB
A
P
A
PBORG
B
P
Translated Frames
Rotated Frames
YA
XA
ZA
XB
ZB
YB
B
P
BzByBx
B
ZpYpXpP ++=
B
A
zB
A
yB
A
x
A
ZpYpXpP ++=
[ ]










=
z
y
x
B
A
B
A
B
AA
p
p
p
ZYXP
PRP BA
B
A
=
Description of Rotation = Rotation Matrix
Rotated Frame (cont.)
• The previous expression can be written as
• The rotation mapping changes the
description of a point from one coordinate
system to another
• The point does not change! only its
description
PRP BA
B
A
=
Example (2D rotation)
XA
YA
YB
XB
θ
x0
y0
x1
y1
θθ
θθ
cossin
sincos
001
001
yxy
yxx
+−=
+=
General Frame Mapping
}A{
XB
YB
ZB
B
P
XA
YA
ZA
A
P
A
PBORG
BORG
ABA
B
A
PPRP +=
Replace by the more appealing
equation:












=





110001
PPRP B
BORG
AA
B
A
A “1” added here A row added here
Homogeneous Coords
• Homogeneous coordinates: embed 3D
vectors into 4D by adding a “1”
• More generally, the transformation matrix T
has the form:






=
FactorScalingTrans.Perspect.
VectorTrans.MatrixRot.
T
Operators: Translation, Rotation
and General Transformation
• Translation Operator:
( )1
12
|)|,ˆ( PQQTRANS
QPP
AA
AAA
=
+=
1P
2P
Q
Translation Operator
• Translation Operator:
• Only one coordinate frame, point moves
• Equivalent to mapping point to a 2nd frame
• Point Forward = Frame Backwards
• How does TRANS look in homogeneous
coordinates?
• Rotational Operator
Operators (cont.)
A
P1
A
P2
K
θ
Rotation around axis:
Rotation Operator
• Rotational Operator
The rotation matrix can be seen as rotational
operator
• Takes A
P1 and rotates it to A
P2=R A
P1
• A
P2=ROT(K, q)(A
P2)
• Write ROT for a rotation around K
Operators (Cont.)
• Transformation Operators
* A transformation mapping can be viewed as
a transformation operator: map a point to
any other in the same frame
* Transform that rotates by R and translates
by Q is the same a transforming the frame
by R & Q
Compound Transformation
If {C} is known relative to {B}, and {B} is
known relative to {A}. We want to
transform P from {C} to {A}:
Write down the compound in homog. coords
TTT
PTP
PTP
PTP
B
C
A
B
A
C
BA
B
A
CA
C
A
CB
C
B
=
=
=⇒
=
definehereFrom
More on Rotations
• We saw that a rotation can be represented
by a rotation matrix
• Matrix has 9 variables and 6+ constraints
(which?)
• Rotations are far from intuitive: they do not
commute!
• Rotation matrix can be parameterized in
different manners:
—Roll, pitch and yaw angles
—Euler Angles
—Others
Euler’s Theorem
• Euler’s Theorem: Any two independent
orthonormal coordinate frames can be related by a
sequence of rotations (not more than three) about
coordinate axes, where no two successive
rotations may be about the same axis.
• Not to be confused with Euler angles, Euler
integration, Newton-Euler dynamics, inviscid
Euler equations, Euler characteristic…
• Leonard Euler (1707-1783)
XYZ Fixed
Euler Angles
• This means that we can represent an orientation with 3
numbers
• A sequence of rotations around principle axes is called an
Euler Angle Sequence
• Assuming we limit ourselves to 3 rotations without
successive rotations about the same axis, we could use any
of the following 12 sequences:
XYZ XZY XYX XZX
YXZ YZX YXY YZY
ZXY ZYX ZXZ ZYZ
ZYX Euler
Euler Angles to Matrix
Conversion
• To build a matrix from a set of Euler angles, we
just multiply a sequence of rotation matrices
together:










−+
+−
−
=
yxzxzyxzxzyx
yxzxzyxzxzyx
yzyzy
cccssscsscsc
csccssssccss
ssccc










−⋅









 −
⋅










−
=⋅⋅
100
0
0
0
010
0
0
0
001
zz
zz
yy
yy
xx
xxzyx cs
sc
cs
sc
cs
scRRR
Euler Angle Order
• As matrix multiplication is not commutative, the
order of operations is important
• Rotations are assumed to be relative to fixed world
axes, rather than local to the object
• One can think of them as being local to the object
if the sequence order is reversed
• This gives us 12 redundant ways to store an
orientation using Euler angles
x
y
z
u'
v'
φ
θ
v "
w"
w'=
=u"
v'"
ϕ
u'"
w'"=
Euler Angle I, Animated
Orientation Representation
• Euler Angle I









 −
=










−=









 −
=
100
0cossin
0sincos
,
cossin0
sincos0
001
,
100
0cossin
0sincos
''
'
ϕϕ
ϕϕ
θθ
θθφφ
φφ
ϕ
θφ
w
uz
R
RR
Euler Angle I






















−
+
−
+
−
−
−
=
θθϕθϕ
θφ
θϕφ
ϕφ
θϕφ
ϕφ
θϕ
θϕφ
ϕφ
θϕφ
ϕφ
ϕθφ
cossincossinsin
sincos
coscoscos
sinsin
cossincos
cossin
sinsin
coscossin
sincos
cossinsin
coscos
''' wuz RRRR
Resultant eulerian rotation matrix:
Euler Angle II, Animated
x
y
z
u'
v'
φ
θ =v"
w"
w'=
u"
v"'ϕ
u"'
w"'=
Note the opposite
(clockwise) sense of the
third rotation, φ.
Orientation Representation
• Matrix with Euler Angle II






















−
−+
−
−
+
−
θ
θϕθϕ
θϕ
θϕφ
ϕφ
θϕφ
ϕφ
θφ
θϕφ
ϕφ
θϕφ
ϕφ
cos
sinsinsincos
sinsin
coscossin
coscos
coscossin
sincos
sincos
coscossin
cossin
coscoscos
sinsin
Quiz: How to get this matrix ?
Orientation Representation
• Description of Roll Pitch Yaw
X
Y
Z
ϕ
θ
φ
Quiz: How to get rotation matrix ?
Vehicle Orientation
• Generally, for vehicles, it is most convenient to
rotate in roll (z), pitch (x), and then yaw (y)
• In situations where there
is a definite ground plane,
Euler angles can actually
be an intuitive
representation x
y
z
front of vehicle
Euler Angles - Summary
• Euler angles are used in a lot of applications, but
they tend to require some rather arbitrary
decisions
• They also do not interpolate in a consistent way
(but this isn’t always bad)
• There is no simple way to concatenate rotations
• Conversion to/from a matrix requires several
trigonometry operations
• They are compact (requiring only 3 numbers)

More Related Content

PDF
Robotics unit3 sensors
PPT
Robotics: Introduction to Kinematics
PDF
Digital Image Fundamentals
PDF
Car Game - Final Year Project
PPT
Employee engagement
PPTX
Image noise reduction
PDF
Fir 05 dynamics 2-dof
PDF
Lecture 1 trajectory generation
Robotics unit3 sensors
Robotics: Introduction to Kinematics
Digital Image Fundamentals
Car Game - Final Year Project
Employee engagement
Image noise reduction
Fir 05 dynamics 2-dof
Lecture 1 trajectory generation

What's hot (20)

PPTX
Robotics - unit-2 - end effector
PPTX
Robotics
PPTX
Robot Programming
PPTX
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
PPTX
Robot control
PPTX
Robo unit4- Robot Programming.pptx
PDF
Unit IV robotics-- Kinematics
PPT
Dek3223 chapter 3 industrial robotic
PPTX
Introduction to robotics
PPT
Chapter 2 robot kinematics
PPTX
Robot programming
PPT
Robot kinematics
PDF
Inverse Kinematics
PPTX
robot classification
PPTX
Robotics ch 4 robot dynamics
PPT
Manipulator kinematics
PDF
Robot Machine Vision
PDF
RMV robot programming
PPTX
Chapter 8 - Robot Control System
PPT
Robotics and machine vision system
Robotics - unit-2 - end effector
Robotics
Robot Programming
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
Robot control
Robo unit4- Robot Programming.pptx
Unit IV robotics-- Kinematics
Dek3223 chapter 3 industrial robotic
Introduction to robotics
Chapter 2 robot kinematics
Robot programming
Robot kinematics
Inverse Kinematics
robot classification
Robotics ch 4 robot dynamics
Manipulator kinematics
Robot Machine Vision
RMV robot programming
Chapter 8 - Robot Control System
Robotics and machine vision system
Ad

Similar to Robotics position and orientation (20)

PDF
Mathematical tools for referencing a frame and transforming
PPTX
Mechanics of Machine (Gear Trains)l.pptx
PPT
robotkinematics-16092vsdfva sdaf7173439.ppt
PPT
GeometricTransformations.ppt
PPT
Lecture 9-online
PPTX
The principal screw of inertia
PDF
Robotics_BK_Chap_01.pdf
PPT
Transformations
PDF
E2-03 - spatial descriptions - transformer.pdf
PDF
Chapter_2_Representing Position and Orientation.pdf
PDF
Lecture 17
DOCX
SPHA021 Notes-Classical Mechanics-2020.docx
PDF
Part 3 section B Kinamatics V20. And rotation matrix pdf
PPTX
3D Transformation in Computer Graphics
PDF
Robotics Representing Position & Orientation 1
PPT
robot kinematics
PDF
3D transformation and viewing
PDF
CG_MODULE2 (1) Fill Area Primitives Polygon Fill Areas
PPT
lecture-9-online.pptVHVHJBJBJBBJBJBBBBBHHBH
PPT
lecture-9-online WORK PART UNIFORMITY IN
Mathematical tools for referencing a frame and transforming
Mechanics of Machine (Gear Trains)l.pptx
robotkinematics-16092vsdfva sdaf7173439.ppt
GeometricTransformations.ppt
Lecture 9-online
The principal screw of inertia
Robotics_BK_Chap_01.pdf
Transformations
E2-03 - spatial descriptions - transformer.pdf
Chapter_2_Representing Position and Orientation.pdf
Lecture 17
SPHA021 Notes-Classical Mechanics-2020.docx
Part 3 section B Kinamatics V20. And rotation matrix pdf
3D Transformation in Computer Graphics
Robotics Representing Position & Orientation 1
robot kinematics
3D transformation and viewing
CG_MODULE2 (1) Fill Area Primitives Polygon Fill Areas
lecture-9-online.pptVHVHJBJBJBBJBJBBBBBHHBH
lecture-9-online WORK PART UNIFORMITY IN
Ad

Recently uploaded (20)

PDF
My India Quiz Book_20210205121199924.pdf
PPTX
20th Century Theater, Methods, History.pptx
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
IGGE1 Understanding the Self1234567891011
PPTX
Introduction to pro and eukaryotes and differences.pptx
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
Introduction to Building Materials
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Trump Administration's workforce development strategy
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
My India Quiz Book_20210205121199924.pdf
20th Century Theater, Methods, History.pptx
FORM 1 BIOLOGY MIND MAPS and their schemes
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
LDMMIA Reiki Yoga Finals Review Spring Summer
AI-driven educational solutions for real-life interventions in the Philippine...
IGGE1 Understanding the Self1234567891011
Introduction to pro and eukaryotes and differences.pptx
Share_Module_2_Power_conflict_and_negotiation.pptx
Introduction to Building Materials
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Trump Administration's workforce development strategy
A powerpoint presentation on the Revised K-10 Science Shaping Paper
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS

Robotics position and orientation

  • 1. CL-7004 – Robotics and Control - Robotics Position and Orientation Dr.B.Arunadevi Associate Professor /ECE Dr.N.G.P Institute of Technology Coimbatore
  • 2. Objectives of the Lecture • Learn to represent position and orientation • Be able to transform between coordinate systems. • Use frames and homogeneous coordinates • Describe Euler angles
  • 3. A robot may not injure a human being, or, through inaction, allow a human being to come to harm. A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. A robot must protect its own existence as long as such protection Three Laws of Robotics
  • 4. Description of a Position • point = position vector YA XA ZA }A{ A P           = z y x A p p p P a c o o r d i na t e s y s t e m
  • 5. Description of an Orientation • In the example, a description of {B} with respect to {A} suffices to give orientation • Orientation = System of Coordinates • Directions of {B}: XB, YB and ZB • In {A} coord. system: A XB, A YB and A ZB x0 x1 z0 y0 z1 y1 θ }A{ }B{ Often a point is not enough: need orientation
  • 6. From {A} to {B{ }A{ XB aX aY aZ( ) BAX XX ⋅=αcos ( ) BAY XY ⋅=αcos ( ) BAZ XZ ⋅=αcos We conclude:           ⋅ ⋅ ⋅ = BA BA BA B A XZ XY XX X
  • 7. Rotation Matrix • Stack three unit vectors to form Rotation Matrix • describes {B} with respect to {A} • Each vector in can be written as dot product of pair of unit vectors: cosine matrixcosine matrix • Rows of : unit vectors of {A} with respect to {B} • What is ? What is det( )? • Position + orientation = Frame RA B [ ]B A B A B AA B ZYXR ˆˆˆ= RA B RA B 1− RA B RA B
  • 8. Description of a Frame • Frame: set of four vectors giving position + orientation • Description of a frame: position + rotation matrix • Ex.: x0 x1 z0 y0 z1 y1 θ }A{ }B{ { }BORG AA B PRB ,}{ = • position: frame with identity as rotation • orientation: frame with zero position
  • 9. Mapping: from frame 2 frame • If {A} has same orientation as {B}, then {B} differs from {A} in a translation: A PBORG A P = B P + A PBORG • Mapping: change of description from one frame to another. The vector A PBORGdefines the mapping. XA ZA YA {A} ZB YB {B} XB A P A PBORG B P Translated Frames
  • 10. Rotated Frames YA XA ZA XB ZB YB B P BzByBx B ZpYpXpP ++= B A zB A yB A x A ZpYpXpP ++= [ ]           = z y x B A B A B AA p p p ZYXP PRP BA B A = Description of Rotation = Rotation Matrix
  • 11. Rotated Frame (cont.) • The previous expression can be written as • The rotation mapping changes the description of a point from one coordinate system to another • The point does not change! only its description PRP BA B A =
  • 13. General Frame Mapping }A{ XB YB ZB B P XA YA ZA A P A PBORG BORG ABA B A PPRP += Replace by the more appealing equation:             =      110001 PPRP B BORG AA B A A “1” added here A row added here
  • 14. Homogeneous Coords • Homogeneous coordinates: embed 3D vectors into 4D by adding a “1” • More generally, the transformation matrix T has the form:       = FactorScalingTrans.Perspect. VectorTrans.MatrixRot. T
  • 15. Operators: Translation, Rotation and General Transformation • Translation Operator: ( )1 12 |)|,ˆ( PQQTRANS QPP AA AAA = += 1P 2P Q
  • 16. Translation Operator • Translation Operator: • Only one coordinate frame, point moves • Equivalent to mapping point to a 2nd frame • Point Forward = Frame Backwards • How does TRANS look in homogeneous coordinates?
  • 17. • Rotational Operator Operators (cont.) A P1 A P2 K θ Rotation around axis:
  • 18. Rotation Operator • Rotational Operator The rotation matrix can be seen as rotational operator • Takes A P1 and rotates it to A P2=R A P1 • A P2=ROT(K, q)(A P2) • Write ROT for a rotation around K
  • 19. Operators (Cont.) • Transformation Operators * A transformation mapping can be viewed as a transformation operator: map a point to any other in the same frame * Transform that rotates by R and translates by Q is the same a transforming the frame by R & Q
  • 20. Compound Transformation If {C} is known relative to {B}, and {B} is known relative to {A}. We want to transform P from {C} to {A}: Write down the compound in homog. coords TTT PTP PTP PTP B C A B A C BA B A CA C A CB C B = = =⇒ = definehereFrom
  • 21. More on Rotations • We saw that a rotation can be represented by a rotation matrix • Matrix has 9 variables and 6+ constraints (which?) • Rotations are far from intuitive: they do not commute! • Rotation matrix can be parameterized in different manners: —Roll, pitch and yaw angles —Euler Angles —Others
  • 22. Euler’s Theorem • Euler’s Theorem: Any two independent orthonormal coordinate frames can be related by a sequence of rotations (not more than three) about coordinate axes, where no two successive rotations may be about the same axis. • Not to be confused with Euler angles, Euler integration, Newton-Euler dynamics, inviscid Euler equations, Euler characteristic… • Leonard Euler (1707-1783)
  • 24. Euler Angles • This means that we can represent an orientation with 3 numbers • A sequence of rotations around principle axes is called an Euler Angle Sequence • Assuming we limit ourselves to 3 rotations without successive rotations about the same axis, we could use any of the following 12 sequences: XYZ XZY XYX XZX YXZ YZX YXY YZY ZXY ZYX ZXZ ZYZ
  • 26. Euler Angles to Matrix Conversion • To build a matrix from a set of Euler angles, we just multiply a sequence of rotation matrices together:           −+ +− − = yxzxzyxzxzyx yxzxzyxzxzyx yzyzy cccssscsscsc csccssssccss ssccc           −⋅           − ⋅           − =⋅⋅ 100 0 0 0 010 0 0 0 001 zz zz yy yy xx xxzyx cs sc cs sc cs scRRR
  • 27. Euler Angle Order • As matrix multiplication is not commutative, the order of operations is important • Rotations are assumed to be relative to fixed world axes, rather than local to the object • One can think of them as being local to the object if the sequence order is reversed • This gives us 12 redundant ways to store an orientation using Euler angles
  • 29. Orientation Representation • Euler Angle I           − =           −=           − = 100 0cossin 0sincos , cossin0 sincos0 001 , 100 0cossin 0sincos '' ' ϕϕ ϕϕ θθ θθφφ φφ ϕ θφ w uz R RR
  • 31. Euler Angle II, Animated x y z u' v' φ θ =v" w" w'= u" v"'ϕ u"' w"'= Note the opposite (clockwise) sense of the third rotation, φ.
  • 32. Orientation Representation • Matrix with Euler Angle II                       − −+ − − + − θ θϕθϕ θϕ θϕφ ϕφ θϕφ ϕφ θφ θϕφ ϕφ θϕφ ϕφ cos sinsinsincos sinsin coscossin coscos coscossin sincos sincos coscossin cossin coscoscos sinsin Quiz: How to get this matrix ?
  • 33. Orientation Representation • Description of Roll Pitch Yaw X Y Z ϕ θ φ Quiz: How to get rotation matrix ?
  • 34. Vehicle Orientation • Generally, for vehicles, it is most convenient to rotate in roll (z), pitch (x), and then yaw (y) • In situations where there is a definite ground plane, Euler angles can actually be an intuitive representation x y z front of vehicle
  • 35. Euler Angles - Summary • Euler angles are used in a lot of applications, but they tend to require some rather arbitrary decisions • They also do not interpolate in a consistent way (but this isn’t always bad) • There is no simple way to concatenate rotations • Conversion to/from a matrix requires several trigonometry operations • They are compact (requiring only 3 numbers)