1
00:00:00,120 --> 00:00:05,760
Let's start with Atlanta, a function that I have mentioned in the last lesson Atlanta function is one

2
00:00:05,760 --> 00:00:11,490
of the most important functions during programming, and you will see its applications in robotics quite

3
00:00:11,490 --> 00:00:12,150
frequently.

4
00:00:12,540 --> 00:00:18,480
Its purpose is the same with architectures or inverse tangent function, namely finding and from the

5
00:00:18,480 --> 00:00:21,360
value that has been obtained by tangent function.

6
00:00:21,780 --> 00:00:22,770
Let's be more clear.

7
00:00:23,070 --> 00:00:27,570
Imagine a right angle triangle with sides of A and B and Angle Tito.

8
00:00:27,900 --> 00:00:31,800
As we know from Trigonometry Tangent Tito is given by this formula.

9
00:00:32,070 --> 00:00:37,710
We can find data from this formula by finding inverse of it, namely inverse tangent.

10
00:00:37,980 --> 00:00:42,210
While it's very simple this method, Holmes has some serious problems.

11
00:00:42,630 --> 00:00:48,630
Let's assume that we have a circle that represents all the angles we can have from zero to two PI.

12
00:00:48,990 --> 00:00:56,490
Let's try to calculate tangent of PI over four, which is nothing but division of Sun Pi over four and

13
00:00:56,490 --> 00:01:00,420
Cosine Pi or four, which will make one.

14
00:01:00,810 --> 00:01:06,240
Now let's take three pi or four radians and calculate its own tangent.

15
00:01:07,230 --> 00:01:09,910
You will see that its tangent is also one.

16
00:01:09,930 --> 00:01:12,870
So as you can see, we lost information here.

17
00:01:13,170 --> 00:01:22,190
Namely, one can be result of inverse tangent of PI or four PI or four and three PI or four, and with

18
00:01:22,200 --> 00:01:25,290
simple arc tangent function, we cannot know that.

19
00:01:25,830 --> 00:01:34,680
So the range of upon function or a tangent function is minus PI or two and plus PI or two exclusive

20
00:01:34,980 --> 00:01:41,850
exclusive because cosine plus or minus PI over two is zero, which causes discontinuities, which is

21
00:01:41,850 --> 00:01:44,670
another problem of our tangent function.

22
00:01:46,440 --> 00:01:50,220
However, with a ton to function or acting is to function.

23
00:01:51,090 --> 00:01:53,340
We don't have any of these problems.

24
00:01:53,550 --> 00:01:59,400
Its range is zero two to a point, which is whole circle, and there is no discontinuity at plus or

25
00:01:59,400 --> 00:02:00,720
minus PI over two.

26
00:02:01,080 --> 00:02:08,250
If you think carefully, the reason that Atom two forks is that in the case of atom function or Klingons

27
00:02:08,250 --> 00:02:15,600
function by division, we lost sine information because two sons signs from sine and cosine functions

28
00:02:15,600 --> 00:02:19,290
collapse into one sine either a plus or minus.

29
00:02:19,470 --> 00:02:26,460
That creates uncertainty, which is not the case in order to function because we don't divide.

30
00:02:26,970 --> 00:02:31,350
We give two inputs and let a time to do the rest of the work.

31
00:02:33,940 --> 00:02:38,050
OK, it's not about Atlanta function, let's continue to our last topic.

32
00:02:38,320 --> 00:02:42,160
Now we will see another two methods of representing rotation.

33
00:02:42,400 --> 00:02:45,070
Let's start with axis angle representation.

34
00:02:45,280 --> 00:02:51,430
Rotations are not always how to be informed about the principle axis, namely X, Y and Z.

35
00:02:51,700 --> 00:02:58,220
Indeed, we can represent in the rotation by a single rotation around some axis by a specific angle

36
00:02:58,220 --> 00:02:58,840
of Keita.

37
00:02:59,020 --> 00:03:05,470
We can find this rotation axis by analyzing eigenvalues and eigenvectors over rotation matrix.

38
00:03:05,860 --> 00:03:12,100
Let's take this rotation matrix as an example and try to find eigenvalues and eigenvectors of it.

39
00:03:12,610 --> 00:03:19,000
If you analyze its eigenvalues, you will see eigenvalue with real value of one and its corresponding

40
00:03:19,000 --> 00:03:23,350
eigenvectors from eigenvalue and eigenvectors relation.

41
00:03:23,380 --> 00:03:29,880
We know that matrix times eigen vector equals the eigenvalue times eigenvectors.

42
00:03:30,160 --> 00:03:35,230
In our case, eigenvalue is one, so formula becomes like that.

43
00:03:35,560 --> 00:03:41,680
This means that we multiply a vector with a matrix and we don't get any change in its magnitude.

44
00:03:42,010 --> 00:03:49,930
So this matrix can be on a rotation matrix because rotation matrix only cause rotation, no change in

45
00:03:49,930 --> 00:03:54,310
the absolute value of the vector or length of the vector.

