1
00:00:00,150 --> 00:00:06,360
On the last lesson, we have seen the properties of the terms contained in it, a little grunge formulation.

2
00:00:07,020 --> 00:00:13,710
I have I hope that I was able to clarify them for you because it's very important to understand them

3
00:00:13,710 --> 00:00:14,310
correctly.

4
00:00:14,860 --> 00:00:21,600
Now in this lesson, we will try to solve a lot of the ground dynamics for a simple two degree of freedom

5
00:00:21,600 --> 00:00:23,040
plan that a robot manipulator.

6
00:00:23,430 --> 00:00:30,810
You can ask why planner and to a degree of freedom robot, because otherwise the example can get such

7
00:00:30,810 --> 00:00:37,830
difficult that you can hardly imagine, not because of understanding, but because of bare hand calculations

8
00:00:38,250 --> 00:00:38,730
anyway.

9
00:00:39,330 --> 00:00:46,230
But this example will also encompass what we have learned, and you can apply this to a higher degree

10
00:00:46,230 --> 00:00:47,970
of freedom robot manipulators.

11
00:00:48,330 --> 00:00:49,680
So let's get started.

12
00:00:51,420 --> 00:00:53,070
Here's our robot manipulator.

13
00:00:53,700 --> 00:00:57,660
A sticker and frame is x-y.

14
00:00:57,660 --> 00:01:04,380
Excuse me, coronal frame is stuck to the base frame, and two blue dots indicate central mass of two

15
00:01:04,380 --> 00:01:04,800
links.

16
00:01:05,370 --> 00:01:11,820
Here is some physical parameters, namely the distance to the central mass of the links link lengths

17
00:01:11,820 --> 00:01:16,890
and the inertia of the links with respect to the frame attached their center of mass.

18
00:01:17,220 --> 00:01:23,280
Be careful about with respect to which frame you are doing calculations to start first to be able to

19
00:01:23,280 --> 00:01:31,320
calculate inertia matrix m because after we calculated Matrix M, we can calculate charismatic save

20
00:01:31,320 --> 00:01:31,950
from it.

21
00:01:32,640 --> 00:01:36,360
As you remember, VE got inertia Method X from kinetic energy.

22
00:01:36,870 --> 00:01:43,020
We will not calculate kinetic energy because we know that inertia mattress corresponds to this part

23
00:01:43,020 --> 00:01:49,170
of the kinetic energy formulation, so we will do our calculations directly.

24
00:01:49,500 --> 00:01:53,040
Let's throw the figure again here to do further calculations.

25
00:01:53,550 --> 00:01:59,820
First, as you can see from the blue box, we have to calculate linear velocity and angular velocity

26
00:01:59,820 --> 00:02:01,230
jacobean mattresses.

27
00:02:01,680 --> 00:02:06,750
Let's start with linear velocity Jacobean, as you can see from this formula.

28
00:02:07,080 --> 00:02:15,480
Linear velocity Jacobean relates linear velocities of the first link with respect to x y z axis with

29
00:02:15,480 --> 00:02:17,520
angular velocities of the joints.

30
00:02:18,030 --> 00:02:21,300
Here, the linear velocities belong to the center of mass.

31
00:02:23,690 --> 00:02:29,480
In order to get this Jacobean, we have to calculate linear velocities first as a function of angular

32
00:02:29,480 --> 00:02:37,430
velocities, namely to 1.20 to 2.8 central mass of link one will follow circular trajectories while

33
00:02:37,430 --> 00:02:44,000
joint moving and saw velocity vector will be tangent to this to this circle.

34
00:02:44,330 --> 00:02:53,240
If we calculate this velocity, then we can find it's X, Y and Z components by projection because we

35
00:02:53,240 --> 00:02:56,750
know rotation angles, namely Tatooine and T2.

36
00:02:57,680 --> 00:03:04,010
Here is the calculation of tangential velocity of central mass of link one, which comes from basic

37
00:03:04,010 --> 00:03:07,460
physics, namely angular velocity times radius.

38
00:03:07,850 --> 00:03:12,350
In our case, radius is distance to central mass of lynk1.

39
00:03:13,220 --> 00:03:20,840
Here is the projections of this velocity vector on X and Y or z axis velocity.

40
00:03:20,840 --> 00:03:24,590
It will surely be zero as there is no motion in z axis.

