Jinxiang Chai Composite Transformations and Forward Kinematics 0.

Slides:



Advertisements
Similar presentations
Today Composing transformations 3D Transformations
Advertisements

Computer Graphics Lecture 4 Geometry & Transformations.
Arbitrary Rotations in 3D Lecture 18 Wed, Oct 8, 2003.
Denavit-Hartenberg Convention
Kinematics Pose (position and orientation) of a Rigid Body
MAE152 Computer Graphicsfor Scientists and Engineers Revision of Matrices Relevance to Graphics.
Transformations II Week 2, Wed Jan 17
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Transformations II Week.
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
Motion Kinematics – Lecture Series 3 ME 4135 – Fall 2011 R. Lindeke.
CMPE 466 COMPUTER GRAPHICS
Jinxiang Chai CSCE441: Computer Graphics Coordinate & Composite Transformations 0.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3-D Geometry.
CSCE 689: Computer Animation Rotation Representation and Interpolation
CSCE 441: Computer Graphics Rotation Representation and Interpolation
Introduction to ROBOTICS
Computer Graphics (Fall 2008) COMS 4160, Lecture 3: Transformations 1
MSU CSE 803 Fall 2008 Stockman1 CV: 3D sensing and calibration Coordinate system changes; perspective transformation; Stereo and structured light.
Introduction to ROBOTICS
Computer Graphics (Fall 2005) COMS 4160, Lecture 2: Review of Basic Math
Linear Algebra Review CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2005.
3D Graphics Goal: To produce 2D images of a mathematically described 3D environment Issues: –Describing the environment: Modeling (mostly later) –Computing.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Technical Background.
CS 450: Computer Graphics 2D TRANSFORMATIONS
10/5/04© University of Wisconsin, CS559 Fall 2004 Last Time Compositing Painterly Rendering Intro to 3D Graphics Homework 3 due Oct 12 in class.
ME/ECE Professor N. J. Ferrier Forward Kinematics Professor Nicola Ferrier ME Room 2246,
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 2: Review of Basic Math
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 3: Transformations 1
Mathematical Fundamentals
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
HCT.
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
Transformations Aaron Bloomfield CS 445: Introduction to Graphics
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
2003CS Hons RW778 Graphics1 Chapter 5: Transforming Objects 5.2 Introduction to Transformations 5.2 Introduction to Transformations –Affine transformations.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
1 Fundamentals of Robotics Linking perception to action 2. Motion of Rigid Bodies 南台科技大學電機工程系謝銘原.
©Larry F. Hodges (modified by Amos Johnson) 1 3-D Mathematical Preliminaries & Transformations.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
CS654: Digital Image Analysis Lecture 6: Basic Transformations.
CS559: Computer Graphics Lecture 8: 3D Transforms Li Zhang Spring 2008 Most Slides from Stephen Chenney.
Transformation.
Geometric Transformations
Transformations CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
David Luebke1/10/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
Composite 3D Transformations. Example of Composite 3D Transformations Try to transform the line segments P 1 P 2 and P 1 P 3 from their start position.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS D Geometric Transformations Graphics Systems.
January 19, y X Z Translations Objects are usually defined relative to their own coordinate system. We can translate points in space to new positions.
3-D Geometric Transformations
Affine Geometry.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 3: Transformations 1
3D Coordinate Systems o3D computer graphics involves the additional dimension of depth, allowing more realistic representations of 3D objects in the real.
Graphics Lecture 2: Slide 1 Lecture 2 Transformations for animation.
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Composite 3D Transformations. Example of Composite 3D Transformations Try to transform the line segments P 1 P 2 and P 1 P 3 from their start position.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Jinxiang Chai CSCE441: Computer Graphics Coordinate & Composite Transformations 0.
CSE 167 [Win 17], Lecture 2: Review of Basic Math Ravi Ramamoorthi
Review: Transformations
CSCE441: Computer Graphics Coordinate & Composite Transformations
CSCE441: Computer Graphics 2D/3D Transformations
Robotics 1 Copyright Martin P. Aalund, Ph.D.
Presentation transcript:

