1
00:00:00,270 --> 00:00:04,230
When we are working with evil inertial matrix is very important.

2
00:00:04,230 --> 00:00:07,080
And you have faced a little bit from the last week.

3
00:00:07,220 --> 00:00:07,500
Right.

4
00:00:07,830 --> 00:00:10,170
Now let's dive into the solution for that.

5
00:00:10,860 --> 00:00:18,900
I am going to open up my lab for this and I am going to press file import mesh to import my mesh.

6
00:00:19,320 --> 00:00:24,630
I have saved this location of my package so I don't have to navigate into the folders.

7
00:00:25,080 --> 00:00:29,010
Then Misha's and Basslink.

8
00:00:30,390 --> 00:00:33,160
This is our mesh mesh level.

9
00:00:33,180 --> 00:00:36,500
We are going to extract the properties we can.

10
00:00:36,540 --> 00:00:38,700
We don't need to solve the equations.

11
00:00:38,940 --> 00:00:45,090
We just need the solution to mesh that is going to help us in that going to filters.

12
00:00:45,600 --> 00:00:53,400
And I am going to do a normal curvature, quality measures in computations and then computations.

13
00:00:55,870 --> 00:01:03,970
We are going to perform compute geometric may use this option uses compound compute a set of geometric

14
00:01:04,540 --> 00:01:07,090
mesh point flow bounding boxes and stuff like that.

15
00:01:07,090 --> 00:01:07,840
Let's click it.

16
00:01:08,410 --> 00:01:15,430
And it has calculated already if you see in this small window we can see there are a lot of things.

17
00:01:16,090 --> 00:01:19,960
What interest we have is the inertia matrix.

18
00:01:20,290 --> 00:01:22,360
So from this point.

19
00:01:23,540 --> 00:01:30,410
In this point, I'm going to copy it, which is a small portion, and I'm going to open a new tab and

20
00:01:30,410 --> 00:01:32,450
paste that here, not saving it.

21
00:01:32,900 --> 00:01:40,430
So mesh volume is 0.00624 and initiate insert is very, very, very small values.

22
00:01:41,090 --> 00:01:45,530
Actually, if I implement this equation, they are not going to be solving the problem.

23
00:01:45,980 --> 00:01:46,490
Why?

24
00:01:46,790 --> 00:01:51,680
Because from my experience, we need to have some more defined values.

25
00:01:51,980 --> 00:01:57,830
For that, we need to scale our mesh and again, we compute things for that.

26
00:01:58,100 --> 00:02:07,660
So what I am going to do is go into filters, normal Richard orientation and I'm going to go into transform

27
00:02:07,670 --> 00:02:08,820
scale and normalize.

28
00:02:09,500 --> 00:02:20,090
Here I'm going to say scale my mesh ten times makes each size ten times bigger.

29
00:02:20,090 --> 00:02:26,690
So ten and in y axis, then in the z x is ten uniform scaling and apply.

30
00:02:27,620 --> 00:02:30,920
It has made my mesh so big.

31
00:02:31,310 --> 00:02:33,320
Now if I press filters.

32
00:02:34,290 --> 00:02:35,290
Computations.

33
00:02:35,490 --> 00:02:38,520
And compute geometric measures.

34
00:02:39,030 --> 00:02:40,860
Let's see the inertial metrics.

35
00:02:40,860 --> 00:02:46,620
Now I'm going to copy it again and bring this thing here.

36
00:02:47,550 --> 00:02:49,400
So this is show metrics.

37
00:02:49,410 --> 00:02:53,730
You can see we have now more values, meaning, more explanation.

38
00:02:54,240 --> 00:02:58,800
So this is one time process, but it is a little bit hard.

39
00:02:59,460 --> 00:03:03,530
Let's solve it and then we will enjoy our logo.

40
00:03:04,350 --> 00:03:11,550
So the first step we have to do is to divide our inertia metrics with the volume that has been given.

41
00:03:11,580 --> 00:03:11,890
Okay.

42
00:03:12,270 --> 00:03:16,320
So if we start dividing the values, I'm going to just divide the mean values.

43
00:03:16,320 --> 00:03:19,050
Which are I x, x, I viva.

44
00:03:19,050 --> 00:03:24,030
And I said, okay, let me bring in the calculator.

45
00:03:25,550 --> 00:03:25,960
Okay.

46
00:03:26,920 --> 00:03:28,690
So what we have here.

47
00:03:29,720 --> 00:03:35,510
2.12790 divided by what is the volume?

48
00:03:35,510 --> 00:03:37,880
6.241081.

49
00:03:37,880 --> 00:03:39,740
I'm writing full value.

50
00:03:40,010 --> 00:03:42,660
I'm going to copy it because we will be needing again and again.

51
00:03:43,190 --> 00:03:48,380
So 0.340909.

