1 Kinematics ( 運動學 ) Primer Jyun-Ming Chen Fall 2009.

Slides:



Advertisements
Similar presentations
3-D Homogeneous Transformations.  Coordinate transformation (translation+rotation) 3-D Homogeneous Transformations.
Advertisements

John C. Hart CS 318 Interactive Computer Graphics
CS B659: Principles of Intelligent Robot Motion Rigid Transformations.
Kinematic Modelling in Robotics
Kinematics Pose (position and orientation) of a Rigid Body
Chris Hall Aerospace and Ocean Engineering
3D Kinematics Eric Whitman 1/24/2010. Rigid Body State: 2D p.
Computer Graphics Recitation 2. 2 The plan today Learn about rotations in 2D and 3D. Representing rotations by quaternions.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3D Coordinate Systems and Transformations Revision 1
3-D Geometry.
3D orientation.
Ch. 3: Forward and Inverse Kinematics
CSCE 689: Computer Animation Rotation Representation and Interpolation
CSCE 441: Computer Graphics Rotation Representation and Interpolation
CSCE 641: Computer Graphics Rotation Representation and Interpolation Jinxiang Chai.
Introduction to ROBOTICS
Introduction to ROBOTICS
3D Graphics Goal: To produce 2D images of a mathematically described 3D environment Issues: –Describing the environment: Modeling (mostly later) –Computing.
CS 445 / 645 Introduction to Computer Graphics Lecture 21 Representing Rotations Lecture 21 Representing Rotations.
An Introduction to Robot Kinematics
CS I400/B659: Intelligent Robotics Rigid Transformations.
More details and examples on robot arms and kinematics
CS 450: COMPUTER GRAPHICS 3D TRANSFORMATIONS SPRING 2015 DR. MICHAEL J. REALE.
ME/ECE Professor N. J. Ferrier Forward Kinematics Professor Nicola Ferrier ME Room 2246,
1 C01 – Advanced Robotics for Autonomous Manipulation Department of Mechanical EngineeringME 696 – Advanced Topics in Mechanical Engineering.
Advanced Graphics (and Animation) Spring 2002
Rotations and Translations
Game Physics – Part IV Moving to 3D
3D Kinematics Consists of two parts 3D rotation 3D translation  The same as 2D 3D rotation is more complicated than 2D rotation (restricted to z- axis)
CS 480/680 Computer Graphics Representation Dr. Frederick C Harris, Jr. Fall 2012.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Kinematics of Robot Manipulator
Computer Graphics Bing-Yu Chen National Taiwan University.
Chapter 2 Robot Kinematics: Position Analysis
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
Rotations and Translations
Rick Parent - CIS681 ORIENTATION Use Quaternions Interpolating rotations is difficult.
1 CS 430/536 Computer Graphics I 3D Transformations World Window to Viewport Transformation Week 2, Lecture 4 David Breen, William Regli and Maxim Peysakhov.
Advanced Computer Graphics Spring 2014
1 Fundamentals of Robotics Linking perception to action 2. Motion of Rigid Bodies 南台科技大學電機工程系謝銘原.
3D Kinematics Consists of two parts
Jinxiang Chai Composite Transformations and Forward Kinematics 0.
Chapter 2 Rigid Motions and Coordinate Transformations
Geometric Objects and Transformation
Kinematics Primer Jyun-Ming Chen. Contents General Properties of Transform 2D and 3D Rigid Body Transforms Representation Computation Conversion … Transforms.
EEE. Dept of HONG KONG University of Science and Technology Introduction to Robotics Page 1 Lecture 2. Rigid Body Motion Main Concepts: Configuration Space.
What is Kinematics. Kinematics studies the motion of bodies.
Chapter 2: Description of position and orientation Faculty of Engineering - Mechanical Engineering Department ROBOTICS Outline: Introduction. Descriptions:
CS 551/651 Advanced Graphics Technical Background.
INTRODUCTION TO DYNAMICS ANALYSIS OF ROBOTS (Part 4)
Euler Angles This means, that we can represent an orientation with 3 numbers Assuming we limit ourselves to 3 rotations without successive rotations about.
Computer Graphics I, Fall 2010 Transformations.
Forward Kinematics Where is my hand ?. Examples Denavit-Hartenberg Specialized description of articulated figures (joints) Each joint has only one degree.
Week 5 - Monday.  What did we talk about last time?  Lines and planes  Trigonometry  Transforms  Affine transforms  Rotation  Scaling  Shearing.
COMP322/S2000/L111 Inverse Kinematics Given the tool configuration (orientation R w and position p w ) in the world coordinate within the work envelope,
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Transformations Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Fundamentals of Computer Animation Orientation and Rotation.
REFERENCE: QUATERNIONS/ Ogre Transformations.
Robotics Chapter 3 – Forward Kinematics
Transformations Review 4/18/2018 ©Babu 2009.
CPSC 641: Computer Graphics Rotation Representation and Interpolation
CS 445 / 645 Introduction to Computer Graphics
3D Kinematics Consists of two parts
Ch. 2: Rigid Body Motions and Homogeneous Transforms
Mobile Robot Kinematics
CSE4421/5324: Introduction to Robotics
CHAPTER 2 FORWARD KINEMATIC 1.
UMBC Graphics for Games
Chapter 2 Mathematical Analysis for Kinematics
Presentation transcript:

1 Kinematics ( 運動學 ) Primer Jyun-Ming Chen Fall 2009

2 Contents General Properties of Transform 2D and 3D Rigid Body Transforms DOF (degree of freedom) Representation Computation Conversion … Transforms for Hierarchical Objects

3 Kinematic Modeling Two interpretations of transform “ Global ” :  An operator that “ displaces ” a point (or set of points) to desired location “ Local ” :  specify where objects are placed in WCS by moving the local frame Explain these concepts via 2D translation Verify that the same holds for rotation, 3D, …

