2.3 Rotations in 3D

In this lecture, I extend the 2D rotation matrix of SO(2) from Lecture 2.2 to SO(3). Rotation matrices can be constructed from elementary rotations about the X, Y, and Z axes. I also cover the problem of Gimbal Lock, and how to express rotation error.

Пікірлер: 79

  • @jargok2313
    @jargok23133 жыл бұрын

    The rotation direction of y axis is wrongly shown. It shouldn't be clockvise in this view. I think this may lead to confusion.

  • @Woolfrey

    @Woolfrey

    3 жыл бұрын

    You are correct. It's an old mistake!

  • @mustafasabri6430

    @mustafasabri6430

    Жыл бұрын

    A possible reason for the discrepancy is that he used negative angles for the rotation, which changed the sign of sin(θ) in the diagonal elements compared to other rotation matrices.

  • @rimene5976
    @rimene59768 ай бұрын

    That was really helpful. Thank u sir simple and clear. Thanks u 🙏

  • @alevsahin1428
    @alevsahin14284 жыл бұрын

    Thank you! You saved my life with that explanation 😭 I have exams in a week, wish me luck!

  • @vitaliitomas8121

    @vitaliitomas8121

    11 ай бұрын

    Did you pass?

  • @personaluse6554

    @personaluse6554

    4 ай бұрын

    @@vitaliitomas8121 hope so. he passed and forgot to comment. if he failed, he would have come back and watched this video again.

  • @zainmehdi8886
    @zainmehdi88864 жыл бұрын

    one of the best explanations.

  • @Irene-fr1cx
    @Irene-fr1cx5 жыл бұрын

    Thank you! It was helpful

  • @PeperMintification
    @PeperMintification8 ай бұрын

    Excellent video!

  • @ajit_edu
    @ajit_edu2 жыл бұрын

    2.39 i am confused about the direction of rotatiin. Should not they be in opposite direction at x and y axis?

  • @McLachlanG
    @McLachlanG9 ай бұрын

    Hi, I believe the pitch rotation (about the y-axis) may be illustrated incorrectly. A positive pitch rotation should rotate a vector downwards. I.e., a rotation of pi/2 will rotate a vector pointing straight forward [1,0,0] to straight down [0,0,-1].

  • @aidanyarberough8055
    @aidanyarberough80553 жыл бұрын

    Very helpful thanks

  • @amr.a-m8350
    @amr.a-m8350 Жыл бұрын

    Good video .How I could substitute Phi =2tan(R23,R33)as function of number elements please & extracting 'Jacobian Matercis' from rotation matrix.

  • @joseluiz8724
    @joseluiz87244 жыл бұрын

    At minute 7:01, you're showing how to extract the angles from the matrix, but using Z,Y,X orientation right?

  • @jeanbillyclaudendikumasabo5689
    @jeanbillyclaudendikumasabo56893 жыл бұрын

    Thank you!

  • @MonirulAhmed
    @MonirulAhmed3 жыл бұрын

    using matrix find the transformation equation for a 90° degree rotation about the z axis of cartesian coordinate system

  • @tobiasenhorning9042
    @tobiasenhorning90423 жыл бұрын

    Thank You!!!

  • @MiguelGonzalez-mt7hv
    @MiguelGonzalez-mt7hv3 жыл бұрын

    Why is the positive theta angle for the y axis not in the same direction as the x or z axis (following the right hand rule)

  • @hrperformance

    @hrperformance

    3 жыл бұрын

    I'm pretty sure for the first diagram (with the hand), he has the wrong direction of rotations for x and z-axes. As far as i'm aware, a positve angle is measured in the anti-clockwise direction from the perspective of the origin i.e. if you were looking along the axies from the origin.

  • @hrperformance

    @hrperformance

    3 жыл бұрын

    @Chucho haha yep I know the feeling! We'll get there eventually. Good luck to you mate. I'll let you know if I find a promising explanation I'm confident about 👍🏽

  • @lucadavidian5441

    @lucadavidian5441

    2 жыл бұрын

    The arrow for the y rotation is wrong, the direction of the rotation should always follow the positive right-hand convention (counterclockwise if seen from above the rotation axis), so the arrow in the diagram should be reversed. The corresponding matrix is correct.

  • @xin-longli4565

    @xin-longli4565

    2 жыл бұрын

    @@lucadavidian5441 Yeah, I also agree the arrow for y rotation is wrong, or we could say the rotation matrix for y axis is wrong, they don't match. If I don't change the arrow, I switch the position of sin(θ) and -sin(θ), they could also match.

  • @satyamandshivani6668
    @satyamandshivani66683 жыл бұрын

    I have doubt ,Can you please explain how 0 .97 was came , in your example problem.

  • @paaabl0.
    @paaabl0.3 жыл бұрын

    Is counterclockwise direction of rotation arbitrary?

  • @user-kw1eg6bk9r
    @user-kw1eg6bk9r2 жыл бұрын

    مشكور خوي ❤✌🇱🇾

  • @Shadow91507
    @Shadow915074 ай бұрын

    How do we calculate a second rotation? For example, after a body pitches 45 degrees, it yaws 45 degrees about its body frame? It would be incorrect to multiply its nose vector, say by R(y=45 deg) * R(z = 45 deg), since the second matrix that you would be multiplying by is in the inertial (unrotated) frame.

  • @shwetabanerjee4600
    @shwetabanerjee46007 ай бұрын

    Amazing

  • @mohammedaasri2774
    @mohammedaasri27745 жыл бұрын

    Very interessant

  • @rororiri6390
    @rororiri63904 ай бұрын

    very good.

  • @drallisimo34
    @drallisimo345 жыл бұрын

    cool!!!

  • @vemulasrinivasarao1630
    @vemulasrinivasarao16304 жыл бұрын

    Osm....

  • @xgr369
    @xgr369 Жыл бұрын

    Good for programming 3D things.

  • @addy7464
    @addy74644 жыл бұрын

    What are the unit vectors of a surface (say a cube ) when a surface is rotated by some angle.... Can you make a video on that.... It would be very helpful to me

  • @oosmanbeekawoo

    @oosmanbeekawoo

    Жыл бұрын

    You take the vector perpendicular to that surface and rotate it.. no?

  • @dukhtarakhtar
    @dukhtarakhtar3 жыл бұрын

    Can anyone tell me the rotation matrix for sphere?

  • @markkennedy9767
    @markkennedy97674 ай бұрын

    Is there any geometric/visual way of seeing why every rotation is a composition of two rotations.

  • @weekendeats348
    @weekendeats3484 жыл бұрын

    Hello I stuck in a geometric problem can you help me . Let there is two point in free space and we have to draw a cube at the mid point of these two point such that cube is aligned to line created by these two point.

  • @leonm8906

    @leonm8906

    3 жыл бұрын

    A bit late, but do you mean with "(...)such that cube is aligned to line created by these two point" that these points land on two of the cubes corners? If yes then we can build a cube with point 1 at the center of half the length between point 1 and 2 and the apply half a vektor from point 1 to 2 with scalar 0,5. we can get the length of the cube through pythagoras formula c² = a² + b² where c is the distance from the middle to one of the corner which means a is half the height of the cube and b is the diameter of a 2D projection ( a square). of said square the length must be equal to the length to the cube so the same formula where c is now our old b and both a and be must be our old a so c² = a² + (2a²) so a is equal to the square root of half the length between point 1 and 2 minus the squareroot of 3. that's my attempt I'm probably terribly wrong though.

  • @christiantchounke5516
    @christiantchounke55163 жыл бұрын

    First of all I would like to thank you for your very informative video. But I am having trouble solving a problem: Let's imagine those two frames (nx, ny, nz) and (bx, by, bz) as you have illustrated. Where after a rotation (or series of rotations) the projection of bz with respect to (nx, ny, nz) KNOWN (that is r13, r23, r33). How can we determine from this, the rotation angles (Yaw, Pitch and Roll) around (nz, ny, nx) respectively which leaded to (bx, by, bz)? THANK YOU IN ADVANCE

  • @MonirulAhmed
    @MonirulAhmed3 жыл бұрын

    find the transformation equation for a 90° rotation about the z axis

  • @flameofthephoenix8395
    @flameofthephoenix8395 Жыл бұрын

    My problem is that in real life the order of rotation doesn't matter and that's what I'm trying to replicate, the issue is how can I rotate the player camera to where it acts like real head movement.

  • @xCOUZIAx
    @xCOUZIAx3 ай бұрын

    In illustration 2:30 to 3:15, the direction of rotation is wrong for the y-axis :)

  • @yusufkabir6166
    @yusufkabir61664 жыл бұрын

    Good

  • @er4255
    @er42552 жыл бұрын

    It seems R(z) is a rotation clockwise instead of conterclockwise. Is that correct?

  • @jamesdennis6120

    @jamesdennis6120

    2 ай бұрын

    I saw this too and even calculated it out. I think its supposed to be the transpose of whats given. Having the vectors be row vectors rather than column vectors.

  • @mariaph9700
    @mariaph97005 жыл бұрын

    At 2:55, would you mind explaining why there is a difference in sign of rotation matrices of x,z with y?

  • @Woolfrey

    @Woolfrey

    5 жыл бұрын

    Hi Mariah, I believe this is a mistake! Thanks for catching this. The matrix should be: [ cos(a) 0 -sin(a) ] Ry(a) = [ 0 1 0 ] [ sin(a) 0 1 ] I'm working on a while new series of videos so if you see any other errors, or have any other things you have questions about please let me know!

  • @mariaph9700

    @mariaph9700

    5 жыл бұрын

    @@Woolfrey Thank you for replying to my comments. The reason I'm asking because I try to look up other resources online and they all showed what you had for the Ry matrix - which is different in signs as compared to the Rx and Rz (i.e what you had on the videos was consistent with online resources that I looked up). Would you mind double checking on this? thank you so much!

  • @jalajmakkar5123

    @jalajmakkar5123

    4 жыл бұрын

    Rotation of 90degrees of i unit vector around y axis should produce a k unit vector, which will be achieved if the first column of matrix contains cos, 0, sin (cos 90 being zero makes the x coordinate zero). Rotation of 90 degrees about y axis of k unit vector should produce a negative i unit vector, which will be achieved when the third column contains: -sin, 0, cos (sin 90 being 1 makes x coordinate -1 from zero). Correct transformation matrix: (Cos, 0, -sin) (x) (x') ( 0 ,1, 0 ) (y) = (y') (Sin, 0, cos) (z) (z')

  • @ganeshramaswamy911

    @ganeshramaswamy911

    4 жыл бұрын

    @@mariaph9700 Hi.. you are right about the sign being different in case of y as compared x and z. This stems from the fact that these are not improper transformations (mirror image) and that these are based on the right-handed coordinate system.

  • @muhammadsiddiqui2244

    @muhammadsiddiqui2244

    4 жыл бұрын

    @@Woolfrey The mistake is not in the sign, it is in the direction of rotation you are taking according to the "standard" mathematics.

  • @enjieruuu1883
    @enjieruuu18834 ай бұрын

    Can you help me with an exercise please 😭🙏🏻🙏🏻 I've been struggling for 2 days with just having to give the homogeneous transformation matrix Thank you very much in advance 🌻 It’s a graded practical exercise 🙏🏻🙏🏻😭

  • @armanmotamedi9156
    @armanmotamedi91562 жыл бұрын

    you positive y rotation vector is wrong. It is the other way. You are showing a negative pitch. Keep you thumb along positive y axis.

  • @cyklop1977
    @cyklop1977 Жыл бұрын

    Thx

  • @georgegu3374
    @georgegu33747 ай бұрын

    [2:51] rotation on Y is incorrect, should be ccw

  • @punstress
    @punstress2 жыл бұрын

    I have been following the other videos but this one confused the heck out of me.

  • @Woolfrey

    @Woolfrey

    2 жыл бұрын

    Thanks for the feedback. I plan on redoing these some day, if I can ever find the time...!

  • @ramji7758
    @ramji77584 жыл бұрын

    Is rotation matrix in clockwise and counterclockwise sense about any axis is same ,if no then what is it

  • @MrSerozka

    @MrSerozka

    4 жыл бұрын

    your sinuses in matrix will change sign, cosines remain the same

  • @theobellash6440
    @theobellash64403 жыл бұрын

    Good content please work on a good sound next time.

  • @cate9541
    @cate9541 Жыл бұрын

    God bless woolfrey 🙏

  • @dipenbaro6858
    @dipenbaro68584 жыл бұрын

    Thank....m frm india.....#munmunbaro...

  • @wisalalmosawi1011
    @wisalalmosawi10114 жыл бұрын

    Please can you Download this lecture

  • @Woolfrey

    @Woolfrey

    4 жыл бұрын

    There are lots of free KZread downloaders on the internet!

  • @yifanzhou6975
    @yifanzhou6975 Жыл бұрын

    My hw is to solve rotation matrix in four dimension is that possible?

  • @Woolfrey

    @Woolfrey

    Жыл бұрын

    Of course! You could do a rotation matrix in 1000 dimensions if you wanted. I'm not 100% certain where to start for 4D though... 🤔

  • @oosmanbeekawoo
    @oosmanbeekawoo Жыл бұрын

    The matrix "is _given_ by..." 😏

  • @joramarentved
    @joramarentved4 ай бұрын

    Australia never existed?!

  • @AndreaCalaon73
    @AndreaCalaon734 жыл бұрын

    Where are quaternions? All real rotation in 3d are made through quaternions. The systems shown are usless

  • @Woolfrey

    @Woolfrey

    4 жыл бұрын

    This is not true. If you rotate a 3D vector using quaternions you're essentially applying an SO(3) transformation. And if you want to visualise a 3D co-ordinate frame you need the SO(3) rotation matrix. I'm working on a new series of videos which will cover quaternions, but it is quite long. Rotation matrices are an easy and intuitive starting point for teaching the concept of rotation.

  • @AndreaCalaon73

    @AndreaCalaon73

    4 жыл бұрын

    @@Woolfrey For visualization the double reflection of Geometric Algebra is not ok?

  • @AndreaCalaon73

    @AndreaCalaon73

    4 жыл бұрын

    @@Woolfrey I said useless because any rotation library for real applications is based on quaternions. And quaternions are the even subalgebra of a left hand side frame ... We are still using Hamilton's finding

  • @Woolfrey

    @Woolfrey

    4 жыл бұрын

    @@AndreaCalaon73 I've written my own robot control libraries which uses quaternions. As I said before, rotating a 3D vector reduces to using an SO(3) matrix. The columns of the SO(3) matrix also give you the unit vectors of a relative co-ordinate frame, and it's very common to plot these in Robot Operating System (ROS).

  • @AndreaCalaon73

    @AndreaCalaon73

    4 жыл бұрын

    @@Woolfrey A rotation is actually a double reflection, in any number of dimensions. kzread.info/dash/bejne/m6uFztSgccfbfco.html We can use matrices and their product, but Geometric Algebra makes it clear the double reflection nature. I don't know robots, but satellites and computer graphics cannot risk locking. I am not an expert, but I used quaternion libraries, when I was younger

  • @jessalrajjames3502
    @jessalrajjames35024 жыл бұрын

    Good