WEBVTT

00:00.140 --> 00:06.500
Once you have a machine with ubuntu 24, we can proceed with the installation of Ros2.

00:06.890 --> 00:13.370
During this course, you can decide which version of Ros2 to use depending on the ubuntu version that

00:13.370 --> 00:14.390
you have installed.

00:14.420 --> 00:21.530
If you are using ubuntu 22, then you will need to install the version number of Ros2.

00:21.560 --> 00:28.670
Otherwise, if you are using ubuntu 24 like in this case, you will need to install Ros2.

00:28.700 --> 00:29.240
Jazzy.

00:29.720 --> 00:36.980
The code that you are going to develop during this course is compatible with both of these Ros2 versions.

00:37.010 --> 00:44.630
In this lesson, as I am on ubuntu 24, I am going to install the version jazzy of Ros2 and you can

00:44.630 --> 00:47.660
find all the commands that I'm going to use in this lesson.

00:47.660 --> 00:51.230
Also in the resources of this lesson as a PDF.

00:51.530 --> 00:58.640
To start the installation process, let's open here the Ros2 jazzy installation page.

00:58.640 --> 01:04.960
So actually this one here that you can simply find also in the resources of this lesson.

01:04.960 --> 01:09.220
And now we can simply copy paste all of these commands here.

01:09.220 --> 01:12.790
So all of these commands that you can find here.

01:12.790 --> 01:15.010
So let's open a new terminal.

01:15.130 --> 01:17.080
Let's put this one on one side.

01:17.080 --> 01:19.270
And let's start with the first one.

01:19.270 --> 01:24.310
So actually this one is only used in order to check the current local.

01:24.310 --> 01:26.380
So we can avoid using it.

01:26.380 --> 01:29.740
And we can start with the second command.

01:29.740 --> 01:31.690
So let's press enter.

01:34.660 --> 01:37.720
And we need to do the same for all the other commands.

01:37.720 --> 01:41.500
So let's take also this one and let's paste it.

01:42.100 --> 01:45.220
Let's take this one here as well.

01:46.210 --> 01:50.800
And finally let's also take this one here.

01:50.800 --> 01:51.430
Perfect.

01:51.430 --> 01:54.520
So with this one we have set the local.

01:54.550 --> 01:57.910
Now let's move on to the next chapter.

01:57.910 --> 02:00.670
So the enable required repositories.

02:00.670 --> 02:05.160
So let's start by copying the first command and let's paste it.

02:05.610 --> 02:07.320
The second command.

02:08.190 --> 02:08.970
Perfect.

02:09.000 --> 02:10.650
Let's press enter as well.

02:12.600 --> 02:15.060
Now we need to install this package here.

02:15.240 --> 02:17.340
So we need to update the system.

02:17.340 --> 02:19.470
And we need to install curl.

02:19.560 --> 02:22.140
And we're going to use this package here.

02:22.140 --> 02:22.890
So car.

02:22.980 --> 02:26.490
In order to download this key here.

02:26.520 --> 02:27.840
So let's paste it.

02:27.840 --> 02:28.710
Perfect.

02:28.740 --> 02:32.430
Now we can also copy this command here.

02:33.120 --> 02:35.250
And let's paste in our terminal.

02:35.280 --> 02:39.030
And now finally we are to the real installation part.

02:39.030 --> 02:41.460
So let's start by installing this one here.

02:41.460 --> 02:46.110
So the Ros developer tools that we are going to use in this course.

02:46.110 --> 02:49.080
So let's take the Ros developer tools.

02:52.380 --> 02:54.420
Let's type the Y.

03:02.600 --> 03:08.840
And now once we have the Ros developer tools, we can move on to the actual installation of all the

03:08.840 --> 03:10.040
Ros two components.

03:10.040 --> 03:16.730
So first let's update our system and let's also upgrade it.

03:19.130 --> 03:19.850
Perfect.

03:19.850 --> 03:25.430
And then we can finally install here the Ros Jazzy desktop version.

03:25.430 --> 03:31.790
So this one here that as you can see here is the recommended one as it already includes some visualization

03:31.790 --> 03:33.950
tools like for example RVs.

03:33.950 --> 03:39.470
It also contains demos, tutorials and as you will see, a lot of useful packages.

03:39.530 --> 03:42.560
So let's copy and let's paste it here.

03:42.560 --> 03:46.310
So let's type again the letter y and let's press enter.

03:46.340 --> 03:53.480
Now this command is going to take a while as our system now is downloading almost 1.5GB of data.

03:53.480 --> 03:56.420
So let's wait for the installation of Ros to.

04:06.990 --> 04:11.610
Once the installation of Ros2 is finished, we can move on to the final part.

04:11.640 --> 04:15.030
So this one here, that is the setup of the environment.

04:15.030 --> 04:18.480
So actually we need to insert this line here.

04:18.510 --> 04:22.200
That is the source of the Jessie installation.

04:22.200 --> 04:26.250
So of the Ros2 Jessie version that we have installed on our system.

04:26.250 --> 04:27.810
And we need to insert this one.

04:27.810 --> 04:32.610
So we need to insert this line here within our bash RC file.

04:32.610 --> 04:34.860
So if you can see here.

04:36.990 --> 04:40.260
There is a bash RC file.

04:40.260 --> 04:45.390
So this one here that is automatically available in your home folder.

04:45.390 --> 04:48.690
And so now we can modify this file here.

04:48.720 --> 04:55.830
And for example we can use nano to access the bashrc file.

04:55.830 --> 04:57.330
So let's modify this file.

04:57.330 --> 05:01.950
And actually we need to go at the end of this file here.

05:01.950 --> 05:05.000
And we simply need to paste this command here.

05:05.000 --> 05:06.710
So the source of the.

05:06.740 --> 05:08.720
Ros chassis installation.

05:08.720 --> 05:12.380
Now let's press Ctrl O to write the file.

05:12.380 --> 05:13.850
So let's press enter.

05:13.850 --> 05:16.130
So now we have saved this file.

05:16.130 --> 05:19.010
And with Ctrl X we can exit.

05:19.010 --> 05:19.760
Perfect.

05:19.760 --> 05:26.390
So now that we have sourced our Ros jazz installation, if we open a new terminal we already can use

05:26.390 --> 05:28.520
the command Ros two.

05:28.790 --> 05:33.560
And so for example let's use for this very short demo the command L.

05:33.560 --> 05:34.970
So let's press enter.

05:34.970 --> 05:40.670
And actually this command just confirms us that ros2 is properly installed in our system.

05:40.670 --> 05:43.910
So actually we can see that we have no errors.

05:43.910 --> 05:51.470
And actually here the Ros to ALP command provided us with a very long list of all the commands that

05:51.470 --> 05:53.570
we can use with their description.

05:53.570 --> 05:59.210
And don't worry if you don't know this command yet, or if you don't understand what they are used for,

05:59.210 --> 06:02.210
we are going to use many of them in the course.
