1
00:00:00,480 --> 00:00:05,370
You might be confused at how a robot is going to move on the topic command velocity.

2
00:00:05,550 --> 00:00:08,880
This is going to be the thing we are going to add this into.

3
00:00:08,910 --> 00:00:12,800
Are you idea of the robot in this portion?

4
00:00:12,810 --> 00:00:15,240
And here we had a lot of links and joint.

5
00:00:15,510 --> 00:00:17,430
So it is going to be added at this point.

6
00:00:17,790 --> 00:00:18,690
What does it say?

7
00:00:18,900 --> 00:00:27,660
It is a gazebo library, lib gazebo of differential type and it is working on command topic.

8
00:00:27,660 --> 00:00:32,730
This it produces auto command velocities to main it after command velocity.

9
00:00:32,730 --> 00:00:41,340
The important point here is it requires left and right wheel joints to make the robot move.

10
00:00:41,340 --> 00:00:48,990
It requires the left and right joint of RV as it is a differential type to read robot and the wheel

11
00:00:48,990 --> 00:00:52,110
separation and the wheel diameter is made accordingly.

12
00:00:52,110 --> 00:00:57,750
It is not exactly what it is written here, so it is going to take the joint, the distance between

13
00:00:57,750 --> 00:01:02,280
the two wheels and it is going to make our God move.

14
00:01:02,880 --> 00:01:05,550
Let's start adding powerful things into our robot.

15
00:01:06,150 --> 00:01:11,540
The first thing that we talked about is this differential drive.

16
00:01:11,560 --> 00:01:14,520
Plugging this plug in is very powerful.

17
00:01:14,520 --> 00:01:20,590
We don't need to do certain settings and all of that stuff, just we need to perform one small test

18
00:01:20,700 --> 00:01:28,410
and that is provide left and right joint, then the wheel separation and the diameter and that's it.

19
00:01:29,040 --> 00:01:32,130
This is the only thing that we need to do for our plug in.

20
00:01:32,610 --> 00:01:34,920
So I have added it.

21
00:01:34,920 --> 00:01:38,280
Now let's call you can in and see how does it works.

22
00:01:39,270 --> 00:01:40,740
I am going to launch this.

23
00:01:43,010 --> 00:01:44,060
And let's see.

24
00:01:44,100 --> 00:01:45,230
Let's see what happens.

25
00:01:47,270 --> 00:01:52,800
So this is a robot and now you can see it is not moving from place.

26
00:01:52,850 --> 00:01:55,340
Previously it was moving from its place.

27
00:01:55,580 --> 00:01:57,800
For one reason, the controller was not installed.

28
00:01:57,830 --> 00:02:05,630
I'm going to open up a new terminal control shift and I'm going to run a node which is very popular

29
00:02:06,110 --> 00:02:08,240
daily of keyboard package.

30
00:02:08,660 --> 00:02:13,010
And that contains a keyboard related command velocity interface.

31
00:02:13,370 --> 00:02:18,240
And if you have taken my basic courses, I have explained this in great detail.

32
00:02:18,620 --> 00:02:20,930
So I'm not going into any detail right now.

33
00:02:21,530 --> 00:02:25,040
This is going to make the robot drive on the topic of velocity.

34
00:02:25,040 --> 00:02:25,910
Let's drive it.

35
00:02:25,910 --> 00:02:31,630
It says eject and to try pressing AI and the robot starts to move.

36
00:02:31,640 --> 00:02:33,230
If I make it, turn on the left.

37
00:02:34,350 --> 00:02:41,130
And you can see it is moving, the left wing is turning backwards and the right wing would be turning

38
00:02:41,370 --> 00:02:43,740
forward because it is a defensive strike over.

39
00:02:43,770 --> 00:02:46,170
Let's make it come to this point.

40
00:02:47,650 --> 00:02:49,750
And let's move it forward.

41
00:02:50,170 --> 00:02:59,260
So arrival is going to now move backwards as I am going to spin it to the right.

42
00:02:59,680 --> 00:03:02,020
So our plugin is working very fine.

43
00:03:02,150 --> 00:03:05,180
Next stop the robot and add some colors to the robot.

44
00:03:05,200 --> 00:03:08,440
I have written the code to add colors to this robot.

45
00:03:08,680 --> 00:03:10,570
And I'll explain you what they are doing.

46
00:03:11,510 --> 00:03:11,870
For.

47
00:03:12,820 --> 00:03:18,910
Our simulation, we were able to provide colors with the help of this material deck inside of visual

48
00:03:19,270 --> 00:03:19,720
link.

49
00:03:20,170 --> 00:03:28,900
But to give colors in the gazebo simulation, we need to specify a gazebo reference to the link, or

50
00:03:29,020 --> 00:03:34,390
we can add this with zero material inside of the link definition, but we have not done that.

51
00:03:34,660 --> 00:03:37,120
So material is gazebo black.

52
00:03:37,120 --> 00:03:44,800
These are basic predefined visible colors and I have provided them to the base cluster to be white.

53
00:03:45,370 --> 00:03:47,590
We'll write should be these.

54
00:03:47,590 --> 00:03:53,140
Let's say they are going to be orange, they are going to look a little bit cartoonish.