46
00:03:54,700 --> 00:04:00,340
So I can vector that corresponds to the eigenvalue of one is the axis of rotation.

47
00:04:00,580 --> 00:04:05,020
We can find the rotation angle by comparing eigenvalues with this formula.

48
00:04:05,440 --> 00:04:10,720
Don't worry, we will see this clearly in our next lesson, which will be practical applications of

49
00:04:10,720 --> 00:04:11,140
these.

50
00:04:11,680 --> 00:04:16,510
So this is our angle and rotation axis that represents observer rotation matrix.

51
00:04:16,900 --> 00:04:18,970
However, this answer is not unique.

52
00:04:18,970 --> 00:04:24,370
Namely, the rotation of data around minus v axis results the same rotation.

53
00:04:25,150 --> 00:04:26,230
So this angle?

54
00:04:26,540 --> 00:04:33,610
This is the representation we have for quantities to represent a rotation, namely one quantity for

55
00:04:33,610 --> 00:04:38,770
representing the rotation angle and three quantities for representing the rotation axis.

56
00:04:39,160 --> 00:04:45,070
However, not all of these are independent as our rotation axis is a unit vector.

57
00:04:45,430 --> 00:04:52,020
Two of its values Unit Vector two of its values are independent.

58
00:04:52,030 --> 00:04:58,090
The third one is defined based on the other two, so we have three independent quantities.

59
00:04:58,450 --> 00:05:02,140
We can describe axis angle representation by this formula.

60
00:05:02,350 --> 00:05:06,430
TITA is the rotation angle, and the key is our rotation axis.

61
00:05:06,850 --> 00:05:13,930
As Kate is a unit vector, the model of Vector R will be angle tita to and its direction will give rotation

62
00:05:13,930 --> 00:05:15,100
axis of K.

63
00:05:15,680 --> 00:05:21,860
However, it's important to note that we cannot do a vector algebra or vector are named.

64
00:05:21,880 --> 00:05:28,120
We cannot combine to axis angular representations using standard rules of vector algebra because this

65
00:05:28,120 --> 00:05:31,510
would mean that rotations compute, which is not correct.

66
00:05:33,790 --> 00:05:39,220
Let's continue with unit quarter news, which is very important, and once the user representation of

67
00:05:39,220 --> 00:05:45,760
rotations in robotics quaternary in our extension of the complex number name, the hyper complex number,

68
00:05:46,150 --> 00:05:49,720
and it can be written as a scalar plus a vector parts.

69
00:05:50,320 --> 00:05:55,480
So this represents the scalar part and V represents the vector part.

70
00:05:55,870 --> 00:06:02,650
I would like to mention you also that I, J K are orthogonal complex numbers and they're square and

71
00:06:02,650 --> 00:06:05,950
their multiplication with each other gives negative one.

72
00:06:06,400 --> 00:06:09,280
We can additionally represent Kryptonians in this way.

73
00:06:09,610 --> 00:06:14,980
Quote and support addition and subtraction operations, which is performed Element Y.

74
00:06:14,980 --> 00:06:21,820
As you can see below, the example of addition of two quarter new addition is associative and commutative.

75
00:06:22,420 --> 00:06:28,240
Apart from the addition and subtraction, Cortana's also support continuum, or Hamiltonian product.

76
00:06:28,660 --> 00:06:32,710
This represents a relative rotation, as in the case of rotation mattresses.

77
00:06:33,040 --> 00:06:38,470
Here is the Hamiltonian product formula as in the case of rotation mattresses, post multiplication

78
00:06:38,470 --> 00:06:44,380
gives rotation with respect to the current frame, while print multiplication give rotation with respect

79
00:06:44,380 --> 00:06:47,180
to the fixed frame to represent rotations.

80
00:06:47,200 --> 00:06:54,100
We use unit quarter news unit continues our subcategory of continuous and they represent rotation of

81
00:06:54,100 --> 00:06:56,830
T to about a unit axis of V.

82
00:06:57,280 --> 00:07:00,760
We generally refer to them as simply quaternary news.

83
00:07:01,270 --> 00:07:03,310
They are represented in this way.

84
00:07:03,820 --> 00:07:09,730
From this form love, we can get unit quarter in use that represents rotation around principle axis.

85
00:07:10,270 --> 00:07:13,750
For unit quarter use, their magnitude is equal to one.

86
00:07:14,290 --> 00:07:19,990
So why do you turn use instead of roll PTO or a lower angle representations?

87
00:07:19,990 --> 00:07:25,450
Even if the visualization of unit quaternary use is complex because they are compact?

88
00:07:25,690 --> 00:07:27,510
They are computational efficient.

89
00:07:27,520 --> 00:07:33,100
Also the most important advantage that they don't have Gimbel look that Aler and.

90
00:07:33,240 --> 00:07:36,420
All pitch your angle representations are prone to.

91
00:07:36,810 --> 00:07:39,300
We will see this problem in the next lesson.
