1
00:00:06,220 --> 00:00:14,440
We are going to learn about how we can connect the chest cavity robot operating system to you can have

2
00:00:14,470 --> 00:00:17,980
an stake whether it is wired or wireless.

3
00:00:18,160 --> 00:00:24,580
Well, I have this one, which is wireless, but it can also be connected with the fire.

4
00:00:24,850 --> 00:00:27,400
You can have any model of any kind of choice.

5
00:00:27,410 --> 00:00:27,670
Right.

6
00:00:28,030 --> 00:00:28,360
Okay.

7
00:00:28,360 --> 00:00:35,410
Here we have the Rostral package and we can install it, open the terminal and we will have to find

8
00:00:35,410 --> 00:00:36,910
out the GitHub.

9
00:00:36,910 --> 00:00:39,200
So here it is, the GitHub link.

10
00:00:39,220 --> 00:00:41,230
Now there are many branches.

11
00:00:41,230 --> 00:00:50,440
We will be downloading our foxy branch, copy the link and come over here navigate to the workspace

12
00:00:50,440 --> 00:00:59,350
and SRC and Kirkland paste the link minus P foxy.

13
00:01:01,580 --> 00:01:02,900
Alert is cloned.

14
00:01:02,900 --> 00:01:07,100
And I will just use dot dot.

15
00:01:09,810 --> 00:01:10,710
Falcon world.

16
00:01:22,630 --> 00:01:28,650
Although it has opened it as we have Xbox and we can launch it using this command.

17
00:01:28,660 --> 00:01:32,320
But before that we are going to connect it with the PC.

18
00:01:32,410 --> 00:01:33,120
There we go.

19
00:01:33,130 --> 00:01:34,180
It is powered now.

20
00:01:35,120 --> 00:01:38,780
Heard is explaining that there are several arguments that it needs.

21
00:01:38,780 --> 00:01:46,490
The default for the joystick is this one, if your USB is changed and when you plug in your joystick

22
00:01:46,490 --> 00:01:53,360
and this use USB does not appears, then you need to mention that USB that appears upon the joystick

23
00:01:53,360 --> 00:01:53,980
plugin.

24
00:01:53,990 --> 00:01:59,180
Now we will just use this launch file in order to run the tell.

25
00:02:00,440 --> 00:02:05,780
And now we will type ros Ros2 topic list.

26
00:02:07,670 --> 00:02:09,200
And there we go.

27
00:02:09,200 --> 00:02:12,620
There's our top topic and there is our topics.

28
00:02:13,250 --> 00:02:16,520
And we will have to deal with both of them.

29
00:02:20,340 --> 00:02:22,350
It is fetching the value.

30
00:02:22,380 --> 00:02:24,810
There are several buttons in here.

31
00:02:25,070 --> 00:02:28,410
There are some vertical handles and other buttons.

32
00:02:28,410 --> 00:02:35,160
And if I try to change the state of any button, it will display the data here.

33
00:02:35,340 --> 00:02:44,130
And let's say if I try to move this this stack and there you see the value changes here, do you see

34
00:02:44,130 --> 00:02:47,070
the change in the values?

35
00:02:47,070 --> 00:02:56,400
So every button has a state here are using this input so you can make logic and we can control anything

36
00:02:56,400 --> 00:02:57,540
in the Ros.

37
00:02:57,570 --> 00:02:59,280
Let's now go.

38
00:03:01,340 --> 00:03:02,180
Samuel.

39
00:03:05,390 --> 00:03:11,900
So in order to use the same level, we need to follow the configuration of the Xbox controller that

40
00:03:11,900 --> 00:03:12,440
we have run.

41
00:03:12,440 --> 00:03:18,560
So what we will do, we will just press this button, this shoulder button and.

42
00:03:19,320 --> 00:03:21,330
Moved in left joystick.

43
00:03:22,380 --> 00:03:28,230
This configuration can be changed, but here you can see the value of linear and angular.

44
00:03:28,260 --> 00:03:30,900
Let's run the teleop on the turtle sim.

45
00:03:33,980 --> 00:03:36,830
If I do this now, will it move?

46
00:03:39,800 --> 00:03:42,620
It is not moving because we are missing one thing.

47
00:03:44,420 --> 00:03:52,970
So the turtle has the command velocity topic, which is this turtle one slash cmd, but three are publishing

48
00:03:52,970 --> 00:03:56,510
value from the Xbox controller on this topic.

49
00:03:57,260 --> 00:03:59,150
Three the topic of the turtle same.

50
00:04:08,100 --> 00:04:12,840
So now if I try to move, it will be moving.

51
00:04:14,520 --> 00:04:17,700
There is no total one slash topic present.

52
00:04:17,700 --> 00:04:20,730
Now there is one command glossary topic which is.

53
00:04:21,570 --> 00:04:24,270
So now we will equal this.

54
00:04:26,010 --> 00:04:27,510
Now I will press this one.

55
00:04:27,510 --> 00:04:31,080
The shoulder button, the right shoulder and the left vertical axis.

56
00:04:33,610 --> 00:04:34,090
Yeah.

57
00:04:34,120 --> 00:04:36,670
There you see the movement in the turtle sim.

58
00:04:37,870 --> 00:04:42,820
So this is how you can play with the joystick.