4 Ex: 2D translation (move point) x y p The transform, as an operator, takes p to p ’, thus changing the coordinate of p: Tr(t) p = p ’ p’p’ Tr(t)

5 Ex: 2D translation (move frame) p’p’ x y x’x’ y’y’ p The transform moves the xy-frame to x ’ y ’ -frame and the point is placed with the same local coordinate. To determine the corresponding position of p ’ in xy-frame: Tr(t)

6 Properties of Transform Transforms are usually not commutable T a T b p  T b T a p (in general) Rigid body transform: the ones preserving the shape Two types:  rotation rot(n,  )  translation tr(t) Rotation axis n passes thru origin

7 Rigid Body Transform transforming a point/object rot(n,  ) p; tr(t) p not commutable rot(n,  ) tr(t) p  tr(t) rot(n,  ) p two interpretations (local vs. global axes, see next pages)

8 Hierarchical Objects For modeling articulated objects Robots, mechanism, … Goals: Draw it Given the configuration, able to compute the (global) coordinate of every point on body

9 Ex: Two-Link Arm (2D) Configuration Link 1: Box (6,1); bend 45 deg Link 2: Box (8,1); bend 30 deg Goals: Draw it find tip position x y x y

10 Ex: Two-Link Arm Tr(0,6) Rot(z,45) Rot(z,30) Tip pos:(0,8) Tip Position: T for link1: Rot(z,45) Tr(0,6) Rot(z,30) T for link2: Rot(z,45)

11 Ex: Two-Link Arm Rot(z,45) x’x’ y’y’ Tr(0,6 ’ ) x”x” y”y” Rot(z ”,30) Tip pos:(0 ’”,8 ’” ) x ”’ y ’” Thus, two views are equivalent The latter might be easier to visualize.

12 2D Kinematics Rigid body transform only consists of Tr(x,y) Rot(z,  ) Computation: 3x3 matrix is sufficient to realize Tr and Rot

13 3D Kinematics Consists of two parts 3D rotation 3D translation  The same as 2D 3D rotation is more complicated than 2D rotation (restricted to z- axis) Next, we will discuss the treatment for spatial (3D) rotation

14 DOF (degree of freedom) … of a system of moving bodies is the number of independent variables required to specify the configuration … is closely related to kinematic representation (# of independent variables) = (# of total variables) ̶ (# of equality constraints)

15 DOF of … A particle in R 2 R 3 A rigid body in R 2 R (Plucker coordinates) a line in R 2 a line in R 3 a plane in R 3 3 6

16 3D Rotation Representations Euler angles Axis-angle 3X3 rotation matrix Unit quaternion Learning Objectives Representation (uniqueness) Perform rotation Composition Interpolation Conversion among representations …

17 Euler Angles Roll, pitch, yaw Ref: Gimbal lock: reduced DOF due to overlapping axes

Weird Interpolation … 18 Previous [-26, -90, 127] Next [71, 68, -105]

19 Axis-Angle Representation Rot(n,  ) n: rotation axis (global)  : rotation angle (rad. or deg.) follow right-handed rule Rot(n,  )=Rot (-n,-  ) Problem with null rotation: rot(n,0), any n Perform rotation Rodrigues formula (next page) Interpolation/Composition: poor Rot(n 2,  2 )Rot(n 1,  1 ) =?= Rot(n 3,  3 )

20 Rodrigues Formula v ’ =R v  r v v’v’ References: ml r : unit vector (axis) This is the “ cross-product matrix ” r  v = r  v This is the “ cross-product matrix ” r  v = r  v

21 Rotation Matrix (xy plane) z

22 Rotation Matrix About y axis Rodrigues formula About any axis x y,y’ z z’ x’

Supplemental (rotation matrix & axis-angle) Rot ( a,  )  Q Q  Rot ( a,  ) Ref: url (local)urllocal

24 Rotation Matrix Three columns of R: the transformed bases Perform rotation: x ’ = Rx x y,y’ z z’ x’

25 Rotation Matrix (example) x y z y’ z’ x’ x y z y’ z’

26 Rotation Matrix (cont) Composition: trivial orthogonalization might be required due to FP errors Interpolation: ?

27 Gram-Schmidt Orthogonalization If 3x3 rotation matrix no longer orthonormal, metric properties might change! Verify!

28 Transformation Matrices v = Hu Translation Rotation (about principal axes) Scaling

29 Translation (math)

30 Frame y z x t x y z R Object coordinates Recall how we did the spotlight beam!

31 Quaternion A mathematical entity invented by Hamilton Definition i j k

32 Quaternion (cont) Operators Addition Multiplication Conjugate Length

33 Unit Quaternion Define unit quaternion as follows to represent rotation Example Rot(z,90°)  q and – q represent the same rotation Null rotation: q = [1,0,0,0] Why “ unit ” ? DOF point of view!

34 Example x y z x y z Rot (90, 0,0,1) OR Rot (-90,0,0,-1)

35 Unit Quaternion (cont) Perform Rotation Composition Interpolation Linear Spherical linear (slerp, more later)

36 Example x y,x ’ z,z ’ y’y’ Rot(z,90°) p(2,1,1)

37 Example (cont)

38 Example x y,x ’ z,z ’ y’y’ x,x ’ y z,y ’ z’z’

39 Matrix Conversion

40 Matrix Conversion (cont) Find largest q i 2 ; solve the rest

41 Spherical Linear Interpolation The computed rotation quaternion rotates about a fixed axis at constant speed References: q r unit sphere in R 4

42 Spatial Displacement Any displacement can be decomposed into a rotation followed by a translation Matrix Quaternion