Mathematical tools for referencing a frame and transforming

DiegoCruz159974 39 views 60 slides Aug 06, 2024
Slide 1
Slide 1 of 60
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60

About This Presentation

Robotics presentation number 3


Slide Content

Robotics
MATHEMATICAL TOOLS AND REFERENCE FRAME
TRANSFORMATIONS

So far…
Descriptionofa position: Vector
Descriptionofanorientation: Attached
coordinateframeand a rotationmatrix
DescriptionofPose: HomogeneousTransformation
Matrix (MTH)
schedule

Forward kinematics

How does the tool point
movegiven the dimensions
of the robotand the joint
angles?
https://saurabhpalan.files.wordpress.com/2010/02/i
arm.jpg

Howdoesthemobilerobot
movegivenitsgeometryand
thespeedofitswheels?
https://www.robotsinsearch.com/products/tetra-ds-iv-mobile-robot-
platform

Description of position
A descriptionisusedtospecifyattributesofvarious
objectswithwhicha manipulationsystemdeals.

Theseobjectsare parts, tools, and themanipulatoritself.
Descriptionofa position: Once a coordinatesystemis
established, wecan locate anypointin theuniverse
witha 3 x 1 position vector.

Descriptionoforientation
Wewillfinditnecessarynotonlytorepresenta point
in spacebutalsotodescribe theorientationofa body
in space
In ordertodescribe theorientationofa body, wewill
attacha coordinatesystemtothebodyand thengive
a descriptionofthiscoordinatesystemrelative tothe
referencesystem

Descriptionofposition and orientation
Firststep: Attacha frame(coordinatesystem) totheobject

Add coordinate systems
Adda coordinatesystemtoeachimportant
physicalpartofyourrobot

A memory pill: Vector projection
https://en.wikipedia.org/wiki/Vector_projectio
n

Description of orientation
One way to describe the body attached coordinate system,
{B}, is to write the unit vectors of its three principal axes in
terms of the coordinate system {A}: A rotation matrix!
Further inspection shows that the rows of the matrix are the
unit vectors of {A} expressed in {B}. Hence, the description
of frame {A} relative to {B}, is given by
The inverse of a rotation matrix is equal to its transpose!

Rotation matrix
Used to represent the orientation of a body
Properties:

So far…
Descriptionofa position: Vector
Descriptionofanorientation: Attached
coordinateframeand a rotationmatrix
Whereastheposition ofa pointisrepresented
witha vector, theorientationofa bodyis
representedwitha matrix.

Description of a frame
A frame:

A coordinatesystem
describedbya
position vectorand a
rotationmatrix
Arrow between frames: {C} is
known relative {A} and not
viceversa

Mappings: Changing descriptions from
frame to frame
We will be concerned with expressing the same quantity
in terms of various reference coordinate systems.
Given P
B
, compute P
A
: Rotation and translation

Transformation matrices

Thechangein position and orientationbetween:

Joints,

mobilerobot locations,

Sensors,

robot and otherobjects,

isdescribedusingtransformationmatrices

Anyframecan serve as a referencesystem: transforming
fromoneframetoanother

Mappings: Changing descriptions from
frame to frame
Mappingas anoperatorin matrixform:
HomogeneousTransformationMatrix (HTM):●
A "1" isaddedas thelastelementofthe4 x 1 vectors

row"[0 0 0 1]" isaddedas thelastrowofthe4 x 4
matrix.

Homogeneous transform -
Example

Operators: translations, rotationsand
transformations
Translations
Rotations
What about rotations about other axes?

Transformationoperators
ThetransformthatrotatesbyR and translatesbyQ
isthesameas thetransformthatdescribesa frame
rotatedbyR and translatedbyQ relative tothe
referenceframe.
Example2.4 –Page 33 (Craig)

Interpretations of a homogeneous
transform (T)

Transformationarithmetic
Compoundtransformations
C
P
A
P ?

Transformation arithmetic
Invertinga transfrom: Calculatetheinverse?
A computationallysimplermethod(OWb):
Example2.5, page 36

Transformequations
?

Transform equations
?

Example2.6 (Craig)

Homework
Read
and solveexercis
esin
Chapter2 of
Craig’sbook

Themanipulationofthepiececarriedoutbytherobot impliesthespatialmovementofitsend
In orderfortherobot tobe abletomanipulatea piece, itisnecessarytoknowitsLOCATION,
thatis, itspositionand orientationwithrespecttotherobot base.
Introduction
Needingofa matematicalstooltospecifythepositionand orientationofendeffectorwith
respecttotherobot base

Thereferencecoordinatesystemlocatedfromrobot base named{S} and itsassociatedaxesXYZ
configuringOXYZ system
Thecoordinatesystemlocatedontherobot'swristisnamed{S'} and itsassociatedUVW axesby
configuringtheO'UVW system
Thematrix??????
??
?
mathematicallyrelates thesystemS totheS'

SPACIAL LOCALIZATION
Rpresentationof:
•Cartesiancoordinates
•Cylindricalcoordinate
•Sphericalcoordinates
Position
•Rotationmatrices
•Euler angles
•Rotationtorque
Orientation
•Homogeneouscoordinates
•Homogeneoustransformationmatrices (HMT)
Localization(position + orientation)