Jinxiang Chai Composite Transformations and Forward Kinematics 0

Outline 2D Coordinate transformation Composite transformation & Forward kinematics 3D transformation 1

Image space Coordinate Transform: 3D Geometry Pipeline 2 Normalized project space View space World spaceObject space Aspect ratio & resolution Focal length Rotate and translate the camera

Coordinate Transformation: 3D Modeling/Design Coordinate transformation from one reference frame to another 3

Coordinate Transformation: Animation/Robotics How to model 2D movement of animated characters or robots? 4 Click herehere

Coordinate Transformation Coordinate transformation from one reference frame to another 5

Coordinate Transformation Coordinate transformation from one reference frame to another 6

Coordinate Transformation Coordinate transformation from one reference frame to another 7

Coordinate Transformation Coordinate transformation from one reference frame to another ? 8

Review – Vector Operations Dot Product 9

Review – Vector Operations Dot Product: measuring similarity between two vectors 10

Review – Vector Operations Dot Product: measuring similarity between two vectors 11

Review – Vector Operations Dot Product: measuring similarity between two vectors Unit vector: 12

Review – Vector Operations Dot Product: measuring similarity between two vectors 13

Review – Vector Operations Dot Product: measuring similarity between two vectors 14

Review – Vector Operations Cross Product: measuring the area determined by two vectors 15

Review – Vector Operations Cross Product: measuring the area determined by two vectors 16

2D Coordinates 2D Cartesian coordinate system: P: (x,y) 17

2D Coordinate Transformation 2D Cartesian coordinate system: P: (x,y) 18

2D Coordinate Transformation 2D Cartesian coordinate system: P: (x,y) 19

2D Coordinate Transformation Transform object description from to p 20

2D Coordinate Transformation Transform object description from to p 21 Given the coordinates (x’,y’) in i’j’ - how to compute the coordinates (x,y) in ij?

2D Coordinate Transformation Transform object description from to p 22 Given the coordinates (x’,y’) in i’j’ - how to compute the coordinates (x,y) in ij?

2D Coordinate Transformation Transform object description from to p 23 Given the coordinates (x’,y’) in i’j’ - how to compute the coordinates (x,y) in ij?

2D Coordinate Transformation Transform object description from to p 24

2D Coordinate Transformation Transform object description from to p 25

2D Coordinate Transformation Transform object description from to p 26

2D Coordinate Transformation Transform object description from to p 27

2D Coordinate Transformation Transform object description from to p 28

2D Coordinate Transformation Transform object description from to p 29

2D Coordinate Transformation Transform object description from to p 30

2D Coordinate Transformation Transform object description from to p 31

2D Coordinate Transformation Transform object description from to p 32

2D Coordinate Transformation Transform object description from to p 33

2D Coordinate Transformation Transform object description from to p 34

2D Coordinate Transformation Transform object description from to p 35

2D Coordinate Transformation p 36 What does this column vector mean?

2D Coordinate Transformation Transform object description from to p 37 What does this column vector mean? Vector i’ in the new reference system

2D Coordinate Transformation Transform object description from to p 38 What does this column vector mean?

2D Coordinate Transformation Transform object description from to p 39 What does this column vector mean? Vector j’ in the new reference system

2D Coordinate Transformation Transform object description from to p 40 What does this column vector mean?

2D Coordinate Transformation Transform object description from to p 41 What does this column vector mean? The old origin in the new reference system

2D Coordinate Transformation 2D translation p 42

2D Coordinate Transformation 2D translation p ? ? ? ? 43

2D Coordinate Transformation 2D translation p

2D Coordinate Transformation 2D translation&rotation p ? 45

2D Coordinate Transformation 2D translation&rotation p ? 46