41
00:03:25,150 --> 00:03:30,800
We know that from basic geometry angle between, we see one and we see one x vectors.

42
00:03:30,800 --> 00:03:32,060
View Beta one.

43
00:03:32,510 --> 00:03:33,080
OK.

44
00:03:33,320 --> 00:03:39,830
As we know, angle calculating projections is a piece of cake because we will use basic trigonometry

45
00:03:39,830 --> 00:03:40,730
to find them.

46
00:03:42,200 --> 00:03:46,450
Here are the equations for b c one x and we see one y.

47
00:03:46,760 --> 00:03:52,820
We see one x will be a sign of theta one as it waits in front of the angle two to one.

48
00:03:53,270 --> 00:03:54,020
Be careful.

49
00:03:54,290 --> 00:04:00,770
Additionally, we have negative sun because it's opposite to the basis frame's x axis.

50
00:04:01,190 --> 00:04:08,750
However, we see one Y component will be cosine of title one as it's connected to the one, and it will

51
00:04:08,750 --> 00:04:14,300
not have negative sun as it's in the same direction as Baz's frame's y axis.

52
00:04:15,170 --> 00:04:19,190
And as we have noted before, Z component will be zero.

53
00:04:19,850 --> 00:04:20,360
Perfect.

54
00:04:20,480 --> 00:04:27,260
We have velocity formulas as functions of joint angles from which we can construct Giacobbe Matrix very

55
00:04:27,260 --> 00:04:27,860
easily.

56
00:04:28,400 --> 00:04:31,880
Here is the linear velocity Jacobean of the first link.

57
00:04:35,450 --> 00:04:41,390
OK, now let's calculate the linear velocity Jacobean for the central mass of the second link.

58
00:04:41,810 --> 00:04:45,320
As you can see angle of the second joint within the respect.

59
00:04:45,320 --> 00:04:51,650
The Bayes frames x axis is the sum of title one and title two, which is very obvious.

60
00:04:52,490 --> 00:04:55,400
The relation will be as for the first link.

61
00:04:55,880 --> 00:05:02,690
Now, let's think a bit about how we can calculate the velocity of the second linked central mass.

62
00:05:03,380 --> 00:05:11,080
If the account with velocity of tip of the Lynk1, then we can find center of mass of the second link

63
00:05:11,090 --> 00:05:14,000
by just using the relative velocities formulation.

64
00:05:14,420 --> 00:05:19,100
Here is the velocity of the first things tip as it will follow circular passed.

65
00:05:19,100 --> 00:05:23,120
The direction of the velocity will be tangent to the circle.

66
00:05:23,810 --> 00:05:28,790
We can calculate this velocity as we did in center of mass of the lynk1.

67
00:05:29,600 --> 00:05:30,650
Here is the formula.

68
00:05:31,040 --> 00:05:33,710
In this case, just the radius is different.

69
00:05:33,720 --> 00:05:37,280
Namely, it's now a one length of the lynk1.

70
00:05:37,970 --> 00:05:44,400
Here is a circular trajectory of the second lensing center of mass, and it's tangential velocity vector

71
00:05:45,190 --> 00:05:46,100
we can find.

72
00:05:46,100 --> 00:05:53,660
We see two by relative velocity formation, which is given by the sum of V1 and angular velocity of

73
00:05:53,660 --> 00:05:57,230
link two times distance to the center of mass.

74
00:05:57,920 --> 00:06:05,690
Be careful Angular velocity of link tour will not be detached to DOT, but some of the wandered anteater

75
00:06:05,690 --> 00:06:10,130
to dot because motion of joint want a fixed wing to also.

76
00:06:10,850 --> 00:06:11,300
OK.

77
00:06:11,750 --> 00:06:15,260
Now we have to find again projections of velocity vector.

78
00:06:15,260 --> 00:06:21,170
We see two on X and Y axis, which is indicated in Fig..

79
00:06:21,740 --> 00:06:29,390
The angle between these two and the C two Y will be some of the first and the second joint angles.

80
00:06:29,660 --> 00:06:33,020
So we can find the projections using trigonometry.

81
00:06:35,030 --> 00:06:44,090
If we project vessie to over x axis, we will get we see 2x as this because we see two x will be the

82
00:06:44,090 --> 00:06:51,140
sum of projection of the one, our x axis and the projection of second term on x axis.