55
00:03:53,140 --> 00:03:55,420
But let's take a look how they're going to look.

56
00:03:55,930 --> 00:03:57,880
Stop this and stop this one as well.

57
00:03:59,520 --> 00:04:02,760
In the process and kill all available servers.

58
00:04:02,760 --> 00:04:04,110
They cause a lot of problems.

59
00:04:04,170 --> 00:04:05,430
They are not properly.

60
00:04:08,170 --> 00:04:10,600
So I can build has been done.

61
00:04:10,990 --> 00:04:15,730
Let's turn on simulation with the robot and controllers installed.

62
00:04:16,210 --> 00:04:17,050
Let's take a look.

63
00:04:18,580 --> 00:04:22,810
I don't know why it is still white, not orange.

64
00:04:25,010 --> 00:04:25,670
I don't know.

65
00:04:27,050 --> 00:04:27,890
It should be.

66
00:04:29,970 --> 00:04:33,630
Maybe orange is not available, but that is not possible.

67
00:04:35,140 --> 00:04:38,350
The right link is the name of the link.

68
00:04:38,800 --> 00:04:39,250
Correct.

69
00:04:39,700 --> 00:04:41,830
Name of the link is wrong.

70
00:04:41,860 --> 00:04:43,510
It's just the right.

71
00:04:45,510 --> 00:04:47,220
And only the left.

72
00:04:49,760 --> 00:04:54,220
I thought that the killer was having any sort of problems or skillet.

73
00:04:57,310 --> 00:05:01,040
All easy server and they are not killed.

74
00:05:01,340 --> 00:05:03,380
So I have to perform exert.

75
00:05:05,490 --> 00:05:06,810
It's opened up a new terminal.

76
00:05:08,020 --> 00:05:09,820
What is this whole mess that.

77
00:05:11,910 --> 00:05:12,300
Okay.

78
00:05:12,570 --> 00:05:16,320
So you've got planning and golf can build.

79
00:05:20,110 --> 00:05:22,630
US to launch May's board is equal.

80
00:05:22,810 --> 00:05:27,130
Pressing DAB is just writing first letter and pressing David automatically.

81
00:05:27,610 --> 00:05:29,380
Let's run it and see what happens.

82
00:05:32,570 --> 00:05:34,670
Is a robot looking a little better?

83
00:05:34,700 --> 00:05:37,120
Yes, it is orange and black.

84
00:05:37,130 --> 00:05:45,140
This nice rose to run your keyboard and your first keyboard is.

85
00:05:45,140 --> 00:05:49,520
The fact is the note, your wrist keyboard is the package.

86
00:05:49,520 --> 00:05:52,190
So to enable inertia, do we need it?

87
00:05:52,200 --> 00:05:53,600
No, I think we don't need it.

88
00:05:53,780 --> 00:05:54,980
What we need is.

89
00:05:57,150 --> 00:05:57,780
Joints.

90
00:05:57,810 --> 00:05:58,470
Can we see them?

91
00:05:59,470 --> 00:06:06,940
We are unable to enable inertia so we can see the motion of our at joints.

92
00:06:07,210 --> 00:06:10,150
We have to keep this window active to drive the robot.

93
00:06:10,160 --> 00:06:13,030
Let me think it and then get to this point.

94
00:06:13,410 --> 00:06:14,970
Let's start driving it now.

95
00:06:15,580 --> 00:06:19,400
I am going to drive it and it is working fine.

96
00:06:19,420 --> 00:06:26,740
We can see the motion on turning is opposite for both of the wheels and the cost of it is showing some

97
00:06:26,740 --> 00:06:28,900
sort of problem that is repeating a lot.

98
00:06:29,200 --> 00:06:31,120
Some friction coefficient problems.

99
00:06:31,390 --> 00:06:36,910
If I had ordered in the opposite direction the big views rotating in the opposite directions.

100
00:06:37,330 --> 00:06:40,860
Caster wheel is rotating a lot, but the robot is not taking time.

101
00:06:40,870 --> 00:06:46,840
We have to fix the friction better make it of our cost will to fix this problem.

102
00:06:47,140 --> 00:06:50,850
As you can see, it is still rotating, causing a lot of problems.

103
00:06:51,160 --> 00:06:54,460
So I will fix it on the let you know the proper values.

104
00:06:56,230 --> 00:06:57,310
I tell you what they give.

105
00:06:59,440 --> 00:07:05,190
So I will think about what proper frictional values for this cost of it should be, and I will take

106
00:07:05,200 --> 00:07:06,130
them into this fold.

107
00:07:06,550 --> 00:07:07,570
So here you go.

108
00:07:07,600 --> 00:07:15,790
You now understand the basic inertial collision and visual effects of ideas and their importance, including

109
00:07:15,790 --> 00:07:16,500
this device.

110
00:07:16,720 --> 00:07:17,890
A robot is ready.

111
00:07:18,160 --> 00:07:21,040
Now we are going to shift towards creating order.

112
00:07:22,640 --> 00:07:23,150
Ms..

113
00:07:23,420 --> 00:07:25,100
Invest, we will bring this rule of law.

114
00:07:25,430 --> 00:07:26,240
So let's take a look.
