WEBVTT

00:00.050 --> 00:04.820
Let's now install Ros to Jessie on Ubuntu 24.04.

00:04.820 --> 00:10.130
So whether you have a dual boot or virtual machine, once again everything will work the same.

00:10.130 --> 00:16.610
So what you can do is open a terminal here on one side and the web browser on the other side, and just

00:16.610 --> 00:19.580
search for, for example, install Ros to Jessie.

00:19.610 --> 00:23.300
You will get to the documentation page for us to Jessie.

00:23.330 --> 00:23.690
All right.

00:23.720 --> 00:25.250
So make sure it's Ros to Jessie.

00:25.250 --> 00:31.370
And then in the binary packages menu you are going to go with Deb packages with the recommended one

00:31.400 --> 00:31.760
okay.

00:31.790 --> 00:33.650
So Ubuntu Deb packages.

00:33.650 --> 00:36.500
Now you see we have a few instructions.

00:36.500 --> 00:40.370
So I'm going to show you which ones do we need to install.

00:40.370 --> 00:40.940
Ros2.

00:41.300 --> 00:48.440
First of all we need to do a bit of system setup and make sure that we have UTF eight in our locale.

00:48.440 --> 00:50.150
So I'm going to type locale.

00:50.150 --> 00:53.060
And you see we have UTF eight.

00:53.090 --> 00:56.030
If you don't have this you need to run those commands.

00:56.030 --> 00:58.430
And just in case I'm going to do them anyway.

00:58.430 --> 01:00.410
So one command at a time.

01:04.430 --> 01:05.930
So that's going to be quite quick.

01:05.990 --> 01:08.630
and run the first one and then hear the second one.

01:11.180 --> 01:13.190
And then the third one.

01:15.230 --> 01:16.130
Okay.

01:16.190 --> 01:18.320
The fourth one.

01:19.130 --> 01:21.170
And I run local again.

01:21.830 --> 01:23.330
What you see it's the same.

01:23.450 --> 01:25.040
Let's clear that.

01:25.040 --> 01:30.170
And now well, before we install Ros2 we need to add the sources for Ros2.

01:30.200 --> 01:34.970
Because if you try to do a sudo apt install with ros2, it's not going to find it.

01:34.970 --> 01:36.860
So we need to add those sources.

01:36.860 --> 01:39.050
And to do that we are going to run those commands.

01:39.050 --> 01:44.930
So I have five commands to run just in case they update the instructions here because they always do

01:44.960 --> 01:45.470
well.

01:45.500 --> 01:47.330
Refer to the page here.

01:47.330 --> 01:52.250
So if you have more or less instructions, just refer to the page here and run those instructions,

01:52.280 --> 01:55.820
not necessarily the ones that you see here on my screen.

01:55.970 --> 01:57.710
So let's run that.

01:58.730 --> 02:02.000
Let's press enter okay.

02:02.000 --> 02:05.150
So we add the universe repository.

02:05.570 --> 02:06.860
Press enter.

02:08.840 --> 02:12.220
Now we run those comments here.

02:15.310 --> 02:17.170
Okay, I run that one.

02:17.440 --> 02:18.700
That's going to be quite quick.

02:18.700 --> 02:20.380
And then this one too.

02:20.410 --> 02:23.920
So make sure you copy the whole thing and copy and paste.

02:25.450 --> 02:26.260
And just a quick tip.

02:26.260 --> 02:32.530
If you didn't know that you can just select something with the mouse and then do the mouse click to

02:32.560 --> 02:34.480
copy and paste it in the terminal.

02:34.480 --> 02:35.440
That's what I'm doing here.

02:35.440 --> 02:37.000
So now we have the sources.

02:37.000 --> 02:41.590
And you can see before we install Ros2 we can also install the development tools.

02:41.590 --> 02:42.910
So those are optionals.

02:42.910 --> 02:48.370
But because we are going to develop with Ros2 we are going to also install those development tools.

02:48.370 --> 02:54.400
So you can run that and install the you can see the package is Ros dev tools.

02:58.780 --> 03:02.260
And once you have this we can install Ros two.

03:02.260 --> 03:07.270
And they ask you actually to update and upgrade all your packages before you do this.

