Once you have a machine with ubuntu 24, we can proceed with the installation of Ros2.
During this course, you can decide which version of Ros2 to use depending on the ubuntu version that
you have installed.
If you are using ubuntu 22, then you will need to install the version number of Ros2.
Otherwise, if you are using ubuntu 24 like in this case, you will need to install Ros2.
Jazzy.
The code that you are going to develop during this course is compatible with both of these Ros2 versions.
In this lesson, as I am on ubuntu 24, I am going to install the version jazzy of Ros2 and you can
find all the commands that I'm going to use in this lesson.
Also in the resources of this lesson as a PDF.
To start the installation process, let's open here the Ros2 jazzy installation page.
So actually this one here that you can simply find also in the resources of this lesson.
And now we can simply copy paste all of these commands here.
So all of these commands that you can find here.
So let's open a new terminal.
Let's put this one on one side.
And let's start with the first one.
So actually this one is only used in order to check the current local.
So we can avoid using it.
And we can start with the second command.
So let's press enter.
And we need to do the same for all the other commands.
So let's take also this one and let's paste it.
Let's take this one here as well.
And finally let's also take this one here.
Perfect.
So with this one we have set the local.
Now let's move on to the next chapter.
So the enable required repositories.
So let's start by copying the first command and let's paste it.
The second command.
Perfect.
Let's press enter as well.
Now we need to install this package here.
So we need to update the system.
And we need to install curl.
And we're going to use this package here.
So car.
In order to download this key here.
So let's paste it.
Perfect.
Now we can also copy this command here.
And let's paste in our terminal.
And now finally we are to the real installation part.
So let's start by installing this one here.
So the Ros developer tools that we are going to use in this course.
So let's take the Ros developer tools.
Let's type the Y.
And now once we have the Ros developer tools, we can move on to the actual installation of all the
Ros two components.
So first let's update our system and let's also upgrade it.
Perfect.
And then we can finally install here the Ros Jazzy desktop version.
So this one here that as you can see here is the recommended one as it already includes some visualization
tools like for example RVs.
It also contains demos, tutorials and as you will see, a lot of useful packages.
So let's copy and let's paste it here.
So let's type again the letter y and let's press enter.
Now this command is going to take a while as our system now is downloading almost 1.5GB of data.
So let's wait for the installation of Ros to.
Once the installation of Ros2 is finished, we can move on to the final part.
So this one here, that is the setup of the environment.
So actually we need to insert this line here.
That is the source of the Jessie installation.
So of the Ros2 Jessie version that we have installed on our system.
And we need to insert this one.
So we need to insert this line here within our bash RC file.
So if you can see here.
There is a bash RC file.
So this one here that is automatically available in your home folder.
And so now we can modify this file here.
And for example we can use nano to access the bashrc file.
So let's modify this file.
And actually we need to go at the end of this file here.
And we simply need to paste this command here.
So the source of the.
Ros chassis installation.
Now let's press Ctrl O to write the file.
So let's press enter.
So now we have saved this file.
And with Ctrl X we can exit.
Perfect.
So now that we have sourced our Ros jazz installation, if we open a new terminal we already can use
the command Ros two.
And so for example let's use for this very short demo the command L.
So let's press enter.
And actually this command just confirms us that ros2 is properly installed in our system.
So actually we can see that we have no errors.
And actually here the Ros to ALP command provided us with a very long list of all the commands that
we can use with their description.
And don't worry if you don't know this command yet, or if you don't understand what they are used for,
we are going to use many of them in the course.