2D Coordinate Transformation 2D translation&rotation p 47

2D Coordinate Transformation 2D translation&rotation p ? 48

2D Coordinate Transformation 2D translation&rotation p 49

2D Coordinate Transformation 2D translation&rotation p ? 50

2D Coordinate Transformation 2D translation&rotation p 51

2D Coordinate Transformation An alternative way to look at the problem p 52

2D Coordinate Transformation An alternative way to look at the problem p 53

2D Coordinate Transformation An alternative way to look at the problem p 54

2D Coordinate Transformation An alternative way to look at the problem This transforms the point from (x,y) to (x’,y’) p 55

2D Coordinate Transformation An alternative way to look at the problem This transforms the point from (x’,y’) to (x,y) p 56

2D Coordinate Transformation An alternative way to look at the problem This transform the point from (x’,y’) to (x,y) p 57

2D Coordinate Transformation An alternative way to look at the problem This transform the point from (x’,y’) to (x,y) p 58

2D Coordinate Transformation An alternative way to look at the problem This transform the point from (x’,y’) to (x,y) p 59

2D Coordinate Transformation An alternative way to look at the problem This transform the point from (x’,y’) to (x,y) p 60

2D Coordinate Transformation Same results! p 61

2D Coordinate Transformation 2D translation&rotation p 62

2D Coordinate Transformation 2D translation&rotation p 63

2D Coordinate Transformation 2D translation&rotation p 64

2D Coordinate Transformation 2D translation&rotation p 65

2D Coordinate Transformation 2D translation&rotation p 66

2D Coordinate Transformation 2D translation & rotation p 67

Composite 2D Transformation How to model 2D movement of characters or robots? 68 Click herehere

Composite 2D Transformation A 2D lamp character 69

Composite 2D Transformation A 2D lamp character 70

Composite 2D Transformation How can we draw the character given the pose ? 71

Articulated Character A default pose (0,0,0,0,0,0)

Composite 2D Transformation What’s the pose? 73

Composite 2D Transformation What’s the pose? 74

Composite 2D Transformation A 2D lamp character Given, and the local coordinates of point A, how to compute the global coordinates of point A? ? 75

Composite 2D Transformation What’s local coordinate ? ? 76

Composite 2D Transformation What’s local coordinate ? ? 77

Composite 2D Transformation What’s the current coordinate A ? ? 78

Composite 2D Transformation What’s the current coordinate A ? ? 79

Composite 2D Transformation What’s the current coordinate A ? ? 80

Composite 2D Transformation What’s the current coordinate A ? ? 81

Composite 2D Transformation What’s the current coordinate A ? 82

Composite 2D Transformation What’s the pose? 83 l 0 =1, l 1 =7, l 2 =6, l 3 =6

Composite 2D Transformation What’s the pose? 84 l 0 =1, l 1 =7, l 2 =6, l 3 =6 How about this point?

How to Animate the Character? A 2D lamp character 85

How to Animate the Character? Keyframe animation - Manually pose the character by choosing appropriate values for - Linearly interpolate the inbetween poses. - Works for any types of articulated characters! 86

How to Animate the Character? Keyframe animation Motion capture - motion interpolations, graph based, statistics-based, 87

How to Animate the Character? Keyframe animation Motion capture - motion interpolations, graph based, statistics-based, Physically based animation - needs to solve extremely complex equations - usually very slow - human motion might look robotic 88

3D Transformation A 3D point (x,y,z) – x,y, and z coordinates We will still use column vectors to represent points Homogeneous coordinates of a 3D point (x,y,z,1) Transformation will be performed using 4x4 matrix 89

Right-handed Coordinate System Left hand coordinate system Not used in this class and Not in OpenGL 90/94

3D Transformation Very similar to 2D transformation Translation transformation Homogenous coordinates 91

3D Transformation Very similar to 2D transformation Scaling transformation Homogenous coordinates 92

