1
00:00:06,130 --> 00:00:10,660
And now we want that this joystick control, this robot.

2
00:00:10,690 --> 00:00:16,880
This is the package that we want to utilize and we have opened it in the VS code as well.

3
00:00:16,930 --> 00:00:22,090
This has the build type CMake, but we want to write a python node in in this package.

4
00:00:22,090 --> 00:00:26,160
So we will make some changes as we made previously in this package.

5
00:00:26,170 --> 00:00:26,950
Turtles import.

6
00:00:27,460 --> 00:00:28,960
Okay, we'll make it quickly.

7
00:00:31,870 --> 00:00:39,130
Now I have made some necessary changes in it and I will go to the post workspace and now I will try

8
00:00:39,130 --> 00:00:40,210
to build my package.

9
00:00:44,460 --> 00:00:46,650
Now this can run the python node as well.

10
00:00:46,650 --> 00:00:50,000
And now we will add a node inside the script folder.

11
00:00:50,010 --> 00:00:53,100
This is the node that we are going to utilize.

12
00:00:53,280 --> 00:00:57,210
Okay, so first let's make some changes in the same place as well.

13
00:01:04,010 --> 00:01:05,720
And now I will build it again.

14
00:01:07,530 --> 00:01:08,820
Now it can run the line.

15
00:01:08,820 --> 00:01:09,810
Turtle Joy.

16
00:01:09,840 --> 00:01:12,180
Darkfire Not so in here.

17
00:01:12,180 --> 00:01:20,610
We are utilizing the topic and topic and the server topic LEDs to trigger the LED's and the server to

18
00:01:20,610 --> 00:01:22,290
move the server up and down.

19
00:01:22,290 --> 00:01:26,190
So now first let's take a look on the demo.

20
00:01:26,190 --> 00:01:33,090
First I will run the micro Ros agent and I will give it a restart.

21
00:01:34,260 --> 00:01:36,030
Now this is connected, okay?

22
00:01:36,030 --> 00:01:38,520
And now I will run the joystick node in here.

23
00:01:38,730 --> 00:01:41,190
Yes, this is running and.

24
00:01:43,860 --> 00:01:46,340
And now I will run this line.

25
00:01:46,380 --> 00:01:47,370
Dirtrillionoad.

26
00:01:52,290 --> 00:02:01,620
We can control list now for first, if we want to control the server, I will press this button to take

27
00:02:01,620 --> 00:02:03,870
it above and this button to take it.

28
00:02:04,860 --> 00:02:06,270
Take it near to the ground.

29
00:02:06,270 --> 00:02:11,550
But if we want a gradual increase, I will do it like this.

30
00:02:11,760 --> 00:02:12,300
Okay?

31
00:02:12,300 --> 00:02:16,410
And if I want to gradually take it down, I will do this.

32
00:02:16,860 --> 00:02:24,810
Yes, this is going and again, if I want to take it above this and if I want to take it down this.

33
00:02:24,810 --> 00:02:25,440
All right.

34
00:02:25,560 --> 00:02:31,860
If I want to control the LEDs, I will press A to turn off the both.

35
00:02:31,860 --> 00:02:34,800
And now I will press y to turn on both.

36
00:02:35,640 --> 00:02:40,380
Turn off, turn on, turn off, turn on if I want.

37
00:02:40,380 --> 00:02:44,550
Just right already I will press b okay.

38
00:02:44,550 --> 00:02:47,850
If I want just left, I will press x.

39
00:02:50,010 --> 00:02:50,940
There we go.

40
00:02:51,150 --> 00:02:58,450
As we have made the configuration already, I will press this enable button and move the this vertical

41
00:02:58,450 --> 00:02:59,680
axis a little bit.

42
00:03:01,150 --> 00:03:01,570
Share.

43
00:03:01,570 --> 00:03:02,470
This is moving.

44
00:03:04,690 --> 00:03:06,730
I want to rotate it.

45
00:03:10,750 --> 00:03:12,400
So now we can play with it.

46
00:03:23,160 --> 00:03:24,570
Okay, now come to the code.
