1
00:00:00,090 --> 00:00:05,520
As we have said before, while the rotation mattresses are easy to implement and manipulate, they contain

2
00:00:05,520 --> 00:00:08,790
nine elements that only three of them are independent.

3
00:00:09,120 --> 00:00:15,120
This is quite initiative as a rigid body possesses at most three rotational degrees of freedom in 3D.

4
00:00:15,630 --> 00:00:22,440
This means that we can describe the orientation of a body in 3D using only three independent quantities.

5
00:00:22,740 --> 00:00:28,500
So in this lesson, we will try to observe such kind of representations of rotations that uses only

6
00:00:28,500 --> 00:00:30,330
three independent quantities.

7
00:00:31,080 --> 00:00:34,380
Let's start with a little angled representation of rotation.

8
00:00:34,530 --> 00:00:38,160
This is one of the most common method of representing a rotation.

9
00:00:38,490 --> 00:00:43,890
Let's assume that we have a fixed frame of zero and the rotated frame of one.

10
00:00:44,280 --> 00:00:50,340
We can describe the orientation of frame or one with respect to frame, or zero using three successive

11
00:00:50,340 --> 00:00:52,110
rotations about current frame.

12
00:00:52,890 --> 00:00:56,820
First, we rotate all zero above the z axis by the angle C.

13
00:00:57,420 --> 00:01:03,120
Then we rotate the newly obtained frame by angle theta around the current y axis.

14
00:01:03,450 --> 00:01:09,630
Find the larvae, rotate the frame B around the current that axis by angle of C and get our desired

15
00:01:09,630 --> 00:01:10,890
frame of four one.

16
00:01:11,340 --> 00:01:17,940
As you can see, we can specify in the relative orientation by only three subsequent rotations.

17
00:01:18,210 --> 00:01:21,990
The angles of Feed, Peter and C are called Aler angles.

18
00:01:22,410 --> 00:01:28,110
Now we will try to describe these subsequent rotations using rotation mattresses, which will help us

19
00:01:28,110 --> 00:01:29,760
to deduce Aler angles.

20
00:01:30,180 --> 00:01:35,550
Before doing that, I would like to mention that the subsequent rotations are about the current frame,

21
00:01:35,760 --> 00:01:38,520
so the rotation mattresses will be just multiplied.

22
00:01:38,910 --> 00:01:43,500
Let's multiply subsequent rotation mattresses in order to get the resultant rotation.

23
00:01:44,040 --> 00:01:48,480
This is the resultant rotation matrix that we have got from multiplication.

24
00:01:48,750 --> 00:01:50,850
This matrix is called that.

25
00:01:50,850 --> 00:01:53,610
Was it a lower angle transformation.

26
00:01:54,030 --> 00:01:58,590
The key problem is how we can get your angles from this rotation matrix.

27
00:02:02,060 --> 00:02:06,050
Let's copy the metrics here again in order to find a solution to our problem.

28
00:02:06,080 --> 00:02:10,000
We will analyze two cases for the first case.

29
00:02:10,010 --> 00:02:14,810
We will suppose that not both of R1 three and R2 three are zero.

30
00:02:15,230 --> 00:02:19,220
By this assumption, we can deduce that since that is not zero.

31
00:02:19,430 --> 00:02:27,410
And so both of our three one or three two are also not zero, as since data is not zero, we can deduce

32
00:02:27,410 --> 00:02:34,130
that R3 three is not plus or minus one because it can happen only when it goes to zero or PI.

33
00:02:34,700 --> 00:02:38,600
So we can read that customers to equals two or three three.

34
00:02:38,600 --> 00:02:47,120
And since data equals the plus minus square root of one minus R3 three squared after we obtain cosine

35
00:02:47,120 --> 00:02:53,570
data and since Theta, we can easily get it up by using a to function.

36
00:02:53,960 --> 00:03:01,850
If you don't know what is attached to function, then don't worry for now, except accept it as an inverse

37
00:03:01,850 --> 00:03:04,250
of tangent or act tangent.

38
00:03:04,250 --> 00:03:09,470
In order to get theta on the next lesson, I will briefly touched on this function.