Position representation
Somerobots onlyneedtoposition theirendeffector

Position representation
a point can be positioned in the plane or in space
Position in a PLANE
Positioning by 2 DoFthrough 2 independent
components.
Coordinate vectors: OX and OY in the OXY
coordinate reference system.
Position in theSPACE
Positioning by 3 DoFthrough 3 independent
components.
Coordinate vectors: OX , OY and OZ in the
OXYZ coordinate reference system.
There are several coordinates system to position a point,
they are:Cartesian, cylindrical, polar and spherical

Position representation
Positioning by Cartesian coordinates
•Position vector p(x,y)
•(x,y):Cartesiancoordinates,where
(x,y)arethep vector projection in the
axes OX and OY respectively
•Position vector p(x,y,z)
•(x,y,z): Cartesiancoordinates,where
(x,y,z) arethep vector projection in the
axes OX, OY and OZ respectively

Position representation
Positioning by Polarand Cylindrical coordinates
•Position vector p(r,Ɵ)
•(r,Ɵ): Polar coordinates, where r is
the distance from origin to “a” point and
Ɵ is the p angle from OX axe.
•Position vector p(r,Ɵ,z)
•(r,Ɵ,z): Cylindrical coordinates,
where r is the distance from origin to
“a” point,Ɵis the p angle from OXY
axe and z is the p projection from OY
axe.
Polar coordinates
Cylindrical coordinates

Position representation
Positioning by SPHERICAL coordinates
•Position vector p(r,Ɵ,ϕ)
•(r,Ɵ,ϕ ): Spherical coordinates,
where r is the distance from origin
to “a” point or extremof p vector, Ɵ
is the p angle from OXY axe and ϕ
is the p angle from OZ axe.

Orientationrepresentation

Orientationrepresentation
2D Rotationmatrices
??????=??????cos??????
??????=??????sin??????
??????
?
=??????cos??????+??????=??????cos??????cos??????−sin??????sin??????
=??????cos??????−??????sin??????
??????
?
=??????sin??????+??????= ??????sin??????cos??????+cos??????sin??????
= ??????sin??????+??????cos??????
Thematrixrepresentationis:
??????
?
??????
?
=
cos??????−sin??????
sin??????cos??????
??????
??????
??????
?
?
?
?
=????????????
??
??????isrotationmatrix

Orientationrepresentation
3D Rotationmatrices (OX)

Orientationrepresentation
3D Rotationmatrices (OY)

Orientationrepresentation
3D Rotationmatrices (OZ)

Orientationrepresentation
Signsoftwists

Orientationrepresentation
Signsoftwists

Orientationrepresentation
Compositionofrotationmatrices
Torepresenta finite sequenceofrotationswithrespecttotheprincipal
axis oftheOXYZ coordinatesystem, thebasicrotationmatrices are
multiplied.
but,it must be taken into accountthat:
•Matrix multiplication is not commutative.
•And therefore, the order in which the rotations are carried out is
important.
Basic rotations with respect to the principal axes can also be chained
together of the coordinate systems obtained after a rotation

Orientationrepresentation
Compositionofrotationmatrices
Rule for orderly composition of rotations:
Initially both coordinate systems are assumed to coincide. initial rotation matrix
=I initial rotation matrix =I.
If the moving system rotates with respect to one of the principal axes of the
fixed system fixed system, premultiplythe previous rotation matrix by the
corresponding elementary rotation matrix.
If the moving system rotates about one of its own principal axes, postmultiply
the previous rotation matrix by the corresponding elementary rotation matrix.

Orientationrepresentation
Compositionofrotationmatrices
EXERCISE 1
Obtaintherotationmatrixofa stationarysystem{A} thatrotates3 times untiltobecomethesystem{B}
RotationofanƟ angle abouttheOZ axis red system1
Rotationofanϕangle abouttheOY axis greensystem2
Rotationofanαangle abouttheOX axis blue system3

Orientationrepresentation
Compositionofrotationmatrices
EXERCISE 1
Obtaintherotationmatrixofa stationarysystem{A} thatrotates3 times untiltobecomethesystem{B}
RotationofanƟ angle abouttheOZ axis red system1
Rotationofanϕangle abouttheOY axis greensystem2
Rotationofanαangle abouttheOX axis blue system3

Orientationrepresentation
Compositionofrotationmatrices
EXERCISE 1
Obtaintherotationmatrixofa stationarysystem{A} thatrotates3 times untiltobecomethesystem{B}
RotationofanƟ angle abouttheOZ axis red system1
Rotationofanϕangle abouttheOY axis greensystem2
Rotationofanαangle abouttheOX axis blue system3

Orientationand position representation
Homogeneouscoordinates

References
1.https://awseducate.instructure.com/courses/737/pages
/motivation?module_item_id=12841
2.Introduction to Autonomous Mobile Robots (Intelligent
Robotics and Autonomous Agents series). Roland
Siegwart, Illah Reza Nourbakhsh, Davide Scaramuzza.
Tags