Making a Point: Elementary (around Z?) Rotations in 2D …

Slides:



Advertisements
Similar presentations
Principles of Computer-Aided Design and Manufacturing Second Edition 2004 ISBN Author: Prof. Farid. Amirouche University of Illinois-Chicago.
Advertisements

Arbitrary Rotations in 3D Lecture 18 Wed, Oct 8, 2003.
Kinematics Pose (position and orientation) of a Rigid Body
Forward and Inverse Kinematics CSE 3541 Matt Boggus.
3D Kinematics Eric Whitman 1/24/2010. Rigid Body State: 2D p.
The City College of New York 1 Dr. Jizhong Xiao Department of Electrical Engineering City College of New York Kinematics of Robot Manipulator.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3D Coordinate Systems and Transformations Revision 1
Ch. 3: Forward and Inverse Kinematics
Introduction to Robotics Lecture II Alfred Bruckstein Yaniv Altshuler.
The linear algebra of Canadarm
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.
15/09/2015handout 31 Robot Kinematics Logics of presentation: Kinematics: what Coordinate system: way to describe motion Relation between two coordinate.
Kinematics of Robot Manipulator
Chapter 2 Robot Kinematics: Position Analysis
Rotations and Translations
KINEMATICS ANALYSIS OF ROBOTS (Part 2)
CS 376 Introduction to Computer Graphics 02 / 16 / 2007 Instructor: Michael Eckmann.
Sect. 4.2: Orthogonal Transformations
Kinematics. The function of a robot is to manipulate objects in its workspace. To manipulate objects means to cause them to move in a desired way (as.
Chapter 2: Description of position and orientation Faculty of Engineering - Mechanical Engineering Department ROBOTICS Outline: Introduction. Descriptions:
FROM PARTICLE TO RIGID BODY.
This Week WeekTopic Week 1 Coordinate Systems, Basic Functions Week 2 Trigonometry and Vectors (Part 1) Week 3 Vectors (Part 2) Week 4 Vectors (Part 3:
1 Teaching Innovation - Entrepreneurial - Global The Centre for Technology enabled Teaching & Learning, N Y S S, India DTEL DTEL (Department for Technology.
EE 495 Modern Navigation Systems Navigation Mathematics Rotation Matrices – Part II Wednesday, Jan 14 EE 495 Modern Navigation Systems Slide 1 of 21.
End effector End effector - the last coordinate system of figure Located in joint N. But usually, we want to specify it in base coordinates. 1.
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
1 Part B Tensors Or, inverting The graph above represents a transformation of coordinates when the system is rotated at an angle  CCW.
Robotics Chapter 3 – Forward Kinematics
Trigonometry of Right Triangles
5.1 The Unit Circle.
Character Animation Forward and Inverse Kinematics
Geometric Transformations
Spatcial Description & Transformation
Rotation Matrices and Quaternion
Chapter 3 Transformation of Coordinates
Ch. 2: Rigid Body Motions and Homogeneous Transforms
RELATIVE MOTION ANALYSIS: VELOCITY (Section 16.5)
Copyright © Cengage Learning. All rights reserved.
Problem 1.5: For this problem, we need to figure out the length of the blue segment shown in the figure. This can be solved easily using similar triangles.
Photogrammetry V: Dr. Gamal Hassan Seedahmed Dept. of Surveying Eng.
Computer Graphics Lecture 18 3-D Transformations-II Taqdees A
1. Kinetic energy, potential energy, virtual work.
5 Systems of Linear Equations and Matrices
ROTATIONS & TRANSLATIONS
CSC461: Lecture 19 Computer Viewing
Introduction to manipulator kinematics
Lecture 03: Linear Algebra
Mobile Robot Kinematics
Copyright © Cengage Learning. All rights reserved.
Trigonometric Identities
CSE4421/5324: Introduction to Robotics
Introduction to Vectors and Frames
5.1 The Unit Circle.
Copyright © Cengage Learning. All rights reserved.
Making a Point: Elementary (around Z) Rotations in 2D …
Making a Point: Elementary (around Z?) Rotations in 2D …
Vectors and the Geometry of Space
CHAPTER 2 FORWARD KINEMATIC 1.
Vectors and the Geometry
RELATIVE MOTION ANALYSIS: VELOCITY
ORIENTATION KINEMATICS: AXIS-ANGLE ROTATION
Quaternions are back!!! A global quaternion q is defined as q = q0 + q where q = q1I+ q2 J+ q3K . where q0 is a scalar and q is a vector. A quaternion.
Derivation of the 2D Rotation Matrix
Sum and Difference Identities
Chapter 2 Mathematical Analysis for Kinematics
Standard Position, Coterminal and Reference Angles
Robotics 1 Copyright Martin P. Aalund, Ph.D.
Screw Rotation and Other Rotational Forms
Presentation transcript:

Making a Point: Elementary (around Z?) Rotations in 2D … r = |r| = |r1| = |r2| x1 = r cos a y1 = r sin a r is magnitude r = |r| r Rotation of coordinates Rotation of vector x2 y2 1 x1 y1 cos q - sin q sin q 0 cos q 0 0 1 = x2 y2 1 cos q sin q - sin q 0 cos q 0 0 1 = x1 y1 Notice the difference in their matrix representation!

Making a Point: Rotation Kinematics (ref. R.N. Jazar) If the rigid body B attached to P rotates g degrees about the Z-axis of the Global frame G, then the coordinates of any point P of the rigid body in the local and global coordinate frames are related by the following equation Gr = RZ,g Br, that is: Gr = = Rz,aBr = cos g - sin g sin g 1 x y z X Y Z Similarly, a rotation of b degrees about the Y-axis, and a degrees about the X-axis of the global frame relate the local and global coordinates of point P by the following equations Gr = RY,b Br and Gr = RX,aBr respectively, that is: Gr = = RY,bBr = cos b sin b - sin b 1 x y z X Y Z and Gr = = RX,aBr = cos a - sin a sin a 1 x y z X Y Z

Computer exercise #4: Order of Rotations Consider a point P(1, 2, 3) on rigid body B. (i) Find its global position after a rotation of 30 deg about the global X-axis followed by a rotation of 45 deg about the global Y-axis. (ii) Find its global position by changing the order of the rotations. (iii) Find how apart are they from each other. ANSWER: (i) (GrP)1 = cos 45 sin 45 - sin 45 1 cos 30 - sin 30 sin 30 2 3 = 3.2513 0.23205 1.83712 (ii) cos 45 sin 45 - sin 45 1 cos 30 - sin 30 sin 30 2 3 = 2.8284 1.0249 2.2247 (GrP)2 = The two positions are | | = sqrt((3.25133 -2.8284)^2 + (0.23205-1.0249)^2 + (1.83712-2.2247)^2) = 0.97862 apart, that is: ROTATIONS ARE NOT COMMUTATIVE! (GrP)1 - (GrP)2

Take home computer exercise #A: Angle of the roll-pitch-yaw rotations Consider the roll-pitch-yaw rotations by angles a , b and g around the X, Y and Z axes respectively. Find the general rotation matrix that represents the overall rotation matrix. For the inverse problem we say: “Given the global roll-pitch-yaw rotation matrix, determine the roll-pitch-yaw angles that took place. ANSWER: We have the following set of matrix products: GRB = RZ,g RY,b RX,a cos g - sin g sin g 1 GRB = cos b sin b - sin b cos a - sin a sin a cbcg = r11 cbcg -casg + cgsasb sasg + cacgsb cbsg cacg + sasbsg -cgsa + casbsg -sb cbsa cacb r11 r12 r13 r31 r32 r33 r21 r22 r23 cbsg = r21 GRB = =  -sb = r31 cbsa = r32 cbca = r33 The last set of 5 equalities, provided that cosb = sqrt((r11)2 + (r21)2) ≠ 0, yield: a = atan2(r32, r33) or atan(r32/r33) b = -asin(r31) g = atan2(r21,r11) or atan(r21/r11)

Computer exercise #5: Angle of the roll-pitch-yaw rotations Consider the rotation matrix below. Determine the roll-pitch-yaw angles that took place. roll_angle = (180/pi)*atan2(r32, r33) pitch_angle = - (180/pi)* asin(r31) yaw_angle = (180/pi)* atan2(r21, r11) ANSWER: First notice that cosb = sqrt((r11)2 + (r21)2) = 0.59761 ≠ 0. Then we have: a = 180.000 b = -53.302 g = 63.431 0.2673 0.8941 0.3581 0.5345 -0.4472 0.7173 0.8018 0 -0.5969

Computer exercise #6: Rotation Kinematics (Cont’d) Global rotation local position: Consider a point Q(4,3,2) (global coordinates) on rigid body B. Rotate Q by 60 degrees about the global Z axis. What was its initial position in the local coordinate system? Note: You must assume that the local coordinate system was coincident with the global coordinate system before rotation and thus we are just coming back to its initial “global” coordinates. ANSWER: It must be clear that we take the initial vector to Q in the global system. Then, we rotate Q around the global Z axis by 60 degrees and Q ends up at [4 3 2]t. That is, we have the relation RZ,60 * GrQ = [4 3 2]t, hence: GrQ = (RZ,60 )-1*[4 3 2]t, and thus: = x y z 4 3 2 cos 60 -sin 60 0 sin 60 cos 60 0 4.5981 2.0000 -1.9641 0 0 1 -1 cos 60 sin 60 0 -sin 60 cos 60 0 0.50000 0.86603 0 -0.86603 0.50000 0 0 0 1 We found that the global coordinates of Q before rotation were [4.5981 -1.9641 2.0000]t. Note: The inverse matrix of Rz,60 was obtained (as expected) by finding its transpose!

Exercise # 7: Repeated Rotations About The Global Axes Successive global rotations, global position. Consider point P on a rigid body B as shown on the figure below (angle POY = 75o). P lies on the YZ plane (coordinate xP = 0). Therefore yP = 1*cos(75) = 0.26 & zP = 1*sin(75) = 0.97. Z Y P(0, y, z) X z y 1 O Rotate P -29 deg around the X-axis, then 30 deg about the Z-axis and lastly 132 degrees around the X-axis again. Find the new position of P. The overall rotation matrix will be: GRB = RX,132*RZ,30*RX,-29 . Executing the proper sequence we can find that GRB = 0.87 -0.44 -0.24 -0.33 -0.15 -0.93 0.37 0.89 -0.27 0.0 0.26 0.97 = - -0.35 -0.94 - 0.034

Repeated Rotations About The Global Axes We turn a body frame about a global axis, say about the X-axis by g radians where g = 2*pi/n and then we repeat the rotation n times to return the body back to its initial configuration. We can check this process by multiplying RX,g by itself until we achieve an identity matrix. We have the following property for a matrix such as RX: (RX,g )m = cos mg - sin mg sin mg 0 0 1 = Making this matrix equal to the identity matrix (which occurs when m = n, g = 2p/n) it simply verifies that cos(2p) = 1 and sin(2p) = 0.

Exercise # 8: Repeated Rotations About The Global Axes Repeated rotations around one axis: We turn a body frame about a global axis, say about the X-axis by 0.4 radians. How many times do we have to repeat this rotation to reach the closest angle to 125 degrees. Apply this rotation to vector v = [1 1.5 0.5]t and find how close you are if you have rotated v by exactly 125 degrees (that is the distance between the two positions). ANSWER: In this case g = 0.4 radians and we need to determine m such that mg ≤ 125*p/180 => m =125*p/(0.4*180) = 5.45 = 5, that is the closest we can get to 125 degrees will be after 5 consecutive turns around the X-axis to an angle of mg = 5*0.4 = 2 radians = 2*180/pi = 114.5916. 0 cos114.5916 –sin114.5916 0 sin114.5916 cos114.5916 1 0 0 1.0 1.5 0.5 1.0000 -1.0789 1.1559 (RX,2 ) = = (RX,125) = 0 cos 125 -sin125 0 sin 125 cos 125 1 0 0 = 1.0000 -1.2699 0.9419 1.0 1.5 0.5 distance = sqrt((1-1)^2 +(-1.0789+1.2699)^2+(1.1559-0.9419)^2) = 0.2868