3D Transformation 3D rotation is done around a rotation axis Fundamental rotations – rotate about x, y, or z axes Counter-clockwise rotation is referred to as positive rotation (when you look down negative axis) x y z + 93

3D Transformation Rotation about z – similar to 2D rotation x y z + 94

3D Transformation Rotation about y: z -> y, y -> x, x->z x y z y z x 95

3D Transformation Rotation about x (z -> x, y -> z, x->y) x y z z x y 96

3D Rotation about Arbitrary Axes Rotate p about the by the angle 97

3-D Rotation General rotations in 3-D require rotating about an arbitrary axis of rotation Deriving the rotation matrix for such a rotation directly is a good exercise in linear algebra 98

3D Rotation about Arbitrary Axes Rotate p about the by the angle 99

3-D Rotation General rotations in 3-D require rotating about an arbitrary axis of rotation Deriving the rotation matrix for such a rotation directly is a good exercise in linear algebra Standard approach: express general rotation as composition of canonical rotations  Rotations about x, y, z 100

Composing Canonical Rotations Goal: rotate about arbitrary vector r by θ  Idea: we know how to rotate about x,y,z  So, rotate about z by -  until r lies in the xz plane  Then rotate about y by -β until r coincides with +z  Then rotate about z by θ  Then reverse the rotation about y (by β )  Then reverse the rotation about z (by  ) 101

3D Rotation about Arbitrary Axes Rotate p about the by the angle 102

3D Rotation about Arbitrary Axes Translate so that rotation axis passes through the origin 103

3D Rotation about Arbitrary Axes Rotation by about z-axis 104

3D Rotation about Arbitrary Axes Rotation by about y-axis 105

3D Rotation about Arbitrary Axes Rotation by about z-axis 106

3D Rotation about Arbitrary Axes Rotation by about y-axis 107

3D Rotation about Arbitrary Axes Rotation by about z-axis 108

3D Rotation about Arbitrary Axes Translate the object back to original point 109

3D Rotation about Arbitrary Axes Final transformation matrix for rotating about an arbitrary axis 110

3D Rotation about Arbitrary Axes Final transformation matrix for rotating about an arbitrary axis 111

3D Rotation about Arbitrary Axes Final transformation matrix for rotating about an arbitrary axis

3D Rotation about Arbitrary Axes Final transformation matrix for rotating about an arbitrary axis A 3 by 3 Rotation matrix

Rotation Matrices Orthonormal matrix:  orthogonal (columns/rows linearly independent)  normalized (columns/rows length of 1) 114

Rotation Matrices Orthonormal matrix:  orthogonal (columns/rows linearly independent)  normalized (columns/rows length of 1) The inverse of an orthogonal matrix is just its transpose: 115

Rotation Matrices Orthonormal matrix:  orthogonal (columns/rows linearly independent)  normalized (columns/rows length of 1) The inverse of an orthogonal matrix is just its transpose: 116

Rotation Matrices Orthonormal matrix:  orthogonal (columns/rows linearly independent)  normalized (columns/rows length of 1) The inverse of an orthogonal matrix is just its transpose: 117

Why? Rotation Matrices 118

Why? Rotation Matrices 119

Why? Rotation Matrices 120

Why? Rotation Matrices 121

Rotation Matrices Orthonormal matrix:  orthogonal (columns/rows linearly independent)  normalized (columns/rows length of 1) The inverse of an orthogonal matrix is just its transpose: e.g., 122

3D Coordinate Transformation Transform object description from to p 123

2D Coordinate Transformation Transform object description from to p 124

3D Coordinate Transformation Transform object description from to p 125

3D Coordinate Transformation Transform object description from to p 126

3D Coordinate Transformation Transform object description from to 127 p

3D Coordinate Transformation Transform object description from to 128 p

Composite 3D Transformation Similarly, we can easily extend composite transformation from 2D to 3D 129

Composite 3D Transformation 130