Docsity

Spatial Modeling - Kinematic and Mechatronics - Lecture Slides, Slides of Mechanical Engineering

Partial preview of the text

Download Spatial Modeling - Kinematic and Mechatronics - Lecture Slides and more Slides Mechanical Engineering in PDF only on Docsity!

Spatial Modeling – some

fundamentals for Robot Kinematics

Considering Translation and Rotation

  • Translation, in a simple sense, is just the movement ofone point from another without changing the orientation of space.
  • We can assign space frames (coordinate systems) to anyobject in space – (or all objects in space!).
  • If we wish to relate one object (and its space frame) toany other space frame we should be able to write a set of equations that represent each axis of the remotespace in another’s systems axes and write a vector that relate the positions of the origins of the ‘systems’ to eachother.

Defining the Homogeneous Transformation Matrix

  • It is a 4x4 Matrix that describes “3-Space” with information that relates Orientation and Position (pose) of a remote space to a local space

nx ox ax dx ny oy ay dy nz o (^) z az dz 0 0 0 1 N vector projectsthe X the Localrem^ Axis to Coordinate System

O vectorprojects the Yrem Axis to the Local Coordinate System

A vectorprojects the Z (^) rem Axis to the Local Coordinate System

D vector is theposition of the origin of the remote space in Local Coordinate dimensions

This 3x3 ‘Sub-Matrix’ isthe information that relates orientation of Frame (^) rem to Frame (^) Local (This is called R the rotational Submatrix)

Defining the Homogeneous Transformation Matrix

n (^) x ox ax d (^) x ny oy ay dy n (^) z oz az d (^) z 0 0 0 1 Perspective or Projection Vector

Scaling Factor

  • This matrix is a transformation

tool for space motion!

Lets use it on our ‘Translational’

problem

  • What is the n vector here
  • Here, since X 1 points in X 0 direction, it is

simply: (1,0,0)

  • Using the same reasoning:
    • The o vector is: (0,1,0)
    • And the a vector is: (0,0,1)
  • Here the d vector is:
    • The definition of the origin of Frame 1 in Frame (^0) coordinates: (12,35,45)

Solving:

  • H. Transformation Matrix is:
  • Point A 1 to ‘1 space’:

The solution of where A 1 is in Frame 0 is the product of these two matrices!

T 01 =
T 1 A^ =

What about Rotational

Transformations?

  • Lets start with a “Pure Rotation”
  • A Pure Rotation is one about only 1 axis (a

separable rotation)

  • We will consider this about Z 0 (Initially)
  • This means: Rotate the ‘Remote’ Frame 1 by

an angle θ about the Z 0 axis of ‘Local’

Frame 0

After Rotation we find this

Relationship

O 0 ,O 1

Z 0 ,Z 1

Θ

Y 1 Y^0

Θ X 0

P 1

X 1

By Inner Products:

1 1 1 1 1 1 1 0 0 0 0 0 0 0

p p p p p p

P x i y j z k

P x i y j z k

0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 0 0 1 0 1 1 1 1 1 1 0

p p p p p p p p p p p p

x P i x i y j z k i y P j x i y j z k j z P k x i y j z k k

Relating these two definition of the SAME Point:

Collecting & Simplifying :

0 1 0 1 1 0 1 1 0 1 0 1 0 1 1 0 1 1 0 1 0 1 0 1 1 0 1 1 0 1

( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )

p p p p p p p p p p p p

x i i x j i y k i z y i j x j j y k j z z i k x j k y k k z

= • + • + • = • + • + • = • + • + •

0 1 0 1 0 1 0 1

0 1 0 1 0 1 0 1

0 1 0 1 0 1 0 1

p p

p p

p p

x i i j i k i x

y i j j j k j y

z i k j k k k z

 •^ •^ • 

Rewriting it in Matrix Form:

Psst:This is a R matrix!

Lets See? θ is 37deg and P1 is (2,4,6)

  • Cosθ = 0.
  • Sinθ = 0.
  • HTM is:
  • Model is:

0.799 0.601 0 0 0.601 0.799 0 0 0 0 1 0 0 0 0 1

 −        0 0 0

0.799 0.601 0 0 2. 0.601 0.799 0 0 4 4. 0 0 1 0 6 6 1 0 0 0 1 1^1

p p p

x y z

 −^  −   = ^  =       Computation is just like we observed physically!

What about Pure Rotation about X or Y Axes?

  • Uses the same Inner Product approach (Cosines of angles between vectors after rotation)
  • Trotx =
  • Troty =

This image cannot currently be displayed.

1 0 0 0 0 0 0 0 0 0 0 1

Cos Sin Sin Cos

ψ ψ ψ ψ

   (^) −       

0 0 0 1 0 0 0 0 0 0 0 1

Cos Sin

Sin Cos

φ φ

φ φ

       −   

Now We Can Define 2 Cases:

  • Case 1 is where we “redefine” Space after

each operation

  • Case 2 is where all operations are taken

against a fixed (inertia) space frame

Check Order issue:

  • 1 st^ Translate (4,0,0) then rotate 90° about Z axis
  • Its almost like drawing a cat!