WEBVTT

00:00.140 --> 00:07.700
If you decide to install ubuntu 22 on your PC, we can proceed to the installation of the version amble

00:07.730 --> 00:10.010
over Austria during this course.

00:10.010 --> 00:16.010
In fact, you can decide which version of Ros2 to use depending on the ubuntu version.

00:16.010 --> 00:22.160
If you are using ubuntu 22, then you need to install the version that is called Amble of Ros2.

00:22.190 --> 00:29.660
Otherwise, if you prefer using ubuntu 24 then you will need to install the version jazzy of Ros2.

00:29.720 --> 00:35.570
Either way, the code that we will be developing during this course is compatible with both of them.

00:35.990 --> 00:43.280
In this lesson, I'm going to install the version amble of Ros2 as now I am on ubuntu 22.

00:43.280 --> 00:49.100
And also you can find all the commands that I'm going to use in this lesson in a PDF attached to this

00:49.100 --> 00:49.790
lesson.

00:50.780 --> 00:57.860
The installation procedure of Ros2 is very simple, and you simply need to copy paste all the commands

00:57.860 --> 01:03.080
that you can find here at this link that you can also find in the resources of this lesson.

01:03.080 --> 01:07.490
So here actually all of these are the commands that we need to use.

01:07.490 --> 01:09.680
So let's open a new terminal.

01:10.130 --> 01:12.260
Let's place it on this side.

01:12.260 --> 01:16.340
And now let's start copy pasting simply all the commands that we have here.

01:16.340 --> 01:19.640
So let's start with the setting of the local.

01:19.640 --> 01:23.120
So let's copy this command here.

01:25.550 --> 01:31.430
Actually we can ignore the first one as this one only checks for the UTF eight.

01:31.460 --> 01:36.620
Now let's also copy this second command.

01:37.280 --> 01:38.090
Perfect.

01:38.090 --> 01:40.070
And so let's continue like this.

01:40.070 --> 01:44.030
So let's copy also this command.

01:44.030 --> 01:46.760
And also the last one for this section.

01:46.760 --> 01:47.600
Perfect.

01:47.630 --> 01:49.970
Now let's move on to the next section.

01:49.970 --> 01:53.030
That instead is about setting up the sources.

01:53.030 --> 01:55.910
So let's start with the first command.

01:55.910 --> 01:57.980
As always let's paste it.

01:58.010 --> 02:00.470
Then the second command.

02:02.450 --> 02:03.050
Perfect.

02:03.050 --> 02:04.520
So let's press enter.

02:07.640 --> 02:10.520
Now let's move on to the installation of Carl.

02:10.550 --> 02:13.550
So let's copy this one and let's paste it.

02:15.440 --> 02:15.980
Okay.

02:15.980 --> 02:17.750
And now we can use Carl.

02:17.780 --> 02:23.030
So this one here in order to download and set the Ros2 keys.

02:23.060 --> 02:23.930
Perfect.

02:23.930 --> 02:27.050
So we are here so we can copy also this command here.

02:27.050 --> 02:28.940
And we can paste it.

02:28.970 --> 02:31.700
And so now we have set up everything.

02:31.700 --> 02:35.180
So we are ready to install finally the Ros2 packages.

02:35.180 --> 02:38.060
So first we need to update our system.

02:38.270 --> 02:40.040
So let's update it.

02:42.710 --> 02:44.960
Then we also need to upgrade it.

02:45.470 --> 02:48.770
So let's take this one and let's paste it.

02:50.930 --> 02:51.770
Perfect.

02:51.770 --> 02:55.220
And now we can finally install Ros2 humble.

02:55.220 --> 03:01.200
So here we can install the recommended version that is the desktop version that already contains some

03:01.200 --> 03:04.650
very useful packages, such as, for example, RVs.

03:04.680 --> 03:09.780
It contains also some demos and some tutorials that we are going to use during this course.

03:09.780 --> 03:12.780
So let's copy this command and let's paste it.

03:12.780 --> 03:16.770
So this will install a lot of packages as you can see.

03:16.770 --> 03:20.220
So let's wait for the installation of Ros2 to complete.

03:27.900 --> 03:32.790
Once the installation of Ros2 the Humble Desktop version.

03:32.790 --> 03:37.590
So this one here is completed, we can move on to install also this one here.

03:37.590 --> 03:38.940
So this is very important.

03:38.940 --> 03:41.820
So let's copy this command here and let's paste it.

03:41.850 --> 03:45.780
As with this command we are installing the Ros developer tools.

03:45.780 --> 03:46.890
So this one here.

03:46.890 --> 03:52.920
And as we are becoming Ros developers we are going to need many of the tools that are here within this

03:52.920 --> 03:53.700
package.

03:57.390 --> 03:58.260
Perfect.

03:58.260 --> 04:04.320
And as the last step we can see here for the installation is the environmental setup.

04:04.320 --> 04:08.370
So actually we need to set up our Ros2 installation.

04:08.370 --> 04:14.070
So as you can see here our Ros2 is being installed within this directory here.

04:14.070 --> 04:16.470
So in opt Ros amber.

04:16.500 --> 04:19.890
And so actually we can just copy this command here.

04:19.890 --> 04:25.590
And in order to automatically source the Ros2 installation, every time we open a new terminal, we

04:25.590 --> 04:30.720
can insert this line here within a file that is called bash RC.

04:31.260 --> 04:37.950
So if in fact we get the list of all the files that are now in the home directory, we can see that

04:37.950 --> 04:41.130
it exists a file that is called bash RC.

04:41.130 --> 04:45.210
So let's modify this file for example with nano.

04:46.770 --> 04:49.890
So let's modify it the bash RC.

04:50.040 --> 04:52.770
And actually we can go at the end of this file.

04:53.190 --> 04:53.880
Perfect.

04:53.880 --> 04:57.240
So here we just need to paste this command here.

04:57.240 --> 04:59.400
So the one that we have just copied.

04:59.400 --> 05:03.960
So now let's press Ctrl o in order to save these changes.

05:03.960 --> 05:08.400
So let's press enter and then Ctrl X simply in order to exit.

05:08.400 --> 05:09.150
Perfect.

05:09.150 --> 05:14.640
So now if we open a new terminal we should be able to use the Ros2 command.

05:14.880 --> 05:18.870
And so if we use for example the flag minus L perfect.

05:18.870 --> 05:24.210
So now we have the confirmation that actually the ros2 is correctly installed in our PC.

05:24.240 --> 05:30.180
And also we can see that this command here returned a very long list of commands.

05:30.180 --> 05:32.700
So all of these are ros2 commands.

05:32.700 --> 05:34.560
So as you can see here.

05:34.560 --> 05:40.110
And don't worry if for the moment you don't know this command yet or you don't understand the output

05:40.110 --> 05:44.130
of this command, as we are going to use many of these commands here.

05:44.130 --> 05:50.190
So we are going to use many of these ros2 tools in the following reasons Rthy.