83
00:06:51,530 --> 00:06:58,880
Be careful about signs which come from directions of the vectors we can find v one x vector because

84
00:06:58,880 --> 00:07:02,960
it is the same as V.

85
00:07:02,960 --> 00:07:10,610
Could we see one x on the previous page after we found the One X. We can plug it into the place and

86
00:07:10,610 --> 00:07:12,020
do some manipulations.

87
00:07:14,210 --> 00:07:21,740
We can do exactly the same for B C two y, which is some of the projections of B one and the second.

88
00:07:21,850 --> 00:07:32,380
Term over y axis, and surely we see tools that will be zero as there is no motion on that axis as we

89
00:07:32,380 --> 00:07:39,910
have velocity formulations, we can find Jacoby in Matrix four link to which is given as this Whoa,

90
00:07:40,360 --> 00:07:41,950
this was a lot of calculations.

91
00:07:42,190 --> 00:07:44,830
Now the concept becomes much, much simpler.

92
00:07:45,280 --> 00:07:52,510
We have to calculate now the angle Jacobins for each link, which is very easy, especially for this

93
00:07:52,510 --> 00:07:59,140
example, angular velocity of Link one will be affected only due to the motion of joint one.

94
00:07:59,710 --> 00:08:06,490
And as the rotation is over z axis, it will have on the Z component, which is indicated within its

95
00:08:06,490 --> 00:08:07,810
vector of K had

96
00:08:10,870 --> 00:08:16,930
power linked to angular velocity will be also affected by the motion of joint one and joint two.

97
00:08:17,380 --> 00:08:24,760
And as it also rotates on the opposite axis, it will have angular velocity on K had direction only.

98
00:08:25,210 --> 00:08:25,740
OK.

99
00:08:25,810 --> 00:08:33,430
They have angular velocities in our hands so we can get, lynk1, angular velocity Jacobean and a link

100
00:08:33,460 --> 00:08:35,170
to angular velocity.

101
00:08:35,170 --> 00:08:38,590
Jacobean is a right.

102
00:08:39,040 --> 00:08:42,730
Another simple note in the equation of inertia matrix.

103
00:08:42,730 --> 00:08:45,310
There was also our eye rotation matrix.

104
00:08:45,460 --> 00:08:46,300
What about that?

105
00:08:46,960 --> 00:08:49,330
It will be identity in our case.

106
00:08:49,360 --> 00:08:49,890
Why?

107
00:08:50,200 --> 00:08:56,680
Because the robot is planning the frames of central mass of lynk1 and linked to it will be in the same

108
00:08:56,680 --> 00:09:01,180
direction as bases frame, so there will not be in the rotation.

109
00:09:01,720 --> 00:09:02,470
Be careful.

110
00:09:02,770 --> 00:09:10,690
Ah, I was the rotation matrix from frame in center of mass of the link to the Baz's frame because we

111
00:09:10,690 --> 00:09:14,660
wrote inertia matrix with respect to the frame in center of mass.

112
00:09:14,710 --> 00:09:22,120
In order to make it constant and one another, not here, we calculated Jacobins by bare hands, but

113
00:09:22,330 --> 00:09:24,010
for higher degrees of freedom.

114
00:09:24,010 --> 00:09:30,370
You had to use formulation that we have seen before in which we have calculated homogeneous transformation

115
00:09:30,370 --> 00:09:31,030
mattresses.

116
00:09:31,480 --> 00:09:34,420
Otherwise, you cannot do them by hand.

117
00:09:36,430 --> 00:09:44,290
Here are the Jacobins we have calculated this is the formula of the inertia matrix again, as our robot

118
00:09:44,290 --> 00:09:47,230
manipulator in this case is to a degree of freedom.

119
00:09:47,230 --> 00:09:50,650
Inertia Matrix will have dimensions of two by two.

120
00:09:51,160 --> 00:09:56,320
As shown here, with its elements given below, we have three components.

121
00:09:56,320 --> 00:10:01,090
As the inertia matrix is always symmetric, I will not do the calculations.

122
00:10:01,630 --> 00:10:06,250
I have done this calculations with butler script and you can do the same.

123
00:10:06,730 --> 00:10:14,450
I will provide the Matlow script for you, but you can analyze, OK, we have found inertia matrix.

