WEBVTT

00:00.080 --> 00:05.960
So now you have ubuntu installed on your computer, either with a dual boot or a virtual machine.

00:05.960 --> 00:11.870
And in this lesson, I'm going to show you which tools and ideas are used to program with Ros on ubuntu.

00:11.900 --> 00:14.120
In the end, you use whatever you prefer.

00:14.120 --> 00:19.190
But I just wanted to make this video so that at least you understand what I'm doing in the course.

00:19.190 --> 00:23.990
And if you don't have any preferred IDE, then you can follow those instructions.

00:23.990 --> 00:26.540
And let's start with the terminal tools.

00:26.540 --> 00:28.550
So I'm going to use a terminal of course.

00:28.580 --> 00:36.650
Well this you should know how to open it and use it just in case you have it here in the apps or using

00:36.650 --> 00:38.120
the windows or the command key.

00:38.120 --> 00:44.540
And you just type terminal and you can find it, then I'm going to use a tool which is called Terminator.

00:44.540 --> 00:49.580
And why this is because I can easily split this into multiple terminals.

00:49.580 --> 00:57.530
So to install it you can do sudo apt install terminator in a terminal.

00:58.580 --> 01:04.710
So of course I already have it but you can install it like that, then this is great because, for example,

01:04.740 --> 01:12.150
here I can split this terminal into two terminals horizontally with Ctrl shift and O, and then if I

01:12.180 --> 01:18.720
click on one terminal, I can also split it again horizontally or even vertically with Ctrl shift and

01:18.750 --> 01:19.110
E.

01:19.200 --> 01:22.080
So for example I do that here and I do that here.

01:22.080 --> 01:25.110
This is a common setup I'm going to use in this course.

01:25.110 --> 01:27.900
So now you can see I have four terminals.

01:28.290 --> 01:35.820
You can zoom in one terminal with Ctrl shift and X and then Ctrl shift and X to go back to seeing all

01:35.820 --> 01:39.270
terminals and to exit one terminal for example that one.

01:39.270 --> 01:45.900
So you select it and you can do Ctrl shift and W you can see this terminal is now closed.

01:46.230 --> 01:48.870
So those are the few shortcuts I'm going to use.

01:48.870 --> 01:53.310
I'm not using a lot of them but you can find all of them of course on internet.

01:53.310 --> 01:54.870
So it's very easy to find.

01:54.870 --> 01:56.640
You just type Terminator.

01:56.670 --> 01:57.840
Keyboard shortcuts.

01:57.840 --> 02:03.970
And for example, here I just found a random GitHub page with all the shortcuts you can use.

02:04.600 --> 02:04.930
Great.

02:04.930 --> 02:09.910
So I'm going to use the terminator with multiple terminals and sometimes also just the terminal like

02:09.910 --> 02:10.540
this.

02:10.570 --> 02:11.050
Okay.

02:11.080 --> 02:12.310
It's going to be the same.

02:12.310 --> 02:16.030
Now to write code I'm going to use VS code.

02:16.030 --> 02:17.200
So why vs code.

02:17.200 --> 02:19.780
Because it just works well for what we want to do.

02:19.780 --> 02:23.260
And it also has nice support for Ros.

02:23.260 --> 02:27.010
So to install it in ubuntu you can use snap.

02:27.010 --> 02:37.900
So we are going to do sudo snap install and then code like that followed by dash dash classic.

02:38.650 --> 02:43.450
But the password and it's already installed for me.

02:43.480 --> 02:47.920
Of course I've done it previously but for you it's going to download it and install it.

02:47.920 --> 02:49.210
Then how to start it.

02:49.240 --> 02:54.400
Well you can start it from the terminal using code directly or also from the applications.

02:54.400 --> 02:59.590
Here you type code or vs code and you will find it here.

03:01.090 --> 03:03.070
So let's put it full screen.

03:04.720 --> 03:12.620
And what I'm going to do is go to the extension panel here on the left, and I will search for Ross.

03:12.650 --> 03:18.500
So, Ross, you see I have the first one here.

03:18.500 --> 03:24.110
So that's the Microsoft extension for Ross, which is valid for Ross one and also for Ross two.

03:24.140 --> 03:26.210
So that's the one we're going to use here.

03:26.690 --> 03:28.520
So you can install that one.

03:28.970 --> 03:29.390
Great.

03:29.390 --> 03:34.340
And then if I if I remove this here you can see installed extensions.

03:34.340 --> 03:38.210
I actually have not one but I have a few extensions.

03:38.210 --> 03:40.730
So I have the Ross extension.

03:40.730 --> 03:45.950
But it's also going to install the cplusplus one, the Python one and a few more stuff.

03:45.950 --> 03:47.450
So we have support for Python.

03:47.450 --> 03:51.470
We have support for Cplusplus and for Ross functionalities.

03:51.470 --> 03:53.810
There is also one more I'm going to install.

03:53.810 --> 03:57.950
I'm going to type CMake and I'm going to choose that one.

03:57.950 --> 04:01.970
So cmake by t w x.

04:01.970 --> 04:07.810
This one is just so we get a nice syntax highlighting for CMake files.

04:07.840 --> 04:10.750
Okay, I'm going to install it and that's it.

04:10.750 --> 04:14.140
So you install the Ros extension and that's CMake extension.

04:14.140 --> 04:17.020
And that's all we're going to need here.

04:18.400 --> 04:18.670
Okay.

04:18.670 --> 04:21.820
So in the end you make sure you have Ros and CMake.

04:21.850 --> 04:22.390
Great.

04:22.390 --> 04:29.170
And I'm going to come back to VSCode in this course with how to correctly start it with the Ros project

04:29.170 --> 04:30.910
and then how to set up a few things.

04:30.910 --> 04:36.340
So you have the autocompletion for all the libraries that you need, etc. but for now, that's already

04:36.340 --> 04:37.180
a good start.

04:37.180 --> 04:42.280
So I'm going to use VSCode and also for editing very simple file.

04:42.280 --> 04:44.020
I'm going to use Jedit.

04:44.050 --> 04:44.500
Okay.

04:44.530 --> 04:47.380
So Jedit is a very basic text editor.

04:47.380 --> 04:51.070
You can use whatever you want for example nano or vim.

04:51.100 --> 04:51.400
Okay.

04:51.430 --> 04:53.050
For this course I'm going to use Jedit.

04:53.080 --> 04:57.730
If it's not installed you just install it with sudo apt install git.

04:57.730 --> 05:00.580
But I think it should be installed by default.

05:00.580 --> 05:03.850
And that's pretty much it about the non-raw tools I'm going to use.

05:03.850 --> 05:06.730
So now you can understand everything that I'm doing in this course.

05:06.730 --> 05:08.770
And let's install Ros2.