39
00:03:09,680 --> 00:03:10,790
So let's continue.

40
00:03:11,060 --> 00:03:13,910
As you can see, we have two solutions for the Theta.

41
00:03:14,180 --> 00:03:21,350
If we take the first solution for Theta, then sign Theta is greater than zero and we can get fit and

42
00:03:21,350 --> 00:03:23,120
see using below formula.

43
00:03:23,390 --> 00:03:29,510
It's not for you to find the given values in the formula inside the Matrix in order to understand how

44
00:03:29,510 --> 00:03:34,700
we get these formulas for five feet and see if it will take on the second from you.

45
00:03:35,000 --> 00:03:39,440
But it is important for you to grasp the concept anyway.

46
00:03:39,860 --> 00:03:46,700
However, if we take the second solution for the T to, then sine teeter will be less than zero and

47
00:03:46,700 --> 00:03:50,450
we will find below solutions for fee and see angles.

48
00:03:50,810 --> 00:03:58,190
So we have two solutions to our problem because of the sine difference of Peter in terms of the second

49
00:03:58,190 --> 00:04:05,150
case, if both are ones three and R2 three are zero, then sine teeter must be zero, which means that

50
00:04:05,180 --> 00:04:06,800
it can be zero or point.

51
00:04:07,100 --> 00:04:13,850
This also means that R3 three is plus minus one because our three three is cosine of theta.

52
00:04:14,120 --> 00:04:20,510
Also, our three one and our three two are also zero because they contain contains sine of TITA.

53
00:04:20,990 --> 00:04:26,600
Then our rotation matters becomes like that if we accept our three three as plus one.

54
00:04:26,720 --> 00:04:30,170
Then the TITA is zero and sine theta is also zero.

55
00:04:30,500 --> 00:04:36,530
So we get below solution four feet and see, as you can see, we can only have a solution for the sum

56
00:04:36,530 --> 00:04:37,580
of these angles.

57
00:04:37,940 --> 00:04:44,390
This means that we can have infinitely many solutions for feet and see how or by convention we can take

58
00:04:44,660 --> 00:04:45,350
a zero.

59
00:04:45,710 --> 00:04:52,940
If we accept our three three as minus one, then Peter is PI and Sun is also zero.

60
00:04:53,420 --> 00:04:57,260
Then we get solution for the subtraction of B and C.

61
00:04:57,620 --> 00:05:03,020
This also means that we can have infinitely many solutions for feet and C.

62
00:05:04,730 --> 00:05:07,520
Let's go to another way of representation of rotation.

63
00:05:07,640 --> 00:05:11,240
This representation is called roll pitch your angles.

64
00:05:11,240 --> 00:05:17,540
And if you have done even a bit of robotics or mechanics, I am sure that you have heard these terms.

65
00:05:17,900 --> 00:05:23,420
This method is similar to the earlier angles representation, except the rotation on rotations are not

66
00:05:23,420 --> 00:05:25,520
about the current frame, but fixed frame.

67
00:05:25,850 --> 00:05:32,390
So we will use pre multiplication of rotation mattresses to describe the final rotation after doing

68
00:05:32,390 --> 00:05:33,780
some matrix algebra.

69
00:05:34,040 --> 00:05:35,780
We can get the final result.

70
00:05:36,200 --> 00:05:42,650
You can get the roll pitch and your angles from this mattress by following the same methodology as we

71
00:05:42,650 --> 00:05:44,300
have done for or angles.

72
00:05:44,990 --> 00:05:50,750
Before finishing this lesson, I would like to note that in general, we don't do all these calculations.

73
00:05:51,110 --> 00:05:57,530
These are just the theoretical concept which will help you to grasp the other concepts more easily and

74
00:05:57,530 --> 00:06:01,310
deeply instead of just writing a code without knowing anything.

75
00:06:01,730 --> 00:06:07,940
These procedures have been applied by libraries and given as readily when we called our robots.

76
00:06:08,240 --> 00:06:13,310
Don't worry, we will apply these concepts during our practical lessons and you will see what I mean.

77
00:06:13,550 --> 00:06:14,810
See you on the next lesson.