124
00:10:14,470 --> 00:10:19,450
Now we have to find Coriolis mattress, which will be derived from Enoshima tricks.

125
00:10:19,900 --> 00:10:23,830
So I have written the components of inertia matrix here again.

126
00:10:24,670 --> 00:10:28,120
Diesel Compute Coriolis Matrix by Christopher Symbol's.

127
00:10:28,120 --> 00:10:35,980
As we have said before, in order to get skewed, symmetric and matrix, then we can use them to obtain

128
00:10:35,980 --> 00:10:37,420
C matrix components.

129
00:10:38,560 --> 00:10:43,860
As you can see, a calculation of crystal ball symbols is nothing but partial derivatives of inertia

130
00:10:43,870 --> 00:10:46,780
matrix components with respect to joint angles.

131
00:10:47,140 --> 00:10:49,720
You can easily calculate them with MATLAB.

132
00:10:50,380 --> 00:10:53,250
Here is the crystal ball symbols and in MATLAB file.

133
00:10:53,260 --> 00:10:56,950
I have provided the calculation of these two.

134
00:10:58,030 --> 00:11:05,500
After we have calculated Christoffer symbols, we can get Coriolis Matrix C Perfect.

135
00:11:05,890 --> 00:11:07,840
We have done 90 percent of the work.

136
00:11:08,290 --> 00:11:13,990
Now we have to calculate the potential energy of the robot in order to get gravity vector, which is

137
00:11:13,990 --> 00:11:15,040
really very easy.

138
00:11:15,490 --> 00:11:18,370
Here's the figure in which we will do calculations.

139
00:11:18,910 --> 00:11:24,730
First, let's indicate gravity accelerations, which are gravitational explorations, which are opposite

140
00:11:24,730 --> 00:11:25,630
to the y axis.

141
00:11:26,170 --> 00:11:32,680
Let's start with the calculation of potential energy of link one, which is given by this lot that we

142
00:11:32,680 --> 00:11:35,110
are familiar from, from basic physics.

143
00:11:35,710 --> 00:11:42,940
Each one is the heart of the central mass of the link, one from Baz's frame, which we can obtain easily

144
00:11:43,090 --> 00:11:45,640
by a right triangle and some trigonometry.

145
00:11:46,150 --> 00:11:52,800
As we have found each one, we can plug it and obtain some formula for potential energy of lynk1.

146
00:11:53,900 --> 00:11:55,780
Sure, the central for central mass.

147
00:11:57,040 --> 00:11:59,710
Let's do the same for linked to a center of mass.

148
00:12:00,280 --> 00:12:07,300
We can calculate the hate of lean to central mass from Baz's frame easily by just summing these two

149
00:12:07,300 --> 00:12:16,900
individual hates me and H two, one and H two two, we can get these two heads from take our metric

150
00:12:16,900 --> 00:12:17,920
relations again.

151
00:12:18,370 --> 00:12:21,700
Be careful about angles now as we have.

152
00:12:21,780 --> 00:12:29,490
Contrary to the hate speech to one and edge two to be can plug and obtain the potential energy for the

153
00:12:29,490 --> 00:12:30,420
center of mass.

154
00:12:30,510 --> 00:12:40,080
The second link total potential energy is nothing but the sum of these two potential energies.

155
00:12:40,770 --> 00:12:48,840
Now we can easily calculate gravity vector one by just finding partial derivative of the total potential

156
00:12:48,840 --> 00:12:56,430
energy with respect to Joint Angle one and Gravity Vector two by just finding partial derivative with

157
00:12:56,430 --> 00:12:58,810
respect the second joint angle.

158
00:12:58,860 --> 00:13:02,940
OK, we have calculated all the terms we need now.

159
00:13:02,940 --> 00:13:10,730
It's remained to just plug them into this formulation and obtain joint talks to one and two.

160
00:13:10,920 --> 00:13:11,760
And here it is.

161
00:13:11,970 --> 00:13:17,070
We calculated like an initial formulation for two degrees of freedom plan and a robot manipulator.

162
00:13:18,030 --> 00:13:21,600
You can see the amount of calculations, even in this simple case.

163
00:13:22,020 --> 00:13:28,710
Now imagine what will happen for six degrees of freedom robot manipulators in three dimensions.

164
00:13:29,250 --> 00:13:31,870
Surely you have to do it with MATLAB.
