Let's now install Ros to Jessie on Ubuntu 24.04.
So whether you have a dual boot or virtual machine, once again everything will work the same.
So what you can do is open a terminal here on one side and the web browser on the other side, and just
search for, for example, install Ros to Jessie.
You will get to the documentation page for us to Jessie.
All right.
So make sure it's Ros to Jessie.
And then in the binary packages menu you are going to go with Deb packages with the recommended one
okay.
So Ubuntu Deb packages.
Now you see we have a few instructions.
So I'm going to show you which ones do we need to install.
Ros2.
First of all we need to do a bit of system setup and make sure that we have UTF eight in our locale.
So I'm going to type locale.
And you see we have UTF eight.
If you don't have this you need to run those commands.
And just in case I'm going to do them anyway.
So one command at a time.
So that's going to be quite quick.
and run the first one and then hear the second one.
And then the third one.
Okay.
The fourth one.
And I run local again.
What you see it's the same.
Let's clear that.
And now well, before we install Ros2 we need to add the sources for Ros2.
Because if you try to do a sudo apt install with ros2, it's not going to find it.
So we need to add those sources.
And to do that we are going to run those commands.
So I have five commands to run just in case they update the instructions here because they always do
well.
Refer to the page here.
So if you have more or less instructions, just refer to the page here and run those instructions,
not necessarily the ones that you see here on my screen.
So let's run that.
Let's press enter okay.
So we add the universe repository.
Press enter.
Now we run those comments here.
Okay, I run that one.
That's going to be quite quick.
And then this one too.
So make sure you copy the whole thing and copy and paste.
And just a quick tip.
If you didn't know that you can just select something with the mouse and then do the mouse click to
copy and paste it in the terminal.
That's what I'm doing here.
So now we have the sources.
And you can see before we install Ros2 we can also install the development tools.
So those are optionals.
But because we are going to develop with Ros2 we are going to also install those development tools.
So you can run that and install the you can see the package is Ros dev tools.
And once you have this we can install Ros two.
And they ask you actually to update and upgrade all your packages before you do this.
So let's do another update here.
Even if we run this command quite a few times already.
And you can see now when you do a sudo apt update, actually, you can see that we have in our sources
here we have something like packages.ros.org/ros two.
So if you have this it means that you correctly added the sources for Ros two.
And now you will be able to find Ros two.
You can see also I have 25 packages that need to be upgraded.
So I'm going to run a sudo apt upgrade to upgrade everything.
All right.
And now that all the packages are up to date we can install Ros two.
And you can see here we have two options.
We can install the desktop.
So the desktop install or the Ros base.
What's the difference between those.
Well the raw space you can see here Ros jazzy dash Ros base.
This corresponds to the bare bones.
So this is the minimal thing you need to run Ros two.
Okay.
Just the minimum thing with no graphical tools.
If you were to install Ros two on a limited computer for example on a Raspberry Pi, That would make
sense now with the desktop installed.
So with Ross Dash jazzy Dash desktop you have everything in the Ross base.
So all of those packages here, you have everything in the Rose base, plus additional graphical tools
and demos and tutorials, etc. so stuff that we are going to use in this course.
So we are not going to run that we are going to run the desktop install and as you will see, that is
going to be a lot of packages.
So in my case it's more than 600 packages okay.
And you can see that Ross you see we have a lot of Ross Jazzy packages because Ross is a collection
of packages.
All right.
So when you install the desktop package is actually going to install all those packages for you.
So here you just press yes.
And what that's going to take some time depending on your internet connection speed and also the performance
of your computer.
Okay.
And now all the packages are updated.
So it took between 5 and 10 minutes for me.
So that's quite long the first time.
But then when you update the packages again is going to be much shorter, and I encourage you to do
a sudo apt update and a sudo apt upgrade quite often, okay, because usually you have a package update
every month for ros2 and you can see I still have packages to upgrade.
So just in case, if you still have packages to upgrade and they are not upgraded, you can just do
that manually.
So you provide the name like that okay.
And that one.
All right.
And one last thing.
You see that we could also remove some other packages that are no longer required.
So sudo apt autoremove.
Yes.
Great.
So now if I do a sudo apt upgrade again.
Now you can see everything is up to date on my system.
And that's it for the ros2 installation.