03:07.270 --> 03:10.030
So let's do another update here.

03:10.030 --> 03:13.210
Even if we run this command quite a few times already.

03:14.950 --> 03:21.700
And you can see now when you do a sudo apt update, actually, you can see that we have in our sources

03:21.700 --> 03:27.280
here we have something like packages.ros.org/ros two.

03:27.370 --> 03:31.540
So if you have this it means that you correctly added the sources for Ros two.

03:31.540 --> 03:33.820
And now you will be able to find Ros two.

03:33.850 --> 03:37.930
You can see also I have 25 packages that need to be upgraded.

03:37.930 --> 03:43.390
So I'm going to run a sudo apt upgrade to upgrade everything.

03:45.250 --> 03:45.640
All right.

03:45.670 --> 03:50.230
And now that all the packages are up to date we can install Ros two.

03:50.260 --> 03:53.800
And you can see here we have two options.

03:53.800 --> 03:55.870
We can install the desktop.

03:55.870 --> 03:59.110
So the desktop install or the Ros base.

03:59.140 --> 04:01.150
What's the difference between those.

04:01.180 --> 04:06.790
Well the raw space you can see here Ros jazzy dash Ros base.

04:06.790 --> 04:09.220
This corresponds to the bare bones.

04:09.220 --> 04:12.670
So this is the minimal thing you need to run Ros two.

04:12.700 --> 04:13.090
Okay.

04:13.120 --> 04:15.670
Just the minimum thing with no graphical tools.

04:15.670 --> 04:21.950
If you were to install Ros two on a limited computer for example on a Raspberry Pi, That would make

04:21.950 --> 04:24.260
sense now with the desktop installed.

04:24.260 --> 04:29.780
So with Ross Dash jazzy Dash desktop you have everything in the Ross base.

04:29.780 --> 04:35.780
So all of those packages here, you have everything in the Rose base, plus additional graphical tools

04:35.780 --> 04:40.310
and demos and tutorials, etc. so stuff that we are going to use in this course.

04:40.310 --> 04:46.880
So we are not going to run that we are going to run the desktop install and as you will see, that is

04:46.880 --> 04:50.510
going to be a lot of packages.

04:50.510 --> 04:54.260
So in my case it's more than 600 packages okay.

04:54.290 --> 05:00.320
And you can see that Ross you see we have a lot of Ross Jazzy packages because Ross is a collection

05:00.320 --> 05:02.090
of packages.

05:02.120 --> 05:02.570
All right.

05:02.570 --> 05:08.630
So when you install the desktop package is actually going to install all those packages for you.

05:08.630 --> 05:10.550
So here you just press yes.

05:10.550 --> 05:16.340
And what that's going to take some time depending on your internet connection speed and also the performance

05:16.340 --> 05:17.540
of your computer.

05:17.960 --> 05:18.380
Okay.

05:18.410 --> 05:20.600
And now all the packages are updated.

05:20.600 --> 05:23.000
So it took between 5 and 10 minutes for me.

05:23.000 --> 05:24.620
So that's quite long the first time.

05:24.620 --> 05:30.020
But then when you update the packages again is going to be much shorter, and I encourage you to do

05:30.020 --> 05:37.970
a sudo apt update and a sudo apt upgrade quite often, okay, because usually you have a package update

05:37.970 --> 05:43.190
every month for ros2 and you can see I still have packages to upgrade.

05:44.450 --> 05:50.990
So just in case, if you still have packages to upgrade and they are not upgraded, you can just do

05:50.990 --> 05:51.800
that manually.

05:51.800 --> 05:56.000
So you provide the name like that okay.

05:57.080 --> 05:58.700
And that one.

06:02.600 --> 06:03.200
All right.

06:03.200 --> 06:04.610
And one last thing.

06:04.610 --> 06:10.220
You see that we could also remove some other packages that are no longer required.

06:10.220 --> 06:14.330
So sudo apt autoremove.

06:15.410 --> 06:16.280
Yes.

06:18.950 --> 06:19.550
Great.

06:19.550 --> 06:24.620
So now if I do a sudo apt upgrade again.

06:25.790 --> 06:30.110
Now you can see everything is up to date on my system.

06:30.110 --> 06:32.270
And that's it for the ros2 installation.
