1
00:00:09,280 --> 00:00:10,870
This is your rostral fact.

2
00:00:10,870 --> 00:00:17,500
This is your microcontroller that will be controlling to the motors and fetching the data from the sensor.

3
00:00:17,530 --> 00:00:21,100
The micurus will be connecting these two things.

4
00:00:21,130 --> 00:00:25,030
It will connect your microcontroller to the Rostral.

5
00:00:25,390 --> 00:00:29,920
So these are different microcontrollers that Microsoft supports.

6
00:00:30,130 --> 00:00:32,290
We are going to use the esp32.

7
00:00:33,010 --> 00:00:33,850
This one.

8
00:00:35,260 --> 00:00:37,930
So let's see how we can use it.

9
00:00:37,960 --> 00:00:40,720
There's not any mention of Esp32.

10
00:00:41,470 --> 00:00:42,550
Can we use it?

11
00:00:42,850 --> 00:00:44,150
The answer is yes.

12
00:00:44,170 --> 00:00:46,270
Let's say the supported iOS.

13
00:00:48,360 --> 00:00:54,150
Here we can see the bare metal support with the Arduino here.

14
00:00:54,450 --> 00:00:57,150
Micro Ros Arduino repo.

15
00:00:57,840 --> 00:00:59,610
This is our main concern.

16
00:01:02,110 --> 00:01:07,750
Sported boards and here it is, the Esp32 dev board.

17
00:01:07,750 --> 00:01:10,720
And this is exactly the Esp32 dev board.

18
00:01:10,810 --> 00:01:19,810
You can either open your ubuntu softwares and from here you can install and there is another easy method

19
00:01:19,810 --> 00:01:20,290
to install.

20
00:01:20,300 --> 00:01:22,330
Or you know what I will do?

21
00:01:22,450 --> 00:01:26,020
Open the terminal app, install arduino.

22
00:01:29,110 --> 00:01:29,560
Okay.

23
00:01:29,590 --> 00:01:31,690
The Arduino is installed.

24
00:01:32,140 --> 00:01:33,160
Here it is.

25
00:01:37,860 --> 00:01:41,970
We will need to set up Esp32 board on Arduino.

26
00:01:42,150 --> 00:01:43,060
We need to some.

27
00:01:43,080 --> 00:01:46,140
Add some configuration related to the esp32.

28
00:01:51,410 --> 00:01:52,250
From here.

29
00:01:52,250 --> 00:01:57,170
We need to go to the preferences and we need to add a line.

30
00:01:57,950 --> 00:02:02,390
And here we need to add additional board managers URL.

31
00:02:02,420 --> 00:02:10,250
So we will just copy this and go to this preferences.

32
00:02:10,370 --> 00:02:17,390
And one more thing you need to choose the dark theme and here are additional boards.

33
00:02:17,390 --> 00:02:20,570
Manager URL will just paste.

34
00:02:23,250 --> 00:02:23,820
Okay.

35
00:02:26,100 --> 00:02:27,090
Told.

36
00:02:30,020 --> 00:02:31,890
Boards, board manager.

37
00:02:33,120 --> 00:02:36,900
And then we have to search Esp32.

38
00:02:39,970 --> 00:02:42,700
And there are several variables available.

39
00:02:43,090 --> 00:02:52,330
We will open this and it says Arduino code for version 2.02.

40
00:02:52,360 --> 00:02:55,150
So it works best with this.

41
00:02:56,080 --> 00:02:57,760
And I have tested it.

42
00:02:57,770 --> 00:03:00,010
It works with the latest version as well.

43
00:03:00,040 --> 00:03:06,190
But for the sake of not getting into trouble, we will use this variant.

44
00:03:06,310 --> 00:03:07,990
Okay, now we will install.

45
00:03:08,860 --> 00:03:11,530
So the installation is complete.

46
00:03:11,530 --> 00:03:12,700
I will just close.

47
00:03:12,730 --> 00:03:14,330
So let's give it a try.

48
00:03:14,350 --> 00:03:16,780
We are going to connect esp32.

49
00:03:21,870 --> 00:03:25,110
We will select esp32 dev module.

50
00:03:27,690 --> 00:03:31,710
Now we have to add a micro Ros Arduino library.

51
00:03:31,740 --> 00:03:37,710
For that, we will come up here and this is the library that we're going to use.

52
00:03:37,710 --> 00:03:44,250
Make sure that you have the Foxy branch selected here and then downloads it.

53
00:03:47,860 --> 00:03:54,790
So the library is downloaded and it will be in the downloads here to include this library will go to

54
00:03:54,790 --> 00:03:59,860
the sketch and glue library and add a zip library.

55
00:04:03,640 --> 00:04:04,420
Download.

56
00:04:04,420 --> 00:04:05,920
And this is the library.

57
00:04:07,080 --> 00:04:07,710
I'll click.

58
00:04:07,710 --> 00:04:08,220
Okay.

59
00:04:08,220 --> 00:04:10,480
And this library is included.

60
00:04:10,500 --> 00:04:11,460
Examples.

61
00:04:12,420 --> 00:04:12,990
Quarter.

62
00:04:15,610 --> 00:04:17,590
Include your library pieces here.