52
00:03:48,770 --> 00:03:52,190
This is 8xx for a viavi.

53
00:03:53,340 --> 00:04:00,180
We are going to see it is 7.574817 divided by the volume

54
00:04:00,870 --> 00:04:05,010
1.21371.2137.

55
00:04:05,820 --> 00:04:12,450
Again, we are going to do eight for 8.27711 divided by the value.

56
00:04:12,770 --> 00:04:16,950
1.3261.1.326.

57
00:04:16,960 --> 00:04:24,150
I know it is a little bit off from robotics, but you need to do this if you want to keep on working.

58
00:04:24,150 --> 00:04:24,870
That is equal.

59
00:04:25,230 --> 00:04:33,180
Once for a robot I have written this file as well, which I have documented all of this for example.

60
00:04:35,870 --> 00:04:38,450
These are the same values we are currently getting.

61
00:04:38,450 --> 00:04:50,090
We first perform the scaling to x is equal to ten, meaning scaling factor was ten then the division

62
00:04:50,090 --> 00:04:51,980
of this inner shop in matrix.

63
00:04:51,980 --> 00:05:00,410
By the value we obtain this values for all of the geometric values divided by the volume.

64
00:05:00,770 --> 00:05:02,900
Then we need to perform.

65
00:05:03,940 --> 00:05:08,410
Another division, which is scale value squared.

66
00:05:09,040 --> 00:05:15,550
So these were the values and they were divided by 100, Y 100 because scaling factor was ten.

67
00:05:15,550 --> 00:05:20,500
So everything was divided by 110 squared is equal to 200.

68
00:05:21,190 --> 00:05:29,800
So the inertia matrix became this thing and this is our inertia metric for our robot, but.

69
00:05:32,020 --> 00:05:38,260
The volume, the mass value is going to be deciding what inertial metrics is going to be.

70
00:05:38,650 --> 00:05:44,530
Because if we said one kilogram of mass for the beast, this is going to be the inertia metric.

71
00:05:44,540 --> 00:05:48,790
But if we say to kilograms of mass for the inertia metrics.

72
00:05:50,610 --> 00:05:50,840
Two.

73
00:05:51,390 --> 00:05:53,550
Two kg for the base link.

74
00:05:53,790 --> 00:05:55,860
Then we need to multiply all of these values.

75
00:05:55,860 --> 00:05:56,400
We do.

76
00:05:57,480 --> 00:06:02,700
So this is the basic workflow for calculating the inertial metrics.

77
00:06:02,700 --> 00:06:10,980
I know it is a little bit hard, but we have to do it when we are designing our custom robots for physical

78
00:06:10,980 --> 00:06:11,580
simulation.

79
00:06:11,580 --> 00:06:13,980
Now, I have done that for you.

80
00:06:14,310 --> 00:06:21,270
All of the values of inertial metrics are selected according to the mass value that I have given.

81
00:06:21,870 --> 00:06:30,600
Everything is selected accordingly, and mass value is specifically taken into consideration after multiplying

82
00:06:30,600 --> 00:06:33,690
the computed inertial metrics.

83
00:06:33,750 --> 00:06:37,020
Now I think it's time to run my sport.

84
00:06:37,590 --> 00:06:43,950
So let's first of all can relate because we have made a lot of changes and run the MI sport.

85
00:06:43,950 --> 00:06:45,030
Let's see what happens.

86
00:06:46,300 --> 00:06:47,740
I'm curious, by the way, like not.

87
00:06:51,170 --> 00:07:00,020
So this time Robert is not flying in the air and it is standing right at the.

88
00:07:01,500 --> 00:07:02,790
Point of origin.

89
00:07:03,030 --> 00:07:10,200
If I view the inertia this time, it is only encapsulating the bodies that are.

90
00:07:11,340 --> 00:07:13,980
Containing that inertial metrics, for example, wheels.

91
00:07:13,980 --> 00:07:20,550
Inertial metrics is just the small box in which the body of the wheel is encapsulated.

92
00:07:20,850 --> 00:07:27,540
The box for the base is not that correct, but still it is reasonable and our robot is not excluding.

93
00:07:28,260 --> 00:07:34,830
Coming to the point of I caster, there is some sort of problem with that, but I think it is working

94
00:07:34,830 --> 00:07:37,710
fine and it might not cause any problem.

95
00:07:38,010 --> 00:07:41,790
The point here is a robot is moving and it should not move.

96
00:07:42,210 --> 00:07:46,970
It is moving for only one reason and that reason is no controllers are currently installed.

97
00:07:48,810 --> 00:07:53,460
Talking about the controllers in the next video, we are going to install the controllers, take a look

98
00:07:53,460 --> 00:07:59,250
how they work and how our robot is going to be taking actions in this simulation.