63
00:04:17,890 --> 00:04:19,570
Micro Ros Arduino.

64
00:04:20,530 --> 00:04:21,500
And Mike.

65
00:04:23,510 --> 00:04:24,320
Publisher.

66
00:04:24,500 --> 00:04:28,070
I'll click here and try to build it.

67
00:04:32,990 --> 00:04:37,760
So now the Micro's first chord, that is a publisher.

68
00:04:37,790 --> 00:04:40,380
It is compiled successfully.

69
00:04:40,400 --> 00:04:44,300
So now we will try to upload on the esp32.

70
00:04:45,130 --> 00:04:50,500
What we will do, we will plug in the esp32 and now we will upload.

71
00:04:52,390 --> 00:04:55,930
It says the error message so the port is not selected.

72
00:04:55,930 --> 00:05:00,700
Let's select the port to dev that is available.

73
00:05:04,320 --> 00:05:04,800
Applaud.

74
00:05:04,800 --> 00:05:05,640
Successful.

75
00:05:05,670 --> 00:05:06,720
Congratulations.

76
00:05:06,720 --> 00:05:10,590
You have your first micro score inside your a32.

77
00:05:10,620 --> 00:05:12,180
Is there any topic created?

78
00:05:12,210 --> 00:05:12,860
No.

79
00:05:12,870 --> 00:05:14,460
We need micrurus.

80
00:05:14,820 --> 00:05:23,880
So the micrurus next esp32 with your ros2 stack so it acts as a bridge that will show all the topics

81
00:05:23,880 --> 00:05:27,870
that are inside the esp32 and allow the communication.

82
00:05:27,870 --> 00:05:31,140
So now let's install Micros agent.

83
00:05:35,630 --> 00:05:38,810
You'll see here we will select Foxy.

84
00:05:40,610 --> 00:05:42,650
Go to your workspace.

85
00:05:44,340 --> 00:05:47,640
As are see and copy here.

86
00:05:49,470 --> 00:05:57,090
Ling could clone ling minus P foxy.

87
00:06:00,440 --> 00:06:01,790
This is downloaded.

88
00:06:01,790 --> 00:06:03,920
And now go one step back.

89
00:06:15,370 --> 00:06:21,370
Could not find the package provided by the Microsoft message configured by the Microsoft research.

90
00:06:21,370 --> 00:06:27,190
So if we have to install all the dependencies for that, we use a command.

91
00:06:27,220 --> 00:06:32,290
This command will be used to install all the dependencies.

92
00:06:35,350 --> 00:06:36,380
Michael Ross.

93
00:06:36,430 --> 00:06:37,390
Agent Nate.

94
00:06:42,110 --> 00:06:42,500
Okay.

95
00:06:42,500 --> 00:06:43,700
Now try to build.

96
00:06:44,190 --> 00:06:44,570
Can.

97
00:06:46,870 --> 00:06:47,860
Successfully buried.

98
00:06:48,790 --> 00:06:53,530
So now we have to microdose agent in our workspace as well.

99
00:06:53,560 --> 00:06:54,400
Here it is.

100
00:06:54,400 --> 00:06:58,240
The command was to run microdose agent Microdose agent.

101
00:06:58,240 --> 00:06:58,660
Then the.

102
00:06:59,110 --> 00:06:59,770
Then the port.

103
00:07:03,590 --> 00:07:04,660
And they will return.

104
00:07:04,670 --> 00:07:05,470
Nothing happening.

105
00:07:05,480 --> 00:07:07,280
Well, nothing happening.

106
00:07:08,760 --> 00:07:19,200
So mostly the Esp32 does not connect via UDP protocol, so we will try to connect it via serial and

107
00:07:19,200 --> 00:07:23,430
for that we will just need to change the command a little bit.

108
00:07:29,100 --> 00:07:33,270
And then the board on which our USB is connected.

109
00:07:36,140 --> 00:07:37,160
How do they know that?

110
00:07:37,940 --> 00:07:40,250
Because in here we have selected.

111
00:07:41,040 --> 00:07:45,480
He didn't have to Usb0 We have to mention it here.

112
00:07:46,640 --> 00:07:48,290
And now press the enable button.

113
00:07:53,420 --> 00:07:54,170
And they will go.

114
00:07:54,990 --> 00:08:01,420
We have first to enable button and it has connected with the Esp32.

115
00:08:01,440 --> 00:08:03,600
So you have made the connection.

116
00:08:06,580 --> 00:08:07,590
Congratulation.

117
00:08:07,600 --> 00:08:10,150
This is an achievement to celebrate.

118
00:08:12,590 --> 00:08:13,670
And there we go.

119
00:08:13,850 --> 00:08:18,110
We are seeing the data from Esp32.

120
00:08:18,140 --> 00:08:22,010
The integer is published by the Esp32 board.

121
00:08:22,040 --> 00:08:23,990
It is continuously increasing.

122
00:08:25,770 --> 00:08:26,660
There is a norm.

123
00:08:26,670 --> 00:08:34,350
If you disconnect the esp32, the data transfer is cut off and you will also see this here.

124
00:08:35,280 --> 00:08:36,630
Wording for the connection.
